Tom
lessp.dev
Tom
@lessp.dev
appreciator of intuitive UI experiences, functional programming, and outdoors. occasional music maker

O'Cameleer @ ahrefs

Stockholm, Sweden
do you think its problematic?
March 30, 2025 at 1:37 PM
for me the biggest misconception is that you need to know the intrinsics of monads to be able to use them.

i likely know less about the rules of my mother tongue than people who've studied it, yet i'm able to use it fluently
March 30, 2025 at 11:48 AM
absolutely a blast to use, the only issues i've had are lsp-related but haven't really tried to debug
March 6, 2025 at 4:48 PM
US green card granted
February 26, 2025 at 6:49 PM
ah right, i think understand now. you were thinking more validating against the schema while teej's approach is essentially using ocaml as the source of truth
February 23, 2025 at 10:57 AM
teej is building something like this where the queries refer to user defined types and give inline type errors (etc)

x.com/teej_dv/stat...
x.com
x.com
February 22, 2025 at 10:32 PM
fwiw, reason supports named operators `let (let.bind) = Option.bind` (not sure the correct syntax but something along those lines at least), which i miss in ocaml

`let.bind x = …`
vs
`let* x = …`
February 22, 2025 at 7:36 PM
hard agree, it's rad
February 22, 2025 at 7:30 PM
hazel.org's syntax imo combines the best of both worlds
Hazel, a live functional programming environment featuring typed holes.
Hazel is a live functional programming environment featuring typed holes.
hazel.org
February 22, 2025 at 7:02 PM
bucklescript used |. for piping (pipe first) previously iirc
February 18, 2025 at 5:25 PM
ngl, i don't hate it, feels like there'd be a lot of ambiguity to handle when parsing though

List.(
user.books
. map do_smth
. keep do_smth
)
February 18, 2025 at 5:24 PM
absolutely yes!
February 9, 2025 at 10:30 AM
Hazel is really cool
February 8, 2025 at 11:13 PM
haha, we know
January 25, 2025 at 10:01 AM
sounds like you're carrying quite the bladder
January 23, 2025 at 8:18 PM
they have instructions for lsp-setup on the preview page as well
January 18, 2025 at 12:37 PM
not sure how helfpul, but using the developer preview i use this, i'm sure there's some other way, but ocaml-lsp-server is installed automatically

`dune tools exec ocamllsp —`
`dune tools exec ocamformat —`

preview.dune.build

can very much recommend it, no more opam switches etc
January 18, 2025 at 12:34 PM
the key for me here is that you can communicate that with more finesse and empathy, we're not robots yet :)

”hmm, have you tried looking at this from another angle? perhaps …”
January 18, 2025 at 11:02 AM
yeah, diffing the two

(* a.txt *)
foo

(* b.txt *)
bar
January 17, 2025 at 10:19 AM
diff a b
- foo
+ bar
January 17, 2025 at 9:26 AM
diff checker
January 17, 2025 at 9:25 AM
Antonio 🥹 true MVP
January 14, 2025 at 5:46 PM
Tablecloth has a fantastic API imo, would push for that
January 14, 2025 at 1:17 PM