Porting is-odd NPM to OCaml using remelange compiler
a year ago
- #JavaScript
- #remelange
- #OCaml
- Porting a JavaScript utility library like is-odd to OCaml using remelange.
- Remelange is an experimental JS/TS to OCaml compiler.
- The is-odd library is chosen for its simplicity and popularity.
- Steps include understanding the JavaScript source, compiling with remelange, generating an interface file, and using the OCaml code.
- The process demonstrates automation in porting JavaScript libraries to OCaml.
- Potential for porting more complex libraries like date-fns or lodash is mentioned.
- The post is shared on April 1st, adding a humorous note about the utility of is-odd in OCaml.