programming.dev
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
maxint to ProgrammingEnglish · 1 month ago

Mistakes and cool things to do with arena allocators

zylinski.se

external-link
message-square
2
link
fedilink
  • cross-posted to:
  • [email protected]
29
external-link

Mistakes and cool things to do with arena allocators

zylinski.se

maxint to ProgrammingEnglish · 1 month ago
message-square
2
link
fedilink
  • cross-posted to:
  • [email protected]
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
    ·
    1 month ago

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

    • zygo_histo_morpheus
      link
      fedilink
      arrow-up
      6
      ·
      1 month ago

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

Programming

programming

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: [email protected]

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 [email protected]



Visibility: Public
globe

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

  • 133 users / day
  • 469 users / week
  • 2.59K users / month
  • 7.03K users / 6 months
  • 2.72K local subscribers
  • 20.2K subscribers
  • 2.17K Posts
  • 35K Comments
  • Modlog
  • mods:
  • snowe
  • Ategon
  • MaungaHikoi@lemmy.nz
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org