Click here to Skip to main content
15,438,202 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 17:08
mvahoney the codewitch14-Dec-20 17:08 
GeneralRe: C++ is love Pin
den2k8814-Dec-20 21:48
professionalden2k8814-Dec-20 21:48 
GeneralRe: C++ is love Pin
Slacker00714-Dec-20 23:02
professionalSlacker00714-Dec-20 23:02 
GeneralRe: C++ is love Pin
honey the codewitch15-Dec-20 1:15
mvahoney the codewitch15-Dec-20 1:15 
GeneralRe: C++ is love Pin
Slacker00715-Dec-20 3:11
professionalSlacker00715-Dec-20 3:11 
GeneralRe: C++ is love Pin
honey the codewitch15-Dec-20 3:20
mvahoney the codewitch15-Dec-20 3:20 
GeneralRe: C++ is love Pin
Randor 14-Dec-20 9:27
professional Randor 14-Dec-20 9:27 
GeneralRe: C++ is love Pin
honey the codewitch14-Dec-20 9:50
mvahoney the codewitch14-Dec-20 9: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 22:25
MemberJohann Gerell14-Dec-20 22:25 
GeneralRe: C++ is love Pin
CodeWraith14-Dec-20 9:28
MemberCodeWraith14-Dec-20 9:28 
GeneralRe: C++ is love Pin
Jörgen Andersson14-Dec-20 9:28
professionalJörgen Andersson14-Dec-20 9:28 
GeneralRe: C++ is love Pin
CodeWraith14-Dec-20 9:38
MemberCodeWraith14-Dec-20 9:38 
GeneralRe: C++ is love Pin
den2k8814-Dec-20 21:52
professionalden2k8814-Dec-20 21:52 
GeneralRe: C++ is love Pin
Sander Rossel14-Dec-20 9:31
professionalSander Rossel14-Dec-20 9:31 
GeneralRe: C++ is love Pin
honey the codewitch14-Dec-20 9:42
mvahoney the codewitch14-Dec-20 9:42 
GeneralRe: C++ is love Pin
Sander Rossel14-Dec-20 11:18
professionalSander Rossel14-Dec-20 11:18 
GeneralRe: C++ is love Pin
honey the codewitch14-Dec-20 11:21
mvahoney the codewitch14-Dec-20 11:21 
GeneralRe: C++ is love Pin
Sander Rossel14-Dec-20 11:24
professionalSander Rossel14-Dec-20 11:24 
GeneralRe: C++ is love Pin
honey the codewitch14-Dec-20 15:16
mvahoney the codewitch14-Dec-20 15:16 
GeneralRe: C++ is love Pin
Sander Rossel14-Dec-20 21:44
professionalSander Rossel14-Dec-20 21:44 
GeneralRe: C++ is love Pin
pkfox14-Dec-20 11:39
professionalpkfox14-Dec-20 11:39 
GeneralRe: C++ is love Pin
CodeWraith14-Dec-20 10:00
MemberCodeWraith14-Dec-20 10:00 
GeneralRe: C++ is love Pin
Jörgen Andersson14-Dec-20 10:04
professionalJörgen Andersson14-Dec-20 10:04 
GeneralRe: C++ is love Pin
CodeWraith14-Dec-20 10:11
MemberCodeWraith14-Dec-20 10:11 
GeneralRe: C++ is love Pin
Slacker00714-Dec-20 10:36
professionalSlacker00714-Dec-20 10: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

When building an application, when is the most important time to consider the User Experience?
They are the ones we write code for, right?
  Results   681 votes