News for hackers. Stuff that matters.
Re:Ask HN: What's your favorite little script you've written? by alganet on Friday July 04, 2025 @01:05AM (#44461264)
This polyglot that work across many interpreters from within a single source, and create no temporary files:

https://gist.github.com/alganet/2c1c004d0580e8d92cc1c167fa4f...

It's quite small, simple and has no dependencies (mshta and zenity are just example calls).

There's a larger version that can do even more interpreters and even launch its own webview:

https://gist.github.com/alganet/9eec864a2caa44ef1f9ca2e188b8...

--

These are recreational in nature. Crafting a source code that runs in many interpreters and does something meaningful is a fun brain tease.

There are no comments on this comment yet.