Hacker Newsnew | past | comments | ask | show | jobs | submit | winrid's commentslogin

The main benefit of python to me is that while slow, it's predictable. I do think they're going to get a lot more resistance to adding JITs, moving GCs, etc. it will become java with a million knobs to tune. If people want a JIT'd python just use pypy, right?

Java lost almost all those knobs a while ago (I mean they're there, but you're better off relying on the defaults). The modern GCs have one or at most two knobs remaining, and even that will become unnecessary next year. As to predictablity, you get maximal pause time of well under 1ms for heaps up to 16TB.

The max pause time thing is a meme :) I have gotten multi second pause times with ZGC. It depends on what hardware you run it on.

The new generational ZGC? I'm sceptical.

Have a reproducer?

Next year? Do tell


As far as I know, java has 7 GC implementations, none of which are perfect, all of which have drawbacks

Lately, they seems to work with CRIU, various heuristics, multi-stage in-process bytecode compilation ..

Java is a mess, they are working hard to avoid fixing their issue (that nobody else have, so fixes are available)


>As far as I know, java has 7 GC implementations, none of which are perfect, all of which have drawbacks

Compared to Python's, all of them are beyond perfect. And 99.9% of the time you don't even need to use anything but the default.


> Compared to Python's, all of them are beyond perfect.

I somehow understand the situation less after reading this.

Is Python's GC bad, or are there cyclic reference issues? Is it possible to detect cyclic references perfectly? What does beyond perfect mean? If we have 7 and 0.1% of the time you need one of the 6 that is non-default, how do we choose? Is the understated version of "Compared to Python's, all of them are beyond perfect" "I think Java's are great"? If not, what about Python's impl makes it so lackluster to any of 7 of Java's?


> Is Python's GC bad, or are there cyclic reference issues?

Unless you're being pedantic and including reference counting without cycle detection as GC, if your GC has cyclic reference issues, your GC is bad.

> Is it possible to detect cyclic references perfectly?

Yes? That's the entire point of tracing GC. You have some set of root objects that you start with (globals, objects on thread stacks, etc.) and then you mark every object that's reachable from them. Anything that's not reachable is garbage, even if there are cycles within them.


As Python using SRE and supporting Python Flask apps, most of us would love JIT in Python assuming it pretty much drop in replacement.

PyPy doesn't have the support it needs and is stuck on 3.11.


It is the same for me. Predicability is better than any optimization.

Why not just use Go? It has a proper concurrent, non-moving GC that, AIUI, has not been associated with sudden memory spikes.

For a new project, teams can decide whether to use Go, but there are many millions of lines of existing Python servers out there.

Not to mention that there are differences in ecosystem, familiarity, and ergonomics that may make a team want to stick with Python.

“Just use Go” is not really actionable advice in most cases.


Libraries. I use both languages, and a survey of what libraries are available is part of picking an implementation language when starting a greenfield project.

And if people want python with java, there's always Jython.

jython has been basically unmaintained for quite some time

Well, they never made the jump to Python 3. But shipping 2.7 interpreters in 2024 was quite an achievement on its own. So their users already know this pain. And from my experience in academia, python 2.7 and java 8 will probably be used for another 20 years before the last machine running that stuff burns out.

Jython is unmaintained, I'd recommend Clojure. Use python libraries and code while seamlessly targeting the JVM.

Graal vm has support for python 3 unfortunately it’s funded by oracle.

If it makes you feel any better (it probably doesn't), the development of OpenJDK and the Java language itself is also mostly funded by Oracle

Java is funded by Oracle, all of it.

People parrot to use OpenJDK without understanding it is mostly Oracle employees working on it.

And if you dislike Oracle, the other minor contributors are Red-Hat, IBM, SAP, Microsoft, Alibaba, Azul,... which for many HNers are the same.


jpype and graalpy are life.

jython went EOL.with python 2 going EOL.


Resistance from anyone who matters to the developers?

Claude writes java pretty well, and faster than Rust. It's a great middle ground for some projects. I've switched back from Rust to Java for some things.

I don't know why you would use Python at all except for small iterative projects. If you hate java for some reason, there's Go...


It certainly makes sense to use python for ML or data science.

Right sorry, that's not in my wheelhouse so I didn't think of that. I should be more specific. For general backend / data processing/pipeline stuff, API servers ...

I rebuilt the entire fastcomments moderation UI 2yrs ago with webstorm on my 16gb thinkpad. 64gb is nice but not needed. I wonder if every dev didn't use an M4 Pro if software wouldn't be so resource hungry...

Still building https://FastComments.com :) I'm planning on launching a desktop app for it soon with a combined forum. So you could have a community on something like discord, but all the chats are indexed and searchable through a web forum style interface as well. The desktop app is a native C++ app so no electron :)

I'm also working on launching https://watch.ly (network/fs sandbox with human in the loop for ai agents), mostly waiting for the entitlements from apple at this point...

oh and I launched https://dirtforever.net recently to keep Clubs going for Dirt Rally 2 without the EA servers. Learned about the egonet protocol and made a server.


"claude, connect to a k8s pod in prod and grab a 30s cpu profile, analyze and create a performance test locally for the top outlier, verify your fix and create a PR"

Should companies be forced to retain talent of a certain age group? Should they be forced to retain less competent people? How do you expect this to work?

In Sweden,the Employment Protection Act, (LAS ) mandates 'last in - first out', meaning if there are layoffs due to over-capacity, people with seniority (years of employment) take priority for available positions. This is kind of partioned by profession-group, so yes you can fire nurses but keep doctors, or other way around. (Its been a while since I looked into it, but thats the rough gist of it)

Yes, and that makes working for a Swedish company so much better. You know you can’t just be shown the door at any moment after years of service and you get a lot of peace of mind which is worth more than the inflated salaries in the US. There is still a way to get rid of people, of course, but that goes a little like the Japanese do: just don’t give any important work to the person, or give them a bad performance review. People quickly understand they need to move on and they can do it with dignity.

That also means that a) it's harder for younger people to get a stable job b) the bare minimum of work not to get fired decreases over time, which is bad for productivity.

https://en.wikipedia.org/wiki/Insider%E2%80%93outsider_theor...


If a significant share of your employees optimise in the sense of doing the least of work possible, without getting fired, you have a huge problem anyways. Usually, given the right conditions, people have intrinsic interest in doing a good job. Even if their motivation is more of the extrinsic type, there is more to it than getting paid.

Not everyone has an interesting or well-paid job. Or competent manager.

I have worked a fair share of that kind of jobs in the past. The colleagues on my level who cared about more than being paid and not getting fired where the absolute majority. People want to belong. They want to work. The ones who are the exception of the rule can be seeded out pretty quickly. You do not work for an organisation for 10+ years, wake up one day and switch to pure opportunism.

As for incompetent management, that problem can not be solved by churning workers. It can only be solved by better career paths and selection processes for management roles. The most intelligent people in an organisation are often more interested in getting things done than getting more power.


Yes, it only works in a high trust society where there’s plenty of jobs and people actually care about doing a good job (any company will have incentives, people can’t just sit around and do nothing, lots of social pressure too if you’re a slacker). But hey, that’s been mostly true (until recently, I hear immigrant unemployment is really high, while “local” unemployment is close to zero, but the official statistics sit in the middle at around 7% I think, much higher for the youth).

Or if you really want to get rid of someone you can buy them out with a severance deal that is better than standard and hope they take it.

In my experience those people get juicy positions doing nothing useful as they their competence long atrophied due to zero pressure to keep their knowledge up to date. Of course now companies hire "consultants" to work around to issue, so those get fired on a week's notice when money is tight. The warm bodies remain in their chairs until retirement. Inefficiency remains a huge problem in Swedish economy, but no one dares to touch these archaic rules (BTW no minimal wage in a European country, WTF?) due to political reasons, so the immigrants get the blame instead for everything.

Its a choice - work hard with minimal securities, get better salary. Heck, one can do that in many EU places when working as self-employed on contract (if legal), and be paid by just billed days, no vacations or sick days. Its actually pretty good career path in the beginning of one's career in software development, get more money and ie invest in a property. Then get more secure permanent position, coast more and enjoy and appreciate more those stability benefits.

But high economic performance this isn't. Adaptability of market to ever-changing world that certainly isn't neither. Europe is getting hammered by this and things will get much, much worse in upcoming years. We will have to revisit our comfy lazy attitude towards work, or end up being a stagnant place with 3rd world salaries and corresponding QoL.

Switzerland is doing things much better, its sort of in between both extremes and economy is reflecting this very well. But EU leaders egos will sooner accept poverty than that somebody figured out things better than them.


The Netherlands recognized the problems with the last-in-first-out system and requires that after a reorganization, the statistical distribution remains the same. How well that works is hard to say because the level of unemployment in The Netherlands has been quite low for many yours.

What I hear is that Switzerland is a bad example. Many people there struggle to make a living.


> What I hear is that Switzerland is a bad example. Many people there struggle to make a living.

The poverty rate in Switzerland has increased (source:https://www.bfs.admin.ch/bfs/en/home/statistics/economic-soc...) but is defined as:

The poverty line is derived from the guidelines of the Conference for Social Welfare (SKOS). In 2024, it was on average CHF 2388 per month for a single person and CHF 4159 for two adults with two children.

I live in Zurich (by far the most expensive city) and while 2388 (or 4159) would be tight (depending on housing) it would still afford you a fairly comfortable life with access to top quality healthcare and public transport. Life quality wise one could argue that poverty in CH is a better option than a middle income in a lot of European countries.


Outside of Zurich rentals are not even that bad. You can easily get a nice apartment for 1500.- or even less. If one is struggling financially, rents are lower e.g. in Aarau district, starting from around 1000 and you can commute from there. Spending 1000 when the median salary is around 7000 is really not that bad. Low inflation in Switzerland meant other European locations are now at the swiss level or sometimes even above.

Yeah Switzerland has rather few poor people and very strong middle class. And poor ain't some US version of homeless/trailer park living, just lower income, less fancy clothes, shopping in cheaper supermarkets, less/no vacations abroad.

lol does all of European tech companies combined even make more than what the EU brings in from taxing US companies yet?

Why don't you research this and report back your findings. Learning is a cool experience, compared to prejudice.

Just for others, it seems this was already an article so it came up quickly, but for fines, not taxes.

"In 2024, the total income tax paid by all publicly listed European internet companies combined was approximately €3.2 billion. This total, which includes firms like SAP, Adyen, Spotify, and Zalando, was notably lower than the €3.8 billion in fines the EU collected from US tech giants in the same year"


China is hiring engineering talent. US is firing. Nobody forces anybody to do anything. Just pointing out the current state of affairs in the long life cycle of empire. As Ray Dalio says US is very late stage declining „financial capitalism”. While China is early stage aspiring „production capitalism”. It is not like late stage declining USSR needed as many engineers as it did when it wasnt collapsing. USA is a collapsing empire. China is growing.

from what I know, Chinese engineering grads are becoming food delivery couriers because there's not enough opportunity?

the other way around is kind of how libgdx games run on iOS :)

Could just be the status page software itself. It looks like it uses https://github.com/louislam/redbean-node which is kind of cursed

> This automatically generates the tables and columns... on-the-fly. It infers relations based on naming conventions.


"healthcare company lowers cost instead of absorbing new found profits" sounds like an Onion headline


news on inter-dimensional cable


news on inter-dimensional cable

Is that channel available on Blippo+?


The bean is already only like 2% caffeine lol so cheap decaf can definitely really be "half caf" even if they say that.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: