Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That is some horrible Common Lisp code. I have to try this out....



Thank for the effort! Not sure how fleshed out the other implementations are but Lisp vs C now shows what I would have expected:

* SBCL can produce impressive x86 code

* It's ARM branch is pretty new, so it but 30% isn't too bad.


Nope sorry. I tried to fix this up a little but this is too convoluted for me to work with.

Q1: Why do you need an adjustable array?

Q2: Why do you need a structure with a single slot (node)?

If you want to benchmark a piece of code, please write a nice version and then optimize it. How can I reason about a benchmark result if the code is not understandable?


Many others were able to send pull requests. What's you're issue?


The original code was badly written so that is was hard to understand the algorithm. I tried to rewrite it but it took longer than I had patience for.

The snarky tone comes from the fact that people often post "benchmarks" including languages they can't program in resulting in a misrepresentation.

E.g. Lisp jumped from the bottom to the center (as expected) of the benchmarks after somebody donated a sane implementation.


You should ask for a refund.


I should, he used SBCL ticks (relative unit of time) as if they were milliseconds.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: