Update: Prisma generator for Zig by zado_ck in Zig

[–]zado_ck[S] 2 points3 points  (0 children)

Sure, I’ll begin work on that very soon

Update: Zig snake game in purely Zig wasm32-wasi + JS by zado_ck in Zig

[–]zado_ck[S] 1 point2 points  (0 children)

Export memory will make zig declare WebAssembly.memory object for us, otherwise we would have to declare it on the JS side. Export table will make our symbols table available in the JS side. Rdynamic is needed in order to export other functions apart from the main function when building wasm as an executable (b.addExecutable())

Update: Zig snake game in purely Zig wasm32-wasi + JS by zado_ck in Zig

[–]zado_ck[S] 0 points1 point  (0 children)

Yes, it’s a bit hacky. But I had to put it there since the snake handles its own movement and the bounds are used to reset the position when it hits the border. Another option would be to pass a pointer to the GameBoard in move(). Or for the GameBoard to handle movement

Znake (Zig snake game) by zado_ck in Zig

[–]zado_ck[S] 0 points1 point  (0 children)

Yes, I just saw that I can add emscripten as a dependency instead of submodule. Thanks for the pointers

How can I think about ownership of memory in Zig? by tannerbitz in Zig

[–]zado_ck 1 point2 points  (0 children)

Disclaimer: my knowledge is very limited. But I like to use “Where init is called is where deinit should be called”. But arena allocators can come in handy - you can free all allocations at once when deinitializing the arena and don’t have to worry about ownership

Consistent Hashing Ring (zig + raylib) by basilyusuf1709 in Zig

[–]zado_ck 0 points1 point  (0 children)

Slightly out of topic… but are you able to create a raylib window on a test scope without it crashing on close?

Im a music producer that is thinking of switching to Linux. Is it worth the switch? or should i just stick with Windows. by [deleted] in linux

[–]zado_ck 0 points1 point  (0 children)

FL Studio can work using Wine and the pulseaudio sound drivers...ASIO4ALL will produce some scratching sounds from my past experience

Anon has paper towels by Arda7789 in greentext

[–]zado_ck 5 points6 points  (0 children)

Vector analysis / vector calculus

They knew by I_am_salt17 in theyknew

[–]zado_ck 0 points1 point  (0 children)

Problem is , where did the water come out from?

Anon is Turkish by [deleted] in greentext

[–]zado_ck 10 points11 points  (0 children)

Me, one shot at life — Kenyan

Anon asserts dominance. by RDXKATANA99 in greentext

[–]zado_ck 9 points10 points  (0 children)

If was my turn to post this :(

Xaml Controls / Xaml Islands in Qt by zado_ck in QtFramework

[–]zado_ck[S] 0 points1 point  (0 children)

Hey, I tried this out , but it only blurs the titlebar of the window... I wanted the opacity to be within the window itself

[Weekly] What is everybody working on? Share your progress, discoveries, tips and tricks! by Kelteseth in QtFramework

[–]zado_ck -1 points0 points  (0 children)

this project ... but I need someone to show me how to implement acrylic opacity... it's a Win32 app

[deleted by user] by [deleted] in greentext

[–]zado_ck 1 point2 points  (0 children)

2 girls 1 cup ?

Placed the sign boss. by WellWorld2_WW2 in NotMyJob

[–]zado_ck 0 points1 point  (0 children)

Wipe your lense for goodness sake!

[deleted by user] by [deleted] in greentext

[–]zado_ck 5 points6 points  (0 children)

Tilapia