433 karma · joined Jan 14, 2010 (16y ago) · 143 submissions
comment 10mo ago · link · parent
Browsers are currently incentivised to add a bunch of new features outside their traditional role. Some people prefer to keep the browser's role simple. It's not ideological and it's not "hating".
36.
Bincode development has ceased permanently(reddit.com ↗)
4 points · by sethaurus · 11mo ago · 3 comments
comment 11mo ago · link · parent
Sure, you can check if they gave you a string instead of a number. But if you receive an array of nested objects, are you going to traverse the whole graph and check every property? If the caller gives you a callback, do you check if it returns the correct value? If that callback itself returns a function, do you check that function's return type too? And will you check these things at every single function boundary?
This kind of paranoid runtime type-checking would completely dominate the code, and nobody does it. Many invariants which exist at compile-time cannot be meaningfully checked at runtime, even if you wanted to. All you can do is offer a type-safe interface, trust your callers to respect it, and check for a few common mistakes at the boundary. You cannot protect your code against other code calling it incorrectly, and in practice nobody does. This is equally true for JS and TS.
comment 11mo ago · link · parent
When I saw this adaptation back in 2004, I was amazed because the web didn't even HAVE an API for its pixel buffer; the canvas element didn't arrive until a year later! All the destructible/buildable terrain here is faked out with stacked `img` elements. They had to simulate a simple form of graphics with a more complex one, because that's all the platform made available.
It's very good.
comment 1y ago · link · parent
This is a linear sequence of bits, which when interpreted as a Game of Life board, "prints" an exact copy of itself 2 pixels to the right (leaving no trace of the original).
I suppose its job would be easier if it only had to construct a copy of itself rather than "moving" itself, but I enjoy the interpretation that it's a linear "tape" of bits which prints its own code transposed by 2 pixels, and takes an unfathomable amount of time and space to do so. Beautiful.
comment 1y ago · link · parent
Her main collaborator, co-creator and producer of many years is the artist AG Cook, who founded the label PC Music. He appears often in her music videos and gets mentioned in her lyrics. His own solo work plays a lot with pairing the artificial and the organic, taking the "slick" aesthetics of electronic pop to abrasive extremes and placing it next to vulnerability and gentleness.
This is my favourite piece of his work (both the song and the video): https://www.youtube.com/watch?v=kH2wQ5speuU
Charli's work or his might not suit your taste! But these are real people doing interesting stuff and playing with the form. It's not fake.
comment 1y ago · link · parent
comment 1y ago · link · parent
If something looks like a "weird stance", consider trying harder to understand it. It's better for everyone else in the conversation.
comment 1y ago · link · parent
All of that could get added to affinity without changing its core offering, which would be consistent with both their past strategy and their current messaging.
comment 1y ago · link · parent
There's clearly a funnel for Canva Pro upgrades, but (to my knowledge) they've never paywalled formerly-free features, and it seems to be a profitable strategy so far.
comment 1y ago · link · parent
It's a classic "commoditize your complements" play. Canva remains profitable without charging for Affinity, but Adobe can't stay profitable if they stop charging for Photoshop/Illustrator.
The business justification works without imputing any more sinister motives than that.
comment 1y ago · link · parent
It's a collaboration between multiple library maintainers, attempting to standardize and unify their shared change-tracking approach.
comment 1y ago · link · parent
> thanks, I used AI but aren't we all? I thought the point of AI is to get us to be more productive.
You've also repeatedly dismissed any criticism of the writing as "hate."
If you want readers to do you the favor of reading your work, please do them the favor of writing it.
54.
The Handle Trait(smallcultfollowing.com ↗)
5 points · by sethaurus · 1y ago · discuss
comment 1y ago · link · parent
> 32^4 = 1,048,576, which is hopefully enough.
Unfortunately, it really isn't enough. Since these 4-character codes are based only on a hash of the note's filename, and there's no other collision-resistance built in, the likelihood of two notes getting the same code rises very quickly. With 500 notes in the vault, the chance of two notes having the same code is about 1-in-10. At 900 notes, the odds are 1-in-3, and at 1200 notes, the chances of a collision rise above 50%: it's more likely that there will be a collision than not. These are realistic numbers of notes for an Obsidian vault.
This is all solvable by having something allocating IDs (and attaching them to the notes), but when using a hash, 32 bits just isn't enough to give uniqueness at even small scales.