HNHacker News
TopNewBestAskShowJobs

oguz-ismail2

73 karma · joined November 21, 2025

submissionscomments
oguz-ismail2··on Go-legacy-winxp: Compile Golang 1.24 code for Windows XP
> Python 3.4.4 is the last version of Python that will run on Windows XP.

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

oguz-ismail2··on Ask HN: What did you find out or explore today?
Currently at page 127. Wish I didn't read this comment...
oguz-ismail2··on Is Rust faster than C?
> 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 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?

oguz-ismail2··on Is Rust faster than C?
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?
oguz-ismail2··on Is Rust faster than C?
> 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.

oguz-ismail2··on Is Rust faster than C?
So assembly is the slowest language?
oguz-ismail2··on This game is a single 13 KiB file that runs on Windows, Linux and in the Browser
> 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
    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
oguz-ismail2··on This game is a single 13 KiB file that runs on Windows, Linux and in the Browser
Choke how? Both work fine here
oguz-ismail2··on Oh My Zsh adds bloat
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/O error
      ╰─▶   × failed to get exit code
    
       ╭─[source:1:1]
     1 │ test
       · ──┬─
       ·   ╰── Uncategorized error
       ╰────
    
    $
oguz-ismail2··on Fixing a Buffer Overflow in Unix v4 Like It's 1973
Predecessor of

    extern FILE *stdin;
oguz-ismail2··on Kernel bugs hide for 2 years on average. Some hide for 20
> 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 used for systems programming though.

oguz-ismail2··on Fast CVVDP implementation in C
Why though? It seems simple enough that a makefile and perhaps a configure script would suffice.
oguz-ismail2··on C/C++ Embedded Files (2013)
> 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

oguz-ismail2··on C/C++ Embedded Files (2013)
> it's safe to rely on

Is there any guarantee they won't break backwards compatibility again?

oguz-ismail2··on C/C++ Embedded Files (2013)
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).
oguz-ismail2··on C/C++ Embedded Files (2013)
How is `xxd -i' terrible?
oguz-ismail2··on Tell HN: Merry Christmas
found the grinch
← PreviousPage 2 of 2