StructArrays.jl
functiontrace
StructArrays.jl | functiontrace | |
---|---|---|
4 | 2 | |
314 | - | |
1.3% | - | |
7.1 | - | |
about 1 month ago | - | |
Julia | ||
GNU General Public License v3.0 or later | - |
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.
StructArrays.jl
-
Some CUDA programming fun with Julia
I can't recommend any particular project that implements something in cuda, but I'd check out the StructArrays.jl[0] project.
One of julia's strengths is it's macro and type system. StructArrays.jl uses them to create a SoA struct out of a AoS. This is a killer feature that generally requires some form of code generation in C/C++.
Even if you're just doing something on the cpu, it should set you up to be both simd & gpu friendly. They have a guide on how to swap out the underlying array storage from cpu to gpu memory
fwiw, cuda is a "Tier 1" supported architecture[1], where "Tier 1" is defined as
> Tier 1: Julia is guaranteed to build from source and pass all tests on these platforms when built with the default options. Official binaries are always available and CI is run on every commit to ensure support is actively maintained.
[0] https://github.com/JuliaArrays/StructArrays.jl
[1] https://julialang.org/downloads/#supported_platforms
-
The compiler will optimize that away
Julia has a package that provides incredibility easy to use SoA. https://github.com/JuliaArrays/StructArrays.jl Julia's metaprogramming and multiple dispatch mean that it can use user structs fully transparently. Everything just works.
-
Is there a way to have a dataframe whose type will contain the types of its columns?
You can use https://github.com/JuliaArrays/StructArrays.jl It's a decent choice when you need ease of manipulation and type stability.
functiontrace
-
Graphical Python Profiler
The license is a bit perplexing at https://gitlab.com/mbryant/functiontrace/-/blob/master/LICEN...
It says it is licensed under Apache License 2.0, but also under "Prosperity Public License 3.0.0" which limits use for a commercial purpose to 30 days.
-
The compiler will optimize that away
I hacked up something similar (https://gitlab.com/mbryant/functiontrace/-/blob/master/src/p...) a while ago. Your variant looks much more useful!
What are some alternatives?
struct_array - Wrapper object for "structure of arrays" coding style
datarray - Struct-of-arrays style data structure that emulates array-of-structs access
cljs-tui-template - A leiningen template to generate ClojureScript Terminal-User-Interface applications built on web technologies you already know.
cljfx - Declarative, functional and extensible wrapper of JavaFX inspired by better parts of react and re-frame
JaiPrimer - A description of Jonathan Blow's programming language, Jai