3 ms·
Looks cool, but disappointing it's written in Go. Go is fast, but not as fast as Rust or C. I'm sure with large streams, you probably can see the difference in
by worldsavior 4y ago
Looks cool, but disappointing it's written in Go. Go is fast, but not as fast as Rust or C. I'm sure with large streams, you probably can see the difference in time if it's written in Rust or Go.
- ihucos 4y agoCan we stop this programming language bashing.
- avgcorrection 4y agoAs they say: always measure when it comes to performance. Unless it’s a programming langauge that you don’t like. Then you don’t even have to run the program.
- worldsavior 4y agoI don't understand why my comment is being flagged. I like the language, just thought it can be even faster in other languages, just a thought.
- rgoulter 4y agoThere's a difference between: "I have a <very large> YAML file, and it takes yq <some long time> to parse, whereas <some workflow I use written in rust/c> takes <much less time>". "Go is slower than Rust, the author should have written it in that". It's likely for most YAML documents you encounter, the difference between using Go and using Rust or C is negligible. -- Though, if this isn't true, some numbers would be useful, too. A comment like "Go is a bad language to use" is just a thought; but it's also a low-effort dismissal of something someone has put effort into, and of a tool that's quite useful.