Hacker News new | past | comments | ask | show | jobs | submit login

It's fairly trivial to write your own for any language, I have a c version where you simply start the file with "#!/usr/bin/env crun" the guts of the script is:

  gcc -x c -ggdb -Wall -Wextra -Wno-main -Wno-unused-parameter -o $out $CFLAGS -include $header - $LDFLAGS <<-CRUN_EOF 
    #line 2 "$1"
    $(tail +2 $1)
  CRUN_EOF
Obviously gcc would be replaced with csc, you wouldn't need CFLAGS and you might need a temp file or something.



Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: