News for hackers. Stuff that matters.

Phillippe

Re:A proposal to add signals to JavaScript on Sunday March 31, 2024 @05:58PM (#39888442)
The current Svelte version does it at build/compile time. The up and coming Svelte 5 is using signals and the reactivity is moved to runtime
Re:Svelte 5: Runes on Wednesday September 20, 2023 @01:34PM (#37587120)
I don't mean to be rude, I'm just brainstorming. I'm sure they have thought about it I'm just commenting in the small chance that they haven't
Re:Svelte 5: Runes on Wednesday September 20, 2023 @01:14PM (#37586854)
Maybe reuse the $:{} here, tho that would probably be really confusing for svelte 4 developers lol

$:{ let name = 'world'; };

vs

let name = $state('world');

$: is valid javascript right? So that should also work in .js/.ts files I assume

Re:Svelte 5: Runes on Wednesday September 20, 2023 @01:07PM (#37586755)
I love all the changes except that single thing with let count = $state(0);

I'm just brainstorming here, but what about an optional $reactive rune where everything in that is reactive by default?

$reactive(() => { let name = 'world'; });

vs

let name = $state('world');

Re:Svelte 5: Runes on Wednesday September 20, 2023 @12:45PM (#37586475)
"...isn't quite right — it would break _all_ your existing code that wasn't in .svelte files."

What if it is opt-out reactivity in .svelte files and opt-in reactivity in .ts/.js files? Yeah I know it would be a bit more combersome to copy code from .svelte to .js/.ts files but I think it would be worth it

Re:Poxi: A Modern GeoCities on Monday November 14, 2022 @01:12PM (#33598329)
It is very interesting to hear! Thank you for this writeup. I don't think it will be a problem tho, to all the people I've shown it to, like 5-6 people have absolutely loved the name, you're the first person who did not like it. I've heard people say it reminds them of proxy, pokemon and toxic. This is meant for individual personal use, so It does not really matters if companies do not want to be associated
Re:Poxi: A Modern GeoCities on Monday November 14, 2022 @11:31AM (#33596561)
Hey, I'm the creator Poxi (I'm not OP). Was just wondering what you mean by this? What is wrong with Poxi?