Viewing profile — onsclom
onsclom
HN member- Joined
- Thu, Oct 21, 2021, 8:04 PM UTC
- HN karma
- 214
- Public activity
- 49 items
- HN profile
- View on Hacker News ↗
About onsclom
Recent public activity
-
comment
Comment #48579057
Ooh interesting. What is your machine and browser? On chrome with my m1 macbook it takes less than 1ms to compute and render each frame, but I am noticing some things I can optimiz…
-
comment
Comment #48578914
I made my own WASM demo @ https://microui-wasm.vercel.app/ and it's only 14.6 kB compressed! Will share source code if someone is interested, but key bits: - had a small JS glue la…
-
comment
Comment #47654705
I don't necessarily hate Lua, but I prefer C and Raylib for game dev. Lua is garbage collected, dynamically typed, strays far from standard syntax patterns, and has less existing t…
-
comment
Comment #46673280
made a non-ascii of this where nice og images of the board are generated! https://correspondence-chess-production.up.railway.app/
-
comment
Comment #46670802
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 a…
-
comment
Comment #41805705
`const foo = function() {}`
-
comment
Comment #39125018
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?
-
comment
Comment #37606883
These are great points! Thanks for the super thoughtful reply. I'm actually sold. 1. It's really nice that it's so easy to make a `createSignal` 2. I didn't realize that in Solid y…
-
comment
Comment #37593284
Whoops, I missed that. Good catch! I'm not sure how tln's problem is happening then.
-
comment
Comment #37590125
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…
-
comment
Comment #37590018
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
-
comment
Comment #37589828
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 performanc…
-
comment
Comment #37589777
Fair points, though React has hugely complex runtime magic. SolidJS's compiler magic is just as simple while also having much a simpler runtime.
-
comment
Comment #37589660
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 ne…
-
comment
Comment #37589600
> 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 …
-
comment
Comment #37589536
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…
-
comment
Comment #37588415
Most of this I really love. One thing seems a bit strange though... Let's compare Svelte's and Solid's approach to nested reactivity. Both of them implement the same nested reactiv…
-
comment
Comment #37587942
This example is a bit strange to me. I wonder if `$effect` will actually replace all usage of `onMount` and `onDestroy` for Svelte. In Solid you could totally do these things with …
-
comment
Comment #37587085
I snooped around Rich's GitHub history and found he's working on esrap[1], a package to convert an AST into code. It uses Bun for development and testing! Crazy theory: esrap will …
- story
-
comment
Comment #36938290
> I wonder if it's possible to put this code in the backend in C++, what do you think? Yeahh, looks like you'd have to connect to all these signals and be able to access sizing/pos…
-
comment
Comment #36914605
Whoops, I should have been more clear. When I said "It's all very unoptimized and dynamic QMLScript" I meant just the file `Flex.qml`. I'm sure the Qt C++ bindings are fast and gre…
-
comment
Comment #36871638
> Note that is also possible to create a new properties and signals for the Text which can be referenced by the children This behavior exists without inheritance as well! Let's ima…
-
comment
Comment #36870674
It's really awesome someone did this. If you just want the expressiveness of flexbox and don't care about performance, this is perfect! However, wouldn't the performance for this b…
- story