Better HN
topnewbestaskshowjobs
Log inSign up

debugnik

2,570 karma · joined May 8, 2019 (7y ago) · 1,261 submissions

Submissions

comment 1y ago · link · parent

> run-time performance is much worse (2.5x slower than LLVM -O0)

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

That's more fitting! I wish I had a popular app to spread the word from, I do like the spirit of your project.

comment 1y ago · link · parent

Not really, it would have maybe avoided the first paragraph. I actually really like copyleft, but I assume the social statement here is more important than the code, thus making it easier to rally around it should be the priority.

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

And they'll gladly close it, them and every other bank. We lack alternatives so we lack leverage.

comment 1y ago · link · parent

> This library is licensed under the GPLv3.

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

> Do they even bother with paying human authors now

I thought Medium was a stuck up blogging platform. Other than for paid subscriptions, why would they pay bloggers? Are they trying to become the next HuffPost or something?

comment 1y ago · link · parent

A couple of years ago the OCaml and Julia languages already had to deal with a content farm that created wikis for them, filled them with LLM-generated, blatantly wrong or stupidly low quality content, and SEOed its way above actual learning materials. Cue in the newbies to these languages being incredibly confused.

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

> I was a huge fan of Podman, but I eventually gave up and use Docker Compose

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

It's the kind of proof my government already asks of me to sign documents much, much more important than watching adult content, such as social security benefits.

comment 1y ago · link · parent

You already provided proof of a living legal identity when you got the ID, and it already expires to make you provide proof again every few years.

comment 1y ago · link · parent

Why does that matter? The challenge needs to stay expensive enough to slow down bots, but legitimate users won't be solving anywhere near the same amount of challenges and the alternative is the site getting crawled to death, so they can wait once in a while.

comment 1y ago · link · parent

And if you don't increase it, crawlers will DoS the sites again and legitimate users will have to wait until the next tech hype bubble for the site to load, which is the reason why software like Anubis is being installed in the first place.

comment 1y ago · link · parent

I'm not using the latest generation of phones, not in the slightest, and I don't really care, because the alternative to Anubis-like intersitials is the sites not loading at all when they're mass-crawled to death.

comment 1y ago · link · parent

Fair, then I obviously think Xe may have a kinda misguided understanding of their own product. I still stand by the concept I stated above.

comment 1y ago · link · parent

That's a matter of increasing the difficulty isn't it? And if the added cost is really negligible, we can just switch to a "refresh" challenge for the same added latency and without burning energy for no reason.

comment 1y ago · link · parent

It happens once if the user agent keeps a cookie that can be used for rate limiting. If a crawler hits the limit they need to either wait or throw the cookie away and solve another challenge.

comment 1y ago · link · parent

That's not bypassing it, that's them finally engaging with the PoW challenge as intended, making crawling slower and more expensive, instead failing to crawl at all, which is more of a plus.

This however forces servers to increase the challenge difficulty, which increases the waiting time for the first-time access.

comment 1y ago · link · parent

> as AI scrapers bother implementing the PoW

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

The point is to allow bots that play nice and don't claim to be real browsers, as those can be identified in logs and blocked or rate limited fairly. But bad faith bots can be undistinguishable from browsers, so everyone else gets a PoW challenge to make their endeavour slower and expensive.

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

> hopefully nobody is triggered by this kind of art

Apparently a good chunk of HN is. Anubis-tan seems to me the main reason that this comment section about FFmpeg and Forgejo has devolved into a debate about Anubis; more than the intersitial page itself.

comment 1y ago · link · parent

Our own governments are pushing for it, simple as that. I live in Spain, and both left and right parties, and to a lesser degree their voters, are increasingly leaning authoritarian and tacitly agree to extend surveillance; the police and specially the gendarmerie lobby for it as well.

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

> possibly also for C# and JS

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

Depends on how one rides: Back when I was an edgy teen I accidentally rode too fast over a pothole right at the top of a rocky asphalt slope. I felt a whiplash on my shoulder, lost grip, rolled over three times down the slope, and slid head-first into a thick metal railing. I wasn't wearing a helmet and it was pure luck that I bent the head in time before hitting the railing. A bit faster and I would have cracked my head open; I've still got burn scars from that day.

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

Thanks for explaining! I see this is common then. If I'm understanding correctly the docs of NSPrefersDisplaySafeAreaCompatibilityMode[1], this is supposed to be a compatibility mode that apps can opt-out of to behave like I expected, and can be force-disabled from Finder.

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

> But World of Warcraft is an older game using the legacy CoreGraphics display services full screen API. That API actually allows World of Warcraft to draw into the notch.

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

That's still the biggest hindrance in my opinion, at least for my use cases. OxCaml, Jane Street's fork, has some features for unboxed types and stack-based allocation of boxed types; hopefully it goes upstream.

comment 1y ago · link · parent

Yes I actually ended up using Rider, although I don't like switching editors. But that only replaces Ionide, and I was having some growing pains with the entire toolchain.

comment 1y ago · link · parent

> By default, ocaml runs in a VM,

The Dune build system does default to ocamlopt nowadays, although maybe not back around 2020.

comment 1y ago · link · parent

> and so de facto controls the ecosystem

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.

1
222324
43