News for hackers. Stuff that matters.
Re:Solidjs: Simple and performant reactivity for building us... by ManBeardPc on Wednesday April 23, 2025 @03:15AM (#43769456)
SolijS is just JS without much magic. It's simple, small and very fast.

You can use signals and effects outside of components and it just works. You can even use a signal from the global scope within a component. Tracking of signals for effects and derived values is automatic. It looks very similar to React, but it's better in every way. Honestly the first time I'm happy with this kind of library. Don't need much more.

Edit: As for Svelte: like it too, but at least before Svelte 5 there were some footguns and differences between components and "normal" JS code. I haven't tried Svelte 5 yet, only watched some videos. From the looks of it would consider it as a good alternative.

Re:Solidjs: Simple and performant reactivity for building us... by division_by_0 on Wednesday April 23, 2025 @08:04AM (#43771126)
Yes, Solid is very fast, but Svelte's Signals implementation seems to be even more performant. [0]

I just loved the simplicity of using $: for deriveds and effects in Svelte 3 and 4. But after building a correlation matrix [1] and a work project with Svelte 5, I have to say that I really like it.

[0] https://github.com/sveltejs/svelte/discussions/13277

[1] https://covary.xyz

Re:Solidjs: Simple and performant reactivity for building us... by ManBeardPc on Wednesday April 23, 2025 @11:47AM (#43773479)
Thanks for the info. I’ll definitely check Svelte 5 out.
Re:Solidjs: Simple and performant reactivity for building us... by ryansolid on Wednesday April 23, 2025 @02:49PM (#43775406)
To be fair by that metric Vue has the fastest now with its core built with Alien Signals. Raw reactivity benchmarks don't actually show very much because these systems are so fast that the quickest to the slowest reactive library doesn't even make a dent on a test that says render the DOM. And I say this as a benchmark enthusiast (and as that benchmark actually was crated by Milo from the SolidJS core team as part of our 2.0 research)
Re:Solidjs: Simple and performant reactivity for building us... by division_by_0 on Wednesday April 23, 2025 @03:34PM (#43775848)
That's good to know, thanks! Alien Signals is such a great name.