HNHacker News
TopNewBestAskShowJobs

seabass

1,338 karma · joined January 12, 2012

https://smudge.ai
submissionscomments
seabass··on Always be ready to leave (even if you never do)
You can compare the writing style from the earlier articles like this from 2020, pre-GPT.

https://andreacanton.dev/posts/2020-02-19-git-mantras/

seabass··on Always be ready to leave (even if you never do)
Strongly disagree. If you read enough of it the patterns in ai text are so familiar. Take this paragraph for example:

> Here’s what surprised me: the practices that made my exit smooth weren’t “exit strategies.” They were professional habits I should have built years earlier—habits that made work better even when I was staying.

“It’s not x—it’s y.”, the dashes, the q&a style text from the parent comment, and overall cadence were too hard to look past.

So for a counterpoint about the complaints being tedious, I’d say they are nice to preempt the realization that I’m wasting time reading ai output.

seabass··on Ratatui – App Showcase
Looks really cool! Love the artwork. Right now the video in the readme doesn’t render on github, though. I had to manually download the mp4 from your demo folder to view it.
seabass··on Claude Code refused to add rainbows and unicorns to my app
I’d expect that the “shut up and do as I say” approach would add more combativeness to the ai, increasing the likelihood that it refuses. Instead, bringing your initial request into a new chat context that hasn’t already been poisoned by a refusal would probably work.
seabass··on A WebGL game where you deliver messages on a tiny planet
I'm curious how you build something like this. I see file types in the network tab which, as a web dev, I've never worked with before. ktx2 and drc extensions, for example. I'm also seeing some wasm and threejs. Is there an engine that outputs these things or is it more of a manual process to bring everything together?
seabass··on A WebGL game where you deliver messages on a tiny planet
On the other hand, I'm so glad it didn't. I enjoyed a few minutes of exploration before realizing what I was meant to be doing.
seabass··on A WebGL game where you deliver messages on a tiny planet
Really beautiful! Love the artwork and the fact that this runs so well in the browser. Was surprised to realize it was multiplayer!
seabass··on Plex Security Incident
> how easy is it to administer for clients outside of my network or possibly even outside my country?

You can run Jellyfin in any docker container. If you want to run it on a NAS in your home office and put it on the internet through ngrok or tailscale, you totally can. But you can host it pretty much wherever.

> how good is the app support? I transcode all of my media to AAC and h264 for compatibility

The official clients are just ok. They'll support all the file types you'd expect, but they're fairly slow and not great at streaming 4K. I pay for a client (Infuse Pro) that addresses a lot of those pain points, but it's been relatively poor at auto-detecting tv show metadata, so I'm still in the market for an app I'm happy with. Ideally an open source one.

> - what about for streaming music?

Technically works, but whether it's a good experience depends on the client you're using.

> - what do you like the most about jellyfin

Easy to set up. Great plugins for finding subtitles/artwork/metadata. Open source with good docs. Works with lots of clients. Easy to create and share accounts, and has fun features like synced remote viewing parties.

- what do you miss most about Plex?

The ads. jk never used it.

seabass··on A lightweight TypeScript library for assertion-based runtime data validation
The information I have on this could be outdated, so take this with a grain of salt, but it used to be the case that in hot code paths the presence of a try/catch would force a deoptimization whether or not you throw. The optimizing compiler in v8, for example, would specifically not run on any functions containing try/catch due to its inability to speculatively inline the optimized code. If you're feeling up to it, you can prove whether that is still the case with `d8 --allow-natives-syntax --trace-deopt ./your-script.js` and sprinkle in some `%OptimizeFunctionOnNextCall` in your code. I did a quick search for `try {` in the zod 4 source and didn't see anything, so I suspect that the performance issues surrounding try/catch are still at least somewhat around, unless they are simply avoiding try/catch for code cleanliness which could totally be the case. Regardless, I'd encourage you to look into whether plain old boolean return values in your validators would work for your project. Just include the `throw` part without all the `try/catch` and the code itself will likely be simpler, faster, and easy for the JIT to optimize. Good luck on those benchmarks.
seabass··on A lightweight TypeScript library for assertion-based runtime data validation
I was surprised by the source including a bunch of try/catch, which results in deopts for that code path as far as I understand, given that the stated benefit over Zod and other validators was that this should be run in performance critical code. I’d be curious to see benchmarks that show whether this is faster than zod, valibot, and zod4 mini in hot code paths.
seabass··on Bad UX
Do a barrel roll

https://www.google.com/search?q=do+a+barrel+roll

seabass··on Deep Agents
Is there more info on how the todo list tool is a noop? How exactly does that work?
seabass··on Developing our position on AI
> One particularly enthusiastic user of LLMs described having two modes: “shipping mode” and “learning mode,” with the former relying heavily on models and the latter involving no LLMs, at least for code generation.

Crazy that I agreed with the first half of the sentence and was totally thrown off by the end. To me, “learning mode” is when I want the LLM. I’m in a new domain and I might not even know what to google yet, what libraries exist, what key words or concepts are relevant. That’s where an LLM shines. I can see basic generic code that’s well explained and quickly get the gist of something new. Then there’s “shipping mode” where quality is my priority, and subtle sneaky bugs really ought to be avoided—the kind I encounter so often with ai written code.

seabass··on Show HN: A word of the day that doesn't suck
Hahah how did I miss that! It’s even linked in the description. Glad you pointed it out. Let me also link the word enjoyers out there to another favorite of mine, then: https://carefulwords.com/
seabass··on Don't animate height
I’d be interested to see the performance of the same visualizer in a canvas or animated svg instead. Forcing these animations through the dom seems a little absurd to me, but I’ve been surprised by web performance before.
seabass··on Show HN: A word of the day that doesn't suck
When it comes to getting a deeper understanding of words you already know, two of my favorite resources are Etymonline [1] and the 1913 edition of Webster’s dictionary [2]. And if you’re curious why 1913 specifically, this post [3] gives a great overview.

[1] https://www.etymonline.com/

[2] https://www.websters1913.com/

[3] https://jsomers.net/blog/dictionary

seabass··on How I Use Kagi
Very kind of you! Just reached out. And I agree, the lack of sponsored results among the top 3 and overall quality of the results are valuable.
seabass··on How I Use Kagi
Yep, they had me check my proximity to the nearest Google Cloud region. The ping was ~30ms, so that was pretty unlikely to be the cause. In my screen recordings that compared the exact same searches, despite the low ping, Kagi results wouldn’t appear for around 2s. A search I did just now shows “39 relevant results in 1.7s”. Otoh with Google it feels instant—0.29s for that same search. With their support team we never did end up finding the cause.
seabass··on How I Use Kagi
I tried to give Kagi a fair shot by using it for a few months. I loved a lot of features, especially the boost/block lists. But I always felt the responses were way too slow for something I use that much. I benchmarked a handful of queries and confirmed they were consistently ~3x slower than Google for normal searches and 5-10x slower for image searches on my home network. I’m sure there are many factors that play into that, so maybe the reason I haven’t seen others complain about the speed has just been that the problem is unique to my network. But ultimately I opted to switch back to Google for my daily driver and just use Kagi for specific lenses.
seabass··on Phrase origin: Why do we "call" functions?
I love this sort of cs history. I’m also curious—why do we “throw” an error or “raise” an exception? Why did the for loop use “for” instead of, say, “loop”?
seabass··on Robots move Shanghai city block [video]
The town of Kiruna in Sweden is currently being relocated because it is sinking into the iron mine that originally led to the founding of the town. Some buildings are being relocated on tracks in a similar way to that Shanghai video.

https://www.theguardian.com/world/2023/feb/05/why-a-swedish-...

seabass··on Show HN: New Ensō – first public beta
Huge kudos for omitting analytics tracking for an app like this. Your reasoning totally resonated with me, and I hope more app devs follow suit!
seabass··on OpenAI charges by the minute, so speed up your audio
I made a super simplistic chrome extension for this. Doesn’t work on all websites, but YouTube and most online video courses are covered.

https://github.com/sebastiansandqvist/video-speed-extension

seabass··on Web Translator API
With js being a garbage collected language, what is the benefit of the destroy method here and why is it necessary?
seabass··on The Zed Debugger Is Here
It's trivial to disable it. I wouldn't let that hold you back from using an amazing editor!
seabass··on Binary Wordle
I love that not only are the inputs binary, but so are the results.
seabass··on Revisiting Image Maps
> Anchors positioned absolutely over my map wouldn’t solve the pixel-based positioning problem or give me the irregular-shaped clickable areas I wanted. Anchors within an external SVG wouldn’t work either.

If you're trying something like this and irregular-shaped clickable areas are not a concern (like if only the numbered circles from the article's example would be clickable) then absolutely positioned anchors can be made to work. The trick is to use js to apply a css scale transformation to a relatively positioned parent container whenever the underlying image changes size.

seabass··on Ask HN: Cursor or Windsurf?
Zed's agentic editing with Claude 3.7 + thinking does what you're describing testing out with the $100 Claude Code tool. Why leave the Zed editor and pay more to do something you can run for free/cheap within it instead?
seabass··on I'd rather read the prompt
Your original here is distinctly better! It shows your voice and thought patterns. All character is stripped away in the "compressed" version, which unsurprisingly is longer, too.
seabass··on I put sheet music into smart glasses [video]
Really awesome project! I’m reminded of something else in the AR/music space from a few years back. Someone made a VR passthrough app to project synthesia-style keyboard overlays onto your actual piano keys. Always cool to see what new hardware can enable. Congrats!
← PreviousPage 2 of 5Next →