Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
majke
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
73 ms
·
661.
▲
by
majke
13y ago
> First, what does it mean to "slow down the pace" of accepting connections? In C, if you don't call 'accept' new connections will: - first: get queued in a kernel queue of SYN+ACKed connections - second: when
662.
▲
It ain't about the callbacks, it's about the flow control
(idea.popcount.org)
128 points
by
majke
13y ago
|
41 comments
663.
▲
by
majke
13y ago
Fancy giving me a hand? https://github.com/majek/lua-channels/issues/1
664.
▲
by
majke
13y ago
His implementation uses libtask No. I just implement libtask/channel.c in Lua. It does not provide parallelism. Parallelism is important. I'm doing it in pure Lua. Lua doesn't use multiple OS threads. Doing channels _acro
665.
▲
by
majke
13y ago
I'll do my best, but it's a bit hard to explain. Basically channels are yet-another synchronization paradigm like locking or shared memory, some people like it some don't. Channels are an implementation of Hoare's CSP [0
666.
▲
by
majke
13y ago
Even 0.1ms drift sounds like an awful lot of time for a serious clock. [edit] if 1ns is 11.8 inches of wire (at the speed of light) then 0.1 ms is 30 km of wire! [1] http://highscalability.com/blog/2012/3/1&#x
667.
▲
by
majke
13y ago
Author here. Here's some context [1]: Lua supports cooperative coroutines out of the box, which is great. Unfortunately Lua lacks built-in communication primitives. To fill the void I've implemented Go style channels in pure Lua.
668.
▲
by
majke
13y ago
~1ms drift for a GPS clock sounds like a lot to me. Have I missed something?
669.
▲
B. F. Skinner's Superstitious Pigeons
(en.wikipedia.org)
1 points
by
majke
13y ago
|
0 comments
670.
▲
by
majke
13y ago
Was it a leak of a cooling liquid? http://en.wikipedia.org/wiki/Extravehicular_Mobility_Unit [edit] Luca's Wikipedia has more links: http://www.spaceflightnow.com/station/exp36/16eva/
671.
▲
Don't use native POPCNT instruction for popcount: PSHUFB is faster
(wm.ite.pl)
1 points
by
majke
13y ago
|
0 comments
672.
▲
by
majke
13y ago
Good read to get a historical context. On the other hand in new code I'd most likely use SipHash: https://131002.net/siphash/ Siphash is simple, pretty fast, versatile and can be used in a way not vulnerable to ha
673.
▲
by
majke
13y ago
Hey, I did just that few months ago! It worked well for me. It took some time for my friends to accept that I 'm not drinking. I don't think this experience will affect my life, but it was really satisfying to prove myself. I thin
674.
▲
by
majke
13y ago
I tried to look it up, but UK's law is still a mystery for me. Can someone help: what is a definition of ISP in the UK? Especially: is a VPN provider an ISP? Additionally, what definition of ISP is used in Mr Cameron's proposal?
675.
▲
Fluxcapacitor will run your tests faster
(idea.popcount.org)
3 points
by
majke
13y ago
|
1 comments
676.
▲
by
majke
13y ago
> platform specific stuff Yes. If I were to write IR for a real project, I'd probably keep a few pretty large functions to avoid overhead caused by calling conventions. Very interesting link. Thank you! Though I find the arguments u
677.
▲
by
majke
13y ago
I personally think that IR is _more_ expressive than C. There are two points I wanted to make in the blog post: - LLVM IR is cool and in many cases it could be beneficial to use it instead of assembler - If LLVM is bad for any reason, writi
678.
▲
by
majke
13y ago
> ... not every platform has "process 4 floats at once this way Sure. The point is - you can write IR code that multiplies _any_ number of floats and the backend "should" generate reasonable machine code for any architectu
679.
▲
by
majke
13y ago
Knuth in The Art of Computer Programming uses (artificial) MIX assembly to describe algorithms. To me it was awkward at the first, but it does make a lot of sense after first few chapters. Assembler has real world users, but also it has a n
680.
▲
LLVM Intermediate Representation is better than assembly
(idea.popcount.org)
312 points
by
majke
13y ago
|
220 comments
681.
▲
by
majke
13y ago
Standard question: what about conflict resolution, locking, deadlocks, snapshots, transactions? > The exposed DB has the exact same API as levelUp... Is createKeyStream creating a snapshot internally? Is createWriteStream locking? levelu
682.
▲
by
majke
13y ago
> Bit more work on layout <I'm not a designer> Serif font for headers and sans-serif for body looks wrong - usually it's the other way around. OTOH many people prefer sans-serif for digital media and serif for paper media
683.
▲
by
majke
13y ago
I thought this is what trampolines are: http://en.wikipedia.org/wiki/Trampoline_(computing) http://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html FFcall can be used to do simillar things:
684.
▲
by
majke
13y ago
For me finding interesting companies is the hardest part. IMO you can rank companies in two dimensions: 1) companies that I'm enthusiastic about and would love to work for 2) companies that will employ me. The trick is to find companie
685.
▲
by
majke
13y ago
Germany doesn't "allow" US bases. They were forced to have them after World War II: http://en.wikipedia.org/wiki/United_States_Air_Force_in_Germ... [update: removed speculation about german taxpayer cov
686.
▲
by
majke
13y ago
It was mentioned in comments a month ago: https://news.ycombinator.com/item?id=5837561
687.
▲
by
majke
13y ago
Thanks! My knowledge is mostly from: https://www.gov.uk/find-out-if-i-can-buy-or-carry-a-knife > It is illegal to [...] carry a knife in public without good reason - unless it’s a knife with a folding blade 3 inches lon
688.
▲
by
majke
13y ago
Good article! > He returned to Paddington Green station as appointed on 2 December, and was re-arrested for carrying a pocket knife. FTR, carrying a pocket knife is perfectly legal in the UK (assuming it was within a certain size). >
689.
▲
by
majke
13y ago
"... This includes recordings of phone calls, the content of email messages, entries on Facebook and the history of any internet user's access to websites ..." Isn't Facebook using SSL these days?
690.
▲
Feds Can't Crack Apple's iMessage
(dailytech.com)
1 points
by
majke
13y ago
|
1 comments
More ›