2
30hrs
3y

Folks should give Clojure a look. It may be Lisp on steroids. Need to wrap your brain around macros to use it properly. It's interpreted so it must be slow, riiight?

Not so, er, fast.Ran across a discussion re C++ vs Clojure running data acquisition at 100 MBPS or better. Bottom line, original Clojure code was sped up 76.6x and blew the doors off the C++ code.

Be warned, a number of optimization steps were required. The end result blew me away. Had a link I wanted to insert but it's not on my phone and I may have re-installed Linux wiping it out. Have looked for the post for hours, no joy.

https://clojureverse.org/t/...

Comments
  • 0
    Not to shit on Clojure (since I am a big LISP fan), but I'm really curious to see the C++ code they were comparing to.
  • 0
    @YADU That I don't know about. I did find the bookmark, it's about Lisp, not Clojure and makes the point that its power and your lack of competition using it, give you a great advantage as a startup.

    http://paulgraham.com/avg.html
  • 0
    @30hrs oh you don't need to convince me of Lisp's power, I'm already convinced.

    I was mostly just curious about comparing a JVM language to C++ in terms of performance.
  • 0
    @YADU Unfortunately the op didn't post his code. He said he was a Python and C++ programmer, no experience given. Below is his explanation of the problem. Probably not too helpful. BTW, do you work with Scheme or Common LISP? Just curious.
  • 0
    @30hrs I program in C++ mainly.

    My experience with functional languages is OCaml and Racket, both of which I absolutely love (Racket is basically Scheme if you're not familiar with it).
  • 1
    x100 times faster.

    x100 times less maintainable.

    x100 times more likely to summon an eldritch nightmare.
Add Comment