codereport / array-language-comparisons Goto Github PK
View Code? Open in Web Editor NEWA comparison of array languages & libraries: APL, J, BQN, Uiua, Q, Julia, R, NumPy, Nial, Futhark, Dex, Ivy, SaC & ArrayFire.
License: MIT License
A comparison of array languages & libraries: APL, J, BQN, Uiua, Q, Julia, R, NumPy, Nial, Futhark, Dex, Ivy, SaC & ArrayFire.
License: MIT License
First of all, I'd like to thank you for very nice project (and especially mentioning BQN, which is very nice language IMHO).
It would be nice to expand table with language comparison with additional information about array properties.
Especially:
It might be probably interesting to add K language into the comparison table. It's a bit tricky as there are various K language "versions", but at least one very nice open sourced implementation exists:
https://github.com/kevinlawler/kona/wiki
Also Ivy is interesting language (or rather "desk calculator on steroids"). It supports rational numbers etc.
https://pkg.go.dev/robpike.io/ivy
To Do:
Besides for those languages that have a direct built-in, some flatten and count, while others multiply the axis lengths. It might make for a better comparison to show both (with ๐ซ for unavailable methods), e.g. โข,
in APL and #@,
in J, etc.
I came across this page https://github.com/codereport/array-language-comparisons/blob/main/comparisons/leetcode/P1614_Max_Paren_Depth.md
For Julia, I'm not too sure what "no row-wise minus reduction" means, but it sounds like you are looking for maximum(cumsum(...
, something like this:
julia> str = "(1)+((2))+(((3)))";
julia> maximum(cumsum([(c=='(')-(c==')') for c in str]))
3
julia> maximum(Iterators.accumulate(+, (c=='(')-(c==')') for c in str)) # lazy version
3
julia> foldl(str; init=(0,0)) do (i,maxi), c
c=='(' && return i+1, max(i+1,maxi)
c==')' && return i-1, maxi
i, maxi
end[2]
3
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.