Posts tagged "ocaml":
My experiments with OCaml - 4
Alright, I was setting up the AST generator and I realized how painful it can truly be. No wonder every compiler writer complains of the parse phase itself. I'm taking an approach of not throwing in errors rn but let's see. I'd ideally want to be able to diagnose what's going wrong where, and then be able to debug print the AST that the compiler is generating.
(...)Experiments with OCaml - part 3
Ok, so the error last time was the fact that emacs was not able to pick up the change in ocaml switches, hence I restarted for my compositor to pick my settings and emacs picked it up wonderfully. Next, Fira Code ligatures were actually insanely annoying in emacs so I switched to ProFont, and it looks wonderful. Third, dune and dune-format packages are lifesavers.
(...)Experiments with OCaml - Part 2
Ok, so it was getting a bit on my nerves that I wasn't able to cleanly do the things I wanted to. So I switched to git back. Sorry for disappointing :/ Another issue I keep running into is the fact that for some god knows what reason emacs isn't able to find the LSP in the path and I need to set it manually. It's so annoying. I'm using helix for now, as everything works out of the box for it.
(...)Experiments with OCaml
I feel embarrassed to admit that I've never written a real project in OCaml. So let's settle that today. I'll be doing this series to learn both jujutsu and OCaml properly. I'll push it to my codeberg once I've learned how to do that. So keep following along!
(...)