Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kaba0
on Jan 3, 2022
|
parent
|
context
|
favorite
| on:
Analysis of the overhead of a minimal Zig program
The bare idea of running a separate process as the condition of a loop is just disgusting though. I really don’t get why are we stuck with bash.
chrismorgan
on Jan 3, 2022
[–]
It’s not disgusting, it’s a
superb
feature of shell scripting and a manifestation of feature composition. That you can write things like `while git diff --exit-code` is delightful.
kaba0
on Jan 4, 2022
|
parent
[–]
Yes it is good for that occasion. It is terrible for things like `test`, `true` and the like as a separate processes.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: