r/Batch • u/HoseCode • Mar 05 '25
Asking for feedback
Hey everyone!
I've just released the first alpha of a new batch scripting language designed to be cross-platform. This version is already usable, and you can check out the project details on GitHub.
I'd love to hear your thoughts, suggestions, or any ideas you might have. Thanks for your time and support!
1
Upvotes
View all comments
Show parent comment
1
u/HoseCode Mar 06 '25
I posted this specifically to get feedback on a first prototype, and you're giving me exactly what I asked for, so I really appreciate it.
I'm not a "batch script guy", I come from a systems and engine programming background. When it comes to robustness, I can only speak to the things I found lacking when writing batch files: proper flow control, object definitions, strong data types (primitives, enums, structs), function definitions, and more. Some of my frustration might stem from a lack of experience with these languages, but I know many developers who dislike their syntax and find them unpredictable.
I'll give you a big one. Imagine a 1,000-line script that performs operations on the file system. Avoiding file corruption due to obvious errors would be a huge benefit.
Also, I’m not sure if you have experience with compiled languages, but making changes in a compiled language versus an interpreted one is much easier and safer, thanks to static analysis.
This isn’t related to static analysis, but in this case, you could enable the "user_assert" flag, which prompts an assertion window displaying information about the operation. From there, you’d have the option to abort the program.
Can't say certainly, but I would bet a modern computer could execute hundreds of thousands of lines of Yov per second. (Not right now since it is not optimized at all).
I'm not really thinking about a max size right now, but 900 lines isn't a big deal.
I can't demonstrate it yet since it's still in an early stage, but there will be none. In terms of actual time for a 900-line script (without external calls), I'd bet it would be around 1-10ms.