Live data from Hacker News

Game Jam 2 Results

wasm4.org

61–70 of 193 posts

Re: Game Jam 2 Results

#61

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…

Not tooling. I wrote 8086 assembly before so I remember the process of learning data segment / register / byte allocation / all kind of interrupt. I would choose a word "applied webassembly" (like applied physics) for knowledge that it's lacking. c, c++, zig, rust, go, .net you said fall into "already application" category to me. It's no point of webassembly like no point of assembly when we write those languages.

Re: Game Jam 2 Results

#62

Earlier 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.

You could be a gen Zig developer. How cool is that. Yep, start cleaning up complexity mess that js ecosystem is expanding.

Re: Game Jam 2 Results

#63
post #55

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…

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

#64

Earlier 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.

It's really not a problem for me. I've worked on probably about 20k LOC of zig. Probably the one time it was an issue was when I wrote some code that wrote zig -- and then it pushed me into realizing that this was a code smell, and a refactoring fixed it.

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

#66
post #55

Earlier 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.

http://www.cs.cmu.edu/~btitzer/cs17-670/fall2022/

Re: Game Jam 2 Results

#68

Earlier 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.

You commented about my code quality, but I will assume you were in a rush and missunderstood that I was talking about work in progress stuff and debugging, so if that was teh case I apologize (if is not the case then you might understand in a few years)

Re: Game Jam 2 Results

#69
post #66

Earlier 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/

Ok thank you. At least there is accessible assignment project 1-4ab and the https://craftinginterpreters.com/ good!

Re: Game Jam 2 Results

#70

Earlier 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.

And make your completely new mess.

I doubt JS will stop being primary language in browsers in my lifetime.

Post reply on HN