fed.dyne.org
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
puria 🦐MA to /👼🏼/purianesimo · 6 months ago

Weak Pointers in Go: Why They Matter Now

victoriametrics.com

external-link
message-square
0
link
fedilink
4
external-link

Weak Pointers in Go: Why They Matter Now

victoriametrics.com

puria 🦐MA to /👼🏼/purianesimo · 6 months ago
message-square
0
link
fedilink
Through the weak package, you can create these special pointers that automatically become nil when their target memory gets collected. While they’re a bit trickier to use than regular pointers, they’re super useful for things like canonicalization maps and memory-efficient caching. The implementation is pretty clever too, using an 8-byte indirection object to make garbage collection more efficient.
alert-triangle
You must log in or # to comment.

/👼🏼/purianesimo

purianesimo

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: !purianesimo@fed.dyne.org

Everything related to !purianesimo@fed.dyne.org

Visibility: Public
globe

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

  • 1 user / day
  • 2 users / week
  • 3 users / month
  • 10 users / 6 months
  • 9 local subscribers
  • 24 subscribers
  • 233 Posts
  • 46 Comments
  • Modlog
  • mods:
  • puria 🦐
  • BE: 0.19.12
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org