Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
xxs
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
481.
▲
by
xxs
2y ago
The quote efficiency on most PSU would be around the half load (more or less). The total system draw does not include the power supply - it will have its own losses esp on low end, still likely in the 80s
482.
▲
by
xxs
2y ago
>It's not like it's drawing a ton of power on idle The power supply connected to the mains for sure does that.
483.
▲
by
xxs
2y ago
It has to be an error - it could happen to HashMap, it has never been an issue w/ CHM.
484.
▲
by
xxs
2y ago
They were just lucky not to have data corruption due to concurrency issue, and the manifestation was infinite get. Overall if you can randomly "kill -9", the case is rather trivial. Likely replacing HashMap with CHM would not solv
485.
▲
by
xxs
2y ago
>So now we cannot easily mock final classes in tests Mocking final classes is a blunder on its own. Most classes should be package private not public, so being final would have close to zero relevance. Personally I do not use mocking too
486.
▲
by
xxs
2y ago
>And besides, English is the most international language in the world Yeah, it is - but it doesn't make it right. Say you have a Cyrillic (not only Russia uses it) interface with non-Cyrillic wording. It feels your country is a 2nd
487.
▲
by
xxs
2y ago
>(It thinks) I can do a 42min 10k Impressive, going over 14km/h (~4m/s) sustained is no joke. Many folks would just cramp out at that point. OTOH, Garmin's "body battery" seems quite accurate for my spouse
488.
▲
by
xxs
2y ago
>shared cache As in performance improvement - cache should never be considered a datastore, e.g. you can pull the plug and nothing else happens (aside losing performance). It'd be a lot more beneficial all the processes to have a l
489.
▲
by
xxs
2y ago
>I think Redis itself does something like this) It does... and it's a blocking operation (Bad). It's used when storing data to a file to allow restarts w/o losing the said data.
490.
▲
by
xxs
2y ago
> which is that if it is running on the same machine as the application in that case just use a regulator hashmap - it has nanoseconds performance compared to the sub-millis.
491.
▲
by
xxs
2y ago
I do prefer all the icons to have text. Yet, localizing 'print', etc. is no easy feat.
492.
▲
by
xxs
2y ago
Years back (around 10) mysql did have multiple instances of false sharing[0]. Unrelated to mysql - I do consider using redis in any capacity a blunder (it's likely ok for nodejs users, I suppose) [0]: http://dimitrik.free.fr
493.
▲
by
xxs
2y ago
I did say all that (incl the 1M+) stuff coming from personal experience. I have "fixed" all kind of libraries (incl. database drivers, JDK itself, PKI cert loading, netty/jetty, ORM providers). I'd consider jaxb/jac
494.
▲
by
xxs
2y ago
It's a fair point of stuck w/ java8, yet the reference was about "modern java". With that said - lombok is not needed at any form there either, use a c-tor with fields and make the public final. If you have too many fiel
495.
▲
by
xxs
2y ago
Getters and setters are a mediocre design choice, not a limitation. Records have existed for years, too.
496.
▲
by
xxs
2y ago
>That's basically modern-day Java, with Lombok and other tidbits. Lombok is exceptionally backwards. You don't need getters/setters; and you should know how to try hashCode (and equals). ...and records exist
497.
▲
by
xxs
2y ago
compression tends NOT to use a global dictionary. So to me they are vastly different even if they have the same goal of reducing the output size. Compression with a global dict would like do better than dedup yet it will have a lot of other
498.
▲
by
xxs
2y ago
(I have missed the response) The allocation elisions have been tried (escape analysis) with enough inlining to no noticeable benefits (I don't have the source/quote, yet it was over 10y already). The escape analysis already provid
499.
▲
by
xxs
2y ago
Over 3 imports from the same package - use an asterisk.
500.
▲
by
xxs
2y ago
>definitely removing a GC allocation I am not sure in what cases that's a major win, in generation/copy GCs an allocation is a pointer bump, then the object dies trivially (no references from tenured objects) in the young gen c
501.
▲
by
xxs
2y ago
they are allowed to do that for the folks that produce the goods of course, it just makes a lot harder to retain the said idiots.
502.
▲
by
xxs
2y ago
fraud is a criminal offense. ToS is in most cases is a wish-washy nonsense talk, legally not enforceable (in the EU) It's rather hard to make any online agreement that's more lax than the law in the EU (and call it ToS)
503.
▲
by
xxs
2y ago
I suppose the reply was not meant to be a direct response to my comment?
504.
▲
by
xxs
2y ago
since you mention the radiator, the EV needs quite the cooling as well; although I do agree for the most part. The electric motors are a lot simpler than even a small engine lawnmower.
505.
▲
by
xxs
2y ago
>Ever have your phone or laptop not hold the charge it used to when you first bought it? While true, the analogy is bad. The phones (and to some extent laptops) are notorious of the overcharge. The Li-Ion (cobalt) normally should be char
506.
▲
by
xxs
2y ago
>the fact that you are tracking "unique identifiers for the purpose of anti-cheating" A person can requests to delete their data at any time, and also can request to provide all the personal data collected.
507.
▲
by
xxs
2y ago
the short answer is that you can't without the necessary permissions, and even if you do - the next roll out will wipe out your changes. So the pro-part of the tip does not apply. On my own machines anti-virus is one the very first thi
508.
▲
by
xxs
2y ago
java 1.0 (even 0.9) did have. The 1st language with a memory model was java 5 (1.5), which was back ported to 1.4.2. 1.4(.2) already had non-blocking I/O as well. Why pick 6, though?
509.
▲
by
xxs
2y ago
>where the attestation can be validated with the attester offline. Oddly enough, virtually all passport/personal ID checks around here are... online. Airports, police, any shop... all of them are all online.
510.
▲
by
xxs
2y ago
> it's nothing to do with "the government" The depends where you live, and what the government means. In some places the validity of a passport is written in a law, voted by the parliament; in other it's a operation d
More ›