author avatar

goromlagche

Wed Feb 12 2020

$stdout.sync = true

this helps if you are trying to write a tool which pipes to another command. the other command will be able to process the output immediately, as no buffer and periodic flush is involved. eg. cat rules > ruby rule_engine.rb | python calculate_tax.py

Also ARGF, sort of like a streaming STDIN. pretty cool, cause of the streaming.