News for hackers. Stuff that matters.
Re:Streem – a new programming language from Matz by blt on Thursday December 11, 2014 @03:47PM (#8736981)
Then you call `printf` twice every loop instead of once. `printf` is buffered so you aren't making two system calls, but you are still making two function calls.
Re:Streem – a new programming language from Matz by boomlinde on Friday December 12, 2014 @11:38AM (#8741027)
Maybe it's a performance/brevity compromise, but the latter is the issue the I addressed. The least-calls solution would probably be to print the whole output as a single string constant.