Tom @lessp.dev · 30/03/2025for 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/2025absolutely a blast to use, the only issues i've had are lsp-related but haven't really tried to debug 110
Tom @lessp.dev · 23/02/2025ah 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/2025teej 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.comx.com 120
Tom @lessp.dev · 22/02/2025fwiw, 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/2025hazel.org's syntax imo combines the best of both worldshazel.orgHazel, a live functional programming environment featuring typed holes.Hazel is a live functional programming environment featuring typed holes. 110
Tom @lessp.dev · 18/02/2025ngl, 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/2025for 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 · 18/01/2025not 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/2025wanted 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.comGitHub - lessp/react-ml-minimal-templateContribute to lessp/react-ml-minimal-template development by creating an account on GitHub. 0103
Tom @lessp.dev · 18/01/2025the 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 · 07/01/2025go 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/2025excited for Octane though github.com/tjdevries/oc...github.comGitHub - tjdevries/octane.ml: The fastest, hottestThe fastest, hottest. Contribute to tjdevries/octane.ml development by creating an account on GitHub. 030
Tom @lessp.dev · 06/01/2025i 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/2025i believe @yawaramin.bsky.social has a simple interfacing library for sqlite github.com/yawaramin/fu...github.comGitHub - yawaramin/fun-sql: Functional-style SQL queryFunctional-style SQL query. Contribute to yawaramin/fun-sql development by creating an account on GitHub. 120
Tom @lessp.dev · 06/01/2025i'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.buildDune Developer Preview 210
Reposted by TomAxel Möllerberg @axeberg.dev · 29/12/2024Been 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/2024has anyone done ocaml on a raspberry pi or should i just use something else? 121
Tom @lessp.dev · 11/12/2024created 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/2024replace 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/2024wish 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/2024i'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/2024relatable! 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