AlkaliMarxist

joined 2 years ago
[–] [email protected] 3 points 9 months ago (1 children)

Yeah, unless I'm missing something the author would have the same outcome with regular pointers if he'd freed them at the same time (one at the end of the anon scope and one at the end of fun1). This is nothing to do with garbage collection and is simply a result of, as you mention, pointing to the same memory with two pointers and freeing both.

His issue seems to be with the implementation of malloc, which is pretty funny because he's basically claiming C itself has unpredictable garbage collection. I almost can't believe it's legit, it seems like such a basic, fundamental misunderstanding of concepts it's like chatGPT output.

[–] [email protected] 3 points 1 year ago

That's my interpretation of the creative process behind fiction and invention also. You take a familiar concept in your mind and mutate it with the goal of either making something more efficient or effective (invention) or of creating engaging narrative (fiction).

[–] [email protected] 6 points 1 year ago (2 children)

Depends on how unique the thought needs to be. You could simply count up from 0 and eventually you'd encounter a number you'd never thought of before, like 145,398, which I'm pretty sure is a number I've never thought about. You could do this forever and still be having technically unique thoughts.

The problem, I think, is that all thoughts seem to be a product of previous thoughts. Totally new thoughts are driven by external stimuli. We can, however, mutate an existing thought into a new one. I think this would be my process, take a common thought and change one aspect of it at a time until it's unrecognizable.

[–] [email protected] 6 points 1 year ago

Things that work for me, not necessarily recommendations:

  • Mindfulness practices
  • Always be a little bit too busy for comfort, keeps you from dwelling on things
  • Smoke; weed or tobacco, both help
  • Deliberately cultivate positive self-talk, don't just uncritically accept whatever you mind tells you