Recent submissions

Comment · 1 year 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
Comment · 1 year 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.

Comment · 1 year 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 =)
Comment · 1 year 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.
Comment · 1 year 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.
Comment · 1 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.
Comment · 1 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.
Comment · 1 year ago
You know, the Nissan that has two feet i to the grave... I Surrre.
Comment · 1 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
Comment · 1 year ago
Why, because 90% of her job is talking to and appeasing shareholders, grand standing with fat whales, and what else.. what do you think a CEO at these companies actually does? They aren't in the trenches of each subdivision nurturing and cracking whips. She likely attends a 2 hour briefing with a line item: CUDA parity project: on schedule release date not set
Comment · 1 year ago
Make builds in docker by mounting volumes and have your sources, intermediate files, caches, etc. in these volume mounts. Building a bunch of intermediate or incremental data IN the container every time you execute a new partial compile is insanity.

It's very satisfying just compile an application with a super esoteric tool chain in docker vs the nightmares of setting it up locally (and keeping it working over time).

Comment · 1 year ago
At the very least, they can provide a full log of all interactions and recording in an audit log. Have that verified with researchers conducting their own analysis on dial home activity and I think we'll be significantly closer to a good answer here about generalized mass capture of customer sensitive data. This still wouldn't be enough if you're worried about targetted spying, because we can't know when bad actors flip your device into spy aggressively mode unless you're auditing the device while targetted).
Comment · 1 year ago
Framework made a tiny desktop form factor version with this chip in it, so we'll if it gets much traction (at least among enthusiasts).
Comment · 1 year ago
I don't care if this works or not it makes me giddy with glee at the idea. Thanks for making my day.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton