1,350 karma · joined Jul 1, 2021 (5y ago) · 1,370 submissions
comment 5y ago · link · parent
https://jet-start.sh/blog/2020/06/09/jdk-gc-benchmarks-part1
"On modern JDK versions, the G1 is one monster of a collector. It handles heaps of dozens of GB with ease (we tried 60 GB), keeping maximum GC pauses within 200 ms."
(note: 200msec is its default goal, not the limit of what it can do)
Java has a reputation for needing complex GC tuning. Over time the need for this has fallen away as the GC technology has improved.
https://jet-start.sh/blog/2021/03/17/billion-events-per-seco...
"In our previous experience, we found you don't need any low-level GC tuning parameters to get great latency results on the JVM, but you do have to use a recent JDK. We let the JVM use its default G1 collector and configured it with our desired GC pause target."
"the maximum throughput at which a single Hazelcast Jet node maintains 99.99% latency within 10 ms now lies at 20 million items per second, a 250% boost!"
The JET guys show that a modern JVM (newer than Java 11) can achieve stunning throughputs with extremely low pause times. At 60fps each frame has 16 milliseconds to run. Obviously JET is a server and not a client-side app, but it helps put in perspective how impressive it is that your server could easily be running at "60fps" whilst processing 20 million items a second!
comment 5y ago · link · parent
The reason this is catching attention is that there's a big jump in the number of athletes suddenly collapsing or retiring from sports due to cardiac issues. The number I've seen is 6x, which was based on comparing verified reports so far this year with an academic paper from the early 2000s that provided baseline numbers. 6x is a lot.
comment 5y ago · link · parent
The same is also true of more or less the entire field of nutrition, none of which has yielded anything useful, and has resulted in governments themselves spreading misinformation:
https://sebastianrushworth.com/2021/11/27/is-saturated-fat-u...
Incidentally, Berenson has written a long rebuttal to this kind of thing which you can find here:
https://alexberenson.substack.com/p/the-english-data-on-vacc...
comment 5y ago · link · parent
That's one heck of an unbalanced sample. The vast majority were women, nearly 1% were "other" and nearly 90% weren't white? Yes they're aiming to study college students specifically rather than the whole US population, but, how representative can this sample really be of even the college population? It feels like anyone who thinks safetyism is bunk didn't even show up for their study at all.
Yes they go ahead and use the normal statistical techniques on the data but there are limits to how far you can fix a sample this overwhelmingly dominated by certain types of people.
comment 5y ago · link · parent
comment 5y ago · link · parent
Does anyone know how the need to detect mutations is balanced against the need for the tests to be precise to a specific type of virus?
comment 5y ago · link · parent
In reality all these explanations we're being given are nearly junk value. Public health researchers don't understand the immune system or mRNA based vaccines well enough to predict things like how it adapts or learns, and in particular they just ignore any factor that they don't have a fast/cheap test for (or sometimes any test).
comment 5y ago · link · parent
Also the claims about variants being "more infectious" are - when you dig in - hopelessly confounded by seasonal effects that many epidemiological papers were at that time still ignoring.
comment 5y ago · link · parent
Go has repeatedly tied itself in knots over the years because they have a goal of not making the compiler slower, yet, the GC needs of the compiler are diametrically opposed to the needs of the HTTP servers Go is normally used for.
https://go.dev/blog/ismmkeynote
"As you can see if you have ROC on and not a lot of sharing, things actually scale quite nicely. If you don’t have ROC on it wasn’t nearly as good ... At that point there was a lot of concern about our compiler and we could not slow down our compilers. Unfortunately the compilers were exactly the programs that ROC did not do well at. We were seeing 30, 40, 50% and more slowdowns and that was unacceptable. Go is proud of how fast its compiler is."
comment 5y ago · link · parent
Also, object pooling isn't really a GC related hack, it's more useful as a cache booster. Programmers like immutability and garbage collection but your CPU doesn't like these things at all. If you're constantly allocating new objects it doesn't matter if your GC kicks ass, because those objects will always be in parts of memory that are cold in the cache. If you allocate some up front and mutate them, they're more likely to be warm.
Obviously this isn't a language or even VM thing. It's a "mutable variables are good for performance" thing.
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
Consider a compiler. It's not infinitely scalable to multiple cores. It may not even be multi-threaded at all. It also doesn't care about pause times - for that you want Parallel GC.
comment 5y ago · link · parent
comment 5y ago · link · parent
https://shipilev.net/jvm/anatomy-quarks/
BTW green threads haven't been used for decades ;)
comment 5y ago · link · parent
Consider Kotlin. It originates from one large company - JetBrains have over 1000 employees and the Kotlin team alone has over 100 people on it - and has been adopted by another much larger company (Google) as an official language. There are no dramas. Why, because the Russians are mission focused and don't feel any need to constantly virtue signal.
Consider Swift. It originates from a large company. I don't remember reading about any political dramas in the Swift world. That's because Apple are mission focused.
Now look at Node or Rust. Both have attempted to build some sort of non-corporate governance system, they're based out of the Bay Area, and all of them seem to be absolutely beset by internal conflicts and strife.
comment 5y ago · link · parent
"We granted 33% of Mozilla Foundation funds to black-led tech and social justice initiatives. Unfortunately, we fell short of our 40% target."
The Mozilla Foundation is meant to be funding Firefox. That is its purpose. Instead it is using money raised for that purpose to perpetuate SJW culture and overt racism against white people.
The type of insidious and dishonourable mind games the Rust moderation team are playing here is exactly the sort of thing I've come to expect from Mozilla-associated projects. The apologetics for it in this thread are just wrong. My weapon of choice is Kotlin, made by Russians. Guess what: there's no moderation team, the community is fine and in the 10 years the project has existed I recall exactly zero community related dramas. None. Zero. Nada. This sort of thing isn't normal for programming languages and people trying to claim it is are wrong: it's normal for languages controlled by a very specific kind of person in a very specific region and subculture of America.
In contrast, Brendan Eich kept his politics private and actually cared about Firefox as a product and technology.
comment 5y ago · link · parent
It amazes me anyone is still willing to use the E word on anything COVID related. It's just embarrassing at this point. The "experts" assured us just months ago the vaccines were 95%+ effective. The fact that effectiveness declined so fast surprised them and now they're trying to rewrite history to claim it was known all along.
There appear to be no experts in COVIDS, viruses or vaccines. They're all in denial that their self-proclaimed experts beliefs have been invalidated dozens of times over since the start of this.
comment 5y ago · link · parent
comment 5y ago · link · parent
Odd code of honour there. They've made a lot of dramatic insinuations about other Rust contributors, basically asserted that they're all bad people, and provided no detail. That's the opposite of integrity.
comment 5y ago · link · parent
The articles are quite clear that they didn't want to make this decision but felt forced into it, because many years of investor funding had failed to bring a single drug to market. Vaccines were the Hail Mary move to save the company from extinction, even if it made investors unhappy. Then COVID came along and suddenly, vaccines were big business and nobody worried about toxicity anymore.
comment 5y ago · link · parent
Except now, endless dosings of that very same tech are being mandated. Note: no announcements at any point about how they found some fix for this problem.
I've updated my original post with a second story from the same site that makes this problem clearer (spells it out in different words):
"But that hasn’t worked out so far. Moderna’s attempts to make actual drugs from mRNA have been repeatedly hamstrung, proving either too weak or too dangerous to test in clinical trials, former employees and partners said. The company has instead prioritized vaccines, which can be dosed just once and thus avoid the safety problems that have plagued more ambitious projects."
comment 5y ago · link · parent
comment 5y ago · link · parent
So in Java they just made exceptions really fast. There are lots of runtime optimizations around exceptions, for example, if you regularly parse strings that aren't numbers then the resulting exception will automatically stop having its stack trace filled out, which makes throwing drastically cheaper. The JVM can also inline the code and then convert try/catches to ordinary gotos.