Pity. You can compile and run pretty much any version of Lua on XP with VS 2010 or lcc and it works just fine https://ibb.co/d0pMK7Jk
73 karma · joined November 21, 2025
Pity. You can compile and run pretty much any version of Lua on XP with VS 2010 or lcc and it works just fine https://ibb.co/d0pMK7Jk
TLS is a language feature. Whether another thread exists doesn't mean it has to use the same facilities as the main program.
> The compiler isn't going to know for instance that an LD_PRELOAD variable won't be set that would create a thread.
Say the program is not dynamically linked. Still no?
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.
Huh?
$ musl-gcc -xc -static -Wl,-z,norelro -Wl,-z,nosectionheader -Wl,-z,noseparate-code -s - <<eof
#include <stdio.h>
int
main(void) {
static const char s[] = "Hello, World!\n";
fwrite(s, (sizeof s)-1, 1, stdout);
}
eof
$ ./a.out
Hello, World!
$ ls -l a.out
-rwxr-xr-x 1 oguz oguz 4976 Jan 12 09:38 a.out
And if that's not enough $ musl-gcc -xc -static -nostdlib -fcf-protection=none -fno-asynchronous-unwind-tables -fomit-frame-pointer -Wl,-z,norelro -Wl,-z,nosectionheader -Wl,-z,noseparate-code -s - -lc <<eof
#include <unistd.h>
void
_start(void) {
static const char s[] = "Hello, World!\n";
write(1, s, (sizeof s)-1);
_exit(0);
}
eof
$ ./a.out
Hello, World!
$ ls -l a.out
-rwxr-xr-x 1 oguz oguz 487 Jan 12 09:58 a.out $ trap '' chld
$ nu -c test
Error: nu::shell::io::uncategorized_error
× I/O error
╰─▶ × failed to get exit code
╭─[source:1:1]
1 │ test
· ──┬─
· ╰── Uncategorized error
╰────
$ extern FILE *stdin;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 used for systems programming though.
QNX was one. Don't know if they started to include it in newer versions than 6.5 though
Is there any guarantee they won't break backwards compatibility again?