Live data from Hacker News

Learning C3

alloc.dev

161–163 of 163 posts

Re: Learning C3

#161
post #152

Earlier quoted context omitted.

C++ is just slow to compile. With the standard library it is much worse. The problem is that with C++ you're not getting as much encapsulation as you would in C unless you do extra work that also has a performance hit (pimpl). This means that C++ code often has to recompile a whole lot more than C code does when doing incremental compilation in my experience.

This is just not true. There's nothing that makes C++ inherently slow to compile. PImpl doesn't need to have a performance hit as you can implement it with a local fixed-sized buffer that's not heap-allocated. You can also design your C++ codebase exactly as you would in C, so there's literally no reason why you'll need to recompile more in one language compared to the other.

C++ is not context free.

A quick google "c++ grammar" will give you clues that C++ is not you average language. Templates are also turing complete, and probably not trivial to parse.

Of course I am not talking about C++98, but C++14, 17, etc, which add significant stuff.

Re: Learning C3

#162
post #121

Earlier quoted context omitted.

https://spectrum.ieee.org/top-programming-languages-2024

Rust jobs: 0.04 Python jobs: 0.9 Seems about right, maybe. Except there's no way PHP (0.09), Ruby (0.07) and Go (0.1) are on the same magnitude as Rust jobs. So this site doesn't pass the sniff test for me.

So it just must be the case that Rust has more jobs because that smells right to you? Even compared to Go which has found a nice niche in networking?

If Rust is as good as its evangelists say it is, we won't have to worry about how the stats smell, we'll see it, and it won't rely on some "Cnile" conspiracy to keep it down either.

Re: Learning C3

#163
post #121

Earlier quoted context omitted.

Rust jobs: 0.04 Python jobs: 0.9 Seems about right, maybe. Except there's no way PHP (0.09), Ruby (0.07) and Go (0.1) are on the same magnitude as Rust jobs. So this site doesn't pass the sniff test for me.

So it just must be the case that Rust has more jobs because that smells right to you? Even compared to Go which has found a nice niche in networking? If Rust is as good as its evangelists say it is, we won't have to worry about how the stats smell, we'll see it, and it won't rely on some "Cnile" conspiracy to keep it down either.

I think you've got the parent backward: they're saying that Rust "should" have far less jobs than these other technologies.

If your parent is wrong, happy to be corrected. I thought it was interesting that we read the post in completely opposite ways, and I think both readings can be accurate. I based my reading on a vague remembering that I think the parent isn't a fan of Rust, which is fuzzy and also may be wrong!

Post reply on HN