fitzgen/bumpalo
View on GitHub ↗ ★ 2,372 Rust
A fast bump allocation arena for Rust
7 mentions on Hacker News by 7 people: 0 stories, 7 comments · first 2019-12-09 · latest 2023-06-18
20082026
-
…can use a "handle table" as a replacement for pools, you can find relevant discussion at [2]. [0] https://github.com/fitzgen/bumpalo [1] https://github.com/rust-lang/rust/issues/32838 [2] https://news.ycombinator.com/item?id=36353145 Edit:…
comment by tw061023 · 2023-06-18 · in Rust vs Zig Benchmarks -
TSC doesn't need to "stick around", right? Just a run-once and the program is over? In those cases, https://github.com/fitzgen/bumpalo works amazingly as an arena. You can pretty much forget about reference counting and have direct…
comment by jkelleyrtp · 2022-01-25 · in I’m porting the TypeScript type checker tsc to Go -
Rust has an arena allocator too[1], but it is implemented with 165(!!!) usages of unsafe. :) [1] https://github.com/fitzgen/bumpalo
comment by shoefindortz · 2021-06-03 · in A new ProtoBuf generator for Go -
Crates like https://crates.io/crates/typed-arena and https://github.com/fitzgen/bumpalo are the way you do this in today’s Rust, but what he’s referring to is that types like String manage their own allocations and aren’t yet…
comment by steveklabnik · 2021-01-04 · in Rust is now overall faster than C in benchmarks -
…use allocation. There are also `Box`, `Rc` and `Arc`, which allocate and are used everywhere. [1] https://github.com/fitzgen/bumpalo
comment by the_duke · 2020-09-28 · in Zig's New Relationship with LLVM -
…missing/not working and shouldn't functionally affect what you are trying to do at all. [1]: https://github.com/fitzgen/bumpalo [2]: https://github.com/fitzgen/dodrio [3]: https://rust-lang.github.io/rfcs/1598-generic_associated_typ...
comment by zamalek · 2020-09-16 · in Pb-jelly – A Protobuf code generation framework for Rust, developed at Dropbox -
…can implement an allocator in Rust; it's unclear why you think this is not possible. One example: - https://github.com/fitzgen/bumpalo
comment by shepmaster · 2019-12-09 · in Game Boy Advance “Hello World” Using Zig