Our great sponsors
-
Mentioning it again, I am doing Advent of Code in Rust this year. Link to repo if anyone's interested.
-
My understanding of the Rust compilation pipeline is that rustc first compiles to MIR in various stages, then rustc_codegen_llvm generates LLVM IR from MIR, which is then fed into LLVM for final compilation. So why doesn't Rust support every LLVM target, if it produces target-independent LLVM IR?
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
I'm using this years [Advent of Code](https://adventofcode.com/2022/day/5) to learn some Rust. As I'm currently mostly programming Java I assume, I do many things not idiomatic. Here is solution for [day 5](https://github.com/tobidope/aoc-2022-rust/blob/main/day05/src/main.rs). What do you think?
-
Thank you very much! If you are curious, here is my github, feel free to ask more questions on my project, any help or curiosity is welcomed!
-
Kaitai Struct
Kaitai Struct: declarative language to generate binary data parsers in C++ / C# / Go / Java / JavaScript / Lua / Nim / Perl / PHP / Python / Ruby
Optimal solution for me would be something like Kaitai Struct with rust generators and serialization support.
-
Here's my code if you want to take a look.
-
Alternatively, you could leverage the fact that you're not the first one to tackle this issue, and use some garbage collected graph datastructure. If you search for graph/tree on crates.io you'll find many examples.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
You could use Protocol buffers to define a message type, then use prost to generate encoding/decoding code for that type.
-
Not yet, AFAIK. There was an alloca-RFC by me some 6 years ago, but that went nowhere.
Related posts
- Experienced C++ users: what do you like about Rust? How would you sell it to other C++ users?
- Fivefold Slower Compared to Go? Optimizing Rust's Protobuf Decoding Performance
- Ask HN: What April Fools jokes have you noticed this year?
- Rust to add large language models to the standard library
- Why does Rust choose not to provide `for` comprehensions?