All WASM related stuff seems lacking of know-how of WebAssembly itself. I want the promise of "language-agnostic". For example, I have AST, I want to generate WebAssembly (either text or binary format, lets start with .wat), there's only a couple articles I found talks about how to map string to wasm's memory or table. Current situation is it's not language-agnostic as movement, it's just c/rust mostly. So wasm-4 see…
Are you trying to say web assembly is not well documented, or are you commenting on the state of tooling? It seems to me that most compiled languages can target wasm these days (eg c, c++, zig, rust, go, .net) The specifications are open and detailed [1]. Specifications like that can be daunting to consume if you want a place to start from instead of a complete overview of the landscape, but there are tutorials in pu…
Game Jam 2 Results
61–70 of 193 posts
Re: Game Jam 2 Results
#62Earlier quoted context omitted.
If I were a Zig advocate I would advertise [Z]ig as the programming of future starting from gen Z, new blood of developers.
Generation Zig? I like it. Even though I'm technically a millennial… but if the next gen start using Zig instead of JavaScript for everything, I'm on board.
Re: Game Jam 2 Results
#63All WASM related stuff seems lacking of know-how of WebAssembly itself. I want the promise of "language-agnostic". For example, I have AST, I want to generate WebAssembly (either text or binary format, lets start with .wat), there's only a couple articles I found talks about how to map string to wasm's memory or table. Current situation is it's not language-agnostic as movement, it's just c/rust mostly. So wasm-4 see…
This is good feedback for the Wasm community. Right now I am teaching a VM course on the back-half of the Wasm equation: how to build an engine for Wasm. The course is about more than Wasm, of course, so there is a lot of content about JVMs and dynamic object models, but the projects are based around Wasm. In the future I envision university compiler courses getting divided into two halves, either as one course with…
You read my mind, yes. That's why I said I have AST.
Is your course private? I'm interested.
Re: Game Jam 2 Results
#64Earlier quoted context omitted.
Yes, but you comment out unused variable once per variable (you can leave those underscores in and clear them out before release). The 2s happens every time you compile . The badness of slow compiles is non-linear, too. As you start to get to 30s, the likelihood that you check Facebook, Twitter, or hn goes up. At least when you're underscoring unused vars you're doing something active . If it gets to 2-5 minutes the…
Strawman. Incremental compile times don't hit 2-5 minutes in either language, otherwise it obviously wouldn't be viable for real-world use. And juggling variables was an ongoing ordeal when I tried. I can't imagine how you would work on code without changing any of the variables.
Compile times of 2-5 minutes can happen in langs that are not rust. You mentioned rust, not me. And anyways the 30s to hn thing is real.
Re: Game Jam 2 Results
#6526 or so data points, but still interesting. I myself have become enamored with Zig's relative simplcity and straightforwardness, although some of my friends keep telling me to do Rust instead.
Re: Game Jam 2 Results
#66Earlier quoted context omitted.
This is good feedback for the Wasm community. Right now I am teaching a VM course on the back-half of the Wasm equation: how to build an engine for Wasm. The course is about more than Wasm, of course, so there is a lot of content about JVMs and dynamic object models, but the projects are based around Wasm. In the future I envision university compiler courses getting divided into two halves, either as one course with…
> I'd like to move the needle here for PL implementors You read my mind, yes. That's why I said I have AST. Is your course private? I'm interested.
Re: Game Jam 2 Results
#67Re: Game Jam 2 Results
#68Earlier quoted context omitted.
As other said, it is not a good practice so inline all the code, I prefer well named variables, and I assume you can find examples in your code where you have a local variable that depends of a function parameter. Funny enough I was correcting my son c++ homework yesterday, he had a complex if statement like if (somefunction(m,n, y[j]) == m[j]) and I made him make a local variable to make it clear what is happening.…
I'm not so sure about that one, despite clearly being in the company of people who feel attacked, I'm not the one attacking people here. I'm commenting on code practices, and baffled at other people's rage about the compiler demanding that you don't have unused variables, but I haven't attacked anyone.
Re: Game Jam 2 Results
#69Earlier quoted context omitted.
> I'd like to move the needle here for PL implementors You read my mind, yes. That's why I said I have AST. Is your course private? I'm interested.
http://www.cs.cmu.edu/~btitzer/cs17-670/fall2022/
Re: Game Jam 2 Results
#70Earlier quoted context omitted.
Generation Zig? I like it. Even though I'm technically a millennial… but if the next gen start using Zig instead of JavaScript for everything, I'm on board.
You could be a gen Zig developer. How cool is that. Yep, start cleaning up complexity mess that js ecosystem is expanding.
I doubt JS will stop being primary language in browsers in my lifetime.