There I was, thinking I had gotten away with writing tests that had assertions based on file I/O without a guaranteed order for https://codeberg.org/hgrsd/duplik.

Of course I didn't. I just hadn't ran these tests on a system that walked directories and files in a different order yet.

Fixing it gave me a little taste of sorting slices in #Zig (https://codeberg.org/hgrsd/duplik/commit/b9d8f4d3a29ced71d2c5222391ebb6eb13532468) and the way it works around not having closures.

Anyway, you can now run the tests on Linux and they should pass :).

#programming #tech #opensource

duplik

Zig-based CLI to detect duplicate files

Codeberg.org
Glad I started learning #Zig before OpenAI became a platinum sponsor of Rust #programming

out of all languages that promise to be better C, I think zig is the only one that lives to the hype, Rust is good, but it's too complicated to be a better C, it's more of a better C++, I would try odin, and c3 in the future, but for now zig is the best one so far.

#zig #rust #cpp #odin #c3

I came a long way and now stuff is coming together in the 3d engine #zig
GitHub - zaxified/bxp: Broker eXchange Parser

Broker eXchange Parser. Contribute to zaxified/bxp development by creating an account on GitHub.

GitHub

Some games ship thousands of assets but you dont see the PNGs, the MP3s, the 3D models... Why? They pack the assets. Unity Asset Bundle, Unreal PAK, Godot PCK and even TAR or ZIP formats are used. But they either proprietary or not very suitable. I decided to create a totally new OPEN SPECIFICATION: Open Asset Package. Engine-agnostic, fast random access, streaming, stable IDs, per-asset compression/encryption and dependency tracking.

https://www.brunomassa.com/en/blog/open-asset-package/

#gamedev #opensource #zig #ziglang

404 Page not found!

Holy Moly! I cannot find this page anywhere! Check if the url is right. If you came using a link, ops, I believe I’ve deleted this page…

Bruno MASSA

@solonovamax @xerz @2something

Zig with @"" syntax:

const @"🐈"=
"cat";

pub fn main() !void {
std.debug.print("Cat? {s}\n", .{@"🐈"});
}

#Zig #ZigLang

Build your project Zig-style

Personal website of Jan-Erik Rediger

Build your project Zig-style

0 comments

Lobsters
I know this is old news, but it's new to me...

C's declaration semantics are suboptimal.
Like in complex declarations the name of the thing is
embedded in the declaration.

My mind cannot easily parse that.

I think #golang is better specifically.
(I know go is a high level language.)

And both #hare and #zig I think have also specifically
fixed this.

But it is what it is. There is too much C code to walk away
from it. I always imagine monks in monasteries looking
over old written works. Like they ostensibly don't expect
the "syntax" to be better. That's why they are there.

This is also why I think the C replacement has to be a process
or a relationship with C. The young me wants to break with
the past and use some 100% ideal language. The now me
knows that the current existing code is more important
than some ideal.
(The point being I prefer a progression that is less ideal
but highly interoperable.)

In the next century following THEN the next language
can be closer to an ideal. rinse and repeat. for ages and ages.
No language is a point in time in isolation.

(I mean I also believe that philosophically, things don't bottom
out as discrete entities, but as relations. You can't go lower than
relations. You can look at things in isolation, but you are
really looking at a relation and ignoring one of the parts.)

#c #philosophy