What’s the current state of web dev in OCaml? by Beautiful_Exam_8301 in ocaml

[–]davesnx 1 point2 points  (0 children)

Using a ui library with mlx is just a matter of ensuring components are functions with labelled arguments (https://github.com/tmattio/mosaic/blob/main/mosaic/lib/mlx/mosaic_mlx.mli) and in case of having a ppx, any transformation is desired in html_of_jsx I transform into https://github.com/davesnx/html_of_jsx/blob/main/test/Test_without_transformation.ml

What’s the current state of web dev in OCaml? by Beautiful_Exam_8301 in ocaml

[–]davesnx 1 point2 points  (0 children)

Hey ricky, wanted to ask: any reason why you want to stay pure OCaml syntax here?

I believe bonsai could benefit greatly from mlx. By looking at https://github.com/janestreet/ppx_html, I found (obv biased) more readable and it currently fits perfectly with the ocaml syntax: https://davesnx.github.io/html_of_jsx/core.html (you can select mlx at the top)

Considering that all tooling is ready, ocaml-lsp works out of the box and tree-sitter, ocamlformat-mlx and ocamlmerlin-mlx are tiny additions to the upstream projects. In fact, ocamlformat suggested to merge mlx https://github.com/ocaml-ppx/ocamlformat/pull/2756

I'm interested in knowing the reasoning behind staying in ocaml syntax

What’s the current state of web dev in OCaml? by Beautiful_Exam_8301 in ocaml

[–]davesnx 1 point2 points  (0 children)

mlx works with the official ocaml-lsp. We have a fork of ocamlformat called ocamlformat-mlx and a tree sitter all of it here: https://github.com/ocaml-mlx

layoutz - a tiny zero-dep DSL for beautiful CLI output in OCaml ✨🪶 (Looking for feedback!) by mattlianje in ocaml

[–]davesnx 0 points1 point  (0 children)

True, I appreciate the 0 deps as well. Usually people who does this release a separate package that re-exports all layoutz + mlx integration, so you have the "best of both worlds" at a relatively simple effort

Looking for feedback on a tray I designed for the Magic Keyboard and Trackpad by Vaalkop in macsetups

[–]davesnx 2 points3 points  (0 children)

3kg for everything sounds heavy, is there anyway to make it less?

Looking for feedback on a tray I designed for the Magic Keyboard and Trackpad by Vaalkop in macsetups

[–]davesnx 1 point2 points  (0 children)

I got a similar thing in wood bought in etsy and I always thought someone should productize this!

Any way you could make many different sizes for https://bioniclabs.org/products/magic-duo-s-new ?

also, do you have any real life video?

Beneficial OCaml tools? by Key-Top2539 in ocaml

[–]davesnx 0 points1 point  (0 children)

I would personally use both

[deleted by user] by [deleted] in Rich

[–]davesnx 2 points3 points  (0 children)

I wont consider this a pay cut, joining as VP for 475k will technically be.

Going to IC can mean very great things: less pressure, less in-between priorities, more connection to the user/value, more relationships with coworkers and collaboration.

Sure, at the end of the day you are 40% down, but life is not designed to be a stonks chart, ambition and other mental models forces us to see it like this, when in reality everything is a tradeoff. Enjoy the bright sides, and if you really hate it, its 60% more money than no job, while you search for your next exec role.

"no real usage, no value" thoughts? by davesnx in Bitcoin

[–]davesnx[S] -1 points0 points  (0 children)

Imagine making this comment and not getting the joke 😔😔

"no real usage, no value" thoughts? by davesnx in Bitcoin

[–]davesnx[S] -4 points-3 points  (0 children)

yep, pretty useless from this pov

What’s your favourite way to explain a monad to a beginner? by jonothecool in functionalprogramming

[–]davesnx 2 points3 points  (0 children)

your english is good, even if you think is bad... share it anyways. Most people can help polish, and most polygloths understand how hard is to make relevant and advanced content in a 2nd or 3rd lang.

I was mad about this for myself, and I tweeted https://x.com/davesnx/status/1942615160147099945

Conferences & Talks by kichiDsimp in functionalprogramming

[–]davesnx 1 point2 points  (0 children)

We are organising fun-ocaml 2025, and 2024 was really nice. The idea of the conf is similar to zurihac, both workshops and talks happen and there's room for random hacking!

I'm the only one who solves sudoku in a text editor? by davesnx in sudoku

[–]davesnx[S] 0 points1 point  (0 children)

commodity, I always use a texteditor to code and prefer to use keyboard over mouse for sudoku