array
gobasic
Our great sponsors
array | gobasic | |
---|---|---|
4 | 4 | |
188 | 316 | |
- | - | |
6.9 | 4.2 | |
4 months ago | about 2 months ago | |
C++ | Go | |
Apache License 2.0 | GNU General Public License v3.0 only |
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
-
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.
gobasic
-
TwinBASIC is a modern BASIC compiler
There are a bunch of BASIC interpreters out there, my own isn't so complex or thorough, but I definitely had fun writing it:
https://github.com/skx/gobasic/
My own vision was to reproduce something akin to the ZX Spectrum, rather than the more advanced Microsoft BASIC.
-
EndBASIC
Unusable might be a bit harsh, but I have to say that when I wrote my own BASIC interpreter last year I deliberately concentrated on the line-numbers and facilities of the ZX Spectrum I remembered:
https://github.com/skx/gobasic
Being standalone it doesn't have the graphic support or the interactivity, but it was still a fun project to work upon.
- Commodore Basic as a Scripting Language for Unix and Windows – Now Open Source
-
Why am I wasting time on EndBASIC?
I wrote a simple BASIC too, for nothing more than a sense of nostalgia:
What are some alternatives?
optimizing-the-memory-layout-of-std-tuple - Optimizing the memory layout of std::tuple
endbasic - BASIC environment with a REPL, a web interface, a graphical console, and RPi support written in Rust
NumPy - The fundamental package for scientific computing with Python.
yaegi - Yaegi is Another Elegant Go Interpreter
cadabra2 - A field-theory motivated approach to computer algebra.
array - Simple array language written in kotlin
alphafold2 - To eventually become an unofficial Pytorch implementation / replication of Alphafold2, as details of the architecture get released
Einsum.jl - Einstein summation notation in Julia
c-examples - Example C code
einops - Flexible and powerful tensor operations for readable and reliable code (for pytorch, jax, TF and others)
einop
Tullio.jl - ⅀