Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Back in the day there was no allocation. You just wrote to places in memory. At least I did this assembler on a PIC micro. I think it may have been that way on Apple II as well. Never used a compiler back then. They were too expensive.
-
Hazarth95213yI still do this on my C++ projects because it secretly makes me really happy if I can do something smart with memory
-
When I did stuff that involved manual mem management I feel like it's totally necessary and justified.
But looking back on it - wow, it sure felt like a waste of time! No way it was necessary to manually mange mem for my simple C apps. It was just a language necessity they I'd much rather have done for me.
To some extent it feels like if you give a programmer tools to control details - they will feel important - but when you take them away - you'll realise they probably weren't. -
@jiraTicket Java does it for you. But it can also do it for you at the wrong time and cause major lag in the program. The gc just loves to dump everything at once.
-
@Demolishun Yeah pretty much every language I've used since my C and C++ days does garbage collection.
And I've never missed manual memory management since. Feels like It's just freed up my time to focus on more relevant stuff.
But back in the day I felt it was justified.
I'm not doing anything particularly heavy though.
Memory
joke/meme