Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
uecker
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
121.
▲
by
uecker
2mo ago
Lot of stawman arguments.
122.
▲
by
uecker
2mo ago
Not every high-level language gives you byte-level access to the representation of memory objects. But it is also wrong to reduce a language to what is in the spec.
123.
▲
by
uecker
2mo ago
The mechanism actually does not solve the problem it claims to solve.
124.
▲
by
uecker
2mo ago
It is a simple counterexample to your incorrect statement.
125.
▲
by
uecker
2mo ago
Have your mind blown: https://godbolt.org/z/xnn3PPxvW
126.
▲
by
uecker
2mo ago
This discussion was about C not C++. GCC also has language extensions for safety, such as the access attribute, the dynamic object size pass, and far better warnings. Big tech cares about a lot of things of dubious value to me, the users, o
127.
▲
by
uecker
2mo ago
IMHO gcc has better warnings and support for safety. Industry mostly wants a BSD-licensed toolchain. I could not care less.
128.
▲
by
uecker
2mo ago
It is usually assumed that it does not control the callee and the jump has to preserve the calling convention for a call.
129.
▲
by
uecker
2mo ago
If you care about C, use gcc.
130.
▲
by
uecker
2mo ago
Easy and still expressive, so you can map many things to C. And while the language standard does not define an ABI it takes a lot of care not to require any ABI break.
131.
▲
by
uecker
2mo ago
You can do more with less energy, if you use it more efficiently, which sometimes may be more cost effective compared to producing more. Electricity consumption peaked in Germany in 2007 and is down 15% since then while GDP grew by 50%. Al
132.
▲
by
uecker
2mo ago
Your understanding of this is poor. First, the same is true with neighbors putting renewables on the grid, it is not just Germany having renewables anymore. But the issue is not that the "grid goes up in flames". In Germany it is
133.
▲
by
uecker
2mo ago
I certainly also remember the kernel crashing, but this was in the 90s. Later perhaps once or twice on faulty hardware. Shell, I don't think I have seen this ever.
134.
▲
by
uecker
2mo ago
How does "emergency-dumping" create cost to neighbors? But what you miss is that most of the EU now has a lot of renewables.
135.
▲
by
uecker
2mo ago
This seems too low by an order of magnitude. In 2021, nuclear power produced 69 TWh in Germany. For comparison, renewables produced 240 TWh in 2021 and 292 TWh in 2025. But I agree with your general point.
136.
▲
by
uecker
2mo ago
Germany invested in renewables already at a time when they were very expensive. This created an economy of scale that brought prices down to everybody. Nuclear was never economical anywhere, so no, Germany should not have expanded nuclear.
137.
▲
by
uecker
2mo ago
People who did this found renewables to be cost effective.
138.
▲
by
uecker
2mo ago
The difference is that Germany's investments in renewables at a time when they were still expensive helped to create an economy of scale, which brought down prices for everyone and helped trigger a huge amount of investments worldwide.
139.
▲
by
uecker
2mo ago
Russia did not completely cut gas exports to Europa, but reduced in substantially, but this was a reaction to sanctions and the decision in Europa to reduce imports from Russia (but more slowly). In fact, Russia still exports to countries i
140.
▲
by
uecker
2mo ago
But it did exactly this. The pipeline was not the only way to import Russian gas.
141.
▲
by
uecker
2mo ago
Can you explain what you mean exactly regarding this augmenting this syntax?
142.
▲
by
uecker
2mo ago
That was discussed, but consistency with sizeof was considered more important. And if you figured out how to parse sizeof, parsing countof is not an additional burden.
143.
▲
by
uecker
2mo ago
Sorry, that others are equally bad is not an excuse, and also not that Rust's design makes it more difficult to package. Either you care about security or you don't.
144.
▲
by
uecker
3mo ago
Basically all C programs I use, shells, editors, terminals, etc. But I do not claim that there "never has been a memory-related bug" but that it is not "riddled with" memory-related bugs, which I would expect would have
145.
▲
by
uecker
3mo ago
It had no crash during 30 years, not after 30 years.
146.
▲
by
uecker
3mo ago
Those style guides would also disallow having multiple declarators in a single declaration.
147.
▲
by
uecker
3mo ago
I would say a modern style of C using proper abstractions and modern tooling is less prone to memory safety issues than C written in the style of C89.
148.
▲
by
uecker
3mo ago
If I would add another array, it would look like: int c_style_array[2][5][3]; There is also no jumping back and forth. C declarations are also recursively constructed. One can complain about the irregularity of pointers syntax.
149.
▲
by
uecker
3mo ago
Somehow, magically, some people managed to write C software that I now use for three decade with not a single crash in all this time.
150.
▲
by
uecker
3mo ago
The C programs I use daily are generally very fast, very lean and very stable: Programs such as linux, terminals, shells, vim, etc.
More ›