TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The road to OCaml 5.0

166 pointsby wczekalskiover 3 years ago

11 comments

cardanomeover 3 years ago
I really hope to see more interest in OCaml in the future.<p>It is probably one of the most underrated programming languages. The perfect marriage between state of the art functional programming and pragmatism. A great static and strong type system. Solid performance and an insanely fast compiler. Also compiles to JS if you need that.<p>Multicore support will make it quite perfect. Only thing that is holding it back more than that and the reason I have not done many projects with it, is it weirdly fragmented ecosystem.<p>Having to decide which standard library to use is a pain but you can cope with that. Tooling is getting there but stuff like automatic code formatting solutions are still pretty immature (and have really weird defaults).<p>Frontend there is that ReasonML&#x2F;Reason&#x2F;ReScript thing that Facebook it trying to do. It offers an alternative syntax but nearly nobody uses it because they changed the name and I think also the syntax three times already. So it is all a mess.<p>Don&#x27;t let that stop you though. There are some pretty solid mature libraries in OCaml and if need be interop story with C and other languages is solid.
评论 #28787861 未加载
评论 #28787229 未加载
评论 #28787205 未加载
评论 #28788351 未加载
评论 #28787210 未加载
评论 #28786881 未加载
评论 #28787661 未加载
评论 #28797709 未加载
bigjimsladeover 3 years ago
I really wanted to like OCaml, still do. I gave it a good shot a couple of years ago, wrote a few basic programs and loved it.<p>But it to me seemed packaged like many languages in the days of yore, when a language shipped simply as a compiler, and nothing more. The way of the world today to me seems to be a compiler, together with a complete standard library and consistent packaging system.<p>My experience with OCaml was thwarted repeatedly by a byzantine exploration process of packages depending on other packages, which required other packaging systems. Once I reached that point where it felt like I was spending more time figuring out the complex ecosystem, rather than writing code, I rapidly lost interest.<p>And perhaps such a point comes in exploring any new language. But it came much too early for me in OCaml. I had so much more I wanted to learn, but couldn&#x27;t. I am hopeful for the new release. Thank you for your efforts, OCaml team.
评论 #28788683 未加载
评论 #28789006 未加载
ubertacoover 3 years ago
&gt;Hopefully, OCaml 5.0 will then be released between March and April 2022.<p>Just to call out expectation-setting here in the comments: yes, the MVP of multicore will ship in OCaml 5.0, but OCaml 5.0 will ship no sooner than March 2022 (and very likely some point later, based on how challenging it appears to be to integrate the large-scale changes for multicore).
rawoke083600over 3 years ago
My favourite quote about OCaml:<p>&quot;Never have I took so long, to write so little code, that does so much&quot;<p>OCaml can be a big learning curve, but I urge you to push through. The syntax might not be everyone&#x27;s cup of team, but you get used to it quickly.
评论 #28788318 未加载
Rickasaurusover 3 years ago
Dang, it&#x27;s finally happening. I&#x27;ve been waiting for 10+ years.
short_sells_pooover 3 years ago
I run a hedge fund. On any given day I hear a large number of complaints from the technologists that complex python systems are difficult to look after and we should use something else instead. There&#x27;s some Rust being used, but there&#x27;s little chance to get a quant to use Rust to do research because research is an exploratory process and the last thing one wants is a language that requires a lot of thought about lifetimes etc.<p>How is the python-ocaml interop story? To be clear, any language that does not have first-class interop with python is basically dead in the water (at least for our case).
评论 #28786217 未加载
评论 #28786789 未加载
评论 #28786267 未加载
评论 #28786661 未加载
评论 #28786026 未加载
评论 #28786398 未加载
评论 #28786058 未加载
评论 #28786615 未加载
评论 #28786200 未加载
评论 #28786312 未加载
评论 #28785894 未加载
davesnxover 3 years ago
This is a great explanation about concurrency and parallelism and where multicore fits, FYI <a href="https:&#x2F;&#x2F;discuss.ocaml.org&#x2F;t&#x2F;multicore-ocaml-vs-thread&#x2F;5838&#x2F;12" rel="nofollow">https:&#x2F;&#x2F;discuss.ocaml.org&#x2F;t&#x2F;multicore-ocaml-vs-thread&#x2F;5838&#x2F;1...</a>
AzzieElbabover 3 years ago
I write a lot of Scala for living, Ocaml looks a bit outdated to me. Having said that, Ocaml compiler is one of the greatest miracles in PL when it comes to speed vs complexity of the language. Scala&#x2F;Haskell&#x2F;TS are not even close. I hear Ocaml&#x27;s runtime performance is not too shabby either
评论 #28788446 未加载
评论 #28788723 未加载
评论 #28787608 未加载
评论 #28788676 未加载
adultSwimover 3 years ago
That&#x27;s great. It&#x27;s a terrific language.<p>Python let&#x27;s me start programming quickly. ML let&#x27;s me finish quickly.
Jenzover 3 years ago
A lighthearted but very true remark: OCaml is a wonderful language.
Ivover 3 years ago
&lt;Obi Wan&#x27;s voice&gt; &quot;OCaml... That&#x27;s a name I haven&#x27;t heard in a long time...&quot;