Click here to Skip to main content
15,505,126 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: C++ is love Pin
honey the codewitch14-Dec-20 18:08
mvahoney the codewitch14-Dec-20 18:08 
GeneralRe: C++ is love Pin
den2k8814-Dec-20 22:48
professionalden2k8814-Dec-20 22:48 
GeneralRe: C++ is love Pin
Slacker00715-Dec-20 0:02
professionalSlacker00715-Dec-20 0:02 
GeneralRe: C++ is love Pin
honey the codewitch15-Dec-20 2:15
mvahoney the codewitch15-Dec-20 2:15 
GeneralRe: C++ is love Pin
Slacker00715-Dec-20 4:11
professionalSlacker00715-Dec-20 4:11 
GeneralRe: C++ is love Pin
honey the codewitch15-Dec-20 4:20
mvahoney the codewitch15-Dec-20 4:20 
GeneralRe: C++ is love Pin
Randor 14-Dec-20 10:27
professional Randor 14-Dec-20 10:27 
GeneralRe: C++ is love Pin
honey the codewitch14-Dec-20 10:50
mvahoney the codewitch14-Dec-20 10:50 
Then that would be an actual garbage collector, which I'm trying to avoid. Big Grin | :-D

Actually what I'm doing is kind of clever.

I allow you to allocate a "MemoryPool" on the heap or the stack, and then allocate memory from that pool. It does not allow you to delete. However, all allocated segments are always contiguous and sequential, leading to a number of performance advantages. Instead of deleting single allocations you can freeAll() to reset/recycle the entire pool and invalidate the memory therein. It's actually quite nice for a lot of basic processing scenarios. it's just inefficient for mutable data where sizes can change - which it's not designed for.
Real programmers use butterflies

GeneralRe: C++ is love Pin
Johann Gerell14-Dec-20 23:25
Johann Gerell14-Dec-20 23:25 
GeneralRe: C++ is love Pin
CodeWraith14-Dec-20 10:28
CodeWraith14-Dec-20 10:28 
GeneralRe: C++ is love Pin
Jörgen Andersson14-Dec-20 10:28
professionalJörgen Andersson14-Dec-20 10:28 
GeneralRe: C++ is love Pin
CodeWraith14-Dec-20 10:38
CodeWraith14-Dec-20 10:38 
GeneralRe: C++ is love Pin
den2k8814-Dec-20 22:52
professionalden2k8814-Dec-20 22:52 
GeneralRe: C++ is love Pin
Sander Rossel14-Dec-20 10:31
professionalSander Rossel14-Dec-20 10:31 
GeneralRe: C++ is love Pin
honey the codewitch14-Dec-20 10:42
mvahoney the codewitch14-Dec-20 10:42 
GeneralRe: C++ is love Pin
Sander Rossel14-Dec-20 12:18
professionalSander Rossel14-Dec-20 12:18 
GeneralRe: C++ is love Pin
honey the codewitch14-Dec-20 12:21
mvahoney the codewitch14-Dec-20 12:21 
GeneralRe: C++ is love Pin
Sander Rossel14-Dec-20 12:24
professionalSander Rossel14-Dec-20 12:24 
GeneralRe: C++ is love Pin
honey the codewitch14-Dec-20 16:16
mvahoney the codewitch14-Dec-20 16:16 
GeneralRe: C++ is love Pin
Sander Rossel14-Dec-20 22:44
professionalSander Rossel14-Dec-20 22:44 
GeneralRe: C++ is love Pin
pkfox14-Dec-20 12:39
professionalpkfox14-Dec-20 12:39 
GeneralRe: C++ is love Pin
CodeWraith14-Dec-20 11:00
CodeWraith14-Dec-20 11:00 
GeneralRe: C++ is love Pin
Jörgen Andersson14-Dec-20 11:04
professionalJörgen Andersson14-Dec-20 11:04 
GeneralRe: C++ is love Pin
CodeWraith14-Dec-20 11:11
CodeWraith14-Dec-20 11:11 
GeneralRe: C++ is love Pin
Slacker00714-Dec-20 11:36
professionalSlacker00714-Dec-20 11:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

How would you describe your current job?
Fighting dragons everyday or clicking the same boxes on the same forms, day after day?
  Results   420 votes