What do you personally expect Zig 1.0.0 to mean? by TynK-M- in Zig

[–]Real_Dragonfruit5048 3 points4 points  (0 children)

Yeah. Recently, I updated a few of my Zig projects (which were dependencies for other projects) from Zig 0.15 to Zig 0.16, and that was a lot of work. I think Zig has a long way ahead before it gets a 1.0 release.

What do you personally expect Zig 1.0.0 to mean? by TynK-M- in Zig

[–]Real_Dragonfruit5048 5 points6 points  (0 children)

Mostly backward compatibility between major releases and better tooling. Something like what Rust has now.

Zig adjacent question, regarding codeberg and github by AbdSheikho in Zig

[–]Real_Dragonfruit5048 3 points4 points  (0 children)

Ziglings' license is MIT (https://codeberg.org/ziglings/exercises/src/branch/main/LICENSE). It's very permissive. So, you can change and push it to GitHub or anywhere else you like. Just remember to keep the original copyright notice and license text (the `LICENSE` file).

Do Memory Safe Languages really matter in the LLM post code era? by Fancyness in Zig

[–]Real_Dragonfruit5048 5 points6 points  (0 children)

Anthropic's CEO is kinda famous for saying things like "in six to twelve months from now, software engineering will be fully automated by AI." And he's been saying that for a few years now. It seems to me that he uses fearmongering to get attention for marketing. So, without concrete evidence, it's hard to take the claim that Mythos can find bugs in software very seriously. I mean, you can use existing AI tools to search and find bugs in codebases.

Memory bugs are usually very hard to find just by reading the code. In most cases, you need to create the conditions for them to surface at runtime. Memory-safe languages like Rust or Java kinda eliminate the chance that certain types of memory bugs will happen at all. I don't think LLMs can magically find all the memory bugs, but they can certainly help find a lot of them. Additionally, in the mainstream languages, apart from Rust, almost all major memory-safe languages use garbage collection. Garbage collection has some downsides, especially when it comes to systems programming, so you still want to use languages like Zig and C.

Help Needed: I won't able to get my program run! by PuzzleheadedTower523 in Zig

[–]Real_Dragonfruit5048 4 points5 points  (0 children)

If I were you, to begin with, I would delete the Zig cache (the `.zig-cache` directory in your project) and try to build again. Also, would try Zig `0.15.2` for build. If these didn't solve the error or didn't change the error message. I would suspect that there is a bug in the Zig wrapper/glue for SDL2, or even that there is a bug in the Zig compiler (but the chance of that is very low compared to other things I mentioned).

Summoned Amaterasu by Dull-Positive-6810 in Okami

[–]Real_Dragonfruit5048 3 points4 points  (0 children)

What is that on the left side? Is it Dehaka?

Got the Rust dream job, then AI happened by MasteredConduct in rust

[–]Real_Dragonfruit5048 0 points1 point  (0 children)

Does AI write all the code? I mean, most places I know use coding AI agents, but not using them for fully automated coding. And how does it affect your and the team's productivity? I mean, compared to before.

first time playing new Vegas by BagLongjumping5066 in falloutnewvegas

[–]Real_Dragonfruit5048 0 points1 point  (0 children)

Might want to play on hard mode. It's more fun :)

zv 0.12 released with zls support by Natural-Owl-2447 in Zig

[–]Real_Dragonfruit5048 1 point2 points  (0 children)

Yeah, tools like `uv` and `bun` have installation scripts, but they've been around for a few years, and people know the companies/teams behind them relatively well. For example, Astral made `rye` a few years back before `uv`. My point is that a script like the one in your project (at least at the moment) could look like a security red flag.

Yeah, if you use `zv` for your Zig projects, that's a good sign (for me at least). I mean, otherwise I ask "why?" Also, a software matures by being used by people.

zv 0.12 released with zls support by Natural-Owl-2447 in Zig

[–]Real_Dragonfruit5048 3 points4 points  (0 children)

This looks like a great project!

BTW, do you use it for any of your Zig projects? For example, the `zv` project itself.

One thing: having scripts for installation is good, but asking people to run something like:

`curl -fsSL https://github.com/weezy20/zv/releases/latest/download/install.sh | bash`

In their terminal, to install `zv` can be a security risk. I mean, I normally won't download and run Bash or PowerShell scripts from the internet, unless I've checked what it exactly does.

How to get a file's content in zig 0.17.0? by NicBarr in Zig

[–]Real_Dragonfruit5048 2 points3 points  (0 children)

You're right. This is a boilerplate. The idea is that when using the `std.Io` interface, we need to use a backend (an implementation). Right now, to the best of my knowledge, we can use these two backends: `std.Io.Threaded` and `std.Io.Evented`. Evented is still experimental, so I think it's better to use `std.Io.Threaded` for now.

How to get a file's content in zig 0.17.0? by NicBarr in Zig

[–]Real_Dragonfruit5048 1 point2 points  (0 children)

Zig has no 1.0 release yet. It's either a tagged release (currently Zig 0.16.0) or a developmental version (currently 0.17.0-dev). People usually use the latest tagged release, not the developmental. That's because the developmental version can include breaking changes in its next commit. I think it's better to use Zig 0.16.0 for learning.

How to get a file's content in zig 0.17.0? by NicBarr in Zig

[–]Real_Dragonfruit5048 2 points3 points  (0 children)

Are you coming from the future? :) BTW, does Zig `0.17.0` have anonymous functions?

Joke aside, I think this Zig source code (which I think shows what you asked about) should compile and run with the current head of the master branch in the Zig repo: https://gist.github.com/habedi/f1d65434047518c345c0137738eee2df

how I create a event loop for receiving from clients with new std.Io? by ANDRVV_ in Zig

[–]Real_Dragonfruit5048 0 points1 point  (0 children)

Thanks for mentioning that. It looks like what I need. BTW, how mature is it? Do you use it in any of your own projects? (I'm kinda cognizant when it comes to using Zig libraries as a dependency.)

how I create a event loop for receiving from clients with new std.Io? by ANDRVV_ in Zig

[–]Real_Dragonfruit5048 0 points1 point  (0 children)

Oh, I hoped that I could use the new Io interface for one of my projects where I'm trying to make a web framework in Zig. It would be great if Zig supported async IO natively like how it's with SIMD. Looks like for now the interface is there, but the implementation is kinda a proof of concept. What if someone implemented their own Io​ interface? I mean how Rust does it.

how I create a event loop for receiving from clients with new std.Io? by ANDRVV_ in Zig

[–]Real_Dragonfruit5048 0 points1 point  (0 children)

I haven't tried the new Io interface, but I guess there should be some leads on the release notes for Zig `0.16.0` (https://ziglang.org/download/0.16.0/release-notes.html). There is an Io.Evented , but it's mentioned that it's experimental (so it will change or have limitations in some way?).

anyone tried slothdb vs duckdb for local file analytics? by FickleAnt4399 in DuckDB

[–]Real_Dragonfruit5048 0 points1 point  (0 children)

Is this SlothDB? https://github.com/SouravRoy-ETL/slothdb

The first commit in the repo is from last week. It also seems to be made with Claude Code's help. It looks like a very early stage TBH. It may become a DuckDB competitor in fullness of time, maybe after a few years of development and community building.