HNHacker News
TopNewBestAskShowJobs

jpgvm

10,011 karma · joined March 14, 2013

web: jpg.dev email: jpg@jpg.id.au twitter: @jpgvm github: josephglanville

Principal Software Engineer @ NVIDIA

Opinions are mine and not that of my employer, etc.

submissionscomments
jpgvm··on H-1B Exposed: Banking sector visa sponsorship investigation
No. The talent shortage is not a myth. The unemployed/underemployed American programmer that can actually keep up is a myth. Everyone good (without additional baggage) is either a) employed or b) could be employed whenever they feel like it.

If you aren't good enough then don't be surprised the companies prefer an immigrant. You don't get an automatic American free pass for having less skills, experience, interviewing poorly, etc.

i.e skill issue.

Ending immigration for tech would simply mean far more global workers/offshoring in order to access the top tier talent via different means as that is the real reason all along.

Wage suppression was the old (and now largely incorrect) story. The visa is still exploitive, it should be amended to be a 10 year visa that is independent of employment so immigrants aren't screwed by layoffs.

jpgvm··on Why is Singapore no longer "cool"?
> Singapore is a much more democratic country than most outsiders realize

Yeah no.

In Singapore you have a single party which has used it's constitution, laws, courts and media control to enforce a defacto one-party state for 60 years. Singapore citizens can (and do) vote but those votes have absolutely zero chance of changing anything.

Is it technically democracy? Well they vote so yes? Is there any chance at all of peaceful regime change through voting? Technically yes, in practice? Probably not. I would expect extreme suppression and HK style riot crushing. They have been doing it quietly for decades, targeting and legally destroying/bankrupting any opposition to the PAP.

So the only real difference vs say China is that while both are authoritarian regimes the Chinese didn't bother with a mechanism to pretend you can throw them out.

To be clear, I don't object to their form of government. I think it works for them and thus it's completely ok. If anything I find Singapore a really safe and efficient place and visit frequently.

I do object to people pretending it's somehow a liberal democracy though, that just ain't the truth.

jpgvm··on GitHub Actions is slowly killing engineering teams
People get overfixated on the runners. They don't matter. GHA, Buildkite, Jenkens, Gilab, doesn't matter. That isn't to say GHA isn't poo (it is and always has been poo) but it is to say it's not the actual problem.

The actual problem is using a bunch of unportable vendor YAML for literally anything.

Define your entire build + artifact publishing pipeline in something like Bazel, Nix, etc and completely decouple everything from the runner. This allows running it locally and also switching runners extremely easily if one of them is no longer to your liking.

Don't fall prey to the vendor YAML trap.

jpgvm··on Embassy: Modern embedded framework, using Rust and async
I'm loving Embassy.

Coming from a lot of bare metal C and FreeRTOS it finally feels like embedded is getting a toolchain that is actually modern and better.

Some of that isn't just Embassy but the surrounding ecosystem, some highlights:

* probe-rs w/cargo run integration

* defmt logging (combined with probe-rs and rtt it's very nice)

* embedded_hal (and in my case stm32-rs)

I have also tried RTIC but I decided to keep going with Embassy because I like the async ergonomics more and the few times it's been a downside/missing functionality (no existing async driver for specific peripherals basically) it wasn't to hard to implement what I needed.

I was surprised it just works out of the box on OS X also, generally speaking I would always end up having to use Linux to develop for embedded. Being able to compile on fast Apple M hardware and then run immediately with zero friction is awesome.

It took a little bit to get my head around how to share access to peripherals etc but once I did it's been great and it's nice to know that locking semantics are essentially enforced at compile time so it's actually not possible to have 2 things stomping over the same bus etc which can sometimes be a very hard bug to track down when working with big and fast SOCs.

Other really big aspect Embassy has been good for is really high quality USB and networking stacks. I am using both the USB stack (for PLDM over USB) and Ethernet w/the TCP stack in embassy_net and both have been flawless.

Only real downsides I can think of are it can sometimes be hard to onboard folk that are used to copy/paste from vendor examples and sometimes communicating and debugging with vendors themselves when they aren't familar and won't engage unless you can reproduce on the vendor HAL.

So overall really happy with it and I highly recommend trying it out especially if you are in the STM ecosphere.

jpgvm··on Tesla sales fell by 9 percent in 2025, its second yearly decline
Late stage capitalism, protracted and targeted destruction of public education and health systems, lack of STEM focus eroding most of their massive lead in innovation, overemphasis on preservation and subsidisation of dying energy vs new energy (also contributing to innovation losses), overemphasis on meaningless politics and culture wars that ultimately mean absolutely nothing, excessive inequality resulting in the destruction of productivity in the lower ~50% of the wealth pyramid, over-extraction of the middle class leading to declining birth rates (increasing reliance on immigration), poorer health outcomes than other developed countries due to numerous factors (broken overly exploitive health insurance system, terrible diet/obesity, decreasing vaccination rates), toothless antitrust leading to monopolies/duopolies in most critical areas further exacerbating the rent-seeking and over-extraction, loss of soft power due to destruction of the state system under first Trump admin and continued decline due to tariffs and being an unreliable international partner.

So there isn't one reason, there is a ton of reasons.

It's not irrecoverable but it's bad. I honestly hope there is some wake-up moment for Americans when they realise that their leaders have been selling them out for decades now.

jpgvm··on Show HN: BusterMQ, Thread-per-core NATS server in Zig with io_uring
Upvote for Bazel. I think these days I place a lot more value on how well an ecosystem slots into Bazel/friends because monorepos are increasingly more useful and relevant.

So nice to see there are good rules for Zig and that folks are using them.

Also ironically I think starting with Bazel/Buck/whatever your poison of choice is almost always a good move even if people tell you it's overkill. The easiest time to do it as at the beginning, all times after that is too hard and the marginal cost of building with it from the start is minimal.

jpgvm··on Growing up in “404 Not Found”: China's nuclear city in the Gobi Desert
You are a great writer. Would love to hear what came next and eventually how you found your way to HN. :)
jpgvm··on Unifi Travel Router
I was talking about the https://www.gl-inet.com/products/gl-e5800/, it in fact does have eSIM and 2 physical SIM slots.
jpgvm··on Unifi Travel Router
This one has eSIM and dual physical SIM support.
jpgvm··on Go ahead, self-host Postgres
Beyond the usual points there are some other important factors to consider self-hosting PG:

1. Access to any extension you want and importantly ability to create your own extensions.

2. Being able to run any version you want, including being able to adopt patches ahead of releases.

3. Ability to tune for maximum performance based on the kind of workload you have. If it's massively parallel you can fill the box with huge amounts of memory and screaming fast SSDs, if it's very compute heavy you can spec the box with really tall cores etc.

Self hosting is rarely about cost, it's usually about control for me. Being able to replace complex application logic/types with a nice custom pgrx extension can save massive amounts of time. Similarity using a custom index access method can unlock a step change in performance unachievable without some non-PG solution that would compromise on simplicity by forcing a second data store.

jpgvm··on How China built its ‘Manhattan Project’ to rival the West in AI chips
They didn't invent LiPo (and you probably don't want those in a car), nor did they invent LFP (LiFePO4) but they did license it when no one else wanted to and turned it into probably the best EV battery tech you can buy today. They didn't innovate a ton on the chemistry but they did on the packaging side, BYD and CATLs structural pack designs exploit the low thermal runaway characteristics in a way that wouldn't be safe for NMC etc to reach near parity on density but with better longevity and cost.

They will be the first to sodium ion and solid state though.

jpgvm··on How China built its ‘Manhattan Project’ to rival the West in AI chips
Yeah I think it's likely they get an EUV machine working but with less efficiency than ASML just because of how long it takes to tune these beasts and work out all the kinks.

The big brain move is to try leap-frog the whole thing with XFEL. Smaller wavelength, way brighter source, no vaporized tin particulate, etc. It's a much bigger lift, new optics, new resists, etc. So a completely brand new supply-chain from scatch but with no competitors on that tech yet and low will for Western companies to try compete on it because they need to get money out of existing EUV tech first.

This is very similar IMO to Chinese auto manufacturing. Their ICE cars never really did meet the same standards as European or Japanese manufacturers despite JVs etc.

However EVs and green-tech are analagous to the XFEL path, they built from scratch and leapt over the competition that was happy to sit on it's existing profitable tech instead.

jpgvm··on Roomba maker goes bankrupt, Chinese owner emerges
What exactly can the Chinese government do to hurt you in your own home in America?

Now think about what the American government can do to you.

jpgvm··on Framework Raises DDR5 Memory Prices by 50% for DIY Laptops
They are indirectly.

DDR4 fab capacity should have stayed constant as DDR5 was brought online.

The mechanism that powers that is usually the top tier brands selling their used fab equipment to China who then keep mass producing the legacy DRAM while fabs in Korea are converted to manufacture the new standard.

Instead all of those machines have been warehoused because Korean firms fear US sanctions/punitive tarifs if they were to offload that equipment to China.

So what has happened is DDR4 capacity has actually shrunk massively when it shouldn't have, DDR5 capacity was only barely meeting demand and then huge deals were cut that cornered the market.

Tarifs wouldn't help DDR5 a huge amount but without them DDR4 would be dirt cheap right now.

jpgvm··on Sam Altman’s DRAM Deal
The BYDs exported to Europe are made in Thailand.

So no, they are the Euro spec car.

jpgvm··on Sam Altman’s DRAM Deal
Atto 3 is $19.3k USD in Thailand.

So it's really just tariffs and taxes making it that expensive elsewhere.

jpgvm··on Advent of Code 2025
IMO it's maybe the best suited language to AoC. You can write it even faster than Python, has a very terse syntax and great numerical performance for the few challenges where that matters.
jpgvm··on Rebecca Heineman has died
RIP Burger. Thanks for all the epic games and stories.
jpgvm··on Hard Rust requirements from May onward
So the main reason that doesn't work sometimes is how you are using Rust. For instance right now I'm leaning into the Rust Embassy ecosystem which is async based, the drivers need relatively deep integration with the embedded-hal-async layer which is far from trivial to do with C bindings.

In practice I end up rewriting drivers. Which sounds daunting but often times it's much easier than folks think and the resulting code is usually 1/4th or smaller the original C code. If only implement what you need sometimes drivers can be less than 100 lines of Rust.

jpgvm··on John Carmack on mutable variables
Dude isn't a god.

That said it's worth listening when he chimes in about C/C++ or optimisation as he has earned his respect when it comes to these fields.

Will he crack AGI? Probably not. He didn't crack rockets either. Doesn't make him any less awesome, just makes him human.

jpgvm··on Let's Help NetBSD Cross the Finish Line Before 2025 Ends
Migrated them onto a toaster to reduce hardware footprint.
jpgvm··on Disable RDSEED on AMD Zen5 Turin because of an error
RDSEED and RDRAND always seem to be causing issues heh.
jpgvm··on Typst: A Possible LaTeX Replacement
If Github would add native rendering for Typst it would be really nice replacement for Markdown for READMEs.
jpgvm··on U.S. hits new low in World Happiness Report
FWIW I live in a small semi-rural community in Krabi province, but it's an easy assumption to make. :) Also I did live in Bangkok for several years so I guess it's only a few years off temporally.

If anything I feel the people are happier here than in Bangkok which was by far wealthier and full of (traditional) economic opportunity. Here it's a combination of tourism in the nearby beach areas and lots of agricultural business (rubber, pineapples, etc).

As long as money isn't a problem it's not something making you unhappy. Having more than you need isn't going to directly make you happy, it can certainly help indirectly though.

Instead the things that make people happy are mostly family and community in my experience.

With that in mind there is a lot of reasons for people to be happy here - beautiful scenery, clean air, close community (I know pretty much everyone in my neighbourhood) and very active Chinese shines, Muslim mosques and Thai buddhist temples. Family life here is good, it's safe, there are good schools etc.

I used to think other things were more important but since moving here I have come to appreciate that these things are what matter and why people stay.

jpgvm··on U.S. hits new low in World Happiness Report
All happiness is relative to expectation.

I have lived in Thailand for the last ~8yrs. It's unfortunate not to see it on the list as I think generally speaking Thais are much happier than either US (where I travel a lot for work) or Australians (my home country).

A big chunk of that is the expectations, they don't need many material things to enjoy life and place a much higher emphasis on community and social standing (which isn't primarily derived from material wealth). Your occupation in Thailand has a very large impact on your social standing - more than the income you derive from it. i.e doctors are extremely well respected, however public doctors more so than private ones despite the latter being more wealthy.

Sense of community is something that builds you up rather than the Western trope of comparing yourself to your neighbour that breaks you down.

That very simple difference seems to have an outsized impact on how happy folk are here.

There are exceptions and Bangkok is much more Western but if you live out in the country like me then Thailand is a very happy place.

jpgvm··on Python has had async for 10 years – why isn't it more popular?
Because they chose the wrong API (well more correctly created a new, worse one).

In order to appease the various flavours they mixed and matched stuff from Tornado, gevent, etc.

They should have stuck with the most seamless of those (gevent) and instead of having it monkey-patch the runtime go the Java VirtualThread route and natively yield in all the I/O APIs.

This would have given a Go-esque ease of use and likely would have been immensely more popular.

jpgvm··on Use One Big Server (2022)
Right now the big bucks are in managing massive bare metal GPU clusters.
jpgvm··on China is eating the world
Their edge will be population size. For China to remain less economically powerful than the US their standard of living must remain massively below that of the US.

That is just unrealistic on a longer timescale.

jpgvm··on Why leather is best motorcycle protection [video]
Hopefully these go from being expensive pieces of gear that only few have to being completely normal/common-place. They are a great technological improvement but right now they are out of the budget of most of the motorcycling world (which outside of the West skews heavily towards lower incomes).
jpgvm··on Why leather is best motorcycle protection [video]
The road to heaven is full of bikers who had right of way.
← PreviousPage 3 of 34Next →