4 ms·
The purescript example in the post shows one of Purescript’s biggest problems, and that’s non-optimal codegen. The series of if checks (O(n)) it generates as o
by thardus 8y ago
The purescript example in the post shows one of Purescript’s biggest problems, and that’s non-optimal codegen.
The series of if checks (O(n)) it generates as opposed to a switch statement can really add up in loops with bigger enums.
Of the langs listed, ReasonML/OCaml have the best codegen/ffi story, it’s relatively easy to drop them into existing JS projects.