>his programming language doesnt automatically delete values from the heap as soon as they go out of scope
His programming language doesnt automatically delete values from the heap as soon as they go out of scope
dumb frogposter
>Being too much of a brainlet to keep track of memory
You may as well use electron, user
>his programming language does things he doesn't tell it to do
>what are smart pointers?
roll
Rollerino Pasterino
FUCKING PIECE OF SHIT, THAT'S NOT A WAIFU, FUCKING THOOOOOOT
>allocating memory dynamically
dumb rollposters
roll
use after frees make me moist :3
roll
I hope she has a feminine benis
Rollin
Does any programming language have such a naive garbage collector? That would be terrible
Rollin' rollin' rollin' lalilalilalalaa rawhide!
Roll
Asuka pls...
Rollerino
>as they go out of scope
>what is the stack
Rolling
>having a heap in the first place
>he uses heap allocation
Rollin'
This dumb frogposter doesn't even realize that memory reusing is a valuable optimization technique.
Rolll
I can't think of a single language that does that.
C++? No, that's RAII.
Python? Reference-counting plus GC.
C#? Java? JS? Those are just GC.
Swift? Just RC.
What would be the point of using heap allocation if you just forced it to be tied to a stack, anyway? Why not just use `alloca` with RAII if that's all you need? Remember, heap allocation is extremely slow compared to stack allocation, so if we need is dynamically-sized objects on a stack, we use a stack.
Fucking really re-roll
Okay
Also Onodera please
Redeemed
>his language relies on operating system-dependent abstractions and conveniences
Ryuko is mine fuck off
Roll
roll
Röl
Roll
roll
Rollin
rollan
r
It shouldn't because the gc should optimise garbage collection.
r
>He's so insecure he must do manual memory management to feel he's in control.
roll
rolling
roll
Roll
Roll
Rolland
Roll
roll
>my programming language isn't terribly designed
Uh okay? Thanks? Surely no language does unnecessary allocations/deallocations.
rollin
This is a great way to derail a thread
>his programming language abstracts hexadecimal values into opcodes
plebs
>declare a bunch of variables
>call a function
>those variables get nuked because they went out of scope
Amazing!
roll hope megumin is on there
roll for arthuria.
>Not knowing how to manage memory yourself but also enjoy languages with garbage collection for comfy development
C for memes, Java/python/javascript for good times.
Jow Forums is nothing but incels and faggots
my wife Mikoto is so cute
Rollan
YES
>he needs someone else to pick up his trash after him.
bet your room looks like pic rel
roll
gfjc
rollerino
roll I guess
Here I go
...
roll
uh fine
rollll
Rolling
I dont even watch anime
rollan
rull
no
rawl
Roll
Um, a language such as that would be a very limiting one, if it doesn't have its own abstracted memory model.
>javascript for good times
lol
>:3
ask me how I know you've never exploited one
roll
shut up and roll
also reroll for rei
fucking kek
Roll
k y s
Roll
What if I want to use it later?
rolling for a loli
rolling for misaka
azusa GET
>>his programming language doesnt automatically delete values from the heap as soon as they go out of scope
*cringe*
If the memory is done by the time it goes out of scope it shoudl never have been on the heap in the first fucking place
When would you need that? That's what the stack is for. In C++, you can also use unique_ptr for that if you want minimal impact on the stack.l
rolling
roll
what does Rust do with memory in addition to being just a meme?
Metaphorical roll
r o l l
kurisukurisu
Roll