WebAssembly is taking over!

  Рет қаралды 10,078

Doug Anderson

Doug Anderson

Күн бұрын

Пікірлер: 33
@RustIsWinning
@RustIsWinning Ай бұрын
Oh wow that's an awesome project! Rhai + egui + pest + wasm + wit :D
@DougAnderson444
@DougAnderson444 Ай бұрын
Excited to add ollama-rs to it too!
@NLPprompter
@NLPprompter 27 күн бұрын
hello sorry to bother you with newbie question here, is this mean i can deploy AI python codes (that running in conda) with Web GUI that is securely isolated and fast? (I've tried few rust based apps they all blazing fast, especially the zed code editor it is really fast for me)
@DougAnderson444
@DougAnderson444 26 күн бұрын
Web AI is still pretty slow but sure it can be done. I wouldn't do it with Python though, that would make it unbearably slow, switch to a Rust framework like Candle
@mashebemunalula8901
@mashebemunalula8901 Ай бұрын
When you say something but you are thinking about a mother?
@DougAnderson444
@DougAnderson444 Ай бұрын
@@mashebemunalula8901 it's a joke about Freudian slips. kzbin.info/www/bejne/iXPPYaOeftRgp5Isi=eXv5iL8V09utQ1rH
@TheNoirKamui
@TheNoirKamui 20 күн бұрын
Isn't leptos tryting to do this already for many years?
@DougAnderson444
@DougAnderson444 20 күн бұрын
Leptos is great, but you can't encapsulate an entire Leptos app into wasm and then run it trustlessly in another Leptos app
@DougAnderson444
@DougAnderson444 20 күн бұрын
Leptos ties the UI to the code very tightly, the idea is to separate them so the code becomes portable
@djasnive
@djasnive Ай бұрын
Good Job 👍 What about the first loaded Wasm Size ?
@frizadiga
@frizadiga Ай бұрын
good point
@DougAnderson444
@DougAnderson444 Ай бұрын
So RDX ("the runner") is like 11MB, and each little plugin is 10 - 50kb. The idea to to have a single runner execute many small plugins. It runs native and on web, so really that 11MB *should be* a one time download
@LoganDunning
@LoganDunning Ай бұрын
🔥💪🙏
@11WicToR11
@11WicToR11 Ай бұрын
if it were taking over because its faster and safer etc etc, why wouldnt the same thing happen on nodejs side of things? We wont be using this in general as well, it will just give us option to make some things more performant but in general we wont use it for basic things like forms ever .....in my opinion
@DougAnderson444
@DougAnderson444 Ай бұрын
Great points! It's more about privacy, security, and extensibility than anything else. Speed is great, but that fact that I can privately run MY data in YOUR plugin (app) is something that I would NOT trust nodejs or the browser to do. Maybe Deno, but again you need to address the lack of User Interface with Deno. RDX solves both the privacy and UI issues.
@skinneymoney
@skinneymoney Ай бұрын
Very cool. I agree (or least one can dream) that WebAssembly is taking over! What sort of applications do you RDX this being used for? As well, how would you view this as being different than the existing Rust frameworks, such as Leptos?
@DougAnderson444
@DougAnderson444 Ай бұрын
Great questions! I see RDX plugins being used for "personal micro apps" for updates and whatnot. It's run privately (no data exfiltration) so small private data (like location, schedule, contact info) would be a great fit.
@DougAnderson444
@DougAnderson444 Ай бұрын
Leptos is great too, but not very composable because wasm_bindgen (Wasm Modules) doesn't support composition like Wasm Components do. Also leptos is limited to the Web unless you use something like Tauri as the backend. RDX is isomorphic, runs both Native and Web, plus it's extensible with other peoples' plugins
@GreatTaiwan
@GreatTaiwan Ай бұрын
ok sry to be the stupid guy, here but as a React dev with some fastapi knowledge what am I looking at right now? i feel like i get but not get it in the same time :(
@User948Z7Z-w7n
@User948Z7Z-w7n Ай бұрын
React is just never gonna die. Php is dead yet? JQuery? Ruby on rails? Nahh
@DougAnderson444
@DougAnderson444 Ай бұрын
@@GreatTaiwan think of this as "the React of WebAssembly". We're using the new Wasm Component Model to render UI straight from wasm. There's no JavaScript, all the UI is taken care of by egui and eframe
@DougAnderson444
@DougAnderson444 Ай бұрын
@@User948Z7Z-w7n I started out with jquery, ahh the good old days 🤣
@DougAnderson444
@DougAnderson444 Ай бұрын
@@GreatTaiwan it also depends on what you're trying to do. I'm looking for secure ways to share code, secure ways to run my data on others people's components. This is the way to do that, it's more secure than SaaS and JavaScript, PHP, or anything that runs in the server
@GreatTaiwan
@GreatTaiwan Ай бұрын
​@@DougAnderson444 " I'm looking for secure ways to share code, secure ways to run my data on others people's components" why would you like to do that? or are you saying this a completely diff paradigm where we can backend computation without compromising privacy .. ex: LLM stuff if it's true this is huge right? did you read about ARM and the work of apple as well with Secure Private Cloud is this related somehow to it ? at least in goals?
@Wizatek
@Wizatek Ай бұрын
I really doubt that wasm is taking over. i don't think Rust is here to stay
@DougAnderson444
@DougAnderson444 Ай бұрын
Looking forward to hearing what cross platform, composable, type safe, memory safe, library rich, near bare metal speed language is going to replace it
@neunmalelf
@neunmalelf Ай бұрын
Taking over, really? How about the missing access to resources, file system hardware? And it takes FOREVER before “THEY” agree on something to get implemented. And then there is the nasty interaction with JavaScript for everything that needs to run "in a browser". I agree, WA is a good chance for the “final” platform independent runtime. We are on a way, but not there yet. And the last 40+ years showed us, that someone will ruin it, block it, or at least try to lock it into something less flexible and therefore less usable. PS: I can't wait till the next wave of overhyped microservice will fail AGAIN. It's not (and never was) the technology used to create them, but a poor (real world) understanding of the problem they should solve and more often than not lousy design/implementation.
@DougAnderson444
@DougAnderson444 Ай бұрын
I hear you. Actually you can pass in access to whatever resources you need. I'm even working on some async varieties of resource access. JavaScript sucks, which is why this impl avoids it! 100% pure Rust
@neunmalelf
@neunmalelf Ай бұрын
@@DougAnderson444 Not a Rust Person however i will keep an eye on your project, hoping you will keep us posted. Maybe you are onto something "to fill the gaps" at least a bit.
The Truth about Rust/WebAssembly Performance
29:47
Greg Johnston
Рет қаралды 189 М.
PHP 8.4 Is Good
15:18
ThePrimeTime
Рет қаралды 140 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Webassembly Is NOT What You Think!
48:42
The Art Of The Terminal
Рет қаралды 15 М.
Tailwind V4 is WAY better than I expected
30:17
Theo - t3․gg
Рет қаралды 132 М.
The State of Frontend
1:00:56
Syntax
Рет қаралды 15 М.
The First Real Webpack Alternative (Written in Rust!)
19:28
Theo - t3․gg
Рет қаралды 64 М.
Now I Know Why Most People Don’t Use gRPC
19:11
ArjanCodes
Рет қаралды 62 М.
Programming a synth in Rust using CPAL and FunDSP!
51:36
Mo chreach!
Рет қаралды 2,7 М.
"The Life & Death of htmx" by Alexander Petros at Big Sky Dev Con 2024
23:01
Montana Programmers
Рет қаралды 73 М.
Windsurf vs Cursor: In-Depth AI Code Editor Comparison
18:14
Yifan - Beyond the Hype
Рет қаралды 21 М.
5 deadly Rust anti-patterns to avoid
13:25
Let's Get Rusty
Рет қаралды 37 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН