<Goba>
i think pony should do the same memory model with lifetimes like Rust
<Praetonus>
Goba: could you explain what this model is, for those unfamiliar with Rust?
<Goba>
Praetonus, you have to basically describe with annotations on variables how long they are allowed to live and who gets to access them where. This results in no need for a GC in the language because you are doing what you have to do in C with malloc/free only in a safe fashion because the compiler will check whether the lifetimes you wrote down for all the variables dont intersect
M-hrjet has quit [Remote host closed the connection]
srenatus[m] has quit [Remote host closed the connection]
srenatus[m] has joined #ponylang
<Praetonus>
I don't really see what it would add to Pony. Reference capabilities already describe how an object can be accessed. For the no GC part, I don't think Pony could work without a GC since actors can send data to each other asynchronously and defining lifetimes at compile time seems impossible. But I don't think that's a bad thing, the Pony GC is really good (based on the ORCA protocol, there is a paper on it). There is no
<Praetonus>
stop-the-world phase and all the reference counting work is deferred. Basically, user code is never interrupted to do GC stuff
M-hrjet has joined #ponylang
<doublec>
I think it's good that Pony sticks with a GC model. It's a nice to have a GC-able language with low level control as an alternative to the non-GC Rust/ATS models.
montanonic has quit [Ping timeout: 258 seconds]
Goba has quit [Quit: Leaving]
montanonic has joined #ponylang
tm-exa has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Matthias247 has quit [Read error: Connection reset by peer]