Re:What Makes the Zig Programming Language Unique?
by gpderetta on Thursday October 06, 2022 @05:28AM
(#33106270)
The problem is an IDE will start compiling code as soon as you open it just to look at it.
Re:What Makes the Zig Programming Language Unique?
by debug-desperado on Thursday October 06, 2022 @12:32PM
(#33110426)
Jetbrains products have started prompting if you'd like to open a new project in "safe" mode that disables the build tooling until you've had time to evaluate the project.
So at least some IDEs are more cautious about this these days.
Saying the compiler can't run user code and make system calls while compiling is is like plugging a whole the size of a bus with your pinky. You prevented absolutely nothing. You just make devs jump through hoops (external tools in their build) to do the things they need to do and in doing so force them to add dependencies which expand their surface area of attacks.
Maybe a command-line switch to say which files can execute code at compile time but still, having worked on a lisp system that ran code and made system calls at compile time it was a huge time saver. Example: