lukechu10

Joined 5 years ago

Karma
66
Submissions
36
Member since
Mar 8
Creator and maintainer of Sycamore (https://sycamore.dev), a Rust UI framework based on functional reactive programming.
View on Hacker News

Recent submissions

Comment · 7 months ago
Hmm that's pretty cool. Thanks for sharing!
Comment · 7 months ago
What does it mean to have a distributed quantum computer? Because if these distributed quantum computers are connected by classical communication channels (e.g. the internet), then it has been proven that this cannot provide any quantum speedup over just a single quantum computer.

See Jozsa & Linden 2003: https://arxiv.org/abs/quant-ph/0201143

So to actually get a quantum speedup, these quantum computers will need to be connected with quantum channels, which are possible IRC with fiber optic links (eg. by using the quantum state of the photons). But that is not the case.

Comment · 7 months ago
Well what makes you think the VPN providers are not tracking?

You would have to either self-host your own VPN server somewhere (maybe on a public cloud provider) or if you are truly paranoid, use something like Tor.

Comment · 7 months ago
Good feedback. I'll make a demo page showcasing all the examples and link to it from the home page.
Comment · 7 months ago
If you actually read the README.md file, the first few lines say that there are hosted versions available that you can view directly in your browser. I also mentioned this in another comment. I don't know what else you want...
Comment · 7 months ago
No I think that's a different product. What I had in mind is what is on, for example, https://tailwindcss.com/ and many other open source project websites. If you open the search menu, you'll see at the bottom that it's powered by Algolia docsearch.

Basically its a service that automatically crawls your docs and creates a search index and widget that you can include on your website.

Comment · 7 months ago
It's the gzipped size that matters a lot more. Also wasm is significantly faster to parse and run than Javascript so although 500kb seems like a lot for JS, for WASM it's not that much.

A general website will likely need a lot more data in the form of images and other media so all in all this is not too bad.

The reason why bundle size for JS is so important is that the browser needs to first download the JS, parse the JS, then JIT compile it before it can start running. For WASM on the other hand, the browser can in fact parse it while downloading in parallel and then run it almost immediately since WASM is much lower level. So for WASM the main bottleneck is downloading whereas JS, it is parsing and compiling.

Comment · 7 months ago
There are a lot of demos! Check out the examples/ folder on GitHub.
Comment · 7 months ago
Yes I plan on adding doc search. Although I'm not sure if I should try to build one from scratch (never tried building full text search before) or using something prebuilt like Algolia docsearch.
Comment · 7 months ago
Yeah that makes sense. I’ll work on improving the front page
Comment · 7 months ago
That’s because I’ve changed it since posting this!
Comment · 7 months ago
What kind of examples were you expecting? There are plenty of examples in the examples/ folder on GitHub as well as plenty of other projects using Sycamore as can be seen from GitHub’s reverse dependency page
Comment · 7 months ago
There are also plenty of other examples as mentioned in the comment above. Also many other projects using Sycamore which you can see by looking at GitHub’s reverse dependency page.
Comment · 7 months ago
I'm personally not to big of a fan of the Elm pattern for UI. Although it can be quite elegant, most of the times, it ends up being quite verbose even for simple things.

I feel like combining the drawing layer from one of these existing native UI frameworks with Sycamore could be interesting in reducing some of the boilerplate with GTK, Iced, GPUI, etc...

Comment · 7 months ago
That's true... but there's also plenty of other examples with more reactive elements.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton