News for hackers. Stuff that matters.
Re:Chris Lattner left Swift core team by skohan on Monday February 21, 2022 @06:33PM (#30422162)
In Rust you opt into every heap allocation with an abstraction like Rc, Arc, Box etc. With C you would have to implement each of those behaviors with primitives, because C is at a lower level of abstraction than Rust.
Re:Chris Lattner left Swift core team by littlestymaar on Tuesday February 22, 2022 @05:38AM (#30426226)
How is that different from C++? Since you've explicitly put C and C++ in the same basket, this argument doesn't hold any water…
Re:Chris Lattner left Swift core team by skohan on Tuesday February 22, 2022 @05:33PM (#30434831)
It sees like you're trying to catch me with some kind of gotcha instead of dealing with the argument in good faith.
Re:Chris Lattner left Swift core team by djur on Tuesday February 22, 2022 @01:03AM (#30424507)
malloc is also an abstraction.
Re:Chris Lattner left Swift core team by skohan on Tuesday February 22, 2022 @02:05AM (#30424829)
I never said C is without abstraction, only that it is a relatively thin abstraction. Are you seriously arguing that Rust is not at a higher level of abstraction than C?
Re:Chris Lattner left Swift core team by littlestymaar on Tuesday February 22, 2022 @05:39AM (#30426238)
> Are you seriously arguing that Rust is not at a higher level of abstraction than C?

Rust is clearly not at a higher level of abstraction than C++, yet in your own argument you've put C and C++ on the same ground…

Re:Chris Lattner left Swift core team by skohan on Tuesday February 22, 2022 @08:24AM (#30427593)
No I haven't. I said Rust and C++ are on similar levels of abstraction.
Re:Chris Lattner left Swift core team by littlestymaar on Tuesday February 22, 2022 @09:19AM (#30428175)
Yet a few comments above in this thread[1]:

> I feel it's missing the quality from C/C++ that they are a very thin abstraction over assembly.

[1]: https://news.ycombinator.com/item?id=30419248

Re:Chris Lattner left Swift core team by skohan on Tuesday February 22, 2022 @05:34PM (#30434836)
I also said this:

> Rust and C++ are on similar levels of abstraction, but C is much, much simpler.