• 0 Posts
  • 119 Comments
Joined 1 year ago
cake
Cake day: September 2nd, 2023

help-circle
  • What’s up with all these posts lately talking as if C was the chain breaker that will let you achieve a higher spiritual level for your soul or some shit. This is at least the second I’ve seen this week.

    It’s a programming language. If you want to use it, use it. There is no illuminati pulling in the strings to prevent you from learning this holy language.

    That being said, like all programming languages, it’s a tool, with its upsides and downsides. Depending on the project it might be the best choice or the worst. But with the advancement in language design, there’s very little upsides compared to more modern languages, taking into account its big downsides.














  • It is a supply and demand curve.

    The supply is incredibly small for a world-famous artist compared to their demand. If the reason some people can’t buy a ticket because there are no tickets left, there’s room to increase the price of the ticket and sell the exact same amount of tickets. If resellers can just buy all your tickets and sell them for 10x the price, then you can 10x the price of tickets and sell the same amount.

    The problem is that you can’t just use the profits from selling Taylor swift tickets to make another Taylor swift so you can increase the supply of Taylor swift.

    There are only 3 ways they can increase their Taylor swift profits: 1. Make concerts in bigger venues so they can sell more tickets. 2. Increase the ticket prices. 3. Increase the amount of Taylor swift concerts.

    1. And 3. Have upper bound limits. Specially 3. Because what incentive do multi-millionaire artists to work more? If I were so wealthy, I’d strive to work less, not more.

    The easiest option is 2. why wouldn’t they do it?

    Sure, if I was a music fan it’d suck, but the truth is that they are corporations, and they are legally required to increase the shareholders’ value.






  • To be fair, mechanic items, and especially electronic ones were far more repairable back then.

    You could see, desolder and solder components without issue. Nowadays most of the electronics are inside chips, and only the components that need to be physically big (like those responsible for the power supply) are human sized. Sure, there are some small SMD that can be manually diagnosed and replaced, but even then you often need a lot of skill and equipment.


  • The good thing about Box::leak() is that it returns a raw *mut pointer. So you need unsafe{} to dereference it. Might as well: let my_ref = &mut unsafe{*ptr}; while you are at it, so you have a perfectly normal rust reference, so the function signatures don’t need any change.

    The problem with Rc is that it would also require a RefCell most of the time. So the whole thing would be filled with Rc<RefCell<T>>. With the required .borrow_mut(). It would both do a pain to do and undo.

    And of course I want to undo it, because RC is a shitty GC.