3 ms·
Yes, but the Java code is shorter than the Lisp code. I'll take the slight performance hit to avoid the boilerplate. I wonder if his test doesn't have one obvi
by mynameishere 19y ago
Yes, but the Java code is shorter than the Lisp code. I'll take the slight performance hit to avoid the boilerplate.
I wonder if his test doesn't have one obvious flaw though. I ran it three times and got:
.46, .28, .28
...I took out the System.out.println statements and got:
.032, .047, .032
So I think he might have been testing the wrong thing.
- AF 19y agoThis is just a single example. The CL code might be a few lines longer in this example, but in the vast majority of code, Java will be the one with boilerplate and a lot more code. Lisp more than any other language removes boilerplate.