Better HN
topnewbestaskshowjobs
Log inSign up

nyuutsu

9 karma · joined Mar 9, 2023 (3y ago) · 3 submissions

Submissions

comment 3mo ago · link · parent

(author; wife posted the thread)

Haskell is cool and I wanted to play with it.

Rust is cool enough, has libraries Haskell doesn't, can be faster, and is a way to stick the unavoidably imperative parts under the bed.

Browser was not in the original vision but turned out to be surprisingly painless-ish. Haskell can compile to wasm. Avoiding C-backed crates on vibes / for no particular reason happened to be quite helpful.

comment 3mo ago · link · parent

(Author here, my wife posted this thread; it has no bearing on the question but I am told it is good to disclaim.)

You could quibble about what counts but the core is "yeah".

Ppf3-with-undo stores literal "hey, we expect byte n to be 'foo'. on apply, replace it with 'bar'. on undo, put 'foo' back. remember: the copyrighted byte is 'foo'". Touch every byte in some way and your undo data is the entire original.

Some patches literally touch one byte. Their undo is, indirectly or indirectly, a recipe for retrieving one byte of copyrighted data. Is that fragmentary enough that it is entirely in the clear? I have no idea.

comment 1y ago · link · parent

This is my post!

The case studies used here are the smallest of small fries and the implementations are very simple. but similarly simple implementations have been used in more exciting and destructive cases. like the "squid game" coin. the squid contract actually had almost no functionality in it. Squid code said, roughly: "I am a coin, you can trade me. For all other functionality, I do whatever [some other address] tells me to do". Then, when you look at that other address, its code there is unverified, & when decompiled reveals fee-setter shenanigans and stuff of that nature.