Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nwellnhof
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
91.
▲
by
nwellnhof
2y ago
> You can't do that with signed types. What? Of course you can. If you want to add ints a and b: if (b >= 0 ? a > INT_MAX - b : a < INT_MIN - b) printf("overflow\n");
92.
▲
by
nwellnhof
2y ago
In the vast majority of cases, integer overflow or truncation when casting is a bug, regardless whether it is undefined, implementation-defined or well-defined behavior. Avoiding undefined behavior doesn't buy you anything. If you star
93.
▲
by
nwellnhof
2y ago
Isn't that what "git pull --rebase" does?
94.
▲
by
nwellnhof
2y ago
SIMD is great if you want to convert to UTF-32 but most of the time, I want to iterate over UTF-8 codepoints directly. The initial test for a 1-byte sequence is just too simple with a branch and will be hit most of the time. Asian scripts a
95.
▲
by
nwellnhof
2y ago
In my experiments, anything using lookup tables was slower than a naive, branching decoder on real-world data. Reading from a lookup table in L1 cache has ~4 cycles latency which is prohibitive for the simple case of mostly ASCII bytes. You
96.
▲
by
nwellnhof
2y ago
They also received €195,000 from Sovereign Tech Fund in 2022: https://www.sovereigntechfund.de/tech/curl
97.
▲
by
nwellnhof
3y ago
Yes, a GmbH is a corporation and mostly dissimilar to an LLC. In Germany, there's no such thing as an LLC, except for some professions. So if you want limited liability, you're only option is to incorporate.
98.
▲
by
nwellnhof
3y ago
It's probably as easy as modifying "extern struct rtld_global_ro _rtld_global_ro", exported from ld-linux, the dynamic linker/loader. During IFUNC resolution this struct seems to be writable.
99.
▲
by
nwellnhof
3y ago
With LSan, you can use __lsan_do_recoverable_leak_check to get leak reports during run time.
100.
▲
by
nwellnhof
3y ago
There can even be inconsistencies after glibc upgrades.
101.
▲
by
nwellnhof
3y ago
I just wrote a BASIC program generating values using the SIN function [1] and poked them into memory. [1] https://www.c64-wiki.com/wiki/SIN
102.
▲
by
nwellnhof
3y ago
Creating a LUT index with bit-shifting is essentially the same as parsing into an integer. Even if the LUT fits in L1 cache, I doubt it would be faster. If it doesn't fit, it's certainly slower.
103.
▲
by
nwellnhof
3y ago
It should be noted that in C89, both behaviors of division and modulo are allowed and it's implementation-defined whether division results are truncated or rounded towards negative infinity. This has changed in C99 which only allows tr
104.
▲
by
nwellnhof
3y ago
But the test whether a bit is set should be perfectly predictable in the 100% density case.
105.
▲
by
nwellnhof
3y ago
Note that the EU forces providers to censor DNS already. % nslookup www.rt.com - dns01.mnet-online.de Server: dns01.mnet-online.de Address: 2001:a60::53:1#53 *** Can't find www.rt.com: No answer
106.
▲
by
nwellnhof
3y ago
> They are hard workers Where does this cliché come from? Germans work less than any other country on the planet: https://en.wikipedia.org/wiki/List_of_countries_by_average_a...
107.
▲
by
nwellnhof
3y ago
> Set up rebellions, insurrections. You fail to mention that the US are the best example for this strategy: https://en.wikipedia.org/wiki/United_States_involvement_in_r...
108.
▲
by
nwellnhof
3y ago
And it's not Deutsche Bahn but Siemens Mobility: https://www.heise.de/news/Deutsche-Bahn-sucht-Admin-fuer-Win... (in German)
109.
▲
by
nwellnhof
3y ago
I'd argue that these regions only became politically volatile because oil was found there.
110.
▲
by
nwellnhof
3y ago
They claim to preserve color detail that was lost due to compression of the dynamic range. What's wrong with that?
111.
▲
by
nwellnhof
3y ago
This is a useless article that only looks at wealth of households, not at income. Germans own traditionally less real estate than the average Italian. But average income is a lot higher, easily €500K over a lifetime.
112.
▲
by
nwellnhof
3y ago
IIRC, you could create even smaller PNG files (~50 bytes) that violate the spec but some browsers would render. Probably by omitting the IEND chunk or CRCs. Maybe this is fixed in browsers these days. Or I mixed it up with GIF files.
113.
▲
by
nwellnhof
3y ago
> A real Python CGI would take longer to start because it has more things to import, but even then it's not necessarily terribly slow. That's where the author is wrong. Complex Python, Ruby or Perl scripts can easily take sever
114.
▲
by
nwellnhof
3y ago
> Entire symphony orchestras and Jazz bands were part of the state-run stations. They still are: https://de.wikipedia.org/wiki/Rundfunkorchester
115.
▲
by
nwellnhof
3y ago
It's pronounced with an ɪ like in "wit".
116.
▲
by
nwellnhof
3y ago
Shouldn't the title be "Ex Unibus Pluram"? AFAIK, shortening "ex" to "e" is only allowed before consonants like in "e pluribus unum".
117.
▲
by
nwellnhof
3y ago
> Something I have not yet bothered to figure out According to POSIX, the -a and -o binary primaries and the '(' and ')' operators have been marked obsolescent. See https://pubs.opengroup.org/onlinepub
118.
▲
by
nwellnhof
3y ago
pi is '10' in base pi.
119.
▲
by
nwellnhof
3y ago
Yes, this is a good example where LUTs are very likely to be slower, especially if you can avoid branch mispredictions with cmov.
120.
▲
by
nwellnhof
3y ago
> No measurable difference in speed, and code is much more clean. This only works with some malloc implementations. There are platforms where this will result in quadratic behavior, so don't do this if you want to write portable cod
More ›