Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Conscat
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
35 ms
·
421.
▲
by
Conscat
4y ago
Actually both GCC and Clang have this feature (so does Circle), and uhh there are plenty of other indispensable features that lock you into those. You need statement expressions and inline assembly to write this kind of software.
422.
▲
by
Conscat
4y ago
They don't make the compiler. GCC in very many places substitutes standard library names with intrinsics for the purposes of optimization or static analysis. I'm not aware of it doing so for ssize, but in principle this is a bad i
423.
▲
by
Conscat
4y ago
This is sort of an issue we already deal with in other languages, and imo it's not a huge deal in those. Personally I find @ more reasonable than __builtin_
424.
▲
by
Conscat
4y ago
Yet still Swift can't even get move semantics. :/
425.
▲
by
Conscat
4y ago
Problem: Given known variable values, find appropriate physics equations and solve them to find a desired variable value. • Ordinary programming: 5 person-years by two PhD students; 25,000 lines of C++. • Symbolic Programming: 200 lines, a
426.
▲
by
Conscat
4y ago
That comes off as a childish understanding of what votes in a representational democracy actually mean.
427.
▲
by
Conscat
4y ago
That's interesting, I didn't know that. Out of curiosity, what GUI development are you doing on 32bit ARM? Is it something to do with systems on a chip or vehicles UI?
428.
▲
by
Conscat
4y ago
LSP support is considered a basic requirement for any modern code editor, but especially a C++ editor. If (respectfully) dinky TUI editors like Kakoune, Micro, and Helix have working LSP these days, it doesn't seem ridiculous to me to
429.
▲
by
Conscat
4y ago
Cyclone is not strictly backwards compatible with C.
430.
▲
by
Conscat
4y ago
How could that really work? printf is a library function, not an intrinsic. A function named printf can do anything your heart desires.
431.
▲
by
Conscat
4y ago
You could use Nim.
432.
▲
by
Conscat
4y ago
Exceptions make it difficult to find failure-points in the code. The ? annotates that at its call site, which improves discoverability by a lot and reduces readability by only a little.
433.
▲
by
Conscat
4y ago
I have struggled searching for any evidence, but most people seem to think it's "userspace".
434.
▲
by
Conscat
4y ago
I've used Vlang a fair amount, and made small minor contributions to its compiler, REPL, and documentation. Personally, I wouldn't consider it suitable for game development, as stated in the article. If you try, you will be very d
435.
▲
by
Conscat
4y ago
C/++ actually make you write relatively slow code too, by default. Not to the extent of Java, but still there is HUGE room for improvement in libC and by extension the STL. I'm working on a slash-and-burn approach to the problem h
436.
▲
by
Conscat
4y ago
They still have other issues, though. You ever had to put `template` before a templated member function called from an object of a `typename` type? Not fun, yet I have to do it all the time in my C++ code. MSVC and Comeau make this problem
437.
▲
by
Conscat
4y ago
My instinct was to deny, but actually yeah every one of these confused me when I started.
438.
▲
by
Conscat
4y ago
One big issue with D compared to Rust for performance-oriented code is the lack of move semantics. Rust and C++ idiomatically almost never rely on copy-on-write, whereas D so far has a lot of it. I'm not sure how much this matters for
439.
▲
by
Conscat
4y ago
Since I was a teenager, this has been one of my favorite documents on the Internet. It's amazing how "dumb" the pathfinding is while you would never realize that when playing the original Pac-Man.
440.
▲
by
Conscat
4y ago
Without it, you cannot express arithmetic wrappers or simd wrappers. So far, no language with any users has managed to provide adequate arithmetic and simd types built in, despite several attempts like Odin and CosmiC/HolyC. I'm n
441.
▲
by
Conscat
4y ago
If you like JSON that much, obviously you haven't yet seen https://github.com/Enhex/Deco
442.
▲
by
Conscat
4y ago
Godot feels like an incredibly poorly designed programming model and Juan Linietsky alternates being sounding brilliant and insane depending on the lunar phase. :/
443.
▲
by
Conscat
4y ago
The C++ reflection improves a lot in C++20, but it's still very limited compared to that aspect of Nim, or even Zig. The std::meta::info and "splices" based on Haskell for C++26 are incredibly exciting to me. I have many use
444.
▲
by
Conscat
4y ago
That's being done by like one guy, too. It's pretty impressive imo despite being incomplete.
445.
▲
by
Conscat
4y ago
How is that zero cost? There's a blatantly obvious opportunity cost when you remove the associative and commutative properties.
446.
▲
by
Conscat
4y ago
If the specific statement meaningfully applies to both C and C++, as it does here, I think it's completely valid to write C/C++. And I say that as a fairly advanced C++ boutique templates author. https://github.com/
447.
▲
by
Conscat
4y ago
Challenge yourself to not even use stdlib once in awhile. There are some interesting insights to glean about how much room for improvement we have even at the very bottom. https://youtu.be/BrBb0mqoIAc
448.
▲
by
Conscat
4y ago
I'm not sure you have any credibility considering point 9.
449.
▲
by
Conscat
4y ago
There's one big difference between undefined behavior in C and C++. In C++, undefined behavior is ill-formed when it is constant-evaluated. And for aspects which are tricky to determine undefined behavior for, such as reinterpret_cast
450.
▲
by
Conscat
4y ago
Gender puzzles??? If you find it puzzling, maybe you're just dumber than me?
More ›