r/ProgrammingLanguages • u/yorickpeterse Inko • Apr 22 '26
Inko 0.20.0 is released: reducing heap allocations by 50%, better method inlining, structured logging and more
https://inko-lang.org/news/inko-0-20-0-reducing-heap-allocations-by-50/
29
Upvotes
4
u/AustinVelonaut Admiran Apr 22 '26
Nice writeup of results -- 50% reduction in heap allocation is impressive! Do you have any performance measurements for the escape analysis optimization, as well? What about performance of inlining vs no inlining, in general?
4
u/gasche Apr 22 '26
Questions on the escape analysis:
buildcommand, which suggests a static analysis only. I think you should really measure runtime allocations.2
u/vanderZwan Apr 22 '26 edited Apr 22 '26
Congratulations! Like the other comment said: impressive results!
I'm a bit curious about the
reftypes: do they implicitly get acquired and released with every operation, or do you need to explicitly acquire/release them before and after a set of operations? Because the former sounds like it could introduce so much overhead that I wonder if it really stacks up against the benefits of not moving the data.Oh wait🦆. We're not sharing large
refed arrays and preventing moving those, are we? It's about synchronizing via atomic values rather than via messages I guess?Isn't this contradicting itself? I'm getting confused at how you use these now.
Also, a tangent: do you/does your site generator use
<code></code>blocks for the code snippets? Reader mode on my ff mobile (which I sometimes use as a dark mode) turns them into serif fonts.-6
u/PerkyPangolin Apr 22 '26 edited Apr 22 '26
You could've explained what it is in a few words.