array
related_post_gen
array | related_post_gen | |
---|---|---|
5 | 15 | |
189 | 279 | |
- | - | |
6.9 | 9.9 | |
5 months ago | about 2 months ago | |
C++ | C++ | |
Apache License 2.0 | MIT License |
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.
array
-
Einsum in 40 Lines of Python
I wrote a library in C++ (I know, probably a non-starter for most reading this) that I think does most of what you want, as well as some other requests in this thread (generalized to more than just multiply-add): https://github.com/dsharlet/array?tab=readme-ov-file#einstei....
A matrix multiply written with this looks like this:
enum { i = 2, j = 0, k = 1 };
-
Benchmarking 20 programming languages on N-queens and matrix multiplication
I should have mentioned somewhere, I disabled threading for OpenBLAS, so it is comparing one thread to one thread. Parallelism would be easy to add, but I tend to want the thread parallelism outside code like this anyways.
As for the inner loop not being well optimized... the disassembly looks like the same basic thing as OpenBLAS. There's disassembly in the comments of that file to show what code it generates, I'd love to know what you think is lacking! The only difference between the one I linked and this is prefetching and outer loop ordering: https://github.com/dsharlet/array/blob/master/examples/linea...
-
A basic introduction to NumPy's einsum
If you are looking for something like this in C++, here's my attempt at implementing it: https://github.com/dsharlet/array#einstein-reductions
It doesn't do any automatic optimization of the loops like some of the projects linked in this thread, but, it provides all the tools needed for humans to express the code in a way that a good compiler can turn it into really good code.
related_post_gen
-
Speed up your code: don't pass structs bigger than 16 bytes on AMD64
Looks like the HO means hand optimized, with special datastructures for this benchmark.
see: https://github.com/jinyus/related_post_gen/#user-content-fn-...
-
Benchmarking 20 programming languages on N-queens and matrix multiplication
There is one for data processing here: https://github.com/jinyus/related_post_gen
-
The Neat Programming Language
Is it ready for benchmarking? D currently sits at the top of https://github.com/jinyus/related_post_gen and it would be interesting to see how neat stacks up.
-
Murder is a pixel art ECS game engine in C#
[2] https://github.com/jinyus/related_post_gen#multicore-results
-
Jaq – A jq clone focused on correctness, speed, and simplicity
I think my benchmark[1] would be a great test for this. The jq[2] version takes 50s on my machine.
[1] : https://github.com/jinyus/related_post_gen
[2]: https://github.com/jinyus/related_post_gen/blob/main/jq/rela...
-
Gleam vs Erlang vs Go vs Zig vs Rust for data processing
I added gleam to my data processing benchmark and the performance is less than stellar...so I hope someone here can make suggestions to improve it.
- jinyus/related_post_gen: Data Processing benchmark featuring Rust, Go, Swift, Zig, Julia etc.
-
Ask HN: What's the big deal with Go (Golang)?
Easy concurrency.
ps: I wrote a data processing benchmark[1] and go is currently leading the charts. I ported it to c++ but it's not performing as expected. Take a look if you have the time.
[1]: https://github.com/jinyus/related_post_gen
- Julia leads Rust,Zig,Go and Java in data processing benchmark
- Julia Ranks First in Data Processing Microbenchmark
What are some alternatives?
optimizing-the-memory-layout-of-std-tuple - Optimizing the memory layout of std::tuple
uiua - A stack-based array programming language
NumPy - The fundamental package for scientific computing with Python.
pspy - Monitor linux processes without root permissions
cadabra2 - A field-theory motivated approach to computer algebra.
ivy - ivy, an APL-like calculator
alphafold2 - To eventually become an unofficial Pytorch implementation / replication of Alphafold2, as details of the architecture get released
BQN - An APL-like programming language. Self-hosted!
Einsum.jl - Einstein summation notation in Julia
cognate - A human readable quasi-concatenative programming language
c-examples - Example C code
Saxon-HE - Saxon-HE open source repository