I don’t know what’s wrong with compile to Js languages, but every time I want to give them a try they are always in the middle of a major rewrite/rebrand/overhaul with breaking changes and incompatible stuff that renders all that I know and all the documentation that I have bookmarked useless. This leads me to the frustrating situation where I spend more time making the toolchain work and looking for the proper resources rather than writing my domain code. This happened to me with Purescript 0.12, elm 0.18 and now with Bucklescript.
Right now I was building a small project in Google Apps script, and I wanted to have some functional practice so I decided to write some utils in ocaml. To my surprise I was redirected to some unfamiliar rescript page.
I just want to write some
.ml files, import them on my main file and compile them using parcel. I will probably need to write some JS interop and leverage some existing tooling, but I have not idea to where should I look at. Bucklescript docs are gone (or that is what the very insistent redirects make me think) and existing docs for the tools I use are out of date.
For example, if I follow parcel docs for Reason and I try to compile I get this annoying error:
✦ ➜ parcel build Código.js 🚨 /Users/danielo/mega/programacion/node/ElectronicProjectsSpreadsheet/src/Util.ml: bs-platform version mismatch Running bsb 4.0.18 (/Users/danielo/.config/yarn/global/node_modules/bs-platform) vs vendored 8.2.0 (/Users/danielo/mega/programacion/node/ElectronicProjectsSpreadsheet/node_modules/bs-platform)