fib
clojerl
Our great sponsors
fib | clojerl | |
---|---|---|
5 | 12 | |
846 | 1,635 | |
- | 0.4% | |
4.0 | 5.1 | |
20 days ago | 5 months ago | |
Ruby | Erlang | |
- | Eclipse Public License 1.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
fib
- Not only Clojure – Chez Scheme: Lisp with native code speed
-
Is Rust faster than Python out of the box
I've typically found rust to be about 100x faster than Python for the projects I've ported. This is consistent with https://github.com/drujensen/fib.
-
Speed & LSP
Here is a similar benchmark but includes compile times. https://github.com/drujensen/fib
-
Elixir Protocols vs. Clojure Multimethods
How? Do you mean how do I know it's slow? Because it takes longer to run.
Write a typical computation such as Fibonacci in Java and Erlang/Elixir and compare. Fortunately someone has already done this.
Elixir is 3x slower than C and 2x slower than Java for this single thread example.
https://github.com/drujensen/fib
Apparently this upsets people for me to point this out. However, I did not say that Elixir was slow in general or a bad choice. It's an excellent choice for problems which suit parallelization or which require reliable, consistent performance.
Since the parent poster had commented that adding this multi-module dispatch would not be performant, I merely pointed out that the single thread peformance was already slow (as in, why worry too much about the performance cost of the multi dispatch suggestion).
-
I created a GitHub repo of some simple benchmarks to test different programming languages. Feel free to add more languages!
Is there some advantage over repos that also show the results ?
clojerl
- Really hard convincing colleague to switch to Clojure
-
Clojure Scripting on Node.js
Basically, you take a programming language and make it work on a platform that meant to be programmed using a different PL. Clojure is hosted by design - it's not Java, but can be used to program for JVM. It ain't Javascript, but can be used to target nodejs and browser; not an [official] CLR language, but you can write .Net programs. You can use Clojure to make Flutter apps with ClojureDart. You can integrate Python into Clojure with libpython-clj. Or write Clojure to target Erlang/OTP; or Rust; or R; There's even a clojure-like language for Lua - Fennel.
There's something about Clojure people like so much, they want it to work atop any platform.
https://github.com/Tensegritics/ClojureDart
https://github.com/clj-python/libpython-clj
https://github.com/clojerl/clojerl
https://github.com/clojure-rs/ClojureRS
- On Repl-Driven Programming
-
Which Programming language libraries can Clojure use as its own?
But there are also unofficial implementations—i.e. not JVM, JS, .NET—of Clojure for other host environments, e.g. Clojerl. And of course nearly everything /u/borkdude touches interops with something in some way.
-
CL vs Racket
Tail call optimization/elimination isn't a property of functional languages - there are tons of non-functional languages with it, like Lua or even C, when compiled with -O3, to name a few. Besides, Clojure is a hosted language, so it shares the platform characteristics, and recur is a language-way of providing a construct for tail call looping. Clojure on BEAM for example, supports tail call elimination, because BEAM does. And Beam is a quite functional environment ;)
-
Clojure, but without the JVM?
Clojerl: an implementation for the Erlang VM. The reader conditional is :clje.
- Clojerl 0.9.0 is out with features released in Clojure 1.9, including Spec
- Elixir Protocols vs. Clojure Multimethods
-
haskell elixr or clojure
There's also an unofficial BEAM VM implementation
- London Clojurians talk: Clojure - JVM + BEAM = Clojerl (by Juan Facorro)
What are some alternatives?
nx - Multi-dimensional arrays (tensors) and numerical definitions for Elixir
cloture - Clojure in Common Lisp
svix-webhooks - The enterprise-ready webhooks service 🦀
tangram - Tangram makes it easy for programmers to train, deploy, and monitor machine learning models.
meander - Tools for transparent data transformation
natalie - a work-in-progress Ruby compiler, written in Ruby and C++
joker - Small Clojure interpreter, linter and formatter.
Game-Of-Life-Implementations - Conway's Game of Life implementation in various languages
awesome-clojure-likes - Curated list of Clojure-like programming languages.
protocol_ex - Elixir Extended Protocol
lazy-seq - Lazy sequences for Fennel and Lua (mirror)