Pointers and Memory Management in Python
github.com
Pointers and Memory Management in Python
1–10 of 39 posts
Re: Pointers and Memory Management in Python
#2Re: Pointers and Memory Management in Python
#3 print(1, 2) # prints "2 2"
Pointers are bad but this implementation is broken. There is no way to do this using pointers IRL.Re: Pointers and Memory Management in Python
#4Re: Pointers and Memory Management in Python
#5Because pointers are broken and harmful.
Re: Pointers and Memory Management in Python
#6Why not? Because pointers are broken and harmful.
According to you, all softwares are broken and harmful?
Programming languages can provide a safe interface to pointers (just like Rust do with `Box`, `Rc`, `Arc`, or C++ in some ways with `shared_ptr` and `unique_ptr`).
Also, "Why not?" here clearly means "I did it for fun" / "Because I can".
Re: Pointers and Memory Management in Python
#7Why not? Because pointers are broken and harmful.
Re: Pointers and Memory Management in Python
#8Why not? Because pointers are broken and harmful.
Once compiled to assembly, every data is accessed via pointers. Every data structure is represented with pointers. Almost everything is a pointer. According to you, all softwares are broken and harmful? Programming languages can provide a safe interface to pointers (just like Rust do with `Box `, `Rc `, `Arc `, or C++ in some ways with `shared_ptr ` and `unique_ptr `). Also, "Why not?" here clearly means "I did it fo…
Re: Pointers and Memory Management in Python
#9Why not? Because pointers are broken and harmful.
Once compiled to assembly, every data is accessed via pointers. Every data structure is represented with pointers. Almost everything is a pointer. According to you, all softwares are broken and harmful? Programming languages can provide a safe interface to pointers (just like Rust do with `Box `, `Rc `, `Arc `, or C++ in some ways with `shared_ptr ` and `unique_ptr `). Also, "Why not?" here clearly means "I did it fo…
Re: Pointers and Memory Management in Python
#10Why not? Because pointers are broken and harmful.
Once compiled to assembly, every data is accessed via pointers. Every data structure is represented with pointers. Almost everything is a pointer. According to you, all softwares are broken and harmful? Programming languages can provide a safe interface to pointers (just like Rust do with `Box `, `Rc `, `Arc `, or C++ in some ways with `shared_ptr ` and `unique_ptr `). Also, "Why not?" here clearly means "I did it fo…
Are lower level technology’s more dangerous, no.
Are they more difficult to get right? Yes.
Do we want to stop worrying about finicky correctness or pointers and worry about building more complex things? Probably yes also.