News for hackers. Stuff that matters.
Re:Rust 1.37.0 by amedvednikov on Thursday August 15, 2019 @01:10PM (#20707248)
I'm working on a language with similar goals, but with the focus on simplicity:

https://vlang.io

A relatively stable 0.2 release will be out this month.

Re:Rust 1.37.0 by oconnor663 on Thursday August 15, 2019 @01:34PM (#20707506)
I'm curious about the example code at https://vlang.io/compare (apologies if you answered this before):

- Does the compiler use escape analysis to determine that the `cursor` variable needs to be heap allocated? If not, how does it know that the worker threads won't outlive the stack frame that owns `cursor`? If so, when does the allocation get freed? And does implicit heap allocation conflict with the goal of being as fast as C?

- How does the compiler know that the `lock` block is the only code that touches `cursor`? Does it still work if the `lock` block is in a subroutine? Does that require whole-program analysis? If two different `lock` blocks touch the same variable, are they implicitly a single `lock`?

Re:Rust 1.37.0 by kbd on Thursday August 15, 2019 @03:29PM (#20708797)
The two languages I'd be most interested in seeing added to that comparison are Nim and Zig. Those definitely have most of my mindshare on "new low-level/efficient languages simpler than Rust".
Re:Rust 1.37.0 by digikata on Thursday August 15, 2019 @05:46PM (#20710010)
Are you trying to do data lifetime analysis in V? I don't see that listed and to me it's pretty much Rust's key feature to enabling a high degree of memory leak and multithreading safety.
Re:Rust 1.37.0 by kzrdude on Thursday August 15, 2019 @02:05PM (#20707912)
Sounds very interesting. I guess you should compare compile speeds with D and Nim, since they are also interested in fast build times.
Re:Rust 1.37.0 by koszikm on Thursday August 15, 2019 @02:23PM (#20708117)
It looks nice, but I'd add to the comparison table that Erlang has both hot code reloading and no global state.