26 points bobbydigitales 1 hour ago 13 comments
backlands 31 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 15 minutes ago | parent
tombert 12 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 10 minutes ago | parent
skew-aberration 11 minutes ago | parent
dadoum 29 minutes ago | parent
finn888 8 minutes ago | parent