Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Veedrac
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
82 ms
·
691.
▲
by
Veedrac
6y ago
You needed those checks anyway. Python is just making sure you don't forget.
692.
▲
by
Veedrac
6y ago
> and destructors for moved-from objects not called This doesn't work entirely cleanly in cases the compiler can't track liveness, which is more of an issue for C++ than Rust, since you want to be able to move out of pointers.
693.
▲
by
Veedrac
6y ago
People keep trying to sue (and otherwise legally punish) Google and similar platforms for not policing their content enough. This is the inevitable result.
694.
▲
by
Veedrac
7y ago
Elon wants an 18m successor once the 9m one works.
695.
▲
by
Veedrac
7y ago
The LISA mission suggests we know how to formation fly to low-picometres accuracy already. Physical connections aren't needed for optical signals when deep space is already perfectly transparent. Communicating with satellites is a long
696.
▲
by
Veedrac
7y ago
This comparison is a bit unreasonable because the Benchmarks Game has a heavy selection effect going on; if the compiler generates bad code for a program, people won't submit it. There are plenty of instances where compilers go haywire
697.
▲
by
Veedrac
7y ago
> https://greasyfork.org/en/scripts/10096-general-url-cleaner Redirecting away from smile.amazon.com leaves a bad taste in my mouth.
698.
▲
by
Veedrac
7y ago
I realize HN will think much the same of it either way, but AFAICT that second quote of yours is a lie; she called WhatsApp's encryption unacceptable, not encryption in general.
699.
▲
by
Veedrac
7y ago
This doesn't actually demonstrate that it's difficult, just that it's expensive . If the government is willing to eat any sunk cost from oversupply, everything becomes predictable. In the case of COVID, it's hard to ima
700.
▲
by
Veedrac
7y ago
And yet... https://youtu.be/52ogQS6QKxc There's no fundamental physical limit that forces AR/VR headsets to be big and heavy.
701.
▲
by
Veedrac
7y ago
Very small, but that's not a useful measure. For astronomy, remember that bright, fast-moving objects will leave sizable streaks in images that halo a lot[1]. OTOH, intensity varies with time and satellite height. With regards to how m
702.
▲
by
Veedrac
7y ago
Starlink has launched 360 satellites, and they originally wanted to start limited service after launching 420 sats, so we're possibly only months away from them starting service if things go well.
703.
▲
by
Veedrac
7y ago
OK, I got it after reading the code. It's a neat trick, but you never actually explain how it works (even the comment says ‘this part I'm confused about’ lol).
704.
▲
by
Veedrac
7y ago
You seem to require the auxiliary array to be initialized to zero. This costs O(2^k). Second, consider this line. > Otherwise we keep traveling to the left until we are able to make another leap. Wouldn't sorting an array with the t
705.
▲
by
Veedrac
7y ago
Once you remove community spread, you only need to deal with international travel, which can be dealt with much more cost-effectively.
706.
▲
by
Veedrac
7y ago
Ight imma head out, this is clearly not a good direction for the discussion.
707.
▲
by
Veedrac
7y ago
This is even more obvious when you consider what the economically-optimal thing to do would be: Shut down nonessential travel to other countries and enact quarantine protocols for essential travel between countries, before you have communit
708.
▲
by
Veedrac
7y ago
> How do you figure that? RocksDB is not a programming language. I'm comparing to the code you showed. You're using the file system to dump static rows of data. All your data munging is on memory-sized blocks at program-level.
709.
▲
by
Veedrac
7y ago
It's a bit unfair to compare the speed of wildly inequivalent things. RocksDB would be more comparable, but even there it is offering much stronger resilience guarantees, multicore support, and gives you access to all your data at on
710.
▲
by
Veedrac
7y ago
If you believe the numbers, the UK has 6.9 per million infected, and the USA has 4.1, so they're pretty similar. You shouldn't believe the numbers, though, because the USA is barely testing people—and not because they aren't
711.
▲
by
Veedrac
7y ago
UK tests per million: 387 USA tests per million: 26 Not really the same.
712.
▲
by
Veedrac
7y ago
I mean, sure, if your problem is such that a strategy like that works for you, I'm not going to tell you otherwise. You can log incoming messages and dump data out to files easily with Python too. I wouldn't want to call that a ‘d
713.
▲
by
Veedrac
7y ago
Sorry, it's a bit weird not sharing a lexicon. I get the impression Q is a whole different genealogy of programmers. In Python, although you can just use shelve to store data on disk, in practice this is considered a bad idea beyond
714.
▲
by
Veedrac
7y ago
I wouldn't want to use an index as a long-lived key like that, since it makes ops like deletion a footgun. For temporary calculations I'd just `{u: Url(u) for u in url_strings}` for the table of URLs, and stick the `Url` objects i
715.
▲
by
Veedrac
7y ago
Counter is not in Python's prelude. Therefore you have to import it in order to use it. My comment about prelude was in response to you saying I was using Python's “language+plus-its-entire-ecosystem”. This is not true; Counter is
716.
▲
by
Veedrac
7y ago
Slow spread also means fewer people infected in the long run, and that fewer infected die.
717.
▲
by
Veedrac
7y ago
‘Prelude’ is the set of standard functions and types that you don't have to import to use. Python comes with a rich standard library, but most require imports to use. > How many characters do you have to change if you want it purely
718.
▲
by
Veedrac
7y ago
> It's a little funny comparing a language with another language+plus-its-entire-ecosystem This is pretty much my point: any ‘reimplement this weird built-in thing in $OTHER_LANG’ is going to involve overheads unless $OTHER_LANG als
719.
▲
by
Veedrac
7y ago
Python 3.7+: Counter(elems).values() But we can play this game both ways. What's the K for (Counter(a) & Counter(b)).most_common(3)?
720.
▲
by
Veedrac
7y ago
K +/!100 Python sum(range(100)) Haskell sum [0..99] Rust (0..100).sum() Ruby (0..99).sum There are plenty of ultra-concise languages for toy problems like these; they are called ‘golfing languages
More ›