core.match
fib
core.match | fib | |
---|---|---|
6 | 5 | |
1,172 | 847 | |
-0.1% | - | |
5.2 | 4.0 | |
about 2 months ago | about 1 month ago | |
Clojure | Ruby | |
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.
core.match
-
Compiling Pattern Matching
IIRC luc maranget's paper was also a basis to clojure/script core.match
ps: checked https://github.com/clojure/core.match/wiki/References
-
Adding Dependencies on Clojure Project the Node Way: A Small Intro to neil CLI
If you take a look a this library which is an "official" library you will find three snippets of code for adding the dependency to your project and some with a very strange syntax.
-
Why Lisp?
I think Clojure has benefited from matching being kept out of the built-in stdlib. https://github.com/clojure/core.match is a plug-in and as a result we've had lots of cool data traversal/matching DSLs come around and evolved user communities with time such as Meander and Datascript not to mention the parsing applications of the schema systems (spec & malli).
- Core.match
-
Elixir Protocols vs. Clojure Multimethods
Why not just use core.match? https://github.com/clojure/core.match
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 ?
What are some alternatives?
meander - Tools for transparent data transformation
nx - Multi-dimensional arrays (tensors) and numerical definitions for Elixir
svix-webhooks - The enterprise-ready webhooks service 🦀
protocol_ex - Elixir Extended Protocol
tangram - Tangram makes it easy for programmers to train, deploy, and monitor machine learning models.
defun - A macro to define clojure functions with parameter pattern matching just like erlang or elixir.
Game-Of-Life-Implementations - Conway's Game of Life implementation in various languages
stack - My stack for new products.
natalie - a work-in-progress Ruby compiler, written in Ruby and C++
clojerl - Clojure for the Erlang VM (unofficial)