Click here to Skip to main content
15,893,266 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: I feel so guilty Pin
Rick York22-Dec-21 8:35
mveRick York22-Dec-21 8:35 
GeneralRe: I feel so guilty Pin
Mike Hankey22-Dec-21 8:49
mveMike Hankey22-Dec-21 8:49 
GeneralRe: I feel so guilty Pin
honey the codewitch22-Dec-21 9:04
mvahoney the codewitch22-Dec-21 9:04 
GeneralRe: I feel so guilty Pin
Mike Hankey22-Dec-21 9:12
mveMike Hankey22-Dec-21 9:12 
GeneralRe: I feel so guilty Pin
honey the codewitch22-Dec-21 9:33
mvahoney the codewitch22-Dec-21 9:33 
GeneralRe: I feel so guilty Pin
Mike Hankey22-Dec-21 9:51
mveMike Hankey22-Dec-21 9:51 
GeneralRe: I feel so guilty Pin
trønderen22-Dec-21 11:44
trønderen22-Dec-21 11:44 
GeneralRe: I feel so guilty Pin
honey the codewitch22-Dec-21 11:50
mvahoney the codewitch22-Dec-21 11:50 
First, I'm talking PC applications. Embedded is a whole different animal, particularly here, since part of what I wrote is fundamentally tied to the presence of virtual memory.

Also you're talking about an unmanaged environment where you can handle your own heap, and you've provided one mechanism for doing it.

.NET uses another. It allocates a huge block as a memory pool. Allocations amount to incrementing a pointer. That's it. You pay for that on the backend through garbage collection.

A scheme just as valid as yours, on a PC with (by today's measure) a reasonable amount of RAM and decent swap.

And whether or not you can do it your way, applications may or may not do it that way. I'd argue most written in C++ probably don't do all that much custom heap stuff at all, just relying on the C and C++ libraries and however those do it.

And then there's the fact that so much of todays code is "managed" (read, garbage collected)

Please keep in mind my position isn't about how you "should" manage the heap. We could argue about that for days.

My position is about the hows and whys of the way it's done on PCs now. This isn't about ideal situations, it's about the present situation, if that makes sense.
Real programmers use butterflies

GeneralRe: I feel so guilty Pin
trønderen22-Dec-21 14:04
trønderen22-Dec-21 14:04 
GeneralRe: I feel so guilty Pin
honey the codewitch22-Dec-21 14:10
mvahoney the codewitch22-Dec-21 14:10 
GeneralRe: I feel so guilty Pin
trønderen22-Dec-21 15:25
trønderen22-Dec-21 15:25 
GeneralRe: I feel so guilty Pin
OriginalGriff22-Dec-21 8:42
mveOriginalGriff22-Dec-21 8:42 
GeneralRe: I feel so guilty Pin
Mike Hankey22-Dec-21 8:51
mveMike Hankey22-Dec-21 8:51 
NewsRe: I feel so guilty Pin
oofalladeez34322-Dec-21 11:55
professionaloofalladeez34322-Dec-21 11:55 
GeneralRe: I feel so guilty Pin
Marc Clifton22-Dec-21 15:14
mvaMarc Clifton22-Dec-21 15:14 
GeneralRe: I feel so guilty Pin
Mike Hankey22-Dec-21 16:19
mveMike Hankey22-Dec-21 16:19 
GeneralRe: I feel so guilty Pin
Jacquers22-Dec-21 19:07
Jacquers22-Dec-21 19:07 
GeneralRe: I feel so guilty Pin
Mike Hankey23-Dec-21 2:23
mveMike Hankey23-Dec-21 2:23 
GeneralRe: I feel so guilty Pin
Chris C-B22-Dec-21 20:30
Chris C-B22-Dec-21 20:30 
GeneralDas 5QS mechanical keyboard - can recommend Pin
honey the codewitch22-Dec-21 7:40
mvahoney the codewitch22-Dec-21 7:40 
GeneralRe: Das 5QS mechanical keyboard - can recommend Pin
Mike Hankey22-Dec-21 8:00
mveMike Hankey22-Dec-21 8:00 
GeneralRe: Das 5QS mechanical keyboard - can recommend Pin
Kris Lantz22-Dec-21 9:04
professionalKris Lantz22-Dec-21 9:04 
GeneralRe: Das 5QS mechanical keyboard - can recommend Pin
honey the codewitch22-Dec-21 9:08
mvahoney the codewitch22-Dec-21 9:08 
GeneralRe: Das 5QS mechanical keyboard - can recommend Pin
Roger Wright22-Dec-21 10:25
professionalRoger Wright22-Dec-21 10:25 
GeneralRe: Das 5QS mechanical keyboard - can recommend Pin
honey the codewitch22-Dec-21 10:29
mvahoney the codewitch22-Dec-21 10:29 

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.