Live data from Hacker News

Pointers and Memory Management in Python

github.com

1–10 of 39 posts

Re: Pointers and Memory Management in Python

#4
I don’t understand the problem people have with pointers, they are an amazing tool. And the negative attitude towards manual memory allocation just seems like laziness to me and even suggests a lack of understanding for both what you’re doing and how computers work.

Re: Pointers and Memory Management in Python

#6
post #5

Why 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 for fun" / "Because I can".

Re: Pointers and Memory Management in Python

#8
post #6
post #5

Why 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…

Cmon. In a good faith reading, he means as a matter of developer access. And he's not wrong as concerns what 90+% of devs have to get done at their jobs.

Re: Pointers and Memory Management in Python

#9
post #6
post #5

Why 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…

Its the same crowd that goes screeching when they see „goto“ eyeroll

Re: Pointers and Memory Management in Python

#10
post #6
post #5

Why 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…

You could extrapolate this right down to the binary layer.

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.

Post reply on HN