News for hackers. Stuff that matters.

yougane

Re:Let's write a treesitter major mode for Emacs on Thursday September 14, 2023 @08:50AM (#37508277)
Or you can just "M-x treesit-install-language-grammar" then follow the prompts.
Re:Google Bard now open to use on Wednesday May 10, 2023 @03:28PM (#35892276)
Works in Morocco
Re:Hello wasm-pack on Wednesday April 18, 2018 @03:45PM (#16870460)
Web applications nowadays depend on hundreds of dependencies. If each one of these dependencies were to have a size of 60kb or more that would be very bad.
Re:Hello wasm-pack on Wednesday April 18, 2018 @03:38PM (#16870373)
>Not only will most frameworks and standard JS libs dwarf this

The original runtime that was used by Blazor was already a compact .NET runtime, and no matter how much you minify it (or any other runtime, such as the JVM), it will always have a considerable size.

>the average web page size has upped to ~ 3MB these days...

This is not an excuse to make web pages' sizes even larger :).

Btw, I'm not against the idea of using a managed language that targets WebAssembly for front-end development. On the contrary, I'm very excited about Blazor and I'm following its development, and I would love to see similar frameworks for other languages such as Kotlin or Swift.

But while I think the size of a runtime won't be an issue for web applications that use such frameworks, I don't like the idea of shipping large runtimes with wasm packages that might be used with other languages.

Re:Hello wasm-pack on Wednesday April 18, 2018 @12:53PM (#16868889)
The original runtime was about 60kb in size, that's still unreasonable to add to a library. Imagine a small library like Redux (2kb, including dependencies) having to ship with a runtime that's 60kb (or more). Now imagine a project that depends on multiple libraries of the same size or larger... This is why a language that has no runtime (such as Rust) makes more sense for developing wasm packages that can be used side-by-side with other languages.
Re:JavaScript to Rust and Back Again: A Wasm-Bindgen Tale on Wednesday April 04, 2018 @08:09PM (#16760570)
I think what he means is that C# apps would have a smaller size if AOT compiled to wasm instead of shipping the mono runtime with .NET assemblies. (sorry for my English)
Re:JavaScript to Rust and Back Again: A Wasm-Bindgen Tale on Wednesday April 04, 2018 @05:10PM (#16759129)
C# already jumped on the bandwagon with Blazor https://github.com/aspnet/Blazor