Wc in D: 712 Characters Without a Single Branch
1–10 of 89 posts
Re: Wc in D: 712 Characters Without a Single Branch
#2Re: Wc in D: 712 Characters Without a Single Branch
#3I find D easier to grok coming from a Java/Python background.
Re: Wc in D: 712 Characters Without a Single Branch
#4Re: Wc in D: 712 Characters Without a Single Branch
#5There's also a wc in rust (of course) with more code (120 lines) but quite more efficient: https://medium.com/@martinmroz/beating-c-with-120-lines-of-r...
Re: Wc in D: 712 Characters Without a Single Branch
#6I find D easier to grok coming from a Java/Python background.
Re: Wc in D: 712 Characters Without a Single Branch
#7Re: Wc in D: 712 Characters Without a Single Branch
#8* recompiling with -march=native can give significant wins over more generic binaries provided by linux distros.
* parallel processing helps with bigger files, and it's easy enough to leverage the existing wc binary to process in parallel.
Both points are discussed at: https://www.pixelbeat.org/docs/unix-parallel-tools.html
Re: Wc in D: 712 Characters Without a Single Branch
#9I find D easier to grok coming from a Java/Python background.
My only issue is that it's far more complicated than Java and for a language that fills that same niche it's hard for me to justify putting my resources into learning it even though I do like a lot of the features.