computer-guy.bsky.social
FOSS dev
computer nerd
https://github.com/Ocean-OS
12 posts
27 followers
33 following
Getting Started
comment in response to
post
Would this function ever rerun? Also, how do you differentiate between derived values and sources? (Not the exactly the same thing here, but I don't really know what else to call them)
comment in response to
post
Didn't you make something that can do that for you?
github.com/Rich-Harris/...
comment in response to
post
I agree, not to mention the large number of devs who simply choose to avoid using AI. For example, I mostly rely on human-made tools like docs and Stack Overflow instead of AI. Declaring React as the "last framework" just because a tool used by some devs supports it the most is irrational.
comment in response to
post
Maybe try adding "safari>=12" to your targets in your vite-legacy config? (According to MDN, Safari 13.1 added support)
I'm not entirely sure what sort of polyfills vite-legacy does though; if it just adds runtime polyfills then it won't work and you'd have to add something else (eg Babel or SWC)
comment in response to
post
If it's something about an unexpected token, the newish syntax features I can think of that Svelte uses are nullish coalescence and optional chaining. You could try finding a polyfill for that (probably using Babel or sth similar)
But more context is definitely needed here to be sure.
comment in response to
post
imo, when it released, it was really unique, so people initially opposed it. However, after larger companies like Netflix adopted it, more and more people tried it and liked it, and since more people used it, more libraries were developed for it (which enticed more people, continuing the cycle).
comment in response to
post
There's also going to be a new feature called "interest invokers" to tell when a user is interested in a button or link, could be useful for pre-caching/preloading!
comment in response to
post
Is there a reason that we can't just compile the typescript code to JS using TSC (or maybe SWC) and then parse it with acorn?
comment in response to
post
Perhaps some sort of chunking could be used to split up a large buffer? I'm not too familiar with typed arrays, but I think this could work using a sufficient class (or a proxy could also work well) that would have an array of typedarrays.