Live data from Hacker News

Game Jam 2 Results

wasm4.org

71–80 of 193 posts

Re: Game Jam 2 Results

#71
post #13

Zig is not mentioned until the section "Programming languages" (including not being mentioned in the original title): please fix the title so as not to put too much focus on that.

Zig is the new HN clickbait, taking over Rust's spot. That's a good sign for the language, honestly

How long till we start complaining that Zig followers are cult like?

Asking as Rustecean.

Re: Game Jam 2 Results

#72
post #13

Zig is not mentioned until the section "Programming languages" (including not being mentioned in the original title): please fix the title so as not to put too much focus on that.

Zig is the new HN clickbait, taking over Rust's spot. That's a good sign for the language, honestly

Good sign for the language, bad sign for HN.

I totally get it's nicer than C, I love it too, but it's completely irresponsible to push a language without a memory safety story, in 2022, this hard.

From that relatively obvious conclusion it devolves into tedious nerdsnipes. Yes there are edge cases.

Re: Game Jam 2 Results

#73
post #37
post #31

From the perspective that development time is a big constraint in a game jam it's no wonder zig is more popular than rust

Arguably Zig is a better fit for game dev. At the high end game dev is all about memory layouts and cache optimization, and that goal can run counter to Rust's approach to memory safety.

Memory safety isn't in conflict with low-level control over memory layout.

Re: Game Jam 2 Results

#74

Earlier quoted context omitted.

For me Rust is a language that I would absolutely love to work with in a professional context. The type system and borrow checker have your back and help you make changes to the code without fear of accidentally introducing any regressions. For private lone-hacking projects though it feels way too complex and opinionated. Here Zig definitely gets closer to what I need, though sadly it made unused variables an compile…

That's the one thing keeping me from considering Zig for new projects right now. If some enterprising young developer is reading this and wants to make a name for themselves, you should fork the Zig compiler and change those errors to warnings. It would be an extremely popular project. EDIT: I'll even give you a catchy project name. Wig: Zig with Warnings

You should also consider that optimizing for incorrectness and prototyping speed might not be the professionally responsible choice in 2022.

Re: Game Jam 2 Results

#75
post #3
post #2

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

Yeah, not a lot of data points, and a niche subject, game dev, but I am playing with the Mach game and graphics engine, and so far so good. I started programming in 1978 in CPM Basic, C, 6502 assembler, etc. I play with Rust, but if I am really looking for high-integrity software, I am currently using SPARK2014 (the subset of Ada), that has some legs beneath it. Rust and AdaCore are starting to work together to bring…

How is Spark2014 easier to understand than Rust? The borrowing rules [1] are more or less the same.

[1]: https://docs.adacore.com/spark2014-docs/html/ug/en/source/la...

Re: Game Jam 2 Results

#77

Earlier quoted context omitted.

>it's not like commenting out variables is difficult. But if you comment var A that uses var B now B is unused and you need to commnet B, but now B was using a function parameter C and this param is unused now so you need to update the function signature (I do not use Go,Zig so maybe they did not forced you to also use all the function params my experience is with linters where ehwn you comment something then more un…

Wow sounds like you really need to clean up your codebase. Seriously, I have never had this problem while coding in Go, and I'm a very very sloppy coder.

I am seriously mind-blown that you've never encountered this problem in Go. You're trying something, and you see an error, you comment out a function and replace it with a print statement. And now suddenly you have to comment out a bunch of things up to the import statement just to fucking test out a simple hypothesis.

Re: Game Jam 2 Results

#78
post #71

Earlier quoted context omitted.

Zig is the new HN clickbait, taking over Rust's spot. That's a good sign for the language, honestly

How long till we start complaining that Zig followers are cult like? Asking as Rustecean.

I've noticed people that like writing code in Zig are fans the language and the people that like writing code in Rust center their identity around the language. The former leads to people saying they enjoy writing code in Zig, the later leads to religious zealotry and moral condemnation for using anything other than Rust.

Re: Game Jam 2 Results

#79
post #70

Earlier quoted context omitted.

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.

You have chance to prevent it. It's not going to be perfect but use huge lesson learned from js ecosystem "mess" (I found this triggers some (many) js folks, it's quite ridiculous).

Javascript "mess" in browsers could be reduced by dividing into two parts. DOM stuff, and pure language stuff. The first part can stay as is. Probably wrapped into thin API for new lang interop. The second part is a completely new lang that compile to wasm (ideal if vice-versa) so that backend could also send wasm to browser and be able to interact with DOM too.

Next, backend js "mess" can be stopped because we have a better way for other languages to develop for the web.

Re: Game Jam 2 Results

#80

It would be awesome to understand the reasons zig was utilized. My guess is that it is about the language tooling, but it would be nice to hear from the authors themselves.

I can only speak for myself here but of all languages I've tried for WASM-4 (WAT, C, Rust & Zig) it is the most productive one for me.

I really enjoy the balance of safety and control in Zig. I can build using Debug mode during development, turning nearly all my bugs into crashes which are easily fixable using in-browser source-level debugging. But in Release-Small mode the result is fast and more importantly really small since there's a 64kb cartridge limit.

Another factor is the Zig Standard Library which designed to be portable and usable on freestanding targets. I can not emphasize enough how pleasant this is. For example I can just use a `std.heap.FixedBufferAllocator` to back a `std.ArrayList` with no problem.

The comptime feature of Zig also comes in handy when you have to minimize code size.

The seamless C interop furthermore improves my productivity since I can just use any C code I like. I've used a C perlin noise library in a previous game for example, saving me a lot of time.

Plus I've used Zig for the previous WASM-4 jam and just liked it so I didn't bother trying any other language.

Post reply on HN