3 ms·
So he can figure out how to write the algorithm in Haskell, but he can't figure how to use "`par`" instead of "`seq`" to allow ghc to auto-parallelize the code?
by jrockway 17y ago
So he can figure out how to write the algorithm in Haskell, but he can't figure how to use "`par`" instead of "`seq`" to allow ghc to auto-parallelize the code? And then rewrites the whole thing in C, which doesn't have any language support for automatic parallelization?
I guess this kind of upsets me, but whatever. It's his own life he's wasting.
(Don't get me started on writing a compiler in C. Then I really will get mad.)
- jerf 17y agoI'm asking the author directly: http://www.reddit.com/r/programming/comments/aue06/going_back_to_c/c0jgji8 http://www.reddit.com/r/programming/comments/aue06/going_bac... I mean, I know Haskell isn't the answer to everything (what is?), but this is a very odd complaint.
- ajross 17y agoWith all due respect, I think bland whining about C and its partisans isn't really a productive way to advocate for your language ("wasting his life"? good grief). C is, after all, what the world is built on. If you really want to show us a better way, you'd be better served by trying to help build that world. How about just one core library that does something useful and irreplacable on a modern system, and that works significantly better than the dinosaur code you keep complaining about? We've seen enough toy implementations and cute hacks (and, gack, web frameworks!) to last a lifetime. How about a clean, bug-free and parallel implementation of zlib instead? Or a better h.264 codec? Or a crypto/TLS implementation that beats openssl? Regular expression engine better than pcre? World-class numerics library? GUI framework? SVG implementation? HTML parser? 3D modeling and rendering framework? ... Anything that isn't mostly a joke compared to the standard C junk you keep sneering at? Seriously guys: get off your butts and write some real software. Most of us tolerate the sniping most of the time, but this bit was just over the line, sorry.
- jrockway 17y agoSeriously guys: get off your butts and write some real software. http://github.com/jrockway/ http://github.com/jrockway/ Oh.
- petermichaux 17y agohttp://github.com/jrockway/lisp http://github.com/jrockway/lisp Please let us know when it is ready ;-)
- jrockway 17y agoHeh. I'm not even sure what that was going to be :) But really, a lot of those projects have actual code in them... and some even have users. :) As such, I think it's unfair to dismiss anything I say with "shut up and write some code", because I code and talk about coding.
- houseabsolute 17y agoHe wasn't asking you to write code. If you read it, he is asking about writing code that is better, or more specifically, products that are better. A list of projects you've worked on is mostly irrelevant in the face of that accusation.
- jrockway 17y agoHis "challenge" is too ridiculous to even reply to. Of course software that has had millions of users (and hundreds of contributers) over 30 years is going to be better than what some language advocate is going to be able to crank out in a week or month or year. Put enough time and polish into something, and it's going to be good regardless of what language you choose. It would be a waste of time to rewrite some well-established project to prove some point about a language. ("Hey, I spent a year of my free time to make a $foo that's not as good as the $foo that already exists! Yeah!!!") It's much better to incrementally move away from the legacy code, to make future incremental improvements. (Firefox is a good example; more and more of the code is safe Javascript instead of raw C++. That's because it's easier to write/test/enhance, and because modern computers and virtual machines make the overhead acceptable.) There is, of course, a surprising amount of non-C code out there. Firefox is Javascript. Emacs is Lisp. SBCL is Lisp. GHC is Haskell. Xmonad is Haskell. Debian's packaging system is Perl. The websites you use daily are Perl/Python/Ruby/PHP. And so on. Of the software packages that I use on a daily basis, very few are pure C. (xmms2 is. That's all.) C exists in production software, but that's because it was the only option when these programs were being developed. Take a snapshot of new ideas and projects being started right now, and see if C is still the most popular. That is a more reliable indicator of the state of the art.