Viewing profile — rich_harris
rich_harris
HN member- Joined
- Fri, Apr 20, 2012, 8:23 AM UTC
- HN karma
- 2,184
- Public activity
- 293 items
- HN profile
- View on Hacker News ↗
About rich_harris
[ my public key: https://keybase.io/rich_harris; my proof: https://keybase.io/rich_harris/sigs/bNnI-LDHwK3RWLTgrLQaROaLYmjlBICEE4bG51pBdgA ]
Recent public activity
-
comment
Comment #48763467
I have to admit I get very disappointed when I see new form abstractions that don't take this seriously — especially if they make bold claims like 'the new paradigm'!. The whole po…
-
comment
Comment #48761767
The docs don't appear to cover progressive enhancement. Is this an oversight?
-
comment
Comment #46734928
The Svelte implementation is very inefficient. With a small change I was able to get it to the number two spot on both duration and memory, at least running on this machine. Thyn i…
-
comment
Comment #46638950
No, if you're using `adapter-static` (or, if not using SvelteKit at all, just not doing any dynamic server-rendering) then you are not affected. But upgrade anyway!
-
comment
Comment #44582504
If you think 'helping developers meet their legal obligations to build sites that can be used by everyone' is 'woke', then you should go and use a different framework.
-
comment
Comment #44559953
Three of us are employed by Vercel, and we're probably responsible for over 50% of commits. The core team is much larger than just us though
-
comment
Comment #44519900
ISR _can't_ be implemented at a framework level without tying the framework to the platform. The fact that we instead chose to implement it via a platform-agnostic adapter API sure…
-
comment
Comment #44515637
> I have no doubts they'll do the same with Nuxt, demanding they implement features that solely exist to pad out hosting costs while providing next to no actual benefits to end use…
-
comment
Comment #44269370
> $:{} for example is not explicit, I'd much rather use a slightly longer token (like useEffect) to help document what's going on FWIW you're describing a legacy syntax — modern Sv…
-
comment
Comment #40682702
For sure — just wanted to be totally explicit that SvelteKit will always be platform agnostic
-
comment
Comment #40682407
This simply isn't going to happen.
-
comment
Comment #39328385
Ha, did not expect this to be on the front page of HN today! Some quick context: in January I was in London for a few days, and while I was there we had a Svelte Society London eve…
-
comment
Comment #37600151
Notice that you just said "You can have a list of components _where each component_ references a bit of global state". In other words, in order to avoid re-rendering everything, yo…
-
comment
Comment #37599538
Michel and I have been internet acquaintances for years, and we've even talked about this stuff IRL. MobX certainly isn't something we just somehow never learned about! But anyway:…
-
comment
Comment #37596916
Hi! First up — not that it matters, but since people will wonder — our design wasn't informed by the Reactivity Transform. We evaluated something close to 50 designs, some of them …
-
comment
Comment #37596482
FWIW you can of course implement createSignal in four lines of code, if you prefer the ergonomics of that: function createSignal(initial) { let value = $state(initial); return [() …
-
comment
Comment #37590682
> Can you build a $derived from multiple other $derived? Yes > Will the end result see temporary, half-updated values? No. It uses a push-pull mechanism — dependency changes don't …
-
comment
Comment #37590657
> the more Svelte you write, the more compiled code appears - generally, Svelte compiles to a size somewhat larger than the original source file. This is one of those things that's…
-
comment
Comment #37586515
That would be a _terrible_ outcome. Things would routinely break, and code would be vastly more confusing.
-
comment
Comment #37586274
Yes. Signals are a wonderful mechanism, but they do come with headaches. Our goal was very much to adopt the elegant reactivity model without all the downsides, and we've approache…
-
comment
Comment #37586235
We evaluated somewhere close to 50 different design ideas (seriously) before settling on this one, and what you describe was one of those ideas. But one of our goals was for you to…
-
comment
Comment #37586137
We've toyed with this idea. There's a couple of problems though. Firstly, if you have this... type Reactive = T; function $state (value: T): Reactive ...then TypeScript will 'unwra…
-
comment
Comment #37585555
Having a great experience with TypeScript was very much one of our goals. Many design ideas failed to clear this hurdle
-
comment
Comment #37585512
What I mean by 'implementation detail' is that you _literally can't get a reference to a signal_ in Svelte 5. This alone prevents people from mutating things in unexpected ways.
-
comment
Comment #37585384
We never made any such claim! In fact, the reverse: https://twitter.com/nsthorat/status/1653890181592653825 In Svelte 3, you had to opt in to running code on updates, using things …