Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
oguz-ismail2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
oguz-ismail2
9mo ago
> Whether another thread exists is a global property of a process, and beyond that the system that process operates in. TLS is a language feature. Whether another thread exists doesn't mean it has to use the same facilities as the m
32.
▲
by
oguz-ismail2
9mo ago
Obviously. How about more complex things like multi-threading APIs though? Can the Rust compiler determine that the subject program doesn't need TLS and produce a binary that doesn't set it up at all, for example?
33.
▲
by
oguz-ismail2
9mo ago
> qsort, it's an API design flaw It's just a generic sorting function. If you need more you're supposed to write it yourself. The C standard library exists for convenience not performance.
34.
▲
by
oguz-ismail2
9mo ago
So assembly is the slowest language?
35.
▲
by
oguz-ismail2
9mo ago
> a static compiled and linked "hello world" in C on Linux is around ~785KB Huh? $ musl-gcc -xc -static -Wl,-z,norelro -Wl,-z,nosectionheader -Wl,-z,noseparate-code -s - <<eof #include <stdio.h> int
36.
▲
by
oguz-ismail2
9mo ago
Choke how? Both work fine here
37.
▲
by
oguz-ismail2
9mo ago
Colorful outputs and elaborately decorated error messages are cool but maybe it shouldn't deviate that far from POSIX shells. $ trap '' chld $ nu -c test Error: nu::shell::io::uncategorized_error × I&
38.
▲
by
oguz-ismail2
9mo ago
Predecessor of extern FILE *stdin;
39.
▲
by
oguz-ismail2
9mo ago
> Zig is much more suitable, because it actually addresses the readability aspect How? It doesn't look very different from Rust. In terms of readability Swift does stand out among LLVM frontends, don't know if it is or can be u
40.
▲
by
oguz-ismail2
10mo ago
Why though? It seems simple enough that a makefile and perhaps a configure script would suffice.
41.
▲
by
oguz-ismail2
10mo ago
> a unix-like system without perl QNX was one. Don't know if they started to include it in newer versions than 6.5 though
42.
▲
by
oguz-ismail2
10mo ago
> it's safe to rely on Is there any guarantee they won't break backwards compatibility again?
43.
▲
by
oguz-ismail2
10mo ago
Don't know what you mean, it works fine here. Python is too large and unreliable a dependency for something so trivial (which can be accomplished using standard POSIX utilities if need be).
44.
▲
by
oguz-ismail2
10mo ago
How is `xxd -i' terrible?
45.
▲
by
oguz-ismail2
10mo ago
found the grinch