News for hackers. Stuff that matters.
Re:How to make Lisp go faster than C by jimbokun on Thursday April 24, 2008 @04:53PM (#172864)
Common Lisp would sound like a miracle language if it wasn't real.

Can be configured to run almost as fast as C. Or dynamism that rivals Ruby and Python if you don't bother to specify types. An object system (and meta-object protocol) that rivals Smalltalk in sophistication. Full functional programming capabilities, and a syntax and libraries that favor that style. An entire sub-language for iteration that rivals Python's generation/comprehension facilities. The ability to be procedural when you really need to. Sophisticated built in data types. A facility for abstraction unrivaled by any other language that's not a Lisp.

The point is not necessarily that CL is the absolute best for every one of those points. But you can make a case for CL vs. another language based on that language's strong points, not its weak points.

Of course, don't get me started on the mess that is CL's community...

Re:How to make Lisp go faster than C by lst on Thursday April 24, 2008 @05:15PM (#172895)
> Of course, don't get me started on the mess that is CL's community...

is or was? It is in fact changing into better.

Re:How to make Lisp go faster than C by jimbokun on Thursday April 24, 2008 @05:55PM (#172930)
Glad to hear it. Maybe I should check back in.

Specific developments I should be aware of...?

Re:How to make Lisp go faster than C by randomhack on Thursday April 24, 2008 @05:29PM (#172914)
The article does not say why the Lisp code was faster in the float case. What bottleneck did GCC face there?

Btw does CL have OpenMP style parallel for loops?

Re:How to make Lisp go faster than C by omouse on Thursday April 24, 2008 @03:28PM (#172768)
Fuck this obsession with performance! Does the language help you develop better programs? Is the language safer/smaller/some-other-important-metric?
Re:How to make Lisp go faster than C by jrockway on Thursday April 24, 2008 @03:39PM (#172777)
Lisp is really the best of both worlds. It's a nice looking language (easy to read and write; and good tools available), and I would use it even if it were slow. But unlike the other slow langauges (Perl), it can be made to run fast.

Now if only there were some libraries.

Re:How to make Lisp go faster than C by jsyedidia on Thursday April 24, 2008 @04:35PM (#172839)
You might want to look at Nu (http://programming.nu). It's a new Lisp built on Objective-C, designed to make it extremely easy to call C or Objective-C libraries and frameworks (particularly Cocoa). It's a wonderful merger of Lisp, Objective-C, and Ruby.
Re:How to make Lisp go faster than C by jcl on Thursday April 24, 2008 @03:40PM (#172779)
If you are working in a language that has significant development advantages but mediocre performance, I think it is reasonable to look for ways to improve its performance.
Re:How to make Lisp go faster than C by sygzzy on Thursday April 24, 2008 @09:53AM (#172453)
That is a truly horrible file viewer. Allow the user to define how they want their files. No lock in - whoever did this is evil or a moron.
Re:How to make Lisp go faster than C by dpapathanasiou on Thursday April 24, 2008 @09:57AM (#172457)
The url I submitted is: http://www.lrde.epita.fr/~didier/research/verna.06.imecs.pdf

Not sure how or why it wound up at scribd.com

Re:How to make Lisp go faster than C by tomjen on Thursday April 24, 2008 @10:50AM (#172495)
Properly because scribd is a YC company and HN does some form of automatic submit of pdf files.

I which case the problem should be solved relatively fast because somebody here likely knows the guys at scribd.

Re:How to make Lisp go faster than C by davidw on Thursday April 24, 2008 @10:06AM (#172462)
Ouch, yeah that's some kind of bug in scribd... the original is a nice LaTeX document. The scribd version is all fuzzy.
Re:How to make Lisp go faster than C by justindz on Thursday April 24, 2008 @09:56AM (#172456)
I can barely read the text. Is it my computer or the document?
Re:How to make Lisp go faster than C by boredguy8 on Thursday April 24, 2008 @11:23AM (#172521)
It's scribd.
Re:How to make Lisp go faster than C by henning on Thursday April 24, 2008 @11:13AM (#172516)
You can't make Common Lisp very fast without making it brittle or introducing non-standard mechanisms for giving the compiler type information.
Re:How to make Lisp go faster than C by Hexstream on Thursday April 24, 2008 @02:36PM (#172722)
[citation needed]

And there are already standard mechanisms to provide type information to the compiler...

If you only optimize what you determined are the bottlenecks with the aid of a profiler, your code will run fast and won't be brittle.