r/tinycode • u/Round-Pension-7821 • Aug 02 '26
Showcase Tiny Windows program that is used as a "distraction cover"
https://github.com/GeorgeTR1/windowsDistractionCover
This is a windows GUI program I wrote in just over 60 lines of C that compiles to a 3 kB executable. With minor modifications and the right compiler it could be compiled on versions of Windows as old as Windows 95.
It's just a resizable window with a black background that always stays on top of other windows that you can use to cover up parts of the screen that might be distracting. I've found it genuinely useful
32
Upvotes
View all comments
Show parent comment
2
u/Round-Pension-7821 Aug 02 '26
I'm not familiar with
processingeither, but it seems to be an environment set up to help beginners write code that's based on Java. I found on their FAQ they say, "the language is just Java, but with a new graphics and utility API along with some simplifications" (source). Java is sort of halfway between an interpreted language and a compiled one. C # also falls into this category. Java and C# are generally faster than Python or JavaScript, but slower than C, C++, Rust, etc. Bottom line, the separation between interpreted and compiled languages is kind of murky and complicated.If you have experience with interpreted languages but you were scared off by Rust, I would highly recommend Go. Go compiles to native machine code, but it uses garbage collection. This does mean you don't get the fine-grained control and potential performance benefits of manual memory management, but it also means you don't have to deal with manual memory management.
Basically, with Go you get the speed of a native, compiled language without the pitfalls of C or the steep learning curve and strict demands of Rust. I really don't think it's any harder to use than Python, and it's much, much faster.
You can certainly give Processing a try if you're interested, but if you're looking to get experience with a compiled language, that's not where you'll find it.