HNHacker News
TopNewBestAskShowJobs

oguz-ismail2

71 karma · joined November 21, 2025

submissionscomments
oguz-ismail2··on What does " 2>&1 " mean?
This is one of those places where Bash diverges from POSIX. The standard says `echo &>/dev/null' is two commands, namely `echo &' and `>/dev/null', but Bash interprets it as redirect both stdout and stderr of `echo' to `/dev/null' both in normal and POSIX mode.
oguz-ismail2··on Show HN: Canon-C – a semantic C library
Nit pick, but

>FILE* f = fopen(path, "rb");

>...

>if (fseek(f, 0, SEEK_END) != 0) return option_charp_none();

>long len = ftell(f);

does ISO C guarantee this'll work these days? How come there's no fread+realloc fallback?

oguz-ismail2··on Discord will require a face scan or ID for full access next month
It's a question of scale. Neither crime is less serious but far more children are groomed and abused over Discord than flown in via some super rich sicko's private jet for a 'costume party'.
oguz-ismail2··on Zlob.h 100% POSIX and glibc compatible globbing lib that is faste and better
What sibling comment says. Bash does suppress nonexistent products when the pattern includes a glob metacharacter and `shopt -s nullglob' is in effect, but I didn't see a flag or anything to achieve that in the project README.
oguz-ismail2··on Zlob.h 100% POSIX and glibc compatible globbing lib that is faste and better
Since when `{...}' syntax is a glob pattern? What does `{a,b}/c' produce when there is no directory named `a'?
oguz-ismail2··on Things Unix can do atomically (2010)
Title says Unix, renameat2 is Linux-only.
oguz-ismail2··on Animated Knots
> The Ashley Book of Knots is fantastic.

Yup. Referring to knots by their ABoK numbers is also more practical than by their wildly varying names.

oguz-ismail2··on Justice.gov JEE files contains bash manual
fish and zsh real silent since this dropped
oguz-ismail2··on Zig Libc
You can. There is a thread-unsafe implementation here <https://gist.github.com/oguz-ismail/72e34550af13e3841ed58e29...>. But the listing needs to be per system call number, so this one only supports system calls 1 (_exit) and 4 (write). It should be fairly easy to automatically generate the complete list but I didn't try it.
oguz-ismail2··on Zig Libc
> How does that work, with syscalls being unable to be called except from the system’s libc?

OpenBSD allows system calls being made from shared libraries whose names start with `libc.so.' and all static binaries, as long as they include an `openbsd.syscalls' section listing call sites.

oguz-ismail2··on Deep dive into Turso, the “SQLite rewrite in Rust”
> Rustrover (intellij) can certainly produce coverage reports.

See <https://sqlite.org/testing.html#statement_versus_branch_cove...>. Does Rustrover produce branch coverage reports?

oguz-ismail2··on Two days of oatmeal reduce cholesterol level
*horses
oguz-ismail2··on Make.ts
Does this spawn a new shell for every instance of $`...`?
oguz-ismail2··on Make.ts
>uuidgen

That's neither a standard CLI utility nor a bash builtin.

oguz-ismail2··on Make.ts
How is any of that a subtle difference between platforms?
oguz-ismail2··on Make.ts
>Too many subtle differences.

Such as?

oguz-ismail2··on The Holy Grail of Linux Binary Compatibility: Musl and Dlopen
>if you configure binfmt_misc for WINE

It came preconfigured on Ubuntu 20.04 and 22.04, don't know about newer versions.

oguz-ismail2··on The Holy Grail of Linux Binary Compatibility: Musl and Dlopen
On some distros, yes. On others it'll fire up Wine for whatever reason
oguz-ismail2··on The Holy Grail of Linux Binary Compatibility: Musl and Dlopen
>Linux

if you configure binfmt_misc

>Windows

if you disable Windows Defender

>OpenBSD

only older versions

oguz-ismail2··on A static site generator written in POSIX shell
fell out of popularity lately
oguz-ismail2··on Some C habits I employ for the modern day
I can't think of a language that isn't simpler compared to C++
oguz-ismail2··on The Cscript Style Guide – CScript is the standard C
It is valid C89. greet is automatically declared as

    int greet();
at call site.
oguz-ismail2··on Gathering Linux Syscall Numbers in a C Table
All fair points. What do other languages' standard libraries do to walk around clone3 then? If two threads share file descriptors but not virtual memory, do they perform some kind of IPC to lock them for synchronizing reads and writes?
oguz-ismail2··on Gathering Linux Syscall Numbers in a C Table
You're mixing things up. C the language doesn't know about virtual memory or file descriptions. Those are OS features.
oguz-ismail2··on Gathering Linux Syscall Numbers in a C Table
> But it cannot be called directly from C

No system call can, you need a wrapper like syscall() provided by glibc. glibc also provides a dedicated wrapper for the clone system call which properly sets up the return address for the child thread. No idea what you're angry about

oguz-ismail2··on Xous Operating System
No idea what either of you are talking about. It's the operating system that sets those things up not the language runtime.
oguz-ismail2··on Bringing the Predators to Life in MAME
All three of those services require signing up for an account, mediafire doesn't.
oguz-ismail2··on Tldraw pauses external contributions due to AI slop
> If the job market is unfavourable to juniors, become senior.

Don't love your job, job your love.

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...
Page 1 of 2Next →