Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It would be nice to have more healthy competition in this space. Any suggestions?

Would it not be great to have a language as powerful as Rust but with the ease of Go?

Anyhow, must be like CAP. You can't have everything in a language.



When Mozilla first sponsored Rust, it was with the goal of being the fastest memory-safe language around; at the time, it was thought that that required garbage collection. Only later (2011 or so), with the application of some comparatively recent research, did it progressively become apparent that it was in fact possible to have a practical memory-safe language without garbage collection; Rust progressively lost its garbage collected types (the @ sigil), and steadily settled down to its current model, which requires strong ownership to make it memory-safe and references + lifetimes to make it useful (otherwise you have a straightforward linear type system, which while functional is not very useful for fast code—you need references for that!).

The hard part of Rust is strongly tied to ownership and lifetimes. You can’t get rid of them and keep memory safety without introducing garbage collection on at least almost everything. And thus you’re roughly at Go.


Happen to have a link to the research that relates to this? I've been trying to up my CS-paper-reading game.


A quick search based on certain keywords I remembered yields https://www.reddit.com/r/rust/comments/2d94tu/is_there_any_a... which may help. Regions is the key thing. But right now I’m going to bed.


Thanks :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: