Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
manwe150
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
49 ms
·
631.
▲
by
manwe150
8y ago
ucontext modifies the signal mask, requiring a syscall. That’s very expensive (as shown by the boost benchmark above), and usually unnecessary. “emulate” is a rather negative sounding way to describe running effective the same code as ucont
632.
▲
by
manwe150
8y ago
There's already many fast, portable, standalone C libraries for this. For instance, see table 1 of https://www.gnu.org/software/pth/rse-pmt.ps . The assembly code for a context switch is pretty minimal (on mos
633.
▲
by
manwe150
8y ago
It is probably not always as simple, or even as logical, as that. For one anecdote, Planet Money did an interesting piece following the motivations of an inside trader: 671 - An Insider Trader Tells All ( https://www.npr.org/
634.
▲
by
manwe150
9y ago
> Looks like the debugger could use some improvement. Try `gcc -g3` (the default is 2). But because C-style macros are context-sensative string operations, the result is not necessarily especially pleasant/useful and can be rather l
635.
▲
by
manwe150
9y ago
I'm on Sierra and haven't been able to reproduce. But does anyone know if it respects pam.d "nullok" and I could just delete that option? /etc/pam.d$ grep -RI nullok /etc/pam.d /etc
636.
▲
by
manwe150
10y ago
If I understand the conclusion of the article right, it's that we should actually just use PATH_MAX? In particular, he points to the glibc implementation of realpath as being very correct. But it (like the man page description of it
637.
▲
by
manwe150
10y ago
If you're willing to deal with being outside the range of officially supported boards (or strongly community supported), there seems to be an endless supply of options. Just for AllWinner-based devices, there's a long list at htt