News for hackers. Stuff that matters.

davesnx

Re:I Love OCaml on Saturday November 08, 2025 @09:16AM (#45856789)
is very alive, released with OCaml 5.4 support and improving bit by bit
OCaml / Reason (Melange)
that's what' melange is lol
this is a good naval-style tweet, well done
Re:OCaml Syntax Sucks on Monday November 25, 2024 @04:01PM (#42240155)
Curious to know more, do you think can make a long-form of "why" and a detailed experience? If you have some time, would be massive to compare it with what's the same experience today
Re:OCaml Syntax Sucks on Monday November 25, 2024 @03:58PM (#42240126)
Shame on me; I have a few draft posts that never got the chance to publish. My non-native english doesn't fully help ^^

Expect some of them to be published at the end of the year or early january!

Re:OCaml Syntax Sucks on Monday November 25, 2024 @07:08AM (#42235550)
There are a few missleadings in your message:

ReScript isnt a fork of Reason, jsoo focuses only on compiling all OCaml and allows JS interop

Reason with Melange is a viable option for JS/TS devs.

I always loved hazel, probably a great tool to teach. What has been build with it?
Re:Ask HN: What programming languages are you using at $WORK? on Thursday September 14, 2023 @11:18AM (#37510173)
OCaml
Re:Melange 1.0: Compile OCaml / ReasonML to JavaScript on Monday June 12, 2023 @04:37PM (#36300682)
Biased answer:

The biggest differences between Elm and ReScript/ReasonML as language features are bindings, JSX and purity. Bindings in Elm are cumbersome and limited (on purpose) while in ReScript/ReasonML are easy, more feature complete and a little more fragile. JSX is exactly as React, while Elm doesn't have it; some people prefer it, some people don't. I love it. Purity in general terms makes Elm more strict while ReasonML/ReScript allow impurity when needed, still most APIs enforce functional style, immutability and proper data structures.

Regarding community, there's drama everywhere not sure If I can do a good job here. Maybe community size Elm is much bigger than others, but they need to reinvent most of tooling that is done in JS and ReScript/Reason takes advantage.

I encourage to not rely on anyones opinion about what's better, because you listed 5 languages with opposite directions.

Try it out yourself and decide based on users/team needs. Cheers.

Re:Melange 1.0: Compile OCaml / ReasonML to JavaScript on Monday June 12, 2023 @01:40PM (#36297698)
It's a good idea to read "A bit of history" under Melange docs: https://melange.re/v1.0.0/rationale/#a-bit-of-history
Re:Melange 1.0: Compile OCaml / ReasonML to JavaScript on Monday June 12, 2023 @01:40PM (#36297675)
With Melange ReasonML has a small comeback, since Melange and dune supports it out-of-the-box.

There has been a bit of activity on fixing bugs on refmt and polish the experience, no plans for big features so far but we will keep working on it.

We will update documentation from either reason-react and reason to highlight the integration with Melange soon.

Re: on Tuesday May 09, 2023 @01:34PM (#35877700)
Hi, I worked on rendering React in OCaml and cross-compiling it to JavaScript and wrote a blog post about it.

I'm happy to share it here <3

Re:Bun v0.5 on Wednesday January 18, 2023 @05:30PM (#34434057)
versus other than JavaScript stuff: Java, C++, OCaml or Go
Re:Learning OCaml in 2023 on Friday December 30, 2022 @03:46PM (#34189892)
Hey, thanks! This tries to solve exactly that, let me know if there's anything else that feels that needs an intro to OCaml community.
Mi bad english played me bad here. I meant to write "Picks python... blabla"

Looked to me like a "Python isn't than bad for perf" article.

The author: Selecting a programming language can be a form of premature optimization

Also the author: Pick python no matter the problem, the team, the libraries, the deployment targets, etc.

Re:The road to OCaml 5.0 on Thursday October 07, 2021 @10:10AM (#28786457)
This is a great explanation about concurrency and parallelism and where multicore fits, FYI https://discuss.ocaml.org/t/multicore-ocaml-vs-thread/5838/1...
Re:ReScript 8.4 on Tuesday December 15, 2020 @07:13AM (#25429543)
That's a project that we all wished was in a perfect shape in order to make Reason more approchable with jsoo.
Re:ReScript 8.4 on Tuesday December 15, 2020 @07:12AM (#25429535)
That's very doable, but tedious to make and it's probably on of the selling points for Reason. Writting React code with OCaml is very tedious.
I tried to explain it on the Performance section and on the report

https://github.com/davesnx/query-json#performance https://github.com/davesnx/query-json/blob/master/benchmarks...

But all explanations aren't based by any evidence, just asumptions.

Yep, kind of.

The comma operations means that the "filters" are duplicated, so instead of one json state you would pass two if there's one coma; and ofcourse any number of commas are allowed.

I trend to use jq with a file all the time, I prefer to curl first and later operate on top. /slug
Thanks, next time if you paste the list somewhere else you can add query-json :P
+1
Yes, jq is written in C. Where LISP comes from?

Older »