Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tuveson
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
91.
▲
by
tuveson
2y ago
If you heavily rely on the Python standard library, then you’re using a lot of Python code that doesn’t call out to C extensions. Peruse the standard library code, if you want to get a sense of it: https://github.com/python
92.
▲
by
tuveson
2y ago
> Hampering Google’s AI tools risks holding back American innovation at a critical moment I would pay money to never see google search AI suggestions. If that’s what they consider innovation, then we definitely need more competing searc
93.
▲
by
tuveson
2y ago
I think C is a simple well-designed systems language. It has some warts, but many of the things people complain about are matters of preference – or due to a lack of understanding of the problems that C is good at solving. The only major c
94.
▲
by
tuveson
2y ago
What do you think would make a better target? C maps pretty closely to assembly, so it seems like it would be the simplest. Maybe Pascal or BASIC, but most people these days don’t have experience with Pascal, and BASIC would probably be too
95.
▲
by
tuveson
2y ago
How would hygienic macros fix this? It seems like the macros were working fine, but the amount of generated code increased compile time significantly. Wouldn’t a more sophisticated macro system still generate a bunch of extra code and resul
96.
▲
by
tuveson
2y ago
Nacho fries are pretty good though…
97.
▲
by
tuveson
2y ago
Don’t forget good ole `=` for comparing numbers.
98.
▲
by
tuveson
2y ago
I think any time you're dealing with data in the form of an enum, a switch usually the natural way to handle cases. Many compilers will warn you when you've missed a case, which is a nice check to have. Similarly, in languages tha
99.
▲
by
tuveson
2y ago
These days GCC and Clang will both give you warnings for this if you have -Wall, which everyone should.
100.
▲
by
tuveson
2y ago
Yeah I totally agree, it’s a bad design choice and the successors to C should not have copied it.
101.
▲
by
tuveson
2y ago
I agree that implicitly promoting integers to floats (or implicitly changing any type) is a bad idea, but I don't think the C++ is uniquely bad in this regard. Java[1] and C#[2] both do this too. [1] https://godbolt.org/