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.

Oxidizing OCaml: Locality

246 pointsby amatheusalmost 2 years ago

11 comments

malkiaalmost 2 years ago
I&#x27;ve been listening to Signals and Threads podcast, and I remember listening to this episode - <a href="https:&#x2F;&#x2F;signalsandthreads.com&#x2F;memory-management&#x2F;" rel="nofollow">https:&#x2F;&#x2F;signalsandthreads.com&#x2F;memory-management&#x2F;</a><p>(I don&#x27;t know neither Ocaml, nor Haskell, or any ML language), but the podcast is always fun to listen to (not only programming also)<p>Now would relisten this, and may actually understand it!
评论 #36099442 未加载
评论 #36097277 未加载
yafbumalmost 2 years ago
This is a great idea, but I have questions<p>* Is there a process for upstreaming this into the mainline language, or is this essentially JaneStML now?<p>* Why choose such an obscure word as `exclave` to indicate return-value optimization? How about `return local` or something similarly approachable?
评论 #36097547 未加载
评论 #36096948 未加载
评论 #36097050 未加载
评论 #36097006 未加载
Laaasalmost 2 years ago
I believe this is an explanation (part of) of this proposal:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;ocaml-flambda&#x2F;ocaml-jst&#x2F;blob&#x2F;main&#x2F;jane&#x2F;doc&#x2F;proposals&#x2F;data-race-freedom.md">https:&#x2F;&#x2F;github.com&#x2F;ocaml-flambda&#x2F;ocaml-jst&#x2F;blob&#x2F;main&#x2F;jane&#x2F;do...</a>
评论 #36096927 未加载
evmaralmost 2 years ago
My understanding is that Go does a similar kind of optimization (where locals that don&#x27;t escape don&#x27;t go on the heap) but it does it automatically. This has the positive that you don&#x27;t need annotations but the negative that you can assume some code is benefitting from the optimization when it isn&#x27;t and there&#x27;s no warning about it.<p>I&#x27;m curious whether the authors here considered this. I didn&#x27;t see any discussion of related work in the post.
评论 #36099245 未加载
评论 #36099194 未加载
pjmlpalmost 2 years ago
This the best way, productivity of automatic memory management, and low level features for when that extra performance actually makes a difference.
hardwaregeekalmost 2 years ago
I’ve been critical of OCaml, but I gotta hand it to them, it does feel like the language is going through a renaissance. It’ll be interesting if 5-10 years down the line it manages to significantly improve the usability story while also adding on modes and unboxed types. I’m more focused on usability but these features are compelling too.
andrewstuartalmost 2 years ago
Can someone explain to me why Jane Street - a trading firm - is so all in on OCaml?<p>There&#x27;s lots of other choices that would be easier to recruit for, with wider community and industry support.<p>Where does the Jane Street commitment to Ocaml come from?
评论 #36104169 未加载
评论 #36101205 未加载
评论 #36100494 未加载
评论 #36100192 未加载
Decabytesalmost 2 years ago
Is Ocaml actually good or is it a meme that people use it and become obsessed with it. How is the transition if you mostly code imperatively? Are there things that are not ergonomic for it to do like GUIs or games?
评论 #36097859 未加载
评论 #36097799 未加载
评论 #36097690 未加载
评论 #36098260 未加载
still_grokkingalmost 2 years ago
Interesting read.<p>What I would like to know is why they didn&#x27;t take more direct inspiration form the &quot;ML with Python syntax&quot;, namely Scala 3, and its &quot;capture checking&quot;[1].<p>Those OCaml &quot;modi&quot; look just like special cases of capture checking to me. Was that more general approach considered? And if, why was it dismissed?<p>[1] <a href="https:&#x2F;&#x2F;docs.scala-lang.org&#x2F;scala3&#x2F;reference&#x2F;experimental&#x2F;cc.html" rel="nofollow">https:&#x2F;&#x2F;docs.scala-lang.org&#x2F;scala3&#x2F;reference&#x2F;experimental&#x2F;cc...</a>
malkiaalmost 2 years ago
Found this video too which is worth watching - <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=yGRn5ZIbEW8">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=yGRn5ZIbEW8</a>
daxfohlalmost 2 years ago
Seems like nim could be a good replacement? GC when you need it and explicit control when you need that.
评论 #36096455 未加载
评论 #36096142 未加载
评论 #36096181 未加载