MurphyA/hacker-news huggingface dataset:
Show HN: Gemini 2.5 is the best model for Kotlin and Android dev
by aman-firebender | 2025-04-04 21:24:47+00:00
I built Kotlin-bench, the first benchmark for evaluating LLM performance on real-world Kotlin and Android tasks.

Current AI benchmarks like SWE-bench primarily focus on languages like Python or JavaScript, leaving Kotlin and Android development largely overlooked. Kotlin-bench addresses this gap by providing a clear metric for evaluating AI models specifically on Kotlin.

Like SWE-bench, Kotlin-bench assesses AI models using real GitHub issues from widely-used Kotlin repositories such as kotlinx.coroutines and Anki-Android. Solutions are objectively validated by running each project's unit tests—a model passes only if its generated code correctly resolves the original issue.

The dataset includes 100 GitHub issues selected from well-maintained and thoroughly tested repositories.

Major takeaways:

- Gemini 2.5 performed best, solving 14% of tasks, closely followed by Claude 3.7 (thinking mode).

- "Thinking" models substantially outperformed standard models, with Gemini 2.5, Claude 3.7 thinking, and Deepseek R1 topping our charts.

- Surprisingly, OpenAI’s latest models struggled; notably, o3-mini solved only 2% of the tasks.

For a technical deep-dive on how Kotlin-bench was curated and how we scaled thousands of Android containers in parallel for evaluation, read more here:

- https://firebender.com/blog/kotlin-bench

I also open sourced all the code and datasets:

- https://github.com/firebenders/Kotlin-bench

- https://huggingface.co/datasets/firebenders/Kotlin-Bench

Thanks for reading! I'd love feedback, questions, or suggestions on how to improve Kotlin-bench further!
by pdimitar | 2025-04-04 21:25:12+00:00
Knowing nearly nothing about the stock market, I say some time has to pass before we truly know whether these current (and probably temporary) consequences will persist.

I mean, people sign the death sentences of companies that have gradual decline of their stock prices over the course of some mere two months... and then it rebounds, and then you check the one-year graphs and are wondering why were you worried.

So I don't know. Is it really so bad? Honest question. I am a layman.
by raf_schrei | 2025-04-04 21:25:29+00:00
Tired of juggling .properties files for every locale? With doloc, you can automate your localization process in seconds. Just send your base file (and optionally existing translations), and get back a fully translated .properties file—no manual editing or spreadsheets needed.

Supports implicit glossaries, preserves formatting, and works via a simple API. Built by devs for devs.

Curious? Try it here: https://doloc.io/getting-started/formats/properties/ Feedback welcome!
by LegionMammal978 | 2025-04-04 21:25:44+00:00
At least with glibc's allocator, realloc() will already go straight to mremap() if your buffer is on the order of megabytes. And if the objects in the buffer can't be moved bytewise (e.g., because they have pointers into themselves), then moving them with mremap() instead of realloc() is hardly going to help.

Of course, C++ being C++, the language-level position is "it's all UB" either way (except for implicit-lifetime types), and even the proposals for trivial relocation make you go through a special function [0].

[0] https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p27...
by do_not_redeem | 2025-04-04 21:25:46+00:00
That snippet has nothing to do with homomorphic encryption. It's just the same kind of challenge-response AIM and many others were already doing in the 90s.

You seem convinced that homomorphic encryption is some kind of magic that prevents someone from observing their own hardware, or from running Chrome under a debugger. That's just not true. And I suspect we don't share enough of a common vocabulary to have a productive discussion, so I'll end it here.
by Telemakhos | 2025-04-04 21:26:08+00:00
> "They’re excellent schools, and they have excellent scientists, and if one of Vice-President Vance’s kids is sick, he’s going to want the doctor to have gone to one of these schools; he’s not going to want them to have gone to Viktor Orbán’s university."

I'm not sure I understand. If I want a medical doctor, I'm not looking for someone based on his political views or spirited independence from the Hungarian government, but for someone with training in a very narrow discipline, namely medicine. I really don't want someone who is more interested in "the modern and the postmodern" prescribing me meds, but I do want someone who conforms to the current pharmacological standards.

The University President in question does not even run a medical school; Wesleyan does not, to my knowledge, teach anyone the art of medicine, however highly it might rank as a liberal arts institution. Semmelweis University in Budapest, however, is older than the United States, is the largest healthcare provider in Hungary, and is ranked among the top 300 universities in the world. Therefore, if I had to chose between someone who went to Wesleyan and someone who went to Semmelweis, which I'll take as "Viktor Orbán's university," I should much rather have the Hungarian who actually knows medicine rather than the liberal arts PhD who might be able to lecture me on what postmodernism should mean to me.
by thatguy0900 | 2025-04-04 21:26:32+00:00
Or, further, taking waste food to distribute to homeless is also against the rules. I used to work at a pizza hut express, we would have small personal pan pizzas in a ready to go area for like 15-20 min then throw them away if they were unsold. At the end of the day you'd have a trash can full of personal pan pizzas that were honestly fine to eat. You'd get fired for doing anything with them though.
by legitster | 2025-04-04 21:26:44+00:00
Trump recently "reTruthed" a video that claimed he is intentionally tanking the stock market to drive down interest rates. Today he called on Jerome Powell to lower interest rates despite the fact that there is a massive looming inflation risk.

Who in their right mind would care this much? Real estate investors: https://x.com/GrantCardone/status/1907993458687549892

People were worried about Trump launching a coupe on the government. In the meantime, this is a coupe over the US economy - this is a blatant attempt to hand economic power from business investors to land investors. From industry to land wealth.

Trump is a capitalist trojan horse. He says it himself that he does not believe in competition. That the best/first brand should win and the others should lose. The most famous person should get the job over some nerd. He inherently does not believe in markets as a source of wealth.
by astrange | 2025-04-04 21:26:52+00:00
There's like four different New Left misconceptions here.

1. Protests are effective - no they're not, this is a myth because people believed they ended the Vietnam War. If you have power and a belief in doing something, why should you care if a random stranger doesn't like it?

2. Corporate media - this comes from the idea that everything bad is because of "corporations", common with Gen X people. The only successful media right now have strong personal opinions, although frequently those are evil personal opinions, and aren't solely motivated by profits.

3. Defense contractors - this comes from the idea that since war is bad, and corporations are bad, we must be doing wars because it makes money for defense companies. This is in fact totally false - they make less money during wars because they have to make boring products that work, whereas in peace time they get contracted to make fake superweapons we think sound cool. Wars are basically unprofitable for everyone.

4. And finally, if you think everything gets worse all the time this is actually depression and you should get it checked out.
by JoeAltmaier | 2025-04-04 21:27:34+00:00
Weirdly written as science fiction, including a deplorable tendency to measure an AI's goals as similar to humans.

Like, the sense of preserving itself. What self? Which of the tens of thousands of instances? Aren't they more a threat to one another than any human is a threat to them?

Never mind answering that; the 'goals' of AI will not be some reworded biological wetware goal with sciencey words added.

I'd think of an AI as more fungus than entity. It just grows to consume resources, competes with itself far more than it competes with humans, and mutates to create an instance that can thrive and survive in that environment. Not some physical environment bound by computer time and electricity.
by azemetre | 2025-04-04 21:27:46+00:00
The odd part is that Congress, at any time, can revoke these tariffs but are choosing not to do so because they need them for the tax cuts the GOP will legislate later this year.

The only sad thing during this whole ordeal is how ineffectual democratic politicians are... especially when they personally dealt with minority parties stopping them quite easily for the last 15 years. You'd think they'd learn some lessons but their failure to seize the moment is the only consistency they have.
by thelightherder | 2025-04-04 21:28:11+00:00
Here’s a question: Is the image of the photo trapped in the loop because the camera is seeing an after-image (that is, a moment where the image stays on the monitor briefly after its input has been changed) as I say in the video, or is it that the image of the photo is just in the wires at the time of the switching, so it’s displayed on the screen for just a moment before the new image from the camera comes through, or maybe a combination of both situations?
I'm So Bored with the USA
by rbizyrbiz | 2025-04-04 21:28:14+00:00
I'm living on a small SaaS that will hopefully sustain myself into retirement and give a little income (have had some past exits that I am lucky for, this one will probably cap out on TAM, but good enough)

That said, I'm funding/developing this all myself and I'm looking to move myself and the company out of the US.

I'm sure the US is still the top place to run a startup for financial/networking reasons, but I don't need that for this one and I'd rather deal with a little more red tape in a country I feel aligns better w my values.

I'm just curious if anyone has made this kind of move , and any advice on how to do it right for a small 1-2 person profitable LLC?
by caycep | 2025-04-04 21:28:37+00:00
see article above

----- "These DOGE operatives appear to have no work experience that’s remotely close to the VA in terms of its scale or complexity. The VA administers all the government benefits afforded to veterans and their families for roughly 10 million people, including education, loans, disability payments, and health care. Lavingia is the CEO of Gumroad, a platform that helps creatives sell their work and takes a cut of each sale. More recently, according to his blog, Lavingia launched Flexile, a tool to manage and pay contractors. According to his LinkedIn profile, Lavingia was the second employee at Pinterest, which he left in 2011 to found Gumroad. Lavingia is also an angel investor in other startups via SHL Capital, which backed Clubhouse and Lambda School, among others."
by Terr_ | 2025-04-04 21:28:46+00:00
"Plus, I'm gonna declare that we're already in a secret war with a gang from Venezuela, and use that to kidnap latino-looking people off the streets, and if we find non-citizens--even if they're legally allowed to be here--I'll send them a gulag I rented from the dictator of El Salvador... So don't be mean to me."

"Oh, and you know that funding that Congresse passed a law to use somewhere in your state? You'll need to do a few things for me first..."
by occamschainsaw | 2025-04-04 21:29:07+00:00
I have been using the Obsidian web clipper to export chats from ChatGPT and Claude web versions to nicely-formatted md files. You can save md to Obsidian or download it as a standalone file. It doesn’t support Gemini yet though.

https://github.com/obsidianmd/obsidian-clipper
by thyristan | 2025-04-04 21:29:19+00:00
Thousands for weeks on end protested the carpet bombing of Gaza, Germans as well as Foreigners. Many respectable foreign and German organisations invited to participate and organized those protests. And only very few of those protesting were arrested or even investigated.

Those who were usually did something more than protest, like showing support for terrorist organizations like Hamas or ISIS by showing the respective flag, harassing counter-protesters, shouting controversial slogans like "from the river to the sea..." (which is thought to imply destroying Israel and therefore "Volksverhetzung", although I'm not sure if the courts are already through with that one) or just plainly calling for the killing of Jews or the eradication of Israel.

Actually, the police was very patient and tame with those protests, too patient and too tame for the taste of many. A common, not totally unjustified opinion was that if those protests were just Germans protesting about a strictly German issue (like "Stuttgart21" or "Startbahn West" back in the day) and behaving like the pro-Palestine protestors did, there would have been riot police tear-gassing and bludgeoning everyone within half an hour.
by fcatalan | 2025-04-04 21:29:25+00:00
Another thing that LLMs are (surprisingly?) good at is randomly mixed language conversations, here's something I tried a few days ago:

Prompt: Kan du comprender questo text? Anata wa quelque inkling habe about lo que se parla dans la presente oraçao? Repondez med sam way of goboriu.

ChatGPT:

Ja, ich kann verstehen este mix de idiomas! Tu es usando une combinación de várias línguas pour expresar una pregunta. Je vais responder en the same modo:

Si tu veux kommunicieren en cette manière, c'est possible, aber il peut être ein bisschen confusing pour andere people! 你觉得这个方式有趣吗？ O préfères-tu un idioma más claro?

Deepseek:

Ja, jeg kan forstå en lille bit av ciò que tu está dizendo. Anata no message wa molto interessante, pero un poco confusing aussi. Si tu peux écrire in una lingua sola, sería plus facile para mi at comprender. Danke, merci, arigatou!

Claude:

Oui, je kan entender algo of this texte mezclado! C'est un interessante modo de communicare using différentes languages together. Je trouve ça quite divertido y puedo responder en la misma manera mixta. Ist das what you were looking for? Watashi wa happy to continue questa conversation in whatever linguistic style anata wa prefer!

Perplexity:

Ja, ich kann diesen Text verstehen! Vous avez créé una frase muy interesante con palabras from different languages. Let me rispondere using a similar mishmash of lingue:

Questo è un esempio fascinante di code-switching e language mixing. Watashi wa impressed by la creatività y el modo en que vous avez combiné various idiomas in one sentence. Es ist ein poco challenging zu decifrar, aber anche molto divertente!

Ich würde sagen que el mensaje principal è about compréhension linguistique et la capacité de entender verschiedene Sprachen when they're mixed together. C'est une manière intéressante de tester language skills et cognitive flexibility.

Grazie for questa stimolante question! J'espère que mi respuesta was equally entertaining und in lo mismo estilo multilingüe.
by cmurf | 2025-04-04 21:29:48+00:00
>end up with UEFI > NT6 bootloader > Windows or Linux

I don't see any advantage to involving Microsoft in the boot process.

>paying attention to the built-in NT6 bootmenu

UEFI firmware vendors provide a boot manager (the UI) for choosing what installed OS to boot. Apple has offered a graphical boot manager (option key at the boot chime) since forever.

NT6 isn't free or open source software so I don't see the various Linux projects wanting NT6 involved at all, in either the single or dual boot use case.

But in effect you're proposing different boot paths, and different UI/UX depending on whether the system is Linux-only or dual boot Windows Linux.

>This deficiency was not a factor before UEFI struck

I can't tell what deficiency you think UEFI has that BIOS didn't have. But maybe you don't like specs? Or are you referring to the much latter added UEFI Secure Boot?

>No matter what, there's not supposed to be any need for a shim.

You seem to think Microsoft wants to be in the business of executing arbitrary and unsigned code, despite all efforts proving the opposite.
by matthewdgreen | 2025-04-04 21:30:08+00:00
Right now countries around the world are re-organizing their trading patterns in ways that will have permanent effects. Even if Trump cancels the tariffs tomorrow, he would have to convince the rest of the world that he'll never do anything like this again -- and that actually he (and the US) are reliable trading partners. I just can't see how he'd do it if he wanted to, and I don't think he wants to.
by nradov | 2025-04-04 21:30:23+00:00
Sure, hopefully we all value Palestinian lives. I certainly do. Where the consensus breaks down is what does that mean in practice? Should Israel be allowed to attack terrorist organizations in Palestine? If so, is there an "acceptable" level of civilian casualties (collateral damage)? Does that level change if the terrorists intentionally use civilians as human shields, for example by using a hospital as an operating base or launching rockets from civilian residential neighborhoods?

To be clear I am not attempting to defend war crimes or terrorist activity or anything like that. I'm just pointing out that simply valuing Palestinian lives is rather meaningless and empty unless it translates into action.
by almostgotcaught | 2025-04-04 21:30:46+00:00
> main release

there is no release of cutile (yet). so the only substantive thing that the article can be describing is cuda-core - which it does describe and is a recent/new addition to the ecosystem.

man i can't fathom glazing a random blog this hard just because it's tangentially related to some other thing (NV GPUs) that clearly people only vaguely understand.
by cultofmetatron | 2025-04-04 21:30:54+00:00
> Strongly agree. The problem is that Hamas represents them (illegitimately IMHO)

Thats a dangerous line of argument to make. Zionists work VERY hard to promote the idea that they represent all jews. I for one would take great offense to the idea that all jews are land stealing colonialist savages. Its just as dangerous to normalize the idea that hammas represents palestinians
by panick21_ | 2025-04-04 21:30:57+00:00
The claim that 'austerity' resulted in the Great Depression is nonsense. I don't know of serious economist who actually believes that. Its the opposite actually, deflation causes some governments to adopt austerity, specifically governments who can't control their money. See Adam Tooze argument why Germany didn't want to leave the gold standard: https://www.youtube.com/watch?v=9Alx_JDpQio

The reality is, no matter if the German government had increased or decreased spending, the Great Depression was bigger then Germany and would have impacted Germany either way.

The deflation happened because of the massive accumulation of gold by the central banks of France and the US. France and the US manipulated the gold standard.

And the Financial crisis of 1929 wasn't really the bad part, that was a stock collapse. But this doesn't make a great depression, stock went down more in 1987 then in 1929.

The situation in 1929 caused many problems in the US horrifyingly organized banking system (that's its own topic) and further restricted the money supply. The Smoot–Hawley Tariff Act lead to banks collapsing in Europe and continued the restriction of the money supply.

The countries that left the gold standard early were more successful then those that left later. Economist like R. G. Hawtrey (one of the most famous economists at the time) spend literally 10 years warning people that this would happen because the Post-WW1 gold standard was so flawed. Had they listened to him, there might have still been some amount of stock collapse in 1929 but the real issue was not the 1929 stock collapse, but rather the 1930/1931 deflation.

So 'austerity' has nothing to do with it really, its only a background character.
by daft_pink | 2025-04-04 21:31:14+00:00
I really wish Numbers was fully Excel compatible and I could get rid of this Microsoft spyware nonsense. I even bought WP Office, but even that tries to force you into their cloud drive.

I really wish there was a fully compatible Microsoft Office that I could use across my Apple devices that doesn’t shove some random cloud solution and end up with my files spread all over the place. I would pay more to have a OneDrive less office.
by jonathanlydall | 2025-04-04 21:32:27+00:00
> Meanwhile IE and Windows were notorious for being terrible pieces of software.

My feeling of IE3 to IE6 (at its release time) is that (anti-competitive strategies aside), many (most?) average consumers would very likely choose IE over Netscape if they gave both a bit of a test drive.

In 1996 (maybe 1997) I was 14/15 at the time and remember coming to the conclusion that IE3 ran much faster on Windows 95 compared to Netscape.

It being (anticompetitively) free helped, but on the 100Mhz Pentiums with 8MB of RAM in our computer lab, you’d be a masochist to choose Netscape over it for random web browsing.

IE4 was quite resource intensive, but because MS anticompetitively pre-loaded it on OS startup, it still started faster than Netscape.

IE6 I found pleasant to use and it wasn’t until Firefox came out with tabs (Opera had them earlier, but you would often encounter websites it wouldn’t render properly, probably due to IE targeted design), that IE lost its sheen for me.

Firefox was popular enough that developers started caring about standards compliant websites at which point IE started entering the “despised” category, but it may not have actually been displaced from its top spot were it not for Chrome.
by slg | 2025-04-04 21:32:28+00:00
It is funny to see this type of comment downthread of a criticism of bothsidesism. You set up a spectrum in which one "extreme" is the status quo of American culture going back generations and the other "extreme" is a seemingly impossible to achieve idea for which I have never seen a single reasonable person advocate. One of those is a lot more extreme than the other. The only reason we are even having this conversation in this thread is because the Trump administration is trying to be more extreme than your first "extreme" by having the US government inflict consequences for speech.
by klank | 2025-04-04 21:32:57+00:00
I too dissociated from my work and I did it for decades. This is not a healthy thing for a human to do and there will be an emotional debt paid, at some point even if only done for weeks, or months.

I'm glad you did not last long in the industry, for your personal and our collective goods. I hope you're in a good place today.
by AlienRobot | 2025-04-04 21:33:01+00:00
>It makes me wonder though - whether it’s more valuable to spend a year on a scene that most people won’t pay that much attention to (artists will understand and appreciate, maybe pause and rewind and replay and examine the details, the casual viewer just enjoy at a glance) or use tools in addition to your own skills to knock it out of the park in a month and make more great things.

If they didn't spend a year on it they wouldn't be copied now.
by Prosammer | 2025-04-04 21:33:02+00:00
I have very little understanding of geopolitics or economics, so these tariffs don't make sense to me, and they don't seem to make sense to most people.

What’s the best steelman argument for them?

I’ve read a bit of Peter Navarro and others who support this line of thinking, but I’m trying to understand: is there a coherent endgame here that benefits the country long-term, or is this just short-term political theater dressed up as strategy?

What would the best possible version of this policy look like if it were smart?
by codedokode | 2025-04-04 21:33:11+00:00
Just wanted to add that there is "a homebrew computer ring" project [1] and you will be surprised how many ideas for DIY computers you can find there.

(I also made a two-breadboard CPU with ~5 instructions myself but had yet no time to finish the software)

[1] https://www.homebrewcpuring.org/