Lemmy: Bestiverse
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
maxint@programming.dev to Programming@programming.devEnglish · 25 days ago

Mistakes and cool things to do with arena allocators

zylinski.se

external-link
message-square
2
fedilink
  • cross-posted to:
  • lobsters
29
external-link

Mistakes and cool things to do with arena allocators

zylinski.se

maxint@programming.dev to Programming@programming.devEnglish · 25 days ago
message-square
2
fedilink
  • cross-posted to:
  • lobsters
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.
alert-triangle
You must log in or register to comment.
  • bizdelnick@lemmy.ml
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    24 days ago

    Cool, but what is Odin? If there’s no Wikipedia article about something, it doesn’t exist.

    • zygo_histo_morpheus@programming.dev
      link
      fedilink
      arrow-up
      6
      ·
      24 days ago

      It’s another c/c++ competitor along with rust and zig. https://odin-lang.org/

Programming@programming.dev

programming@programming.dev

Subscribe from Remote Instance

Create a post
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: !programming@programming.dev

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



Visibility: Public
globe

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

  • 78 users / day
  • 1.04K users / week
  • 2.91K users / month
  • 7.07K users / 6 months
  • 1 local subscriber
  • 20.1K subscribers
  • 787 Posts
  • 8.82K Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • MaungaHikoi@lemmy.nz
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org