News for hackers. Stuff that matters.

oguz-ismail2

What exactly do you mean "push"? What do you think is going to make musl developers switch languages?
Re:11 Nanoseconds per Word: Over-Optimizing Anagrams on Thursday November 05, 2026 @12:44AM (#50375638)
If the dictionary is static what's the point of building a hashtable out of it at runtime? If it's not how do we know this'll work with a different dictionary? I didn't know about Gödel numbering though, that part is cool.
Re:What does " 2>&1 " mean? on Friday February 27, 2026 @03:16AM (#47177973)
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.
Re:Show HN: Canon-C – a semantic C library on Tuesday February 10, 2026 @02:31AM (#46956466)
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?

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'.
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.
Since when `{...}' syntax is a glob pattern? What does `{a,b}/c' produce when there is no directory named `a'?
Re:Things Unix can do atomically (2010) on Friday February 06, 2026 @03:02AM (#46910271)
Title says Unix, renameat2 is Linux-only.
Re:Animated Knots on Friday February 06, 2026 @01:00AM (#46909628)
> 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.

Re:Justice.gov JEE files contains bash manual on Thursday February 05, 2026 @05:49AM (#46898253)
fish and zsh real silent since this dropped
Re:Zig Libc on Tuesday February 03, 2026 @10:09PM (#46880969)
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.
Re:Zig Libc on Monday February 02, 2026 @10:53PM (#46866262)
> 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.

Re:Deep dive into Turso, the "SQLite rewrite in Rust" on Friday January 30, 2026 @12:05AM (#46820724)
> Rustrover (intellij) can certainly produce coverage reports.

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

Re:Two days of oatmeal reduce cholesterol level on Thursday January 29, 2026 @11:26PM (#46820512)
*horses
Re:Make.ts on Wednesday January 28, 2026 @12:24PM (#46798489)
Does this spawn a new shell for every instance of $`...`?
Re:Make.ts on Wednesday January 28, 2026 @10:11AM (#46796351)
>uuidgen

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

Re:Make.ts on Wednesday January 28, 2026 @10:09AM (#46796321)
How is any of that a subtle difference between platforms?
Re:Make.ts on Wednesday January 28, 2026 @09:00AM (#46795508)
>Too many subtle differences.

Such as?

>if you configure binfmt_misc for WINE

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

On some distros, yes. On others it'll fire up Wine for whatever reason
>Linux

if you configure binfmt_misc

>Windows

if you disable Windows Defender

>OpenBSD

only older versions

Re:A static site generator written in POSIX shell on Monday January 26, 2026 @03:11AM (#46763053)
fell out of popularity lately
Re:Some C habits I employ for the modern day on Saturday January 24, 2026 @02:36AM (#46741772)
I can't think of a language that isn't simpler compared to C++
Re:The Cscript Style Guide – CScript is the standard C on Friday January 23, 2026 @12:03AM (#46728638)
It is valid C89. greet is automatically declared as

    int greet();
at call site.
Re:Gathering Linux Syscall Numbers in a C Table on Thursday January 22, 2026 @08:32AM (#46719019)
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?
Re:Gathering Linux Syscall Numbers in a C Table on Thursday January 22, 2026 @06:10AM (#46717693)
You're mixing things up. C the language doesn't know about virtual memory or file descriptions. Those are OS features.
Re:Gathering Linux Syscall Numbers in a C Table on Thursday January 22, 2026 @05:12AM (#46717313)
> 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

Re:Xous Operating System on Sunday January 18, 2026 @06:33AM (#46666927)
No idea what either of you are talking about. It's the operating system that sets those things up not the language runtime.
Re:Bringing the Predators to Life in MAME on Friday January 16, 2026 @09:06AM (#46646454)
All three of those services require signing up for an account, mediafire doesn't.
Re:Tldraw pauses external contributions due to AI slop on Friday January 16, 2026 @02:55AM (#46644139)
> If the job market is unfavourable to juniors, become senior.

Don't love your job, job your love.

Older »