LWN.net Logo

Sometimes C++ is faster

Sometimes C++ is faster

Posted Jun 18, 2008 21:10 UTC (Wed) by ncm (subscriber, #165)
In reply to: Sometimes C++ is faster by flewellyn
Parent article: Converting GCC to C++

I guess I should mention that this sort of compile-time dispatching is natural, without
macros, in ML variants and in Haskell.  Such languages can be good for coding compilers, given
an implementation with a GC that respects cache locality.  Recoding Gcc in Eager Haskell, it
might take years before you got anything useful, but you'd learn a lot, and have a better
sense of what the successor to Haskell should look like.


(Log in to post comments)

Sometimes C++ is faster

Posted Jun 18, 2008 21:31 UTC (Wed) by flewellyn (subscriber, #5047) [Link]

Mmh, well, I was hardly recommending that anybody rewrite GCC in Common Lisp.  While I'm sure
someone could do it, the result would be a hell of a lot harder to bootstrap.  :-)

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds