Better HN
topnewbestaskshowjobs
Log inSign up

basique

24 karma · joined Jul 27, 2020 (6y ago) · 26 submissions

Owl in the snow. https://github.com/BasiqueEvangelist
Submissions

comment 2y ago · link · parent

i honestly don't really get the angle of debugging via strace - i'd much rather prefer something more wireshark-like, where I can see all messages processes are sending to each other, since that would make it easier to decipher cases where sending a message to a service causes it to send other messages to its backends

comment 2y ago · link · parent

I mean, the problem here is more that companies don't really want to be pro-user and respect privacy. You have to make it so that companies can't exploit their consumers to increase profits, because if there are no repercussions they will.

Also, I wouldn't say Apple is that pro-user. They regularly fight against right-to-repair, and Cory Doctorow even had an article about how they spy on their own users https://pluralistic.net/2022/11/14/luxury-surveillance (I haven't looked into this fully, though, so this might be hogwash) The 'Apple = Privacy' thing feels more like a marketing gimmick to me than a real commitment.

comment 2y ago · link · parent

This article also says that you'll get exploited even if you are a paying costumer. (that's a part of enshittification as defined by Cory Doctorow, even! companies first exploit their customers, then their business costumers/ad providers)

comment 2y ago · link · parent

A lot of products have an immoral part in the supply chain. Do you propose that people abstain from all of them?

comment 2y ago · link · parent

Isn't iSH literally an x86 emulator?

comment 2y ago · link · parent

Protecting Google's customers from what? iMessage?

comment 2y ago · link · parent

>make software open source

>people use it under the license

>"you're literally taking my work"

>change license

>people are mad that software isn't open source anymore

I really don't get these arguments that the businesses that supported OpenTofu "blatantly stole" Hashicorp's work, as if Terraform wasn't licensed under a permissive license

comment 3y ago · link · parent

Any fake certificates the malicious CA signs will have to be written to a Certificate Transparency log, which would make noticing the fact that the CA has done something like this easy.

comment 3y ago · link · parent

Jail time and fines? I don't get what you're talking about

comment 3y ago · link · parent

> There is a clear limit to how slow simple looking code can be in C# or java

Java/C# code can become incredibly slow if you allocate way too many objects, use Streams/LINQ or touch URL#equals. Why are managed languages specifically better here?

comment 3y ago · link · parent

> however, it is simply not the case that games have rampant amount of hacking in general.

Have you played TF2 recently?

comment 3y ago · link · parent

The point of htmx is to be able to do the interactivity on the server, so using it with your existing, general API isn't really the point - the backend (or, well, frontend backend?) just serves the needed data directly in the markup. This isn't really ideal if you think of your site as a separate frontend/backend, but it makes sense if you already have a backend and don't want to make an API just to then write JS that consumes the API and shows you stuff. Granted, this doesn't really work well with offline-first apps, but it's nice if you need to actually poke the server whenever you need to do something.

comment 3y ago · link · parent

Why is it a wrong abstraction?

comment 3y ago · link · parent

Not publishing source code demotivates the white hats and "good people" more than the bad actors, IMHO. There's a reason a lot of cryptography-related libraries have open/available source code

> But have you ever found an exploit and reported it? Yes, actually. It was for a project I had already contributed to, so I was just reading source code and stumbled upon a somewhat critical bug. The main problem there was figuring out how to fix it without breaking API, really.

comment 3y ago · link · parent

IPv4+NAT still exposes your router's address, which is still problematic, no? If you want more privacy than that you can use a VPN, which should work on IPv6 too.

comment 3y ago · link · parent

Can you list some of these extensions? (and what compositors support them, of course)

comment 3y ago · link · parent

Aren't Cloudflare Workers multitenant? Although, if you want to be cynical, that could be a reason they aren't 'enterprise grade™'.

comment 3y ago · link · parent

> Is having a program superglued to an outdated library with known (and fixed already) bugs really what you want?

It is not superglued. If you want to update dependencies, just remove the lockfile and reinstall everything. The main reason people do this is because just updating a library without the program knowing by not specifying the exact version leads to behaviour silently changing, which is terrible (especially on CI!)

comment 3y ago · link · parent

> Whitelisting is the correct approach. Isn't most of the point of using the JVM thrown out if you have a limited standard library?

> And you would run C code in a completely trivial way: you have a huge array which is your memory, and you read/write bytes to it. That sounds like it would have terrible performance. Would every read of an int have to manually build it from the 4 bytes it's made of? This just seems like something the JVM won't handle that well.

Besides, this would mean that if you want to run a language like C#, which has references and value types (and you can make a reference to a value type from a pointer into a buffer), you would have to emulate them, which will hamper performance, or just use the same strategy as you used for C.

comment 3y ago · link · parent

The JVM can't really be properly sandboxed, though. Even the JDK developers have stopped trying and deprecated SecurityManager. On the other hand, WASM is specifically designed to not really be able to do anything fancy unless you give it functions that actually do something externally. Besides, how would you even properly run C code on the JVM?

comment 3y ago · link · parent

You just return an HTML fragment that describes the error with a header that says where to put it. The htmx JS API has events for errors too, if you want to do client-side handling.

comment 3y ago · link · parent

It can do a lot more than just changing the value written in a button. I'd say that the hype is more centered around the fact that it helps you to do much more interactive and SPA-like websites without needing a full JS framework and on your favourite server stack, which is honestly really cool.

comment 3y ago · link · parent

Yeah. The author even has an essay about it: https://htmx.org/essays/hateoas/

comment 3y ago · link · parent

Users can just switch to a mocking different library, while the author's reputation is (most likely irreversibly) ruined

comment 3y ago · link · parent

AGPL isn't open source?

comment 3y ago · link · parent

Most likely https://github.com/speced/bikeshed