Live data from Hacker News

Reason: A new interface to OCaml

facebook.github.io

111–120 of 294 posts

Re: Reason: A new interface to OCaml

#111
post #109

Has anyone here built something say, over 10k lines in Ocaml? How is the development experience? IDEs, debuggers, linters, deployment, etc.

There is no IDE. But you can use merlin, which is amazing. Debuggers are not very developed, neither are linters.

For me, the development experience is pretty good. But it takes some time to get used to this new world. Conventions are not the same.

Re: Reason: A new interface to OCaml

#112
post #50

Earlier quoted context omitted.

While not cool, that's a pleasant surprise to see something made-first for FF! Glad to see people still fighting against browser mono-culture. Disclaimer: This post was written in Chrome.

The lag is firefox specific, he means.

nonetheless it's nice to see something made for FF-only

Re: Reason: A new interface to OCaml

#113
post #3

There's a screencast fresh off the presses on the info page at https://ocaml.io/w/Blog:News/A_new_Reason_for_OCaml I'm finally going to switch away from my ancient nvi setup and use Atom instead! MirageOS recently moved all our libraries over to using the new PPX extension point mechanism in OCaml instead of the Camlp4 extensible grammar. This means that MirageOS libraries should be compatible with Reason out of the…

Is nuclide good enough? A few weeks ago, a lof of merlin features were still missing. As was the auto-indentation.

Re: Reason: A new interface to OCaml

#114
post #97

i noticed this in the examples: | List p (List p2 (List p3 rest)) => false /* 3+ */ has the regular list destructuring in pattern match syntax been removed? that's pretty sad, if so - lists are the default data structure in ocaml, and it's worth retaining some special syntax for cons especially in pattern matches.

No, the sugar's still there.

Re: Reason: A new interface to OCaml

#115
I took ocaml for a spin a couple months ago and compared to more recently created languages it seems a bit crufty.

If they can simplify the build system to be on par with something like cargo that would be swell.

Also: having rust style traits or haskell classes would be amazing. Also macros that aren't obscure and hard to use compiler plugins please :)

Hopefully it ends up being more than just questionable sugar around ocaml and actually adds some sorely needed language features.

Re: Reason: A new interface to OCaml

#116

Do it provide a usable standard lib? If so, I may try to use it in side project.

Batteries Included is another solution (which is more compatible with the thin included standard library): http://ocaml-batteries-team.github.io/batteries-included/hdo...

Re: Reason: A new interface to OCaml

#118
post #11

I for one welcome the syntax. I run the OCaml meetup in Silicon Valley and syntax is definitely an issue for newcomers. This makes it easier for other programmers to instantly just jump into OCaml/ML rather than ask about what is `in` or what is `let foo = function`, etc etc. EDIT: Hosting a Meetup this friday at 6pm in San Francisco about Reason and how to instantly start using it, http://www.meetup.com/sv-ocaml/eve…

This definitely makes me feel more warmly toward OCaml. Syntax has kept me away in the past. It's silly, but it's really hard to evaluate a language if you can't read the examples.

IMHO `let in` has more to do with semantics than syntax. `let a = b;` doesn’t mean the same as `let a = b in …`. It’s like `def` vs. `let` in Clojure. Outside of this specific case I agree OCaml doesn’t have an easy syntax; I have to re-learn some parts of it every time I need to write in that language.
Post reply on HN