HNHacker News
TopNewBestAskShowJobs

odo1242

1,392 karma · joined November 1, 2021

submissionscomments
odo1242··on Discord is ditching Electron and its new app uses less RAM
More than that: it's a full browser that doesn't share any of the system browser libraries (using it's own browser engine) and also NodeJS. You can often save almost ~300-500 megabytes by switching to something like Tauri (even Tauri+NodeJS) that uses the system's own browser framework.
odo1242··on Discord is ditching Electron and its new app uses less RAM
I mean, why would you want to mod the desktop client of discord instead of the web client?
odo1242··on Discord is ditching Electron and its new app uses less RAM
Well, Discord is a pretty complex app. It’s loading/caching images, subscribing to many chats at once, needs to be able to hop into a call at any time, and also renders (most) arbitrary Markdown.
odo1242··on Discord is ditching Electron and its new app uses less RAM
Well, keep in mind that you’re not expected to have the entire UI in one statement. You’re supposed to break this up into functions. That’s why stuff like Flutter and SwiftUI work.

Also, this is basically what Tailwind code looks like.

odo1242··on Discord is ditching Electron and its new app uses less RAM
Anti video-game-reverse-engineering, to be specific. It’ll refuse to decompile or reverse engineer any video game.
odo1242··on I wish tech companies knew more about me
Maybe GP was thinking about hand vacuums? Still, dusting brushes are still a thing
odo1242··on sshole
Returning a string on error honestly is defensible (especially in a language like C where the type system doesn’t have exceptions or result types), the question is why the string was “*” instead of like “crypt ERROR: input password cannot be longer than 256 characters” lol
odo1242··on Mac at any scale
SwiftUI is one of the nicer UI frameworks to use imo. And fast
odo1242··on It wasn't AI that flipped Proton's charge
Increasingly whenever I see a product advertised, I look around a bit and find a better, cheaper product that wasn’t advertised as heavily. Almost to the point where excessive advertising makes me suspect the product.
odo1242··on Claude Code regularly sends each background agent’s transcript to its model
Specifically, see this commit: https://github.com/Piebald-AI/claude-code-system-prompts/com...
odo1242··on Malware uses LLMs to rank victims by how much they're worth
Cloud does let you do this with VPCs and subnets. Some people don't bother and end up susceptible but it remains best practice even for cloud software
odo1242··on Hackers hijack Egypt highway billboard and Malaysian screens to show porn
I’m just pointing out that you chose to omit the one that’s over a thousand times worse and accounts for >99% of the “bad” overall.

Traveling the same distance without rail or air (i.e. on foot, horse, car) is also relatively deadly and the alternative (of living in small communities and not traveling long distances) is also not great for multiple reasons

odo1242··on Hackers hijack Egypt highway billboard and Malaysian screens to show porn
To be fair, both high speed trains and planes are very safe forms of transportation, with deaths numbering in less than 1000 per year.

Currently the yearly global death toll for cars is at 1.16 million and climbing

odo1242··on My favourite PowerMac is a Nintendo Wii
The Nintendo Wii notably has two processors that run different operating systems, so you might need some emulation or hardware modifications to do so
odo1242··on Claude Code regularly sends each background agent’s transcript to its model
They do seem to have successfully moved all of the stuff relating to artifacts out to skills with the latest release.
odo1242··on Java's new AOT cache feature is in a rough state
Yea, it should probably warn and fallback to normal JIT
odo1242··on Claude Code regularly sends each background agent’s transcript to its model
But you also burn the exact same number of tokens (actually more) every time the model makes a tool call. It's an agent, it makes a lot of tool calls.
odo1242··on New iMac with M6
- You have to run both the host OS and guest OS, losing you about 4-6GB of RAM and ~10% of CPU (and ~20-40 gigabytes of disk space)

- It’s slower

- GPU support in VMs is weird, especially when the host and guest use different graphics stacks (i.e. Windows games often don’t work in a Windows VM running on macOS because while the CPU can be passed through to the VM directly the GPU cannot; the VM driver has to try to translate DirectX GPU commands to Metal or OpenGL; some games can be a worse experience than using Wine)

There are systems with lightweight hypervisors for security purposes (like Android or PlayStation or even Windows sometimes), but those are (a) lightweight and built to use little resources, and (b) specifically designed to support the system APIs needed / use the same stack as the OS, so they won’t have the issues mentioned above.

Stuff like Qubes is also fine because you explicitly accept the tradeoffs when using it (that’s why Qubes has such high system requirements). And the VMs are all Linux-on-Linux, so the GPU issue is minimized.

While modern systems take inspiration from VMs, the sandboxing that most modern OSes do is designed to be much more lightweight than virtualization, since it doesn’t require virtualizing any hardware.

odo1242··on New iMac with M6
Asahi Linux exists for ARM Linux and has Windows has no equivalent (since it’s closed source and Microsoft doesn’t want to support that). Linux also runs virtualized, that’s obviously irrelevant because daily driving a VM isn’t a great idea.
odo1242··on New iMac with M6
It has better prospects of being able to run Linux than it does of being able to run Windows, to be fair
odo1242··on Python's experimental JIT to be removed
Numba is basically this.
odo1242··on Websites Should Be Printable
MathML?
odo1242··on Websites Should Be Printable
A TeX distribution on my computer (mactex) is like 4 gigabytes. Definitely not "bundle-with-a-web-browser" worthy.
odo1242··on Switzerland. Block by block. At 1:1 scale
I'm surprised nobody has mentioned https://buildtheearth.net/
odo1242··on Amazon's "digital pacifier" for toddlers
You’re missing Group C, who didn’t offer cigarettes to their kids until their kids heard of these “healthy” cigarettes that are “safe for kids”
odo1242··on Nikon photography contest winner loses title after scientists spot signs of AI
I was surprised at how obvious the AI was. Cilia do not, in fact, pop in and out of existence while moving around.
odo1242··on Show HN: Steal My Bitcoin
I see. Based on the wallet address, it does in fact seem to have simply gone down without being exploited.
odo1242··on Show HN: Steal My Bitcoin
Site gives 504 Gateway Timeout. Have there been any updates in the exploitation attempt?
odo1242··on Now Google says it might use your Gmail and Google Photos data to target ads
You can set the max file size per ZIP file to 50GB instead of 2GB, then it will only generate 7 zip files
odo1242··on Ask HN: If the models are so good, why doesn't OpenAI just start 100 companies?
It's challenging to expand vertically while also fighting a battle horizontally. Usually expanding vertically is done by companies after they've already taken over a lot of their industry or the industry has matured (a.k.a. less competition).
Page 1 of 21Next →