News for hackers. Stuff that matters.
Re:OCaml Canvas by HPMOR on Tuesday December 13, 2022 @01:48AM (#33965637)
So cool. Love to see high quality OCaml Libraries.
Re:OCaml Canvas by unwind on Tuesday December 13, 2022 @07:26AM (#33967969)
I love to see that it's 78% C code. :)

Not trying to be annoying, but it's sometimes fun/interesting[*] to see that C (which gets a lot of critique here) is still important in order to enable higher-level languages like here.

[*]: If, like me, you happen to like C, that is.

Edit: escape those lonely asterisks.

Re:OCaml Canvas by LeonidasXIV on Tuesday December 13, 2022 @09:47AM (#33969532)
It could also be indicative how verbose C is. Given it is used in the C stubs, it does a lot of data conversion from/to OCaml values which increases the line count fast.
Re:OCaml Canvas by michaelcampbell on Tuesday December 13, 2022 @10:50AM (#33970446)
Snarkily, could it be that it takes 7x the amount of C to do what Ocaml can do?
Re:OCaml Canvas by substation13 on Tuesday December 13, 2022 @10:17AM (#33969949)
They wrote the C so that you don't have to :)