I mean, at the end of the day, if you really understand your language of choice, you know that it is jusf a bunch of fancy libraries and compiler tricks of top of C. So in my mind, I’m a fully evolved programmer in a language, when I could write anything I can write in that language in C instead.
- 0 Posts
- 112 Comments
Nah, nobody will believe that. You have to be subtle. Just invite a journalist to the groupchats with his homies.
Rednax@lemmy.worldto Programmer Humor@programming.dev•top 5 unsolved problems in computer science8·1 month agoI have this experience with a certain type of pedestrian traffic light “button”.
I quote button, because nothing physically moves when you press it. I’m not sure if it registers pressure or heat, but you don’t even feel anything move when you press it.
Usually when you press the button, a red text lights up on the button, telling you to wait. This text gives you feedback that the button registered your press, and the traffic light will schedule a green light for you.
However, sometimes you didn’t press hard enough, and the text doesn’t light up. Simple solution: press harder.
But there is a scenario where it doesn’t matter how hard you press, the button won’t light up. You keep staring at it, while slamming the damn thing with the fury of a Hulk wealding Mjolnir. Still, nothing lights up. The reason: the light instantly went green, so it never needed to light up the text telling you to wait. And all that time slamming your fist on the button, could have been spend crossing the intersection. Instead you have been standing there, looking like a drunk person having a fistfight with an inanimate object.
Rednax@lemmy.worldto Ask Lemmy@lemmy.world•What are these tiny dots in eggplants (might need to zoom in)? My wife keeps finding these in most of the eggplants she cuts, and is concerned if this is something bad, or just something normal.91·3 months agoHere are some places where people had the same question, and the answer was seeds every time:
https://www.reddit.com/r/AskCulinary/comments/w2ccxb/what_are_these_tiny_black_seeds_in_my_eggplant/
https://www.reddit.com/r/vegetablegardening/comments/16m4til/eggplant_dots/
https://www.reddit.com/r/foodsafety/comments/1iv7qb4/eggplant_had_dark_spotsseeds_safe_to_eat/
Note that random reddits are not a source of reliable information. However, OP is certainly not the first to notice such spots, and it is not marked anywhere as dangerous. It is also notably absent on any sites about checking whether your eggplant has gone bad.
Rednax@lemmy.worldto Ask Lemmy@lemmy.world•People who use non-QWERTY keyboards: what do you use?1·3 months agoIt is so similar to QUERTY, that I just shrugged when I accidentally ordered the wrong 15 euro keyboard. So technically I also use QUERTZ, but I still tell my PC it is a QUERTY keyboard. Fun times when someone attempts to use my PC and gets confused.
Rednax@lemmy.worldto Ask Lemmy@lemmy.world•Anyone got some good replacement swears to replace the typical religious variety?2·3 months agoFor once I’m glad my fellow Dutchman haven’t colonized this thread yet, and instead we get a German invasion.
Rednax@lemmy.worldto Ask Lemmy@lemmy.world•What is one moral you have that most people don't agree with?1·3 months agoThe “rationale” behind such atrocities is always based on emotion, not actual reason. Usually fear. Analyzing why you feel that fear, and whether it is justified, will help to avoid falling into such logical fallacies.
Ignoring the fear, and dismissing it as illogical will not help anyone. You have to acknowledge the emotion, and analyse it. Allow it to exist, but avoid acting on it before analyzing it.
In fact, acting on emotions, especially on fear, will often result in such atrocities. Since it is fear, not reason, that eliminates compassion.
Ps. I like the discourse. Please don’t see my comments as a personal attack. Even if neither of us changes their oppinion, understanding the other is valuable.
Rednax@lemmy.worldto Ask Lemmy@lemmy.world•What is one moral you have that most people don't agree with?5·3 months agoBut understanding, predicting, and reacting differently on emotions are all learnable, and very rational.
For example: don’t punch the TV when you are angry about loosing a game. Instead realise where the anger is coming from. Probably frustration, but why are you so frustrated when you loose? Some frustration is understandable, but what causes so much frustration that it turned into violent anger? And can you predict what actions or circumsfamces may result in that frustration or and anger (e.g. alcohol consumption)?
The most rational fictional species I know, Vulcans, do not lack emotion. Quite the opposite. But they have learned to control their emotions.
Rednax@lemmy.worldto Programmer Humor@programming.dev•Does this exist anywhere outside of C++?1·3 months agoConsidering std::cout should only directly be used when you are too lazy to place breakpoints, I totally get the decision to auto-flush.
Rednax@lemmy.worldto [Migrated, see pinned post] Casual Conversation @lemm.ee•What's the best 2nd world war drama you've ever seen?English1·3 months agoThe Pianist. Which I have a special memory of, since I also saw a play around the same time that I saw the movie. The play was mostly someone narrating or playing the piano with some acting scenes inbetween. Both were really touching and very well done.
Rednax@lemmy.worldto Ask Lemmy@lemmy.world•Is it wrong to not want to find a job if I never had a childhood?3·3 months agoBut when we tried to get grandma into such a state of being taken care for, it was suddenly considered abuse (by her definition).
I remember a javascript library where the was a function that returned, according to the documentation, “a color”. Did it return an object with 3 fields? Were those fields RGB or some other color scheme? Is it a string encoding a color? What format is that string? None of these questions could be answered without just running the code, and analyzing the object you got back.
Rednax@lemmy.worldto Ask Lemmy@lemmy.world•You have the opportunity to make individual words for which there aren't any, instantly adopted, which words do you make and why?3·3 months agoThe word love would not disappear. Its meaning would just shift to something that feels off when you mean a specific type of love. What you whisper in the ear of your lover in bed, will be different from what you tell your kid when they go off to school. But when talking about the amount of love you have to give, the old word “love” will still be used, since that is usually about any kind of love.
Rednax@lemmy.worldto Ask Lemmy@lemmy.world•You have the opportunity to make individual words for which there aren't any, instantly adopted, which words do you make and why?20·3 months agoI would split the word “love” into unique words for different kinds of love.
I have one of these too for my cat, and it works really well. Hasn’t run out of batteries yet since I bought it several months ago. And it stopped the catfood thieves of the neighbourhoud entering my kitchen uninvited.
Rednax@lemmy.worldto Ask Lemmy@lemmy.world•Why is it that you can't buy a 2 Liter container of beer or coffee?2·4 months agoLarge beer containers are “rare” for the same reason large soda containers are rare: carbonization. If you store an opened bottle of beer for a few hours, it will go flat, killing part of the taste with it. Beer is even worse in this regard than soda. You want to finish the whole thing in one sitting for beer. Very few people consume 2 litres of beer in one sitting. … But … Every single self respecting bar has beer from the tap, right? That stuff doesn’t appear magically. It comes in kegs. You can buy those kegs from a wholesaler, or from the internet. These kegs work by inserting CO2 to pressurize it. So you will need CO2 tanks and a system to pressurize the whole thing. Not super hard to get, but not something you find in your supermarket either. But if you consume enough beer, it can absolutely be worth it to buy a tap, CO2 and kegs instead of bottles.
Most people here are taking the moral high road or talking about the current state of society. Lets look at game theory instead to get some fundamental understanding.
Consider a game with 10 players. Each player has two options: be charitable or be selfish. If they are charitable, they add 3 points to the collective score. If they are selfish, they add 2 points to their own score. All players decide at the same, and afterwards the collective is evenly divided among all players. So if all players are charitable, everyone ends up with a personal score of 3. If everyone is selfish, everyone ends up with a score of 2.
If you are the only selfish person in the game, you score a jackpot. You get a total score of 4.7.
Now consider the idea that you play this game over and over with random players, accumulating score in each game. If everyone is always selfish, no-one will score higher than 2. But if you, individually are never selfish, you never score higher than 3.
If we consider all players to follow the same strategy, then we get an optimization puzzle for individual score. How often do you randomly choose for selfish? Instinct and DNA, but also culture and social norms create a common recipe in humans for how to make this decision. So while reality is more complex, we still act anough alike to get some wisdom when applying this assumption.
But it turns out that we don’t play these games with random people, but we are grouped by our strategy for choosing selfish or charitable (e.g. grouped by culture). And the groups also compete. If a group does particularly bad with their global score, they will be removed from the game (conquored, culture changed, etc). So not only does your choice for selfish or charitable need to optimize for personal gain to get a survival edge within your group, it also needs to optimize for survival of the group. A group with only selfish people will never thrive.
Hence, in this simple example, randomly doing good can be good for the survival of your DNA and culture. Real life is much more complicated, but a similar balance of interests may be at play. After all, evolution means that life is constantly competing with itself, yet it also benefits from working together with itself.
Whether you feel survival of your DNA and culture are relevant, is up to you. But when entire groups exist that don’t feel like that, they tend to go extinct.
Rednax@lemmy.worldto Ask Lemmy@lemmy.world•how can i make my brain stop deleting whatever i study for an exam1·5 months agoWell, not controlling your Z, and just being awake whenever, won’t help you either. A good nights rest is vital for the brain.
Rednax@lemmy.worldto Ask Lemmy@lemmy.world•If scientists could make you immortal but could only do it by transferring your consciousness into a single video game for ever, which game would you choose?2·5 months agoAnd you might eventually die, after you have become a fallen empire yourself, and get stomped by some next level crisis, while the AI empires are less than useless. I consider this a plus though. Eternity is a very long time, and boredom is a very strong emotion. No game could keep me entertained for eternity.
But how does the Rust compiler do that? What does it actually check? Could I write a compiler in C that does this check on a piece of Rust code?
C is so simplictic, that if I can write a piece of functionality in C, I must understand its inner workings fully. Not just how to use the feature, but how the feature works under the hood.
It is often pointless to actually implement the feature in C, since the feature already has a good implementation (see the Rust compiler for the memory safety). But understanding these features, and being able to mentally think about what it takes in C to implement them, is still helpfull for gaining an understanding of the feature.