HNHacker News
TopNewBestAskShowJobs

nasso_dev

345 karma · joined August 28, 2023

https://nasso.dev at://did:plc:z2dxz4qxqnye24swc7g3lgz3

https://bsky.app/profile/did:plc:z2dxz4qxqnye24swc7g3lgz3 https://tangled.org/did:plc:z2dxz4qxqnye24swc7g3lgz3

submissionscomments
nasso_dev··on A Gopher Meets a Crab
it is indeed pretty weird. clippy has a lint against this iirc. it's recommended to just create a custom error type, even if its just an empty struct or a single-variant enum

this lets you implement `std::error::Error`, which you really should to make it less painful when you want to erase the type (`std::error::Error` is `dyn`-compatible)

nasso_dev··on FFmpeg 101 (2024)
wow we're at ffmpeg 101 already? ffmpeg 8 felt like yesterday
nasso_dev··on Show HN: I Was Here – Draw on street view, others can find your drawings
check out https://margin.at !
nasso_dev··on Monosketch
im not an expert on a11y best practices, but id say an <img> tag with alt text is enough

for inline SVG, i read somewhere you can use <title> and <desc> to describe the SVG document, but i don't know how they work in practice

nasso_dev··on Monosketch
this is super cool as an art form but ASCII art is an accessibility nightmare so please don't use it for docs unless you know what you're doing and have made it accessible in some other way
nasso_dev··on New YC homepage
they definitely are. im not sure why they did that, still pictures are okay too and much greener
nasso_dev··on Brave overhauled its Rust adblock engine with FlatBuffers, cutting memory 75%
Aren't procedural macros amd build.rs arbitrary code being executed at build time?
nasso_dev··on Replacing JavaScript with Just HTML
i like the points the article makes, but i really wish it used looping videos instead of actual GIFs

i don't really see any reason to use GIFs here; any widely available video codec like H.264, VP8/VP9 or AV1 will result in significantly smaller file sizes, look better, and will allow enabling controls for seeking and play/pause

nasso_dev··on Show HN: A fast, privacy-first image converter that runs in browser
See also: https://vert.sh/
nasso_dev··on Show HN: Newcomer Ranking – Alternative to GitHub Trending for New Repos
Judging by the comments: was this project built by an LLM, posted here by an LLM, the replies to comments written by an LLM?

Is there even a human at any step or is this an agent running in the background with "go to HN front page" as its ultimate goal?

nasso_dev··on Svelte’s characteristics that likely contribute most to improved performance
It's a bit sad that this is using Svelte 3 instead of Svelte 5, which changed its reactivity model to signals!
nasso_dev··on Open Social
Displaying comments is cheap because the AppView (the "cache" layer that consumes the aggregated feed of records from the relay) can maintain a relational database of the social web/graph.

When it receives a post, it creates a row in the Post table. When it receives a comment, it creates a row in the Comment table, which has a column pointing to the Post it's replying to. Then, getting all comments under a post is easy SQL.

About your second question: yes, you're correct. What handle you use and where your data is hosted are completely separate matters.

nasso_dev··on WASM 3.0 Completed
used to be, in the early days, but nowadays runtimes optimized the function call overhead between WASM and JS to near zero

https://hacks.mozilla.org/2018/10/calls-between-javascript-a...

nasso_dev··on How to Firefox
I don't know if it's just me but in my case the problem isn't really the crypto bs, but rather Brendan Eich himself.

As much as Mozilla and Firefox can be criticized for both technical and non-technical reasons, at least I share the same core values. I don't seem to share any core value with Brave or its creator. Plus, yeah, still smells like Google :)

nasso_dev··on A 14kb page can load much faster than a 15kb page (2022)
I agree, it feels like it should be how you describe it.

But if Evan Wallace didn't obsess over performance when building Figma, it wouldn't be what it is today. Sometimes, performance is a feature.

nasso_dev··on Next month, saved passwords will no longer be in Microsoft’s Authenticator app
> Seems like passkeys use a very simple model where you are using a single device with a single browser or are somehow syncing across devices with some cloud service - and from your description it sounds like that doesn't even work.

Unlike passwords, you can have multiple passkeys per account. You can have 5 passkeys for your amazon account if you use your amazon account on 5 different devices. If you lose device 4, or if it gets stolen, you can just delete passkey 4. The other ones are safe.

Or, you can use a syncing service like a password manager. Both solutions work!

nasso_dev··on Websites are tracking you via browser fingerprinting
Note that having a unique fingerprint becomes actually great if it's so unique that even after a page refresh you get a different one.

Most browsers with fingerprint protections will for example introduce random noise in graphics and audio APIs.

nasso_dev··on Lossless video compression using Bloom filters
Just like you wouldn't use PNG for photography, I don't think you'd use a lossless video codec for real-world footage.

Lossless video would make much more sense for digital content like screen recordings, where the assumption that few pixels change between consecutive frames makes much more sense.

nasso_dev··on Jjui – A Nice TUI for Jujutsu
You might be interested in tangled.sh, a Git forge that recently added support for stacked PRs with jj[1] (or anything that supports the Change-Id header i suppose)!

[1]: https://bsky.app/profile/tangled.sh/post/3lptwcb47kc2u

nasso_dev··on What I've learned from jj
What I do is I git clone --recursive and then init a colocated repository. JJ will find the submodules and ignore anything in them, it works decently well.
nasso_dev··on All four major web browsers are about to lose 80% of their funding
iirc WASM bytecode closely resembles V8 IR. If you're writing a JS engine, might as well provide a more direct frontend to it... I don't think it adds much.
nasso_dev··on Simple Web Server
For those who have Rust, I like miniserve[1]:

    cargo install --locked miniserve
    miniserve path/to/directory
[1]: https://github.com/svenstaro/miniserve
nasso_dev··on Generative AI in Servo
While I agree with your point about being responsible for the quality of the code you send, please remember that...

> This post is my personal opinion, not necessarily representative of Servo or my colleagues at Igalia.

...so I don't believe it's fair to say that you lost all the good will you had for Servo based on just this article.

nasso_dev··on Functors: Identity, Composition, and fmap
> Gur fvmr bs gur pbyyrpgvba jbhyq punatr!

Ubj vf guvf n ceboyrz gubhtu? Vg qbrfa'g frrz gb ivbyngr nal bs gur shapgbe ynjf!

nasso_dev··on The <select> element can now be customized with CSS
> It doesn't trigger built-in mobile operating system components.

I worry about this. The built-in mobile operating system components are reliable, accessible, and responsive. I really like it when an input element opens the Android UI because I know how it works and that it is reliable. This applies to <select>, but also date/time inputs for example.

nasso_dev··on Moving away from US cloud services
How about Scaleway?
nasso_dev··on Svelte5: A Less Favorable Vue3
As a "Svelte5 enthusiast", I didn't stop reading and I wasn't particularly surprised... All frameworks/libraries/languages have quirks. I was perfectly aware of every single point listed yet I still enjoy Svelte 5 a lot more than 4.

> Form Components Are Uncontrolled by Default, Which Can Cause Issues > [...] > What happens if you remove the bind? One-way binding? No, it only sets the initial value, then the input's internal state takes over, contrary to expectations.

I strongly disagree. This is literally how HTML works. This makes forms with default values MUCH less awkward to author.

nasso_dev··on When imperfect systems are good: Bluesky's lossy timelines
It's 4k: https://bsky.app/profile/jaz.bsky.social/post/3likncbqutk2y
nasso_dev··on When imperfect systems are good: Bluesky's lossy timelines
Interesting! I wonder what value they chose for the `reasonable_limit`.
nasso_dev··on Ask HN: What's your opinion on automatic light/dark mode switching on websites?
I strongly believe it should be the default everywhere.

IMO, you can even skip having a theme switch—that's how native stock OS apps behave (calculator, notepad, settings, etc.).

For websites, I think that should be enough. For web apps however, you might want more control over the theme somewhere in the settings page, as people are more likely to spend a lot of time in your app and may want to customize it a bit more.

← PreviousPage 2 of 3Next →