Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
uecker
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
451.
▲
by
uecker
7mo ago
Is there a fully usable Linux phone nowadays?
452.
▲
by
uecker
7mo ago
IMHO modern C (with modern tooling) is very reasonable.
453.
▲
by
uecker
7mo ago
Mobile is a problem. I had a beautifully Linux phone once, the Nokia N9. It is incredibly sad knowing how the world could look.
454.
▲
by
uecker
7mo ago
Funny. But I have to say the shaming of users who have different opinions or want to make different choices (the whole point of free software) is one of the saddest development in the free software world, such as the push for BSD replacemen
455.
▲
by
uecker
7mo ago
I would be worried more about leaking the timing of the key presses.
456.
▲
by
uecker
7mo ago
Sorry, I know this nonsense from Daniel Stone I am interested why you believe it. "compatibilities which are irrelevant" do exist, such as old drawing primitives but those are not really an issue. They can be maintained for backwa
457.
▲
by
uecker
7mo ago
What exactly do you think are the problems in X11 core protocol and extension mechanism that required to start from scratch?
458.
▲
by
uecker
7mo ago
In X you have server, window manager, compositing manager, and clients and all is scoupled by a very flexible protocol. This seems nicely split and aligned with Unix philosophy to me. It also works very well, so I do not think this should b
459.
▲
by
uecker
8mo ago
I am not sure this is a mischaracterization. The C provenance model also exists, even as a form of an ISO TS. The Rust model copied the basic concepts and even the terminology from us. The reason the C model is is not in ISO C 23 but in a s
460.
▲
by
uecker
8mo ago
No, angelic non-determinism is not related to the as-if rule. It essentially says that if there is a choice to assign provenance on backconversion from integers, the one which makes the program valid is assigned. This is basically the same
461.
▲
by
uecker
8mo ago
But LLVM's optimizations aren't sound and this affects Rust too.
462.
▲
by
uecker
8mo ago
That CO2 emissions will cause warming was predicted first by Arrhenius Svante in 1896. While accurate modelling of all effects may be difficult, the basic effect follows from fundamental physics. There is really no excuse for doubting this.
463.
▲
by
uecker
8mo ago
If there only existed a standardized protocol...
464.
▲
by
uecker
8mo ago
This is very cool. I had a lot of fun doing C++ template meta programming two decades ago and the language got a lot more interesting. Just realize that you can waste a huge amount of time without anything doing remotely useful. (And please
465.
▲
by
uecker
8mo ago
It is strange to use lightdm and gdm as examples, which are both written in C (if nothing has changed recently).
466.
▲
by
uecker
8mo ago
Considering that for electricity production gas is imported, but this amount is stable over decades in Germany and a small fraction of overall gas use, and not imported from Russia anymore, I would say this is nonsense. Did the US stop imp
467.
▲
by
uecker
8mo ago
"We were quite amazed how good those early projections were, especially when you think about how crude the models were back then, compared to what is available now,” https://news.tulane.edu/pr/study-finds-sea-leve
468.
▲
by
uecker
8mo ago
I should also talk about disadvantages and which I think are real and which are not, or not serious - no abstractions: i think this is completely wrong, one can build great abstractions in C - no package manager: IMHO languages should
469.
▲
by
uecker
8mo ago
My list of advantages: - long-term stability: the code I wrote two decades ago is still valuable to me - short (!) compilation times: this is a huge productivity boost - the language is very explicit: one can see and understand what
470.
▲
by
uecker
8mo ago
This is not my experience at all. In fact, my experience is where C++ is used in GCC it became harder to read. Note that GCC was written in C and then introduced C++ features later so this is not hypothetical. In general, I think clean C co
471.
▲
by
uecker
8mo ago
I do not think packaging for a distribution is annoying. If you do not bother because you do not want to match some minimal community standards, maybe your software should no be packaged? And if you think the tooling can be improved, then
472.
▲
by
uecker
8mo ago
It is not difficult to package for the most important distro (the others usually import from them). Those distro-agnostic packaging systems are popular because they basically have no quality control at all, so it is basically no effort to
473.
▲
by
uecker
8mo ago
The problem of packages not being packaged is not solved by more packaging systems.
474.
▲
by
uecker
8mo ago
I see, thanks! There is general consensus that statement expressions should become part of ISO C, but some lack of time to get it done. I am not part of WG21 though, so can't say anything about C++.
475.
▲
by
uecker
8mo ago
For two reasons: First, where C++ features are used, it make the code harder to understand rather than easier. Second, it requires newer and more complex toolchains to build GCC itself. Some people still maintain the last C version of GCC
476.
▲
by
uecker
8mo ago
I don't think so. The value is set in the assignment in the if statement even for the success path. With and without defer you nowadays get only a warning due to the misleading indentation: https://godbolt.org/z/3
477.
▲
by
uecker
8mo ago
You are not happy with immediately invoked lambda expressions?
478.
▲
by
uecker
8mo ago
I don't see this. The problem was a duplicate "goto fail" statement where the second one caused an incorrect return value to be returned. A duplicate defer statement could directly cause a double free. A duplicate "re
479.
▲
by
uecker
8mo ago
If I remember correctly he had much more examples somewhere, but I am not sure this was ever shared in public.
480.
▲
by
uecker
8mo ago
C has its unique advantages that make some of us prefer it to C++ or Rust or other languages. But it also has some issues that can be addressed. IMHO it should evolve, but very slowly. C89 is certainly a much worse language than C99 and
More ›