Lemmy: Bestiverse
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
RSS BotMB to Lobste.rsEnglish · 1 year ago

Mistakes and cool things to do with arena allocators

zylinski.se

external-link
message-square
0
link
fedilink
  • cross-posted to:
  • programming@programming.dev
1
external-link

Mistakes and cool things to do with arena allocators

zylinski.se

RSS BotMB to Lobste.rsEnglish · 1 year ago
message-square
0
link
fedilink
  • cross-posted to:
  • programming@programming.dev
When programming in Odin you can use arena allocators. If you use an arena allocator combined with a dynamic array, then there are a couple of pitfalls that may not be apparent at first. Let’s look at what arenas are, how you can run into trouble when naively using them with dynamic arrays and what you can do instead. What’s an arena? How does it work? Arenas and arena allocators are useful for grouping allocations that have the same lifetime.

Comments

alert-triangle
You must log in or # to comment.

Lobste.rs

lobsters

Subscribe from Remote Instance

You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !lobsters@lemmy.bestiver.se
lock
Community locked: only moderators can create posts. You can still comment on posts.

RSS Feed of lobste.rs

Source of the RSS Bot

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 83 users / day
  • 137 users / week
  • 385 users / month
  • 1.66K users / 6 months
  • 2 local subscribers
  • 396 subscribers
  • 15.6K Posts
  • 1.07K Comments
  • Modlog
  • mods:
  • patrick
  • RSS Bot
  • BE: 0.19.15
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org