Sign in

Tom

@lessp.dev
630 followers 119 following 114 posts

appreciator of intuitive UI experiences, functional programming, and outdoors. occasional music maker O'Cameleer @ ahrefs Stockholm, Sweden

PostsRepliesMedia
Tom @lessp.dev · 30/03/2025
do you think its problematic?
010
Tom @lessp.dev · 30/03/2025
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
020
Tom @lessp.dev · 06/03/2025
absolutely a blast to use, the only issues i've had are lsp-related but haven't really tried to debug
110
Tom @lessp.dev · 26/02/2025
US green card granted
010
Tom @lessp.dev · 23/02/2025
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
110
Tom @lessp.dev · 22/02/2025
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
120
Tom @lessp.dev · 22/02/2025
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 = …`
120
Tom @lessp.dev · 22/02/2025
hard agree, it's rad
010
Tom @lessp.dev · 22/02/2025
hazel.org's syntax imo combines the best of both worlds
hazel.org
Hazel, a live functional programming environment featuring typed holes.
Hazel is a live functional programming environment featuring typed holes.
110
Tom @lessp.dev · 18/02/2025
bucklescript used |. for piping (pipe first) previously iirc
010
Tom @lessp.dev · 18/02/2025
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 )
210
Tom @lessp.dev · 13/02/2025
for reasons unknown, i wrote a little article on getting to know ocaml by writing a simple diff checker sketch.sh/s/i4HpNY61ih...
001
Tom @lessp.dev · 09/02/2025
absolutely yes!
010
Tom @lessp.dev · 08/02/2025
Hazel is really cool
020
Tom @lessp.dev · 25/01/2025
haha, we know
020
Tom @lessp.dev · 23/01/2025
sounds like you're carrying quite the bladder
230
Tom @lessp.dev · 18/01/2025
they have instructions for lsp-setup on the preview page as well
010
Tom @lessp.dev · 18/01/2025
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
110
Tom @lessp.dev · 18/01/2025
wanted an extremly barebones setup to write ocaml + react (to js), perhaps it can be useful for someone else :) or ”get up and running with ocaml + react.js in under a minute” github.com/lessp/react-...
github.com
GitHub - lessp/react-ml-minimal-template
Contribute to lessp/react-ml-minimal-template development by creating an account on GitHub.
0103
Tom @lessp.dev · 18/01/2025
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 …”
020
Tom @lessp.dev · 17/01/2025
yeah, diffing the two (* a.txt *) foo (* b.txt *) bar
000
Tom @lessp.dev · 17/01/2025
diff a b - foo + bar
100
Tom @lessp.dev · 17/01/2025
diff checker
100
Tom @lessp.dev · 14/01/2025
Antonio 🥹 true MVP
020
Tom @lessp.dev · 14/01/2025
Tablecloth has a fantastic API imo, would push for that
130
Tom @lessp.dev · 08/01/2025
it's priced in
010
Tom @lessp.dev · 07/01/2025
ocaml hype train confirmed
020
Tom @lessp.dev · 07/01/2025
Sabine Useocaml, don't even have to change your bluesky handle
220
Tom @lessp.dev · 07/01/2025
go with your gut, and ”cross that bridge when you come to it” imo ending up in these decision trees is a drag, i find it better to just go with an option even if it turns out it's not the best one :)
130
Tom @lessp.dev · 06/01/2025
yes, and the error messages are usually quite a mouthful
030
Tom @lessp.dev · 06/01/2025
excited for Octane though github.com/tjdevries/oc...
github.com
GitHub - tjdevries/octane.ml: The fastest, hottest
The fastest, hottest. Contribute to tjdevries/octane.ml development by creating an account on GitHub.
030
Tom @lessp.dev · 06/01/2025
i don't find it very newcomer friendly, but here's a quite simple example which might be helpful github.com/lessp/ocaml-...
220
Tom @lessp.dev · 06/01/2025
i believe @yawaramin.bsky.social has a simple interfacing library for sqlite github.com/yawaramin/fu...
github.com
GitHub - yawaramin/fun-sql: Functional-style SQL query
Functional-style SQL query. Contribute to yawaramin/fun-sql development by creating an account on GitHub.
120
Tom @lessp.dev · 06/01/2025
it's been great 👌
010
Tom @lessp.dev · 06/01/2025
also +1 for dream
010
Tom @lessp.dev · 06/01/2025
i'd also really recommend using the dune preview (if you're not already) preview.dune.build it's essentially: - add dependency to dune-project - dune pkg lock profit!
preview.dune.build
Dune Developer Preview
210
Tom @lessp.dev · 02/01/2025
—clear-cache
000
Tom @lessp.dev · 29/12/2024
that's an old gem!
Anberlin - The Feel Good Drag
110
Reposted by Tom
Axel Möllerberg @axeberg.dev · 29/12/2024
Been trying to find a functional, type-safe way to define user habits (behavior over time) in a “formal” way, like some kind of rules engine. Or am I missing vernacular to find something that already exists in research? Please note: FP and Category Theory noob.
121
Tom @lessp.dev · 26/12/2024
i just don't want to be the second 😅
120
Tom @lessp.dev · 26/12/2024
just basic gpio stuff w/o hassle!
100
Tom @lessp.dev · 26/12/2024
has anyone done ocaml on a raspberry pi or should i just use something else?
121
Tom @lessp.dev · 13/12/2024
preach it
000
Tom @lessp.dev · 12/12/2024
Ouff, nice! That's a job well done!
010
Tom @lessp.dev · 11/12/2024
created a very barebones implementation of inertia.ml here github.com/lessp/inerti... might be a good starter (there's a simple example included), or prs welcome :)
220
Tom @lessp.dev · 09/12/2024
TIL, and sounds like half the work is already done then
010
Tom @lessp.dev · 09/12/2024
replace the stdlib with a new one utilising all the goodies of ocaml, like named arguments, and put the old one under a legacy flag so ppl can still use it 🤌
130
Tom @lessp.dev · 09/12/2024
wish they'd fix this in major versions! inconsistencies with pipe last are annoying and very confusing for people new to ocaml
220
Tom @lessp.dev · 08/12/2024
i've always hated losing, but thought i might've grown out of it, but alas! same… maybe it's time to try solitaire
010
Tom @lessp.dev · 08/12/2024
relatable! i thought chess would be a perfect fit for the occasional casual hobby, turns out i was wrong, and i get way too competitive and still don't seem to deal too well when losing!
120