Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bnoordhuis
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
bnoordhuis
16y ago
From TFA: grep '[[:punct:]]$' files I suspect the author has grep aliased to `egrep` or `grep -E` because [:punct:] is an extended regular expression and GNU grep defaults to basic RE mode.
92.
▲
by
bnoordhuis
16y ago
The results for 'what causes promiscuity' are both amusing and slightly worrisome. objectification of the self (2), Spring break parties (2) can lead to unintended promiscuity vaccine (2) will cause promiscuity sex education (2) cau
93.
▲
by
bnoordhuis
16y ago
Can't vouch for lighty (though I suppose the same applies) but nginx is much, much faster than Apache. nginx was designed with speed in mind, Apache with reliability[1] and extensibility. [1] Apache's internal API is designed to make it dif
94.
▲
by
bnoordhuis
16y ago
How so? Jetty is a servlet container, right?
95.
▲
by
bnoordhuis
16y ago
Same but without having to edit your .ssh/config: ssh -R localhost:2222:localhost:22 remote scp -P 2222 /path/to/file localhost:~
96.
▲
by
bnoordhuis
16y ago
Sorry, but I can't help to nitpick: 65 is not an 'A' on systems that use EBCDIC, like z/OS and OS/400. It's not even a valid character as such, I think.
97.
▲
by
bnoordhuis
16y ago
Yes, you are right - and my previous comment somewhat skims over the details. Sorry for that. :) The difference in a single-core scenario is that the threads can't all become starved because a thread on another CPU holds the lock - the VM w
98.
▲
by
bnoordhuis
16y ago
No, that's not right. There is only one code path executing so there can never be another thread contending for the same lock. A lock begins as a spinlock (busy wait loop) for a few thousand iterations before degrading to a full-blown lock
99.
▲
by
bnoordhuis
16y ago
I think you are on to something. His example code uses AtomicLong, a class that needs to synchronize on itself if the architecture has no native method to update 64 bits integers. Too bad Paul doesn't mention if he is running a 32 bits or 6
100.
▲
by
bnoordhuis
16y ago
The syntax won't win beauty pageants but I like how they retrofitted lambdas onto interfaces so you can do something like: Collections.sort(list, (Comparator) #(String a, String b) { return a.compareToIgnoreCase(b); });
101.
▲
by
bnoordhuis
16y ago
Isn't this easier and faster, both type- and performance-wise? x_cleared = x & ~1;