Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
oguz-ismail2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
oguz-ismail2
7mo ago
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 st
2.
▲
by
oguz-ismail2
8mo ago
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+real
3.
▲
by
oguz-ismail2
8mo ago
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'.
4.
▲
by
oguz-ismail2
8mo ago
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.
5.
▲
by
oguz-ismail2
8mo ago
Since when `{...}' syntax is a glob pattern? What does `{a,b}/c' produce when there is no directory named `a'?
6.
▲
by
oguz-ismail2
8mo ago
Title says Unix, renameat2 is Linux-only.
7.
▲
by
oguz-ismail2
8mo ago
> 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.
8.
▲
by
oguz-ismail2
8mo ago
fish and zsh real silent since this dropped
9.
▲
by
oguz-ismail2
8mo ago
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
10.
▲
by
oguz-ismail2
8mo ago
> 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 inc
11.
▲
by
oguz-ismail2
8mo ago
> Rustrover (intellij) can certainly produce coverage reports. See < https://sqlite.org/testing.html#statement_versus_branch_cove... >. Does Rustrover produce branch coverage reports?
12.
▲
by
oguz-ismail2
8mo ago
*horses
13.
▲
by
oguz-ismail2
8mo ago
Does this spawn a new shell for every instance of $`...`?
14.
▲
by
oguz-ismail2
8mo ago
>uuidgen That's neither a standard CLI utility nor a bash builtin.
15.
▲
by
oguz-ismail2
8mo ago
How is any of that a subtle difference between platforms?
16.
▲
by
oguz-ismail2
8mo ago
>Too many subtle differences. Such as?
17.
▲
by
oguz-ismail2
8mo ago
>if you configure binfmt_misc for WINE It came preconfigured on Ubuntu 20.04 and 22.04, don't know about newer versions.
18.
▲
by
oguz-ismail2
8mo ago
On some distros, yes. On others it'll fire up Wine for whatever reason
19.
▲
by
oguz-ismail2
8mo ago
>Linux if you configure binfmt_misc >Windows if you disable Windows Defender >OpenBSD only older versions
20.
▲
by
oguz-ismail2
8mo ago
fell out of popularity lately
21.
▲
by
oguz-ismail2
8mo ago
I can't think of a language that isn't simpler compared to C++
22.
▲
by
oguz-ismail2
8mo ago
It is valid C89. greet is automatically declared as int greet(); at call site.
23.
▲
by
oguz-ismail2
9mo ago
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?
24.
▲
by
oguz-ismail2
9mo ago
You're mixing things up. C the language doesn't know about virtual memory or file descriptions. Those are OS features.
25.
▲
by
oguz-ismail2
9mo ago
> 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
26.
▲
by
oguz-ismail2
9mo ago
No idea what either of you are talking about. It's the operating system that sets those things up not the language runtime.
27.
▲
by
oguz-ismail2
9mo ago
All three of those services require signing up for an account, mediafire doesn't.
28.
▲
by
oguz-ismail2
9mo ago
> If the job market is unfavourable to juniors, become senior. Don't love your job, job your love.
29.
▲
by
oguz-ismail2
9mo ago
> 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
30.
▲
by
oguz-ismail2
9mo ago
Currently at page 127. Wish I didn't read this comment...
More ›