Комментарии:
the emscripten was disappointing to me as well, im looking for a simple way to build for web for the game engine im creating and i wanted to avoid emscripten as much as possible- I'll try to just do something similar to what you did here and see how that goes :3
Ответитьim getting weird behaviour with GetTime() function of raylib when i use webassembly. It returns negative values for me and i can't really measure delta times. My goal was to measure elapsed time for some algorythms i wrote. Anyone else encounted similiar confusion?
ОтветитьThe whole effort to make it work worthwhile, however, even if this more direct approach it does not seems to pay off. I learned a lot anyway. Thanks.
Ответитьwhat is the font did you use? i like it
ОтветитьYou can use raylib with pascal 😂😂😂😂
Ответитьwhy it has to be soo difficult >:(
ОтветитьYour take on Electron is absolutely based.
Ответить🍀 'PromoSM'
ОтветитьLocan man suffers from milliseconds
ОтветитьWabt = Wabbit = Web 🐰
Ответитьbro said "Please save me Linus Torvalds"
ОтветитьSo it was easy until we decided to add a third-party library... Classic software engineering... EDIT: classic modern software engineering...
ОтветитьI think this approach might work really well when building a game/engine from scratch, but it's not very good for porting.
The trick imo is to minimize the number of exported functions so you don't have to do so much in javascript. For canvas, this is kind of useless, because you're really just using the C code to drive the Javascript - the C isn't really doing anything. But if you were using WebGL, you could use WASM to build the various buffers you need, and send them all over in as few draw calls as possible.
It's similar in concept to what I've been wanting to do for a project (WASM+native), which I'll be starting soon - this has been a helpful demo and example of how to do it.
Web ass and wasm twat. Interesting.
ОтветитьHey, why do you daily drive debian? I'm curious of your opinion.
ОтветитьDo you guys see "Porn Folder 59 gigs on his bottom status line 😂"
ОтветитьDid he mention why he didn't used clang anymore?
ОтветитьI wish I could see twitch chat, :D
ОтветитьNever tried compiling C to wasm, now I can't wait.
ОтветитьI like Tauri but it's for Rust. You can even enable usage of dev tools in production builds, if you want to give them to your users.
ОтветитьI see "Porn folder 58Gb"
ОтветитьAnd something like react native does? A bridge between stuff...
Ответитьemscripten must die.
ОтветитьYou misspeled "hard" in the title
Ответить"Web version of Raylib should be implemented in JavaScript".
So the proof of concept failed.
Tsoding's surname is Raylib
ОтветитьThis approach is spirit of tsoding, not raylib. You should just get rid of Raylib at all. You shall not implement raylib APIs but invent your own APIs. Or just create a language takes the spirit of C but simpler than C and compiles to multiple platforms as you demonstrated. You majorly use C because other languages are worse. You don't like C as well. You do abstract programming, not programming in C or any language.
ОтветитьIt's so weird to see tsoding coding html5 code 😂
ОтветитьThank you....certainly education...."never complicate things until, complicate complicate things"....wise folks yester years stated...
ОтветитьI am super sad the snake game streams are lost - that approach to multiplatform games is something I'd be interested in trying myself
ОтветитьtsodinChad is always on top
ОтветитьWould an implementation of raylib in js be efficient enough? Can it also be implemented in C/Wasm without libc and make it become the raylib implementation (avoiding libc bloat and restricting js only to web api calling)?
ОтветитьSuper impressive. Way cool engineering.
Ответитьgo touch women
ОтветитьRay is a super genial friendly and approachable guy (also he's the real deal in terms of how long and how hard he's been working on raylib, most of that time with little or no funding). I recommend just connecting with him if nothing else.
Ответитьi would love to see webgpu thrown in the mix
ОтветитьSeems kind of pointless to use wasm here at all since you're just writing a js lib that actually does the work and the wasm is just some function names and a little bit of static data.
Ответитьwhat do you use to zoom in on the text?
ОтветитьCan you make a video about the hardest problem you solved in c?
Ответитьplease please please tweet your Sweet Home Alabama riff!! dude, you are a multi-cultural unicorn. Where in the world did you even hear that song? I grew up in that region of the US and I never thought that song would make it out of the deep south much less across the Atlantic ocean.
Ответитьin st actually,you can patch scroll and a lot of other functionalities,that's how suckless applications work mr.Zozin
ОтветитьThe promise of Tauri + Servo is Electron, but shipping just the parts of the browser that you actually use. Electron, no, you have to ship the whole browser. I think you even ship Node.
Ответить