Hacker Newsnew | past | comments | ask | show | jobs | submit | onsclom's commentslogin

this is the way to go!

making a move should automatically copy the new url to your clipboard. you can still keep the ascii charm by server side rendering the ascii chess board as an og description.


made a non-ascii of this where nice og images of the board are generated!

https://correspondence-chess-production.up.railway.app/


`const foo = function() {}`


I'm guessing you don't consider VSCode an IDE? I'm curious, what features do you use in IDEs that are missing in VSCode?


I am not considering VSCode as a IDE. Because Microsoft, the creator of VSCode, does not consider VSCode as IDE.

They have a IDE called Visual Studio and it is different from VSCode


Implicit reactive `let` statements make the code harder to understand for humans AND the compiler. This new explicit state pattern even simplifies designing. Now reactive state can work outside of components and across files as you would expect. It was tricky in all three ways.


Make sure you opt in to use runes!

You can do it project wide or per component: https://svelte-5-preview.vercel.app/docs/runes


> The easiest way to opt in to runes mode is to just start using them in your code.

Opt-in is optional, no?


Whoops, I missed that. Good catch! I'm not sure how tln's problem is happening then.


Instead of finding reactive dependencies at compile time, `$effect` and `$derived` automatically track dependencies at runtime. This might feel like it would result in a performance decrease, but it is what SolidJS has been doing. And SolidJS is #1 in most performance benchmarks!


Fair points, though React has hugely complex runtime magic. SolidJS's compiler magic is just as simple while also having much a simpler runtime.


To be fair, assignments to variables still update the state of your component. `count += 1` will still update the state of your component. I think what you meant is that you now need to explicitly declare `count` as state. Personally, I think the magic of Svelte is that assignment part. And now the magic of Svelte works across files and even inside regular `.ts` and `.js` files!


> The $effect runes makes people think we are going down the React useEffect route... but I didn't see a dependency array attached there waiting to obliterate performance?

This is exactly what SolidJS already does, and SolidJS is #1 in almost all performance benchmarks.


If you created `anotherThing` as nested state, then just the children!

See this for a real example: https://svelte-5-preview.vercel.app/docs/fine-grained-reacti...

Here is the same thing in SolidJS with more explanation: https://www.solidjs.com/tutorial/stores_nested_reactivity


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: