News for hackers. Stuff that matters.
Re:Show HN: A SQL database implemented purely in TypeScript ... by p4bl0 on Monday September 28, 2020 @12:44PM (#24618567)
Why not use a language that has the benefits of TS + everything you say and is designed to be independent from JS.

I'm thinking of OCaml for example. Why not use OCaml rather than TS?

Edit: Actually the idea is so obvious that you have ReasonML that can compile both to JS and assembly and is basically OCaml with a JS-like syntax: https://reasonml.github.io/docs/en/what-and-why

Isn't that exactly what you're thinking of?

Re:Show HN: A SQL database implemented purely in TypeScript ... by int_19h on Monday September 28, 2020 @08:23PM (#24622791)
OCaml doesn't have all the benefits of TS, when it comes to the power and the flexibility of its type system.