Readit News logoReadit News
rramadass commented on Hard-braking events as indicators of road segment crash risk   research.google/blog/hard... · Posted by u/aleyan
rramadass · a day ago
> Driving is a fascinating ritual with vastly differing norms across regions. It would be interesting to learn if anthropologists have studied this

And Psychologists!

Reading the comments in this thread is quite amusing.

As a driver in India, i can tell you anything goes as long as you don't get into an accident (which may/may-not kill you) or get caught by the police.

No rules matter and the only goal is to "one-up" everybody else on the road and if they are trying to "one-up" you, then prevent it by any means possible. It is a "game of chicken" in its purest form; game theory in action. Rules are mere suggestions only followed by the meek and the weak.

You have no idea how invigorating it is to drive in India.

rramadass · 16 hours ago
Addendum:

Drive in India and you will understand mathematical concepts of Chance/Randomness/Probability/Non-determinism/Game Theory/etc. along with philosophical concepts of Fate/Destiny/Providence/etc. in so direct and visceral a manner that you will never forget the lessons. Sissified countries with rules and regulations for driving can never give you such direct knowledge.

Game Theory - https://en.wikipedia.org/wiki/Game_theory

Game of Chicken - https://en.wikipedia.org/wiki/Chicken_(game)

The game of chicken models two drivers, both headed for a single-lane bridge from opposite directions. The first to swerve away yields the bridge to the other. If neither player swerves, the result is a costly deadlock in the middle of the bridge or a potentially fatal head-on collision. It is presumed that the best thing for each driver is to stay straight while the other swerves (since the other is the "chicken" while a crash is avoided). Additionally, a crash is presumed to be the worst outcome for both players. This yields a situation where each player, in attempting to secure their best outcome, risks the worst.

How to learn One-upmanship/Gamesmanship:

The British author Stephen Potter actually wrote a manual on the practice of such games titled The Theory and Practice of Gamesmanship (or the Art of Winning Games without Actually Cheating) which sissies can study to become strong - https://en.wikipedia.org/wiki/Gamesmanship

For the even more sissified sissies who do not want to read a book, there is a documentary titled School for Scoundrels Or How to Win without Actually Cheating) which is very instructive - https://en.wikipedia.org/wiki/School_for_Scoundrels_(1960_fi...

Disclaimer: I am not responsible for the consequences if the above emboldens you to act in such a manner in your specific context.

rramadass commented on The shadowy world of abandoned oil tankers   bbc.com/news/articles/cdd... · Posted by u/1659447091
BLKNSLVR · a day ago
This is another one of those things that, having put no thought into it as something that has sat in the background of life since childhood, I had figured was better organised/protected against malicious, negligent and/or fraudulent behaviour.

The world is far more of a chaotic jungle than the facade makes it appear. There is yet much opportunity for mischief for those who dare and have the resources and lack of moral compass.

rramadass · a day ago
Beginning to think is beginning to be undermined. -- Albert Camus

The ease/comfort of our so-called "Modern Civilization" is built on illusions constructed intentionally by people-in-power/govts-in-collusion. People are kept distracted and managed using techniques of propaganda and reflexive control.

The developed/richer countries take advantage of the developing/poorer countries by offshoring dangerous/poisonous/etc. industries/work onto them while mouthing platitudes and absolving themselves of all responsibilities.

If you start asking questions (and educate yourself) on how-a-thing-comes-to-be from first principles, what happens to it after its end-of-life, the effects on the people involved in the entire chain (from birth to death) you will rise up in arms to tear the system down and rebuild it all.

Here for example is a shocking article on waste tyres from around the world being sent to India to be disposed off and how the entire process literally poisons poor people forced to do that job; The Black Wind: How India is becoming the World's Waste Tyre Furnace - https://www.reporters-collective.in/trc/india-is-becoming-wo...

rramadass commented on Hard-braking events as indicators of road segment crash risk   research.google/blog/hard... · Posted by u/aleyan
duncangh · a day ago
Driving and living in Atlanta after living in Charleston and Raleigh felt like transitioning from a modern cooperative society to an island of cannibals. The amount of aggression needed to change lanes largely regardless of attempts to signal good faith and politeness is baffling. Driving is a fascinating ritual with vastly differing norms across regions. It would be interesting to learn if anthropologists have studied this
rramadass · a day ago
> Driving is a fascinating ritual with vastly differing norms across regions. It would be interesting to learn if anthropologists have studied this

And Psychologists!

Reading the comments in this thread is quite amusing.

As a driver in India, i can tell you anything goes as long as you don't get into an accident (which may/may-not kill you) or get caught by the police.

No rules matter and the only goal is to "one-up" everybody else on the road and if they are trying to "one-up" you, then prevent it by any means possible. It is a "game of chicken" in its purest form; game theory in action. Rules are mere suggestions only followed by the meek and the weak.

You have no idea how invigorating it is to drive in India.

rramadass commented on Can Ozempic Cure Addiction?   newyorker.com/magazine/20... · Posted by u/adrianhon
rramadass · a day ago
Relevant:

Is India about to make Ozempic-like weight-loss drugs a whole lot cheaper? - https://edition.cnn.com/2026/02/07/india/india-semaglutide-p...

rramadass commented on I write games in C (yes, C) (2016)   jonathanwhiting.com/writi... · Posted by u/valyala
tombert · 3 days ago
I've been writing a good chunk of C lately for some stuff that has some relatively high memory constraints (lower than I could squeeze out of GraalVM).

I know I could do C++, and you could argue that's better, but I find C++ to be exceptionally irritating to use. Every time I've used C++ I get people telling me I'm using it "wrong", sometimes in contradictory ways. Sometimes I should use a "friend" function, sometimes "friend functions are evil". Sometimes multiple inheritance is fine, sometimes it should be avoided like the plague. Sometimes you should "obviously" use operator overloading, sometimes you should avoid it because it's confusing because you don't know which functions are being called.

I'm sure someone here can "educate" me with the best practices for C++, and maybe there will be some reasoning for it, but ultimately I don't really care. I just found the language annoying and I don't enjoy using it. I know that I could "just write it mostly like C and use the C++ features when I need it", but I have just found that I have more fun thinking in pure C, and I've kind of grown to enjoy the lack of features.

Maybe it's just a little bit of masochism on my end, but I like the fact that C gives you so little. You kind of have to think about your problem at a very fundamental and low level; you have to be aware of how memory is allocated and deallocated, you don't get all these sexy helper functional-programming constructs, strings aren't these simple automatic dynamic things that you have in basically every other language. You have a dumb, simple language that will give you exactly what you need to write programs and very little else.

Most stuff I write uses a garbage collector, but the safety and easy of writing stuff with garbage collectors like Java makes it very easy to be lazy. I've grown to appreciate how much C makes you actually think about problems.

rramadass · a day ago
> I know I could do C++, and you could argue that's better, but I find C++ to be exceptionally irritating to use. Every time I've used C++ I get people telling me I'm using it "wrong", sometimes in contradictory ways. Sometimes I should use a "friend" function, sometimes "friend functions are evil". Sometimes multiple inheritance is fine, sometimes it should be avoided like the plague. Sometimes you should "obviously" use operator overloading, sometimes you should avoid it because it's confusing because you don't know which functions are being called.

That is because you are looking at Design in C++ wrong. Language features and low-level abstractions are just mechanisms. You have to put them into a coherent framework for modeling a problem domain via commonality & variability analysis (aka domain engineering) onto a solution domain consisting of language features, idioms and patterns.

For a very good explanation, see the classic book, Multi-Paradigm Design for C++ by James Coplien.

The above can also be found in his PhD thesis Multi-Paradigm Design available in pdf form here - https://tobeagile.com/wp-content/uploads/2011/12/CoplienThes...

rramadass commented on I write games in C (yes, C) (2016)   jonathanwhiting.com/writi... · Posted by u/valyala
saghm · 2 days ago
What you're describing is needing to use specific verbose patterns to opt out of the defaults that do more complex things under the hood, whereas they're describing how C and Rust do not do those things by default and instead let you opt into them. It's not disingenuous to point that out.
rramadass · 2 days ago
Not quite.

What i am pointing out are neither complex nor any magic under-the-hood. They are simply techniques in the C++ repertoire well-known since the early 90's and used in all high-performance C++ libraries.

tialaramex made a big deal out of overheads in C++ dynamic dispatch (which incidentally are pretty minimal) using a trivial example, when performance focused (both time and size) C++ programmers do not use it that way at all. Modeling in C++ can be done in any number of ways and is driven by specific perspectives of the end goal.

rramadass commented on I write games in C (yes, C) (2016)   jonathanwhiting.com/writi... · Posted by u/valyala
tialaramex · 3 days ago
> then end up reimplementing virtual interfaces manually

C++ dynamic dispatch (your "virtual interfaces") is achieved by welding a vtable onto every type and providing a pointer to that vtable for instances of the type. If in 90% of your code you deal with specific types like Goose or Swan or Duck or Seagull, and only 10% needs to work with the broad Bird category well, too bad, every Goose, Swan, Duck and Seagull carries around that vtable pointer even if it goes nowhere near that 10% of the system. This way your Bird code "just works" in C++.

That's not the only way to crack this nut. Idiomatic Rust approach uses vtables only in the Bird code, elsewhere they don't exist, and thus don't take up space in a Duck or whatever that's always a Duck, but in exchange now you're spending more time thinking, because by default there aren't any vtables and so dynamic dispatch isn't possible at all.

So while that C programmer has to implement features by hand, they are at least able to specifically implement the feature they wanted, not whatever was easiest for Bjarne Stroustrup last century.

rramadass · 2 days ago
Your example is disingenuous. What you are stating is the obvious trivial way of doing something when your objective is actually quite different.

You can get exactly what you are asking for in C++ using techniques of static polymorphism and CRTP pattern (https://en.wikipedia.org/wiki/Curiously_recurring_template_p... and https://en.wikipedia.org/wiki/Barton%E2%80%93Nackman_trick) along with traits and dynamic dispatch (if needed).

For great examples of the above, see the classic Scientific and Engineering C++: An Introduction with Advanced Techniques and Examples by Barton & Nackman (1994).

rramadass commented on C and Undefined Behaviour   lelanthran.com/chap14/con... · Posted by u/lelanthran
rramadass · 2 days ago
The article is really about the dangers posed by the concept of UB (https://en.wikipedia.org/wiki/Undefined_behavior) extended to any language when the programs are LLM generated.

u/rramadass

KarmaCake day5006December 4, 2018
About
https://www.linkedin.com/in/rramadass

=====

“Do you know, I sometimes catch myself wishing that I, too, were blind to the facts of life and only knew its fancies and illusions. They’re wrong, all wrong, of course, and contrary to reason; but in the face of them my reason tells me, wrong and most wrong, that to dream and live illusions gives greater delight. And after all, delight is the wage for living. Without delight, living is a worthless act. To labour at living and be unpaid is worse than to be dead. He who delights the most lives the most, and your dreams and unrealities are less disturbing to you and more gratifying than are my facts to me.”

He shook his head slowly, pondering.

“I often doubt, I often doubt, the worthwhileness of reason. Dreams must be more substantial and satisfying. Emotional delight is more filling and lasting than intellectual delight; and, besides, you pay for your moments of intellectual delight by having the blues. Emotional delight is followed by no more than jaded senses which speedily recuperate. I envy you, I envy you.”

He stopped abruptly, and then on his lips formed one of his strange quizzical smiles, as he added:

“It’s from my brain I envy you, take notice, and not from my heart. My reason dictates it. The envy is an intellectual product. I am like a sober man looking upon drunken men, and, greatly weary, wishing he, too, were drunk.”

“Or like a wise man looking upon fools and wishing he, too, were a fool,” I laughed.

“Quite so,” he said. “You are a blessed, bankrupt pair of fools. You have no facts in your pocketbook.”

“Yet we spend as freely as you,” was Maud Brewster’s contribution.

“More freely, because it costs you nothing.”

“And because we draw upon eternity,” she retorted.

“Whether you do or think you do, it’s the same thing. You spend what you haven’t got, and in return you get greater value from spending what you haven’t got than I get from spending what I have got, and what I have sweated to get.”

-- Wolf Larsen from The Sea-Wolf by Jack London.

=====

View Original