soa-derive
styx
soa-derive | styx | |
---|---|---|
5 | 11 | |
392 | - | |
2.0% | - | |
4.7 | - | |
9 days ago | - | |
Rust | ||
Apache License 2.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.
soa-derive
-
What was the dumbest thing you implemented/prototyped?
For those interested, Odin and Jai (I think) implement this at the language level. D can do this with its metaprogramming. Rust can also do it, but with procedural macros (i.e. the token stream is parsed and transformed prior to semantic analysis).
- Blog Post: Builder Lite
-
Hey Rustaceans! Got an easy question? Ask here (28/2021)!
I'm looking for a way to derive an Arrow RecordBatch from an array of structs. So, it should act (almost) just like soa-derive. Has anybody done this?
- Automatic Struct of Array Generation for Rust
- Why I rewrote my Rust keyboard firmware in Zig: consistency, mastery, and fun
styx
-
The Performance Impact of C++'s `final` Keyword
> I'd love to see the codegen differences between the applications
There are two applications, dynamic calls and dynamic casts.
Dynamic casts to final classes dont require to check the whole inheritance chain. Recently done this in styx [0]. The gain may appear marginal, e.g 3 or 4 dereferences saved but in programs based on OOP you can easily have *Billions* of dynamic casts saved.
[0]: https://gitlab.com/styx-lang/styx/-/commit/62c48e004d5485d4f....
- The Styx Programming Language
-
What was the dumbest thing you implemented/prototyped?
The @SOA attribute.
-
You dont need the Comma expression. All you need is the Tuple expression
I've experienced that today, in my compiler. The language has tuples but also an internal comma expression (i.e not part of the grammar, just of the compiler API). As expected it was 100% possible to remove it and refact using tuples.
-
`this` is not static
The problem described in this article is solved in Styx. During a pre-semantic pass the this parameter is added to member functions that are not static hence member functions are type- correct. Then, from a binary point of view, this is passed in a register.
-
The story of an absurd optimization
Once upon a time I've profiled my software. It's a compiler for a hobby language called Styx.
-
switch over strings : the gperf way vs more standard methods ?
Is there a reason why your table define the index at the tail of the dedicated row ? (my generator)
-
The first 6 months of a self-hosted compiler
Since several years I work on a hobby programming language called Styx. The compiler was initially written in D. D sources were translated at the end of 2021 and finally Styx sources replaced the D ones on the 24 of January 2022, when Styx became "self-hosted".
- generics declaration in styx
What are some alternatives?
plotly.rs - Plotly for Rust
kcov - Code coverage tool for compiled programs, Python and Bash which uses debugging information to collect and report data without special compilation options
go - The Go programming language
dmd - dmd D Programming Language compiler
wasm-bindgen - Facilitating high-level interactions between Wasm modules and JavaScript
coreutils - upstream mirror
Git - Git Source Code Mirror - This is a publish-only repository but pull requests can be turned into patches to the mailing list via GitGitGadget (https://gitgitgadget.github.io/). Please follow Documentation/SubmittingPatches procedure for any of your improvements.
zig - General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.