Better HN
topnewbestaskshowjobs
Log inSign up

oguz-ismail2

84 karma · joined Nov 21, 2025 (1y ago) · 55 submissions

Submissions

comment 2d ago · link · parent

Didn't even have to fire up Vi today

    sort                 |
    uniq -c              |
    sort -nr             |
    { head -3; tail -3;} |
    sed 's/.* //'        |
    paste -sd'**\n'      |
    bc

comment 1w ago · link · parent

Right. If fmt was "%d%d" and val had only one element that'd cause an out-of-bounds read as well. Can't say it's a bug without seeing the rest of the code though; if the function is used correctly everywhere, there's no bug.

comment 1w ago · link · parent

imagine not getting a joke

comment 1w ago · link · parent

imagine being this mad at 5 AM in the morning lol

comment 2w ago · link · parent

>we

I doubt you have a PoC at all

comment 4w ago · link · parent

What exactly do you mean "push"? What do you think is going to make musl developers switch languages?

comment 4w ago · link · parent

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.

comment 9mo ago · link · parent

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.

comment 9mo ago · link · parent

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?

comment 9mo ago · link · parent

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'.

comment 9mo ago · link · parent

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.

comment 9mo ago · link · parent

Since when `{...}' syntax is a glob pattern? What does `{a,b}/c' produce when there is no directory named `a'?

comment 10mo ago · link · parent

Title says Unix, renameat2 is Linux-only.

comment 10mo ago · link · parent

> 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.

comment 10mo ago · link · parent

fish and zsh real silent since this dropped

comment 10mo ago · link · parent

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.

comment 10mo ago · link · parent

> 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.

comment 10mo ago · link · parent

> Rustrover (intellij) can certainly produce coverage reports.

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

comment 10mo ago · link · parent

*horses

comment 10mo ago · link · parent

Does this spawn a new shell for every instance of $`...`?

comment 10mo ago · link · parent

>uuidgen

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

comment 10mo ago · link · parent

How is any of that a subtle difference between platforms?

comment 10mo ago · link · parent

>Too many subtle differences.

Such as?

comment 10mo ago · link · parent

>if you configure binfmt_misc for WINE

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

comment 10mo ago · link · parent

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

comment 10mo ago · link · parent

>Linux

if you configure binfmt_misc

>Windows

if you disable Windows Defender

>OpenBSD

only older versions

comment 10mo ago · link · parent

fell out of popularity lately

comment 10mo ago · link · parent

I can't think of a language that isn't simpler compared to C++

comment 10mo ago · link · parent

It is valid C89. greet is automatically declared as

    int greet();
at call site.
12