Readit News logoReadit News
adra commented on Kotlin-Lsp: Kotlin Language Server and Plugin for Visual Studio Code   github.com/Kotlin/kotlin-... · Posted by u/todsacerdoti
twen_ty · 10 months ago
Apart from legacy projects written in Kotlin, after Java 21/23, what's the argument for using Kotlin anymore, especially that it's a proprietary language?
adra · 10 months ago
I love java and kotlin. The gap has certainly swayed way more in Java's favor over the last 5 years, but there are still a ton of great features that kotlin does first and if that gives java a target to run toward in a lagging way more legacy compatible rock solid way, isn't this just a win for both camps? Just consider kotlin (JVM) to be java-beta with slightly different flourishes, and you wouldn't be too far from the truth. Kotlin is also very big in pushing their other initiatives that aren't entirely directed at JVM at least for now, like cross compilation native targets, compile time serialization primitives, totally structured concurrency, etc

Dead Comment

adra commented on Fixrleak: Fixing Java Resource Leaks with GenAI   uber.com/en-IL/blog/fixrl... · Posted by u/benocodes
delusional · 10 months ago
> difficulty of correctly recovering from an OOM exception is between hard and impossible.

In Java out of memory is signaled with an OutOfMemoryError which is a throwable (and can be caught) but is not technically an exception. Errors should generally never be caught and cannot be recovered from, which is how they differ from exceptions.

adra · 10 months ago
It's not great, but you can always catch and retry if your belief is that the GC will free enough memory to allow the attempt to continue after the memory pressure subsides.

Let's say you get 1/100 requests that are randomly sent to your process. That 1 takes 100x the average memory usage of the others. You could spin it out to different services to better handle the weird one-off, but that doesn't always make sense. Sometimes you just need to be ok with working the 100x job and let the other 99 get progressive falloff retry. Different solutions are always possible.

adra commented on 21 GB/s CSV Parsing Using SIMD on AMD 9950X   nietras.com/2025/05/09/se... · Posted by u/zigzag312
hermitcrab · 10 months ago
For all its many weaknesses, I believe CSV is still the most common data interchange format.
adra · 10 months ago
Erm, maybe file based? JSON is the king if you count exchanges worldwide a sec. Maybe no 2 is form-data which is basically email multipart, and if course there's email as a format. Very common =)
adra commented on Retailers will soon have only about 7 weeks of full inventories left   fortune.com/article/retai... · Posted by u/andrewfromx
ericmay · 10 months ago
Ok if we can't then you're proving the need for economic and policy measures to make it so we can.

But yes, instead of buying a made in China t-shirt you can just spend a little more and buy one made in the USA, or even other non-authoritarian governments throughout the world (EU for example).

adra · 10 months ago
The unemployment rate is what, 3%? Where are you going to find the millions of people needed to make the iPhone domestically? Immigration? Hah, that would be an interesting stance. Automation? It would work to fill some gaps, but even apple doesn't want to pay Chinese workers for tasks that machines can do today. Someone in their company decides on when they automate, and when they use elbow grease. They may be able to afford a lot of the capital outlay to greatly improve the productivity of their workers if effectively required to onshore, or they may just stop selling iPhones in the US for a few years if all cell phones become prohibitively expensive to own. If Apple can't make the economics work, I can't see who can.
adra commented on Retailers will soon have only about 7 weeks of full inventories left   fortune.com/article/retai... · Posted by u/andrewfromx
Workaccount2 · 10 months ago
China's economic situation right now is worse than the US. They have incredible debt (accounting for provincial debt which is essentially state debt, China is not a federation), a massive housing asset bubble, and an aged population that is expensive to care for. Never mind also being stuck in a deflationary cycle with a high youth unemployment rate. And this is just working with the self-reported numbers from an authoritarian regime.

The biggest crunch to the US will be to the consumer, the biggest crunch to China will be the worker. People in the US will need to buy less shit, and pay more for what they do buy. People in China will need to work fewer hours and bring home less money.

Of course, the situation is fractal and ridden with unknowns. But I think a lot of people have this view of China as being a young slick economic powerhouse and the US being a weak economy with old decrepit money pile. That's far from the truth.

adra · 10 months ago
I'm sure that China will suffer greatly from any trade war, and I'm positive the US will blink first. Chinese consumer and workers are already significantly less likely to revolt, stop working, drag their country down. The second that dollar store becomes $10store in the US, it'll be pandemonium, and they only have a single person to blame for their troubles. China? They may be doing anti-competitive trade practices and haven't been put to task, but if you ask the Chinese citizen who to blame on the trade war, it'll be trump. If you ask a US citizen who to blame for this trade war, it'll be trump.
adra commented on Hundreds more NSF grants terminated after agency director resigns   nature.com/articles/d4158... · Posted by u/rntn
deepsun · a year ago
To answer your question -- they say "to save money".

The question is still open whether it actually saves the announced sums, or whether it saves anything at all.

adra · a year ago
The benefits of education on a country are decades long to fully see the positive outcomes. How do you expect differently by destroying said institutions? Your kids or likely kids kids will be feeling the decision of today as the beginning of the dark ages (at least in the US). Without innovative people able to achieve great progress, where does society, , hell humanity go? At the very least from a here and now position, it's a strong signal to continue pulling money out of the US and into countries that have better long term outlook.
adra commented on MinC Is Not Cygwin   minc.commandlinerevolutio... · Posted by u/thingfish
bayindirh · a year ago
Windows 2000 was not developed for x86 directly. It first started on Alpha, then ported to x86, so its codebase is "double-brewed" in a way.

I also remember 2000 as the only rock solid Windows release, and I never had to reinstall it. XP was very close to that after it fully matured, but nothing feels like 2000.

[0]: https://en.wikipedia.org/wiki/Windows_2000

adra · a year ago
The two OS kernels and API are super close (outsider perspective). I used win2k for like 10 years mostly on the back of applications and games supporting XP for so long. I can't recall the big API differences. Maybe XP has UAC and there were APIs to check for it? Anyways, I still have fond memory of manually patching out API calls hard coded into EXEs to bypass XP only parts which were almost always superfluous.
adra commented on Nissan eyes shifting Rogue production to U.S. due to tariffs   asia.nikkei.com/Business/... · Posted by u/geox
adra · a year ago
You know, the Nissan that has two feet i to the grave... I Surrre.
adra commented on Wealthy Americans have death rates on par with poor Europeans   arstechnica.com/health/20... · Posted by u/zdw
ty6853 · a year ago
On a per capita adjusted basis UAE/Dubai blows about every other place out the water for number of incoming rich migration (even on absolute basis they are near top). Much easier to get an investor visa, far lower taxes on business income, you can easily import servants and trade duties are miniscule. Everything is available if you are rich because all you must do is fill out some relatively simple paperwork and whoever you want appears.

It looks like in this age for the rich the optimum is something closer to dictator capitalism, as democracies start to embrace more regulation and social redistribution schemes. Singapore and Dubai have been winning choices so long as the people in power don't change their mind and start splitting skulls.

adra · a year ago
And they don't even bother holding their noses tightly sealed as they let them pass. Source of income (you know what I mean) has no bearing on these places. Enjoy your neighbours, definitely don't piss them off without.. consequences

u/adra

KarmaCake day914February 14, 2022View Original