Better HN
topnewbestaskshowjobs
Log inSign up

jdiff

2,885 karma · joined Jun 20, 2021 (5y ago) · 1,131 submissions

Educator, creative coder, slowly burning out.

@different55 at github.com

hn at jaromino.com

Submissions

comment 2y ago · link · parent

That seems to fall apart quickly. Even if training could be considered fair use, surely just distributing the raw masses of copyrighted works can't be under any reasonable definition. Otherwise, why did TBP, KAT, and MegaUpload shut down if you could defeat copyright with sheer numbers?

comment 2y ago · link · parent

Really? Because I myself asked the people who used software about Garbage Collection and they said "I mean, it's a job."

The people who use software have absolutely no idea or opinion on the topic.

comment 2y ago · link · parent

Mali, a type of GPU used on mobile devices, not Mail. They made a typo.

comment 2y ago · link · parent

> "Operating system" is a pretty broad description

That's the problem, and the concern.

I've given several concrete examples (both of actual exploitable surface area and more abstract kinds of exploitable surface areas) in this thread already, feel free to refer back to them.

A lot of what you're complaining about as handwavy is just common knowledge. Ask questions if you're interested, but out-of-date OSes are factually insecure in known-unfixable and unknown-unfixable ways.

comment 2y ago · link · parent

> Depends on what you're hardware accelerating and how you want to "accelerate" it. In the case of video decoding, ffmpeg would talk directly to the hardware. There wouldn't be an "OS" component to that (if there were, then ffmpeg wouldn't exist in the first place).

FFmpeg does not talk directly to hardware. That's the job of the OS and the drivers. They exist outside of the sandbox. So does the hardware itself.

> Actually it costs a great deal of time and effort to craft an exploit that would target a zero day on a modern browser even if the underlying OS API vulnerability is already known. And how many people would be vulnerable? It's not worth the effort for the tens of people vulnerable. That is unless you're intentionally targetting one specific individual with this known configuration....and now we're back to my point about your threat model.

You missed a step. More like two, actually. First, it costs almost nothing to include exploits for known out-of-date OSes (and browsers, but that's separate to this particular point). Second, if a modern browser is exploited, it needs a payload to deal with the OS on the outside. It, again, costs almost nothing to see if there's any low hanging fruit on the outside. And plenty of modern vulnerabilities affect older OSes, so you may just get it for actually free instead of nearly free.

Nobody who cares about their threat model is running an out-of-date OS. And yet, out-of-date OSes are vacuumed up in mass amounts for botnets. They're worth going after, even if the people running those machines don't even know what "threat model" means. They have an internet connection? That's plenty to make it worth the minimal effort.

comment 2y ago · link · parent

> blit pixels on the screen

This is where you lose me.

The browser is a bloated beast that incorporates and reimplements so much of the OS. But not that much. The OS still interacts with the OS far too much for static linking to make much of a difference. And even if there is a modern Chromium 0day, like the Skia exploit I mentioned, sure, that's a Chrome bug. That's still a bigger problem for older OSes that have absolutely no protection once something escapes the sandbox.

comment 2y ago · link · parent

> But if not, how is this situation inherently different from running Chromium, which has a strong sandbox and statically links basically everything? I realize that in the virtualization case, Chromium is running on a separate kernel, but does that really make a difference in practice?

This is just not how static linking works. You're not suddenly running on a modern, secure OS because all your web browser dependencies are up to date. And your up-to-date, statically-linked browser is still interacting with your OS, not just the kernel but the OS and userland and everything.

Static linking is not a security measure.

comment 2y ago · link · parent

It does leave the sandbox. How else are you going to get hardware acceleration? That means talking to the hardware, which means talking to the OS, which is outside of the sandbox.

I already said scrollbars weren't a practical example, just an example of how benign APIs can be exploited.

I heavily disagree about the threat model. It costs next to nothing to cast the net out for users neglecting their computer (and there are very many), and the payout is a hefty botnet.

comment 2y ago · link · parent

Supermium in specific will let you render text with GDI (for performance, probably?), videos are played with FFMPEG but that still means hauling untrusted footage outside of the sandbox for hardware decoding, and there's still countless other potentially-pierceable membranes in the sandbox.

This (probably) isn't a practical vector for a browser, but kernel exploits have been crafted out of scrollbars in the past. Any time the sandbox calls out to the OS in any capacity it's trusting that the surface it's touching isn't vulnerable, and sometimes it is. For a sandbox to solve this, it's not good enough to just prevent people from misusing the APIs that exist on paper, you have to verify that the API itself isn't bugged and exploitable.

And it's not just OS surface, either, Skia's just as penetrable as any other membrane in the sandbox.[0]

[0] https://nvd.nist.gov/vuln/detail/CVE-2023-6345

comment 2y ago · link · parent

> you should reasonably safe, no?

No, just as an example, Windows has had multiple kernel exploits that only required crafted fonts to be loaded by the victim computer. Any interaction with the world outside of the sandbox leaves room for a foot in the door, and there's necessarily a lot. Images, video, audio, the multitude of device APIs, and like the font exploits show, even the most basic page rendering.

comment 2y ago · link · parent

> No, obviously to re-add jxl without a flag

Is asking for the old thing to be re-added, but without the flag that sabotaged it. It is the same as "you took that away from us, undo that!" Removing a flag does not turn it into a magical, mystical new thing that has to be built from scratch. This is silly. The entire point of having flags is to provide a testing platform for code that may one day have the flag removed.

comment 2y ago · link · parent

>"But the plans were on display…”

> “On display? I eventually had to go down to the cellar to find them.”

> “That’s the display department.”

> “With a flashlight.”

> “Ah, well, the lights had probably gone.”

> “So had the stairs.”

> “But look, you found the notice, didn’t you?”

> “Yes,” said Arthur, “yes I did. It was on display in the bottom of a locked filing cabinet stuck in a disused lavatory with a sign on the door saying ‘Beware of the Leopard.’”

comment 2y ago · link · parent

Because bi- is two, tri- is three. Ti- is meaningless, and not good enough of a joke to make up for it.

comment 2y ago · link · parent

Here I thought part of the allure of suckless development was that simple code held less bugs and was more flexible given fewer moving parts.

comment 2y ago · link · parent

This is something I rarely see addressed. AI proponents always fall back to "it's just a new tool, just like all the old new tools that made things easier" but all the old new tools only opened up more degrees of freedom by automating away tedium. So much generative AI automates away the creativity leaving only the tedium, and leaving limited ways to even create.

If I have a vision, I cannot pull that out of my head and make it real using generative AI. Maybe I can get someone else's take on my concept, but I don't have the flexibility to build the image in my head. That's the real difference between the new tools of old and the "new tools" of today. You can't actually create with them, just sift and hope with varying degrees of control, but no creativity.

comment 2y ago · link · parent

The printing industry's doing fine. There's big printers, small printers, they're doing more printing per person, but there's also far more printing being done total, and so far more people working in the printing industry now than then. And that's on top of the sprawling supply chains building and supplying the technology and materials to them.

There is nothing like that for AI. The fact that something thematically similar happened in the past does not mean it's applicable here. Now, there are no new supply chains to build, this silicon's getting manufactured one way or another. No new jobs, just replace the department with an individual.

comment 2y ago · link · parent

It's pretty obvious from the whole comment that they're his own experience. Are you going anywhere with this or are you just saying things?

comment 2y ago · link · parent

They uploaded 3 sample files for the authors, there were more failures than that, and the failures that GP and others have experienced are of a less tolerable nature. This is the point I was making, that the value added by classifying files with no rigid structure is offset heavily by its unpredictable shortcomings and difficult-to-detect failure modes.

If you have a point of your own to make I'd prefer you jump to it. Nitpicking baseless assumptions like how many files the evil GP had to sift through in order to breathlessly bring us 3 bad eggs is not something I find worthwhile.

comment 2y ago · link · parent

He is doing that. Or to be pedantic, he has, and would if he relicensed.

> It's pretty easy to figure out someone's hosting service and put in a DMCA request. I've had to do it in the past for some stolen data that was posted online, and it's fast and effective. I'd of course try to contact them first as well, but when that failed I'd have quick recourse.

The same question was posed in the comments on his article.

comment 2y ago · link · parent

The text file isn't to stop the bad actor, it's to let you send DMCA requests to their host/search engines.

comment 2y ago · link · parent

Yes. Unpredictable failures are significantly worse than predictable ones. If file messes up, it's because it decided a ZIP-based document was a generic ZIP file. If Magika messes up, it's entirely random. I can work around file's failure modes, especially if it's one I work with often. Magika's failure modes strike at random and are not possible to anticipate. File also bails out when it doesn't know, a very common failure mode in Magika is that it confidently returns a random answer when it wasn't trained on a file type.

comment 2y ago · link · parent

...It's in the comment you were responding to. Directly above the section you quoted.

comment 2y ago · link · parent

It's three files that were scraped from (and so publicly available on) the web. That's not at all similar to your strawful analogy.

comment 2y ago · link · parent

Nobody's asking for perfection. But the AI is offering inexplicable and obvious nondeterministic mistakes that the traditional algorithms don't suffer from.

Magika goes wrong and your fonts become audio files and nobody knows why. Magic goes wrong and your ZIP-based documents get mistaken for generic ZIP files. If you work with that edge case a lot, you can anticipate it with traditional algorithms. You can't anticipate nondeterministic hallucination.

comment 2y ago · link · parent

You might be surprised. Rename your Photo.JPG as Photo.PNG and you'll still get a perfectly fine thumbnail. The extension is a hint, but it isn't definitive, especially when you start downloading from the web.

comment 2y ago · link · parent

I'm not the person you asked, but I'm not sure I understand your question and I'd like to. It whiffed multiple common softballs, to the point it brings into question the claims made about its performance. What reasoning is there to trust it?

comment 2y ago · link · parent

Most people in this thread aren't making 6-7 figures. The boogeyman you're railing against isn't here.

comment 2y ago · link · parent

You score points. No one has ever earned a billion dollars.
1
282930
38