Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmark CL #2

Open
Leandros opened this issue May 16, 2016 · 5 comments
Open

Benchmark CL #2

Leandros opened this issue May 16, 2016 · 5 comments

Comments

@Leandros
Copy link

Just found this, great project, exactly what I did recently and was looking for.

Might be worth to also look at the few common lisp implementations:

@r-lyeh-archived
Copy link
Owner

Aha, great. Thanks for sharing.
Will try to find a slot next weekend :)

@Leandros
Copy link
Author

You're welcome. ;)

I've had a little time to look into your benchmark sources, and here is the recursive fib for lisp:

; #!/usr/local/bin/ecl -shell
; #!/usr/local/bin/sbcl --script
; #!/usr/local/bin/clisp -C
; vim: set syn=lisp:

(defun fibr(n)
    (if (< n 2)
        n
        (+ (fibr (- n 1)) (fibr (- n 2)))
    )
)

(compile 'fibr)
(defvar i 34)
(format t "fib: ")
(format t "~D" (fibr i))
(format t "~%")

(compile 'fibr) is required by ECL/CLISP to get TCO.

@r-lyeh-archived
Copy link
Owner

Hey there,

I've tried to compile the projects this weekend but got no success with them.
They're not so small/easy to embed as I originally thought :P

I'll try to find another slot next weekend :)

@wasamasa
Copy link

Hilarious. The only one of the bunch that can be considered embeddable is ECL and that requires to cherry-pick the features you specifically need to have.

@dkochmanski
Copy link

dkochmanski commented Jun 16, 2016

building ECL:

./configure && make && make install

Embedding examples in: examples/embed

Regards,
Daniel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants