Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cogman10
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
361.
▲
by
cogman10
3mo ago
> cobalt, a very toxic heavy metal Cobalt is neither particularly toxic nor a heavy metal. In fact, it's a part of vitamin B12. You might be thinking of Cadmium, which is indeed a very toxic and nasty metal. In LiPos the heaviest
362.
▲
by
cogman10
3mo ago
> Anything that you can dig/pump out of the ground is toxic, particularly to water resources Not really true. There are plenty of non-toxic elements in the ground. The actual issue with mining is that the elements we are after are
363.
▲
by
cogman10
3mo ago
Well let me ease some of your fears. Lithium batteries are less toxic than most other battery chemistries (including lead acid batteries). The major toxic portion of lithium batteries comes in the form of production, but not the actual mat
364.
▲
by
cogman10
3mo ago
Ah shoot, you're right this wouldn't be what I'm thinking. I was thinking of "GC Nepotism" [1]. That's the case where an object in old gen pointing to an object in new gen will automatically promote that new g
365.
▲
by
cogman10
3mo ago
Not really heap compression or special, it's just reusing a reference to an object already allocated on the heap. Right now, if I do this LocalDate a = LocalDate.of(2020, 1, 1); LocalDate b = LocalDate.of(2020, 1, 1); A an
366.
▲
by
cogman10
3mo ago
> is there like a list of things that government is responsible for Why yes, there is. Here's an example of that list for the federal government [1]. States and cities also have similar lists though they may not be as accessible t
367.
▲
by
cogman10
3mo ago
Great, and through your effort you can raise a total of 100, maybe even 1000 dollars. Meanwhile while you are willing to give $15 for good data, Koch is willing to spend $15 million for a guy with a degree in fine arts to tell us he's
368.
▲
by
cogman10
3mo ago
> how can we trust either its legislative or executive branch to ensure that their creations are effective or efficient? Glad you asked. That's actually the job of the Inspectors General. One of the first groups of people Trump co
369.
▲
by
cogman10
3mo ago
One of my least proud (most proud?) hacks when working with very large data sets is something like this Map<Integer, Integer> intCache = new HashMap<>(); while (loading) { Integer feild1 = intCache.computeIf
370.
▲
by
cogman10
3mo ago
Cheap, not free, and even pretty simple to accidentally fool the GC on the lifetime of these objects. Consider, for example, if you have a log message like this logger.info("Hello {}", myOldObject); if "myOldObject&q
371.
▲
by
cogman10
3mo ago
The most surprising allocation pressure I constantly run into is primitive boxing. The JVM does heroics to try and avoid it as much as possible, but when you end up with some primitive boxing in a hotspot the amount of GC pressure that crea
372.
▲
by
cogman10
3mo ago
Yeah, I don't love this part of the work. Especially since it's completely exploded out the text of basically everything. I'm also suspicious that the person that generated that text didn't read any of it.
373.
▲
by
cogman10
3mo ago
> Much more likely that the legend evolved over many generations and became a mishmash of fact and fiction over hundreds of years before someone actually wrote it down. I don't really dispute that this is the likely case. I more di
374.
▲
by
cogman10
3mo ago
> Yes, Joseph Smith played a similar role to Romulus in the founding of Rome: the leader and lawgiver No he didn't. You obviously know nothing about what his role was. > It also seems highly unlikely that Smith simply "made
375.
▲
by
cogman10
3mo ago
Valhalla can't come soon enough. I've definitely had to change things into SOA in order to eke out performance. My coworkers aren't thrilled seeing `double[] x; double[] y;` but that really is about the only way to get the
376.
▲
by
cogman10
3mo ago
Totally agree, but I'm in Java land and cursed to have about the worst case scenario for those things :D
377.
▲
by
cogman10
3mo ago
Because you might want to put a breakpoint on that line of code and debug the variables going in and coming out. But further, optimizing in the compiler can preclude future optimizations by the JIT. Giving the JIT more information can make
378.
▲
by
cogman10
3mo ago
While the article is interesting, it's the case of a missed optimization by the compiler and (possibly) something that a future version of the compiler will catch. This sort of optimization is one that'd I'd not spend too muc
379.
▲
by
cogman10
3mo ago
It's a good rule of thumb that can be quite useful without additional analysis. It's not always the right way to do performance tuning, but I can't count the number of times I've changed an O(n^3) to an O(n) and seen ma
380.
▲
by
cogman10
3mo ago
Ktesias wrote of the battle using Persian sources. Though he's considered pretty unreliable. While the sources are all from greek authors, we have 6 different sources about the battle with Herodotos, Diodoros, and Ktesias all writing
381.
▲
by
cogman10
3mo ago
> The conversion of the Romans to Christianity happened because of real events Yeah, and in the process of converting to Christianity, Romans began rewriting their history and erasing their past. Which is exactly what we are talking abo
382.
▲
by
cogman10
4mo ago
It ultimately depends on if there is overriding state or federal law. But yeah, it's something a city can enforce. A small town in Wyoming could do the same and could sue (and probably win) against businesses that do business in that
383.
▲
by
cogman10
4mo ago
> The idea that some random historian or politician simply convinced everyone his fiction story was true and central to their identity - and it worked time after time AND everyone else bought into it - is clearly absurd. It's really
384.
▲
by
cogman10
4mo ago
> It also conveniently explains why there is an ancient temple under the Forum with an empty sarcophagus dated to the 500s BC that appears to be dedicated to Romulus. Bad article. Here's a better one [1]. What the archeologists fou
385.
▲
by
cogman10
4mo ago
> This is a totally unfruitful line of inquiry It's really not. This is the line of inquiry that leads you to understand the founding myth of Rome and what the motivations might have been to create such a myth. It also helps to pl
386.
▲
by
cogman10
4mo ago
Important to note, Canaanites have semitic names. So, someone with a semitic name isn't even an indicator that they were a Hebrew, only that they were possibly Hebrew. Which is unlikely. The evidence we have is that Hebrews were a spl
387.
▲
by
cogman10
4mo ago
Likely? That's wild. What's the corroborating evidence from ~750BC documenting their existence? Heck, where's that evidence from 650BC?
388.
▲
by
cogman10
4mo ago
> Respectfully, this is a stronger claim than I think anyone can make. The only reason to treat this with kid gloves is because a large portion of the population believes in it. Nobody has a problem saying that "Romulus and Remus is
389.
▲
by
cogman10
4mo ago
People wandering in the desert for 40 years, or even 1 year, leave traces. Especially when it's thousands of people (at a minimum). The Hebrew language came long after the exodus. We have no earlier records of it that aren't wri
390.
▲
by
cogman10
4mo ago
> Given what we know about how the Egyptians recorded history, we would definitely not expect to find them writing about stuff that would have embarrassed them. That's exactly the sort of stuff they wrote about all the time. We kno
More ›