logoalt Hacker News

w4rh4wk5last Tuesday at 10:52 AM1 replyview on HN

Back in the days, I've seen that with C files, which are compiled on the fly to a temporary file an run.

Something like //usr/bin/gcc -o main "$0"; ./main "$@"; exit


Replies

ernst_klimlast Tuesday at 11:09 AM

Tcc even supports that with `#!/usr/local/bin/tcc -run`, although I don't understand people who use c or go for "scripting", when python, ruby, TCL or perl have much superior ergonomics.

show 1 reply