Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
c4mpute
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
121.
▲
by
c4mpute
4y ago
> all you have to do to avoid UB on signed integer overflow is check for overflow before doing the operation All you have to do is add a check for overflow _that the compiler will not throw away because "UB won't happen"_.
122.
▲
by
c4mpute
4y ago
You might be right on the first point. Edit: actually, you might not be. There are languages with compound lvalues and CPU architectures with multiple result registers (x86 being the best-known example). E.g. you can do "(result, flags
123.
▲
by
c4mpute
4y ago
Hopefully, yes. But one can imagine a lot of weird problems with networks treating TCP and UDP differently such that HTTP/3 performance on UDP is degraded with no fallback to earlier TCP based versions happening, because your client wi
124.
▲
by
c4mpute
4y ago
First, you might have meant c = a+b; The other way isn't really definable as an assignment mathematically. And there is a lot more to it than just pass/fail. First, an addition doesn't fail, from a computer architecture persp
125.
▲
by
c4mpute
4y ago
> The second part is the misconception about the impact of UB. [...] It grants the implementation the power to decide the best course of action. That is, after all, what they’ve been doing all this time anyway. Wrong, Wrong, Wrong. UB al
126.
▲
by
c4mpute
4y ago
Ack. I think there would be demand for a modern hotdesking solution that worked as quick and painlessly as SunRays. Like, plug in your Yubikey, do a FIDO exchange, get your VDI session. Should be implementable in software, all thinclients n
127.
▲
by
c4mpute
4y ago
X-Terminals were a thing before SUN, but SUN had very nice ThinClients called SunRay that could "HotDesk". Your session was tied to a smartcard, as soon as you plugged that in, your session appeared on that workplace. Pull the Sma
128.
▲
by
c4mpute
4y ago
Well, that's why you shouldn't ever have any data that they could want or ask for. Never save IP addresses.
129.
▲
by
c4mpute
4y ago
In some cases (taxes mostly) digital data has been associated with government-wide identifiers that make profiling citizens across all government agencies possible and easy. Linking even more data automatically and without asking the affect
130.
▲
by
c4mpute
4y ago
> It is highly offensive that the German government pretends it does not know where the crime is happening. How about they deal with a few of these clans numbering 100s of people? This can be done , has to be done the convential way, as
131.
▲
by
c4mpute
4y ago
Yes, but actually that isn't due to data protection. It is due to the lazy bureaucracy using data protection as an excuse to have the citizens do their work for them.
132.
▲
by
c4mpute
4y ago
> innocent peoples privacy It isn't just about their privacy but also their very freedom. Being in some police database might very well land you in the crosshairs of some investigation and related niceness like searching your home,
133.
▲
by
c4mpute
4y ago
In git, there is no intended use for it. That people use it comes from how releases were usually published (independent of any version control system) as tgz/zip archives on some project website or ftp server. Websites and ftp servers
134.
▲
by
c4mpute
4y ago
Software published via GitHub isn't really "published by the owner". The owner typically doesn't control what GitHub does and doesn't always control his own GitHub account. It isn't only that people don't
135.
▲
by
c4mpute
4y ago
Yes, but not in this bug. I guess lots of people missed that distinction: The stable git SHA hash is the commit hash, which is an hash over gits internal representation of the commit object (containing a tree of all file hashes, and parents
136.
▲
by
c4mpute
4y ago
Most probably not. Kernel devs are tame even with closed-source device and software vendors pirating the Linux kernel. I doubt any kernel copyright holder will bat an eye over GPLv3 vs. GPLv2. Not to mention the very relevant question of &q
137.
▲
by
c4mpute
4y ago
LineageOS hasn't supported root for several major releases. The last official su addon is for version 16.0, https://download.lineageos.org/extras , we are now at 19.1 or 20.0. Magisk used to work, but is getting more a