Hello everyone,
I’ve just started learning Zig and have only gone through tutorials so far, without writing any serious code yet.
I’d like to ask for your thoughts on whether it’s a good idea to use Zig for casual, everyday scripting tasks or quick Proof-of-Concept (PoC) prototyping, similar to how one might use Python, TypeScript, or Clojure.
My main motivation for wanting to do this is the potential to smoothly evolve the codebase into a more serious application later on, without needing a major language rewrite. It seems like I could gradually improve performance and maintainability within the same language as the project grows.
(As a side note, I’ve read some articles suggesting that Rust, due to its focus on memory safety trade-offs, might not be as well-suited for rapid iteration and quick experimentation in areas like game development.)
I’ve always wished that I could do most things with just one programming language. While I understand the idea of using the right tool for the job, learning a programming language, depending on the level, is a significant time investment. Someone who wants to make games wants to focus on games, and someone doing scientific computing wants to focus on algorithms and efficiency, not languages. If one versatile language could cover various uses, it would free up time for other things. Ironically, despite thinking that, I’ve ended up studying most major programming languages anyway haha. Still, I would be happy if I could use Zig for as many purposes as possible in the future.
Given my goal of potentially evolving PoC code into production-ready code within the same language, and my desire for a versatile language, what are your thoughts and experiences on using Zig for scripting or rapid prototyping? What are the pros and cons from your perspective compared to languages like Python?
Any insights would be greatly appreciated!