News for hackers. Stuff that matters.
Re:Graphics Team ships WebRender MVP by jerheinze on Tuesday May 21, 2019 @08:33AM (#19969515)
Since Rust is a memory safe language with nearly the same performance as C
Re:Graphics Team ships WebRender MVP by frutiger on Tuesday May 21, 2019 @08:45AM (#19969595)
EDIT: Parent commenter edited the comment to append "with the same performance as C", so you can ignore my reply.

So is Python, JavaScript, Java, OCaml, Haskell...

A more distinguishing feature of Rust is not only that it is memory safe but also that it doesn’t have a GC.

In any case the presence of a single unsafe block can make the program no longer memory safe. Of course, if used appropriately, it vastly reduces the audit surface compared to something like C++.

Re:Graphics Team ships WebRender MVP by Someone1234 on Tuesday May 21, 2019 @09:12AM (#19969797)
None of those have nearly the same performance as C.
Re:Graphics Team ships WebRender MVP by frutiger on Tuesday May 21, 2019 @09:22AM (#19969876)
GP edited the comment, so now my reply looks silly.
Re:Graphics Team ships WebRender MVP by Cynddl on Tuesday May 21, 2019 @11:40AM (#19971175)
OCaml can have nearly the same performance as C.
Re:Graphics Team ships WebRender MVP by chronogram on Tuesday May 21, 2019 @09:23AM (#19969887)
Is GC a negative? I’ve yet to see anyone go “well I would’ve written this in Golang but it’s got GC”. Even that new Windows driver style, where it’s split in two, can have half of it being GC’d, right? Looking at https://en.wikipedia.org/wiki/Windows_Driver_Frameworks at least.
Re:Graphics Team ships WebRender MVP by saagarjha on Tuesday May 21, 2019 @09:59AM (#19970192)
> I’ve yet to see anyone go “well I would’ve written this in Golang but it’s got GC”.

This is a dealbreaker in a lot of contexts where garbage collection pauses would be unacceptable.

Re:Graphics Team ships WebRender MVP by ncmncm on Tuesday May 21, 2019 @10:03AM (#19970229)
Yes, GC is a negative. There is a huge literature in measures to mitigate its negatives. These always involve trading off one against another, and libraries are frequently incompatible with any particular mix of them.
Re:Graphics Team ships WebRender MVP by BubRoss on Tuesday May 21, 2019 @06:43PM (#19975880)
A GC is literally the only reason I haven't tried go.