- seabass parentWish this were built into the OS! Love the idea
- I love squoosh! It’s been one of the few PWAs I have installed and actually use regularly.
Does anyone know if their optimization methods still best-in-class these days? It’s been good enough for all my practical needs, but I know it’s been around for a while and there may be better techniques for some file types now.
- Ah I think I understand now. The return type of createBook is true | Book, which is likely a mistake, but happens to work because when you attempt to spread a boolean into an object it removes itself. But if you were to edit the example to have a stable return type of Book then it would no longer save memory, so perhaps that was intentional?
- Love this! Just wanted to note that I think there’s a mistake on the flyweight pattern page’s example. You’re using getting a boolean with Set.has but treating it like a Book (as if you had used Set.get). I also don’t really understand how this saves memory if you’re spreading the result into a new object, but maybe someone here can enlighten me!
- It has a bunch of human imperfections, and I love that. The lowercase lists and inconsistent casing for similarly structured content throughout, the grammar mistakes, and overall structure. This article has a totally different feel compared to the newest ones. When you say it’s very similar, what are you picking up on? They feel like night and day from my perspective.
- You can compare the writing style from the earlier articles like this from 2020, pre-GPT.
- 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.
- 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?
- > 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.
- 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.
- 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.
- Do a barrel roll
- > 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.
- 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/
- 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/
- 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.
- 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.
- 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-...