3 ms·
How did you write a go script faster than a python script? That sounds intriguing.
by tocomment 14y ago
How did you write a go script faster than a python script? That sounds intriguing.
- zaphar 14y agoedit script in vim. use :!go run % It will compile and run the script so fast you will swear it was an interpreted language except it runs way faster than an interpreted language.
- oinksoft 14y agoYou have to write it first for the Go example (:w | !go run %). For Python and most interpreted languages you can simply do :w !python.
- jlgreco 14y agoThe time it takes to 'go run' a go program is about the same as the time it takes to run a python program. If you are able to write Go code faster than Python code (that is the important "if". I can, some cannot. It's a personal thing.), then Go will be faster than python.