Re:Programming a space invader in OCaml and OpenGL: lessons ...
by elcapitan on Friday February 21, 2020 @10:46AM
(#22383921)
What's the state of using Reason natively? Last time I checked all the documentation and examples where towards the reason/js/react ecosystem. Are there any good native code projects written in Reason to look at for reference?
[ Parent
| on HN ]
Re:Programming a space invader in OCaml and OpenGL: lessons ...
by pcvonz on Friday February 21, 2020 @11:27AM
(#22384328)
Check out Oni Vim 2: https://github.com/onivim/oni2/blob/master/README.md
Re:Programming a space invader in OCaml and OpenGL: lessons ...
by elcapitan on Friday February 21, 2020 @12:49PM
(#22385085)
That looks perfect, thanks!
Re:Programming a space invader in OCaml and OpenGL: lessons ...
by yawaramin on Friday February 21, 2020 @07:38PM
(#22388517)
There are two significant projects for native Reason:
- https://esy.sh/ - a package manager that offers a lockfile, aggressive build caching, and reproducible hermetic builds. So when you come back to a project a few months later, it still builds.
- https://reason-native.com/ - an umbrella for useful Reason-oriented native libraries
Re:Programming a space invader in OCaml and OpenGL: lessons ...
by k__ on Friday February 21, 2020 @11:48AM
(#22384531)
Reprocessing is a rewrite of Processing in Reason.
Runs with WebGL and OpenGL.
Re:Programming a space invader in OCaml and OpenGL: lessons ...
by sweeneyrod on Friday February 21, 2020 @11:25AM
(#22384312)
People don't do it much, but if you're using the most popular build system (dune) you can replace your .ml files with .re ones and it will Just Work. So you can use OCaml projects for reference (I think anyone who's doing Reason should have a vague grasp of OCaml syntax, it's not really that different).
Re:Programming a space invader in OCaml and OpenGL: lessons ...
by firethief on Friday February 21, 2020 @01:54PM
(#22385675)
> I think anyone who's doing Reason should have a vague grasp of OCaml syntax, it's not really that different
Especially if you're targeting native, so all your dependencies are written and documented in OCaml syntax.
Re:Programming a space invader in OCaml and OpenGL: lessons ...
by baddox on Friday February 21, 2020 @06:24PM
(#22388038)
Aren't the Ocaml and ReasonML syntaxes so similar that you can effectively convert both directions and still end up with clean idiomatic code? That has seemed to be the case when I've played around with the ReasonML, and if it's the case, then which one you choose to write is very much arbitrary. Heck, you could even write one syntax locally and then automatically convert to the repo's preferred syntax when you commit your code.