HNHacker News
TopNewBestAskShowJobs

berkes

6,169 karma · joined February 24, 2011

Ruby and Rust Developer.

[ my public key: https://keybase.io/berkes; my proof: https://keybase.io/berkes/sigs/uXC3DKS9jat3AILQSm_fIb03uxFV1JSKz8MqCKwzD90 ]

submissionscomments
berkes··on Rust Style Guide
I am not familiar with this flag, but will it force, or at least alert these " consuming teams" that the enum they expected has changed?
berkes··on Security Disclosure
A stolen key isn't just a key to your customers' private data.

It's a key to your creditcard. Your revenue will be wiped out if you get the AWS bill after hackers booted hundreds of GPU instances under your account, moved terabytes in your data-transfer budgetm, burned tens of thousands of CPU-minutes in github actions under your creditcard, or used thousands of $s worth of tokens with your AI provider.

berkes··on Today's PHP security release, and how we're strengthening security
PHP foundation also doesn't "Run" the apt or rpm packages, yet they certainly coordinated with debian, and other big distros to push the updates out timely.

Now I don't know what happened here. Maybe PHP foundation reached out to docker but got no help, maybe they simply forgot about docker as distributor of their software.

berkes··on Today's PHP security release, and how we're strengthening security
There's over 3 million downloads per month for the official PHP image. That may certainly not be "most PHP users". But still is a a lot of users.

I'm quite certain that your exact sentiment is why the images weren't updated immediately: I'm afraid PHP foundation doesn't see docker images as a particularly important distribution system.

berkes··on Today's PHP security release, and how we're strengthening security
There should be more interpreters or runtimes. Regardless of the language they are written in. Indeed a rustPHP, maybe a JPHP, cPHP, etc etc. There is zend, but AFAIK that's still using the "official" PHP under the hood. And there is or was hiphop. Not sure how that is going, though.

Because now a vulnerability in PHP affects practically 100% of the users. But with more diversity, it would affect only a part. And if one runtime proves insecure more often than another one, organizations have a choice to move to an interpreter that better fits their security needs.

berkes··on Today's PHP security release, and how we're strengthening security
Several tech stacks have this built in or available.

For my rust applications, I use "cargo audit" which checks all dependencies against the CVEs. For my typescript and javascript applications, deno audit and/or yarn npm audit.

For the rest of the stack `debsecan` does exactly what you want on Ubuntu: report CVEs for installed software.

berkes··on Today's PHP security release, and how we're strengthening security
> Are there structurally much safer ecosystems out there?

Several attributes make a safer ecosystem. An important one is diversity - technical diversity.

For an interpreted language, the runtime is important. Python has several runtimes, as does Ruby. Javascript also has several, from the few browsers, to node, deno and bun. PHP has for all practical purposes, only one. So if there's a security incident in PHP, it affects almost all users. But when e.g. JRuby has a vulnerability, it will affect only a fraction of the installed ruby applications.

For compiled languages, the tooling, libraries and runtimes is where diversity is important. With e.g. rust, the vast majority of CVEs come from libraries (crates). But since there often are several crates for a single concept, diversity helps mitigate here too.

berkes··on Upcoming critical PHP security release (CVE-2026-109618 / -109619)
Depends on how it is set up.

Many modern hosts run php in fcgi mode, where your app is a process that listens on some http port. And where the webserver is "just" a proxy and ssl termination. Shutting down the process is enough.

But traditionally, php was a module loaded into apache. Where apache not only handled ssl, http etc, but also compiled and ran php for you. With that setup, adding an html file, will keep the php runtime and app online.

berkes··on Security advisory: Critical remote code execution vulnerabilities, update now
I honestly don't. It was a real question.

The only times I had to use third party packages for basic stuff, was when developing embedded software on limited hardware.

Do you mean that for async we need third party runtimes like tokyo? Or that types and utilities that many other languages ship by default in stdlib, like http aren't in rusts?

I'm sorry for the tone of my post. It was meant as honest surprise, but I clearly see now how it sounds baity and provoking.

berkes··on Security advisory: Critical remote code execution vulnerabilities, update now
Same here. And for the dynamic content, I host dedicated, small services, or client side code.

Not only 10 years of no more security updates. But hosting static content is cheap, performant and sustainable. Bot literally (you can move the content anywhere, using any kind of server) and in energy sense.

While I understand it is not for everyone to write markdown files and run build commands, I strongly urge anyone with a WordPress or drupal site to give the various jamstacks, or static site builders and guis a test run.

berkes··on Upcoming critical PHP security release (CVE-2026-109618 / -109619)
No real stdlib? What are you talking about?
berkes··on Upcoming critical PHP security release (CVE-2026-109618 / -109619)
The risk is real and large.

And the work to clean up if you get compromised is massive.

berkes··on Beam: Reflection's 501B open-weight model
What kind of company or organization is Reflection?

I think it is ever more important to realize who is releasing models rather than what the models do and how they compare.

Because models iterate at breakneck speed, looking at today's benchmarks is only useful for someone using the models today. Whereas if one builds a product on top of it, or commits to one for a project or team, the company or organization behind it, is far more important. Will they exist in a few months? Do they need a business-model? Are they subsidizing usage with venture capital and how long can they keep this up?

Is reflection a company? University lab? NGO?

berkes··on I asked Meta’s Muse for its filesystem and it sent me 6.8GB
Exactly my thought.

If you get access to a VM, it's not a "security vulnerability" if you then have access to that VM. This was the whole point, the product.

It's almost like returning a car after you bought it with the reason "When I open the door with my key, the door is open and anyone can get in".

berkes··on MCP was always a bad idea?
Follow up, because people asked me about it.

The scripts that were generated included code to determine if joplin was running, and to launch it if not. It included a proxy server, that would listen on a localhost:xxxx and if a HTTP request came in, this proxy would auto-launch joplin and then forward the request/response. It then included quite some code to de/serialize json to/from datatypes.

Part of this "overengineering" came from a "skill" that claude found globally which I wrote for myself when working on a few python tools. The skill required strict typing, demanded refactoring, insisted on doing everything over http (and not local commands).

Basically, the agent could not perform its task over an MCP and should've stopped. But I suspect either tuning or some system-prompt made claude go on instead. It decided to use python, and then found my "requirements for when writing python", followed that, and burned a lot of tokens to make one or two HTTP requests.

berkes··on Can gzip be a language model?
I've been pondering on something related: can an LLM be a chat?

Some models are reproducible, in that the same prompt will generate the same output. Say that we could wire up such a model to generate some code.

In that case, we could create a prompt that generates, say, an entire codebase, or a large piece of text. The prompt (or really, the tokens) would then be the compressed version of the codebase or the text.

I am not talking about an "AI agent", but really a model that we call in a reproducible manner. Preferably one call, with one prompt. An agent could just run `git clone` to "decompress" a codebase, which conflates the idea of compression. If that were compression, then the "compressed version of the git kernel" would be a single line of text: `git clone https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...`. I am really talking about having an LLM re-generate text based on a prompt.

Does that make sense? I can imagine that this is highly impractical and inefficient. But would this count as "compression" at all?

berkes··on MCP was always a bad idea?
Aside from the actual protocol, it makes a lot of sense to have a standardized, discoverable protocol.

Because the alternative, as proposed in the article, is that an agent researches an API/CLI/UI, builds software to interact with it, and then runs that. Every time again. Not only very inefficient, it's unpredictable, and often slow.

Just last week I had an MCP that was down (my mistake) and the agent "decided" that in order to finish my request, it needed to create a python script, refactor that, debug that, and then use that, so it could access my notes (Joplin) over the API and write it's weekly update markdown there. Somehow the thread produced a python tool with over 400 lines of code, five files. It, at some point, even considered putting all that in a git repo. And went on a side-quest to run docker containers.

With the MCP, this job typically takes between $0.05 (Mistral) or $0.90 (Claude Opus). It now cost me $17.00. It took nearly 30 minutes. To write a note in Joplin!

MCPs, or any de-facto standard/pre-known protocol, makes operating on external tools and resources cheaper, faster and above all more predictable.

berkes··on AI-generated posters don’t have to be horrible
Low effort, or low friction?

If I send a single email "subject: poster" "make me a poster for our event, details below, we need 200 printed" that's also low effort. If I do this on fiverr, it's also "unwillingness or inability to spend resources"

> your product or brand.

I think you are conflating a wide audience with a narrow idea. We aren't talking about just the large coorporations, or the popular rockband. There are local bookclubs, a carbootsale, a group of hobby-foo-bars showing their foo-bars at the local pub next month. A concert by "amateurs". Someone looking for an appartment. A cat that got lost.

Do all of these need to show high-effort and/or willingness to spend resources?

berkes··on Spain orders blocks on Archive.today and its mirrors
Misinformation is unfortunately also available. And contrary to "information to build bombs and bioweapons", it's doing actual harm. To societies, economies and above all, to individuals.
berkes··on AI-generated posters don’t have to be horrible
The blog also mentions, several times, that it wasn't the goal to be indistinguishable.

I think it's actually a feature when people can recognize it as AI.

Why would someone want it to be unrecognizable as AI? What is the reason people want to hide AI usage ? (other than when "cheating" in studies or examns or such, obv)

berkes··on Nvidia announces native GPU programming in Rust
The way I understood it, rust would become an option next to Vulkan, WGPU (and opengl etc?).

But only for compute tasks. So, practically an alternative language to write compute shaders in.

berkes··on Mistral X Mozilla: Private, Multilingual AI Browsing
I get that for Mozilla. But what has Mistral done?
berkes··on Apple Reference Image: A New Approach for Verified Photography
Very much agreed.

I believe many of the problems we have, need social and human solutions, especially when the technical solutions are hard or impossible.

Like here, where we can no longer trust images to depict reality and act as proof. While its admirable that people look for technical solutions, the obvious social solution is to admit that images are no longer absolute proof and will become less and less trustworthy¹.

And, by admitting that, change our relation to these artifacts. Sure, that will change journalism, police work, legal systems, etc etc.

But pretending that we can rely on images might allow journalists, police, judges to continue relying on them as if they're authentic, which is a far bigger problem over a longer period.

Social solutions require effort, demand flexibility, take time and are messy. But this is what humans are and do. Not everything has a technical solution. Not every technical solution is the best option.

¹ we already saw this when people claimed "someone must have hacked my iphone and put it there". For decades we've seen this with images that are deliberately taken in a way to spin a story (like the illusion of a large crowd or spacious room through carefull angles or fancy lenses). And I predict we will see this with security footage, "live streams" or even bodycams with "ai enhancement". Just imagine a bodycam or a dashcam that manipulates the output to benefit the owner. "A dashcam that will prove your innocence in assumed traffic violations" or such.

berkes··on Autistici/Inventati's main .org domain goes dark after US terrorism designation
This is much bigger than the banning of a volunteer webhost.

It shows the US government won't go through usual channels when Europeans do things that under european law, are probably¹ allowed.

It shows, again, that US infrastructure is unreliable (in a non-technical sense) and is everywhere.

An Italian bank "sacrificed" their customer because of the risk of losing access to Visa/USD network for international payments. The I in ICANN is not. It is US. Etc.

¹maybe they did break laws. In which case the US would usually ask Italy to deal with it. But either the US government decided this is too much hassle, or they knew Italy wasn't going to help, because under Italian law, everything was fine: we'll never know. But we do know that the US government will reach into European countries to stop NGOs operating there.

berkes··on Play Store blocks AuroraStore, hurting GrapheneOS users
Also, EU is pushing towards more "open" app-stores through anti-trust.

Not that it requires Google to "open up" their play-store, but that they must allow other app-stores to work on the same level. So basically allowing devs and users to move elsewhere.

berkes··on Play Store blocks AuroraStore, hurting GrapheneOS users
What is an "official API"?

Honest question, because AFAIK there's no guarantee or (legal) requirement to support any API. Whether that's fully documented, has SDKs or whether it's something reversed-engineered doesn't matter WRT the support the company owning the API is supposed or required to give.

Or am I wrong there?

berkes··on GIMP Development Update
> most programming languages internal memory representations

Often heard wrt JSON but incorrect. It maps to the primitive types in JavaScript. But almost all programming languages treat floats and integers different, make distinction between char and strings and many have some form of date/time. JSON has neither.

In that direction, XML is much closer since every node is a triple (name, value, attributes) so can have type info, json is a tuple. And Protobuf, while not popular, gets this completely right.

berkes··on GIMP Development Update
So you compress a format that inflates binaries with 30%?

That not only ends up larger than "just the binary", it also eats a lot of extra CPU to (de)compress AND encode-decode.

This idea is novel, but wasteful.

(edit: I thought you were serious, so I answered serious. You were not ;)

berkes··on GIMP Development Update
> Culture is important

Which brings us back to why so many people dislike Gimp, and/or see it as a posterchild example of bad FOSS alternatives.

I agree, and Culture IS important. And I think the culture around many Open Source "Alternatives" is harming themselves and the overall FOSS community. From Mastodon via Gimp to Nextcloud.

berkes··on GIMP Development Update
> with git

I suddenly imagine a zip format with built-in git. Does this already exist?

Basically a file-format that has built-in history, rollback, logs etc. Enabling all these "zipped XML" formats to get this feature "for free".

Could be as simple as adding the .git to the zip and ensuring the software that writes the content to the zip also runs the correct git operations.

But could also be a simplified subset and adding git-ability to the (de)compress libs and bins, which can operate on the compressed .git. Simplified, because it won't need networking/remotes probably not even branches.

← PreviousPage 2 of 34Next →