HNHacker News
TopNewBestAskShowJobs

sod

318 karma · joined March 24, 2016

submissionscomments
sod··on Svelte 5: Runes
Was my first gut reaction as well. Especially when i saw `$state(0)`.

But watch the introduction video. It isn't at all like the functional reactivity that entered other frameworks. It's still the svelte way. Read and assign is plain javascript. Only the initialization syntax changed.

They even promise backwards compatibility, so you don't have to migrate or migrate file by file if you want to. Which is also not how other frameworks handled this in the past.

sod··on The iPhones 15 Pro (and iPhones 15)
If you are on the fence between android or iphone, then yes, this review is useless.

But if someone is deep into the ecosystem of apple, which apparently is 15% of the world, this review valuable.

Where I may agree thou - as someone who listens to gruber and similar - is that they didn't see the pitfalls of computational photography and just praised the marketing at face value.

sod··on Exa Is Deprecated
The owner of a repository dying (assumption) is an example why you don't trust modern software?

The active maintainers moved the project to a shared repository with a different name 2 years after the creator was seen anywhere.

sod··on Improving sleep
Yeah, I bought two co2 meters - one for each room - after a hackernews thread about losing cognitive function with rising levels. So I only bought them to improve work. Really wanted to know how often and long I have to open the windows.

Often I closed the doors to sleep as the noise from neighbors woke me up sometimes. Was completely dumbfounded to wake up to >2000 ppm co2 in my bedroom. And my meter doesn't even go much further as anything above 2k is considered "get fresh air now". Now I only close the door to the bathroom and keep everything else open.

sod··on Improving sleep
Nice list. I second having better sleep with white/brown noise. Be careful with in ears though. Don't wanna catch an infection. Also rolling over one ear piece may wake you up again, sabotaging the sleep.

I may add, as it's not mentioned in the article: co2. My 55m^2 flat barely stays below critical co2 levels without ventilation for a 7 hour sleep. So keeping all doors open is crucial and/or a window slightly open on the other side of the apartment. Closing the bedroom door - which I sometimes did when as I wasn't aware of this yet - was a recipe for a headaches and bad recovery.

For waking up, having natural light or other sources of light turn on before the actual alarm clock rings is nice to feel better in the morning.

sod··on Why Tailwind CSS Won
If css had a strong opinion and better syntax for responsiveness by screen width, css frameworks were way less popular. Tailwind, bootstrap and co. aren't used to avoid writing css. It's used because writing `class="my-4 mb-sm-5 mb-lg-6"` is so much faster and easier then doing this with a bunch of media queries and a class name, that has to be unique, because css is a global scope nightmare.

I mean, just look at it. You have to write all this crap in css just to achieve `class="my-4 mb-sm-5 mb-lg-6"`:

        :root {
            --breakpoint-sm: 500px;
            --breakpoint-lg: 800px;
        }
        
        .foo {
            padding: 1rem 0;
        }
        
        @media (min-width: var(--breakpoint-sm)) {
            .foo {
                padding-bottom: 1.5rem;
            }
        }
        
        @media (min-width: var(--breakpoint-lg)) {
            .foo {
                padding-bottom: 2rem;
            }
        }
sod··on An SEO scam: $62k later
If people bounce on your top ranked sites, google will punish you. After all, googles business is to find what people are looking for.

10 years ago I was working at a company that only lived on "organic traffic". And that page died overnight when google did an update. Competitors had better content.

You may moan about bad google search results, but believe it or not, thats the war google fights every day as 99% of the web is trying to do "SEO".

sod··on Apple Vision Pro – Why It May Be Lousy for Watching Movies on a Plane
It's not VR though. Nearly all demos showed windows being projected into your surroundings. Cutting yourself off is a physical knob, and even then close objects will fade into your view. This is not like VR at all. This is more like looking at a screen in front of you.

The nausea problems are caused because your body getting different signals then your eyes. Similar like reading a book in a car. But with apple vision, everything is anchored to the outside world. So reading a book in a car with apple vision while looking straight ahead may be way less vomit inducing as reading normally. My guess is, the same goes for in flight.

I'm sceptical as well. But apple has a pretty good track record in sweeping into a field that consisted of 20 years of half-assery and overengineer a few key aspects they deem most important.

sod··on An AI Girlfriend made $72K in 1 week
> I think having to pay someone to talk to me would be just about the most depressing thing imaginable

Thats like talking down to people that seek psycho therapy (aka paying someone to listen).

sod··on Bing: “I will not harm you unless you harm me first”
Isn't chatgpt/bing chat just a mirror of human language? Of course it gonna get defensive if you pressure or argue with it. That's what humans do. If you want cold, neutral "star trek data" like interaction, then inter person communication as a basis wont cut it.
sod··on MacBook Pro featuring M2 Pro and M2 Max
Yes, the year over year improvements were 90% just the tsmc node changes. But the ridiculous (and IMO amazing) performance per watt is a mix of iOS/macOS and their chip design. Those efficiency cores are unmatched, paired with the right scheduling from the OS.

The M2 is underwhelming as its the same 5nm as the M1 was.

But rumors say the M2 pro and max are on the 3nm node. And it took so long for the release, as 3nm was delayed.

Apple has a monopoly right now on 3nm, which is a shame. But if we only got tsmc to fire on all cylinders because apple stuffed them with money, then so be it.

sod··on Read this post ‘unless’ you’re not a Ruby developer
Without syntactic sugar that differentiates a language from another, I see no way for a new language to become popular. So while some decisions may seem confusing, they helped gathering interest. IMO ruby and python became so popular because of their quirks.
sod··on Goodbye Spotify
This annoyed me a lot. E.g. https://open.spotify.com/album/2qgVJm03eVhUr0GBif7FY0 became unavailable a while ago. At least Spotify is transparent about it: Still listed, just not playable.

I made peace with music disappearing though. The convenience of an online music library is more important to me personally.

sod··on Why Unreal Engine 5.1 is a Deal [video]
There is a stark effort, skill level, art direction and knowing the limits of cgi cliff between good and "slightly off". How else do you explain district 9 from 13 years ago vs e.g. 200 mio. budget black widow from a year ago.

Meaning: The best tools in the wrong hands can still produce mediocre results.

sod··on Valve Introduces Proton Next
The combination of a CEO that wants to do cool stuff, infinite money thanks to Steam, and no need for growth at all costs because of lack of investors - it's rare and glorious.
sod··on I decided to stop working on Mighty
It did when it came out. But it got already leapfrogged. Calculating fibonacci(45) with a recursive javascript function takes 13s on my m1pro and 7s on my ryzen 7600x. Profiling our angular app in chrome the initial render takes 200ms on m1pro and 130ms on my ryzen 7600x.

Apple silicon is still the master of performance per watt. But raw performance: It really was just tsmc 5nm what gave apple the edge. Apple will shine again when they sit exclusivly on tsmc 3nm, but until then, not so much.

sod··on JetBrains invites developers to join the Fleet Public Preview Program
I can't find a source to my claim. Just now downloaded webstorm 2022.2.3 stable and webstorm 2022.3 EAP to compare, but they seem to behave similar in cpu. Every now and then in the EAP in the activity monitor a "diagnostics dumper" pops up, but only for a brief moment. Maybe they improved it a lot. I remember complaining about EAP performance a long time ago and remembered an answer to expect a few more cpu usage from an EAP (the diff was not as stark as 100% though, it was more like 20% EAP vs 5% stable).

I mean please don't judge the CPU profile of an EAP to the final product.

sod··on JetBrains invites developers to join the Fleet Public Preview Program
While annoying, all intellij EAPs (early access previews) are very cpu intensive, as they run in debug mode by default to create diagnostics and crash reports. Kinda similar like if you would keep the debugger open in your browser. Not sure if you can disable it, but thats the main reason why I stopped using EAPs for work.

But the ram is typical intellij, they take what they can get from the OS :)

sod··on Minimize Heap Allocations in Node.js
If you want to reduce memory consumption by your node.js server, minify it (e.g. via esbuild in node.js mode) and don't use inline source maps (if you want to keep source maps, use .map files).

node.js keeps all source code as string in memory. So unminified code can bloat your runtime by a lot if you require a couple of external libraries. If you bundle the libraries as well, you don't even need to copy node_modules anymore, which can also save time in deploying a change.

This small change can cut your memory requirement in half.

Of course I wish node.js just had an option to free the memory of the source code garbage, but as of version 18.9.1 there is none.

sod··on Stable Diffusion based image compression
This may give insights in how brain memory and thinking works.

Imagine if some day a computer could take a snapshot of the weights and memory bits of the brain and then reconstruct memories and thoughts.

sod··on Introducing Svelte, and Comparing Svelte with React and Vue (2021)
Single file components like .svelte and .vue are nice at first glance. But I want typescript, eslint and prettier understand my code natively and not wrapped in custom syntax and smushed into one file that every tooling now has to support.

Maybe it's finally time for someone to standardize this - even if just pointing at what vue & svelte already do - so every tooling can go ahead and support amalgams of filetypes in a single file for any framework that wants to work like this.

It's a wonder how react managed to force their jsx and angular forced annotations into typescript just to get a good typescript experience out of the box.

sod··on Jetbrains Space
All in one solutions always look super nice when they first come out, as they can shortcut to just implement all the best practices that most people do right now and look very clean by omitting all the weird edge cases. But give it a couple of years, and you are stuck with a slow moving monolith. That jetbrains fleet - a year after the announcement - is still in closed beta shows that they aren't really setup to move quickly.

But from a business perspective this seems like a good move. There is no competition for such a complete package? Email seems to be missing though. And even if your software is closed source, what if you want to open source parts of it for exposure and talent acquisition?

sod··on FDA Authorizes Moderna, Pfizer-BioNTech Bivalent Covid-19 Vaccines Booster Dose
He didn't say covid disappeared. He says that he "moved on" aka thinks that covid is here to stay or at least we didn't found something to get rid of it in the near future.
sod··on Show HN: BDC – Ergonomic, sub 1KiB virtual DOM library
I always wonder why github doesn't do something like this. Right now they return html via ajax and innerHTML it into the DOM. Given that innerHTML is notoriously slow, returning something like this should be way faster.

Your lib seems to lack svg & @types support though. And I don't know why you have "virtual DOM" in the title, given that it has nothing to do with it :)

sod··on Vite 3.0
Don't switch if its pleasent to work with already. Vite is very nice, but it lets your browser load each module individually in dev mode (not like webpack, that creates chunks that combine lots of modules), so if you have a big project, you may end up with pages where your browser has to resolve and load 100 modules, which may be slower then webpack serving you 3 chunks.
sod··on Python 3.11 vs 3.10 performance
I wish there was something like llvm for scripting languages. Imagine if python, php, javascript, dart or ruby would not interpret the code themself, but compile to an interpretable common language, where you could just plug in the fastest interpreter there is for the job.
sod··on Using TODO For Everything
Committed @TODO in code is a junk drawer for people who don't like ticket systems. If you are working alone, sure. But in a team, please show your peers some respect and allow them to prioritize/document todos via a ticket system so a product manager can drop it or assign someone else on it. But don't litter the code with a bunch of TODOs.
sod··on Postmortem assessment of olfactory tissue degeneration in patients with Covid-19
There are people with a stroke, removed tumor or other brain injuries who recover (e.g. see Simone Giertz on yourtube). Don't underestimate the ability to adapt. Maybe you lost a few points. Maybe not. Maybe you didn't even fully utilize your brain anyway and with a few tricks you easily blow past your capabilities from before covid. Just listen to a few "Huberman Lab" podcasts about cognitive function and the brain. I know worrying can be a vicious cycle. Trying to improve is the best you can do to grab yourself out of it.
sod··on Apple M1 Ultra's 64-Core GPU Fails to Dethrone the Mighty RTX 3090
If we don't eschew praising nvidia for its glorious performance, I guess we deserve that the rumored 4090 will draw 600 watts of power. Nvidia delivers what the majority wants.
sod··on A complete guide to TypeScript’s 'never' type
tldr: A method that is typed as returning `never` either never returns (infinite while/for loop) or throws an error. And as return types can also be conditional, your given inputs may switch the return to `never`, allowing typescript to tell you that code following that line will never be executed.
← PreviousPage 2 of 4Next →