Skip to content

Question about GC improvements and memory management #70

Answered by edubart
stefanos82 asked this question in Q&A
Discussion options

You must be logged in to vote

First, as a Nim user for a good amount of time and a C++ for more than a decade I am very used to RAII, constructors/destructors, reference counting, smart pointers. I was even addicted to abuse of such mechanisms for a good part of my programming life, thus was even I my original goals of Nelua to offer the following 3 memory management mechanisms:

  1. Garbage collection (like Lua or Go)
  2. Manual memory management (like naive C)
  3. Automatic referencing counting (like Nim ARC/ORC, Swift ARC or modern C++)

While developing Nelua I first made 1 and 2, then I've even worked in 3, and it even shipped the Nelua master for some time (although under experimental and not documented). But while developi…

Replies: 5 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by edubart
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@stefanos82
Comment options

@edubart
Comment options

@stefanos82
Comment options

Comment options

You must be logged in to vote
1 reply
@stefanos82
Comment options

Comment options

You must be logged in to vote
4 replies
@edubart
Comment options

@stefanos82
Comment options

@edubart
Comment options

@stefanos82
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #69 on June 07, 2021 00:55.