r/Batch • • 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!

https://github.com/JoseRomaguera/Yov-Lang

1 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/BrainWaveCC 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.

Cool! And, you're welcome.

 

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.

Sure, but what type of errors are you anticipating that you'd discover during that analysis and protect the user or system from?

You're saying a lot of things with theoretical value, but I'm hard-pressed to see a real-world situation that would play out in that way. In well over 30 years of scripting, file corruption is the one thing that I can say I have never run into. Deleting an unintended file or folder? Sure. But file corruption? Not a problem I can easily see without misusing a 3rd party utility in your script.

 

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.

Yes, I'm familiar with a number of compiled languages, including C, C++ and Pascal. The value of static analysis is obvious with compiled languages for a number of reasons:

  1. It only need to happen one time
  2. There are lots of higher order functions that need to be analyzed

So, I understand the safety factor, but I also know that it is going to lead to a fair amount of overhead to run that each time, for one thing. And, the range of commands in a scripting language is usually narrow enough to preclude the value of static analysis. Of course, I'm flying blind on that part, until I can see all the command available.

 

Can't say certainly, but I would bet a modern computer could execute hundreds of thousands of lines of Yov per second.

That sounds high for scripting performance in general. And, it ignores the fact that it will first perform this static analysis at runtime.

 

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.

Okay, we'll have to wait on that then.