2,570 karma · joined May 8, 2019 (7y ago) · 1,261 submissions
comment 1y ago · link · parent
How come? The Copy-and-Patch Compilation paper reports:
> The generated code runs [...] 14% faster than LLVM -O0.
I don't have time right now to compare your approach and benchmark to theirs, but I would have expected comparable performance from what I had read back then.
comment 1y ago · link · parent
A CC0 copy-pastable snippet, plus maybe this helper library with a permissive licence. The only way this would go popular is through slacktivism, so you need to remove any friction.
comment 1y ago · link · parent
If the intention was to make it easier to spread the word, you've already failed.
Anyway, this whole library should have been a copy-pastable snippet for a dialog or toast (what's with the duplicate code?); the only value added is the translation, which most app devs already have a pipeline for.
The code part is so trivial that I suspect it doesn't even meet the legal bar for copyright protection in many jurisdictions.
comment 1y ago · link · parent
This at least tries to generate the text out of the actual project, but I'm pessimistic and think it'll cause similar confusion.
comment 1y ago · link · parent
You can mix them. I was using docker-compose with podman instead of docker before switching to quadlets. I still prefer the experience of compose files, but quadlets do integrate much better into systemd.
comment 1y ago · link · parent
This however forces servers to increase the challenge difficulty, which increases the waiting time for the first-time access.
comment 1y ago · link · parent
That's what it's for, isn't it? Make crawling slower and more expensive. Shitty crawlers not being able to run the PoW efficiently or at all is just a plus. Although:
> which is trivial for them, as the post explains
Sadly the site's being hugged to death right now so I can't really tell if I'm missing part of your argument here.
> figure out that they can simply remove "Mozilla" from their user-agent
And flag themselves in the logs to get separately blocked or rate limited. Servers win if malicious bots identify themselves again, and forcing them to change the user agent does that.
comment 1y ago · link · parent
At least that's the spirit, of course someone will eventually just use random strings as user agents, but then again this is all a tragedy of the commons anyway.
comment 1y ago · link · parent
So our parties are drooling at the idea of extending surveillance by EU directive so they can point fingers at the EU instead of risking losing votes.
It's no surprise to me, then, that in the document leaked to Wired in 2023[1], our country's position was the most extreme:
> In our view, it would be desirable to legislatively prevent EU-based service providers from implementing end-to-end encryption.
There may have been external lobbying, but it wasn't necessary.
[1]: https://www.techdirt.com/2023/05/26/leaked-document-shows-sp...
comment 1y ago · link · parent
The representation for C# is very much fixed, as it allows, and very commonly uses, direct access into the string buffer as a ReadOnlySpan<char> or a raw char pointer, where char is the type of UTF-16 codepoints.
JS could maybe get away with it.
comment 1y ago · link · parent
It would probably help teens a lot if affordable helmets didn't look so goofy, it's the main reason we didn't want to wear them.
comment 1y ago · link · parent
So I guess rendering around the notch is the intended experience, but devs don't seem to know or care enough to opt-out, and the bug here is that enumerating display resolutions doesn't take this compatibility mode into account.
[1]: https://developer.apple.com/documentation/bundleresources/in...
comment 1y ago · link · parent
Not knowing much about Macs, I would have thought games were supposed to render full screen around the notch for immersion but respect the safe area for UI and gameplay. Are they supposed to leave a menu bar on macOS?
> Control gets around the issue by just making up its own resolutions.
That's hilarious, I wonder if they had trouble enumerating resolutions and gave up or if they simply couldn't bother.
comment 1y ago · link · parent
They really don't, less than 5% of opam packages depend on Base and that's their bottom controversial dependency I'd say. Barely anyone's complaining about their work on the OCaml platform or less opinionated libraries. I admit the feeling that they do lingers, but having used OCaml in anger for a few years I think it's a non-issue.
What they do seem to control is the learning pipeline, as a newcomer you find yourself somewhat funneled to Base, Core, etc. I tried them for a while, but eventually understood I don't really need them.