27 points bobbydigitales 1 hour ago 17 comments
MiroslavPokorny 48 minutes ago | parent
kenferry 29 minutes ago | parent
yndoendo 5 minutes ago | parent
zamalek 5 minutes ago | parent
backlands 37 minutes ago | parent
So it looks like it restricts the memory management to 100% scope based. I expect that makes a lot of designs for programs not translate to it as well as they fit in Rust or Java (for example). There are a bunch more constraining design choices they list further down:
> - Nothing ever moves
> - ... A string, an array of strings, a record with variable-size fields and an array of those records are each one contiguous block with no pointer in it
I'll have to look a bit deeper to decide if it's feasible to write many things in this language.
bobbydigitales 20 minutes ago | parent
tombert 17 minutes ago | parent
Say you wanted to make a Node.js framework with callbacks that react to an event. The callback might be a closure that captured some of its surrounding variables. At that point, any of the captured variables are not trivially stack-allocated.
You might be able to do something similar to what Rust does with moving though.
skew-aberration 15 minutes ago | parent
skew-aberration 17 minutes ago | parent
dadoum 35 minutes ago | parent
tom_ 9 minutes ago | parent
It's a no from me. I'm sorry.
webprofusion 9 minutes ago | parent
levkk 5 minutes ago | parent
tom_ 5 minutes ago | parent
(Feels like it should probably say "1.16x as fast" or "1.16x the throughput" - or something like that.)