Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ekimekim
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
49 ms
·
451.
▲
by
ekimekim
12y ago
I dislike the post title as it makes this appear a bigger deal than it is. It should read "bug found in Rust scoped threads". The general principle has not been found unsound.
452.
▲
by
ekimekim
12y ago
One solution I've seen is to use two unique string values instead of True/False, and reject all other string values. eg. foo.frob("quick", "loud", "noforce") foo.frob("slow", "
453.
▲
by
ekimekim
12y ago
A less fragile approach would be for the old process to simply pass the listen fd to the new process over a unix socket. You could also pass any active connections in this way.
454.
▲
by
ekimekim
12y ago
In which case they should've started up an independent service "sucks.com" where you could have "easydns.sucks.com", "hackernews.sucks.com"...ie. why involve DNS registration at all, if you're actuall
455.
▲
by
ekimekim
12y ago
So glad someone did something like this and made it presentable enough for widespread usage. In contrast, my own "utils" libraries[1] are often too specific, or not well documented. However, there's already some overlap (eg.
456.
▲
by
ekimekim
12y ago
I'd be very interested to know what kind of consistency guarantees EFS provides. The history of NFS is plagued by syscalls whose docs have a variation of the phrase "this operation is atomic (except on NFS)".
457.
▲
by
ekimekim
12y ago
While there's alot of unknowns at this point, my money would be to stick with S3. Serving static files quickly is a large part of what it is designed to do. From what I'm reading here, EFS seems more geared towards shared volumes
458.
▲
by
ekimekim
12y ago
I wrote a version of this some time ago: https://github.com/ekimekim/pylibs/blob/master/libs/interpol... It's not quite as natural as your one: def foo(x): print interpolate("
459.
▲
by
ekimekim
12y ago
Try an strace? strace -e trace=network ./run_my_unit_tests
460.
▲
by
ekimekim
12y ago
Only tangentially related, but I find it weird that guides like this still suggest seperate root, home, boot and swap partitions. What is the point of separating / from /home? I know the /boot thing is due to max size stuff o
461.
▲
by
ekimekim
12y ago
This kind of result is perfectly valid. If candidates A and B are polarising, and candidate C is a compromise candidate, and you have a preferential voting system, then it makes sense that many people would put A or B first, and C second, p
462.
▲
by
ekimekim
12y ago
As several comments here point out, the intended usage of JSON is as a serialization format. In which case, I would expect dates to be in epoch time (if you need to include timezone data, that should be a seperate field). What annoys me is
463.
▲
by
ekimekim
12y ago
The problem is in what concepts are being considered "the same" when mapping two mostly-dissimilar things (a socket or pipe, vs a file). poll(), select() et al don't define "readable" as meaning "a byte of data
464.
▲
by
ekimekim
12y ago
Unrelated to the library itself: I dislike when python projects have an external website containing the docs, and have no docstrings in the code itself. Not only is the code harder to read, but it makes the inbuilt help() useless.
465.
▲
by
ekimekim
12y ago
First of all, because one of their explicit choices was to use HTTP. Using a persistent message bus like RabbitMQ has great advantages, but in terms of failure modes acts very differently to HTTP. For example, an upstream service failure wo
466.
▲
by
ekimekim
12y ago
So what if, during a partition, I publish another message? Does it get rejected for not being able to reach N servers within timeout, or has "N" been adjusted down to the size of the currently-reachable machines. ie. is a partitio
467.
▲
by
ekimekim
12y ago
I suspect what happened there was to do with http://www.rabbitmq.com/ha.html#unsynchronised-slaves When using mirrored queues, Rabbit does ensure all the active mirrors are written to before confirming a publish: &quo
468.
▲
by
ekimekim
12y ago
If we're talking about implementations in various languages, I might as well link to my capped backoff with jitter implementation for python. https://github.com/ekimekim/pylibs/blob/master/libs/
469.
▲
by
ekimekim
12y ago
In general, you want to consume messages "fairly" ie. in a way that minimizes latency introduced by the queuing. Best-effort ordering gives you this most of the time, which is better than none of the time.
470.
▲
by
ekimekim
12y ago
Rabbitmq has at-least-once semantics (unless requeue = false, in which case all bets are off, since you could get a message multiple times due to cluster partitions^ or not at all due to a drop without requeue. Note that unlike disque, requ
471.
▲
by
ekimekim
12y ago
Any chance on releasing the code as a single script, so I don't need to copy-paste the snippets you posted and fill in the blanks myself?
472.
▲
by
ekimekim
12y ago
At a guess: A lack of practical ways to perform such checks without extensive extra knowledge and annotation as seen in the article. A large factor is likely that Haskell is pure by default - something that is reasonably rare in many langua
473.
▲
by
ekimekim
12y ago
With this scenario in mind, could it make more sense to adopt a version scheme incorporating the initial release date (or considering the kernel workflow, merge window date), similar to ubuntu? "I'm running linux 15.2.4, aka. the
474.
▲
by
ekimekim
12y ago
The version on pypi seems to be out of date (v0.0.8), and doesn't work: $ gist help $
475.
▲
by
ekimekim
12y ago
"It's a UNIX system. I know this." "The linux build is currently broken" oh, the irony.
476.
▲
by
ekimekim
12y ago
Only somewhat. I don't agree with the sentence here, but a full analogy would be a knife-maker who made a custom knife to order for a person who they knew intended to market it as a murder weapon.
477.
▲
by
ekimekim
12y ago
An aspect of the syntax is confusing me here. I would have assumed that the expression 'x+?' would be parsed as '((x)+)?', ie. 'x*'. However, it seems the parser special-cases this as (x)(+?) instead, and inter
478.
▲
by
ekimekim
12y ago
I find it sad that you're being voted down for having different cultural associations and definitions than another poster.
479.
▲
by
ekimekim
12y ago
> Drugs are like gambling I agree. In that the majority of people have some fun out of it, a small minority get addicted and need help, and legalization leads to massive tax incomes for the government.
480.
▲
by
ekimekim
12y ago
I think the sentiment was "standardize on the majority", not "everything the US does is wrong".
More ›