Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The lines are grey, to some extent. Many interpreted languages (such as Tcl) compile to bycode, then interpret that. The compilation happens not at the operation level, but at the block (or maybe file) level.


In Tcl, procedures are bytecode-compiled when they are created, which is generally when the files containing their code are sourced.

Code outside procedures is not compiled, but interpreted line-by line as it is executed.

So if you care about the performance of your Tcl code, put as much of it as you can into procedures.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: