Readit News logoReadit News
tsujp commented on Rolling the dice with CSS random()   webkit.org/blog/17285/rol... · Posted by u/zdw
noman-land · 4 months ago
Maybe "usable" is your qualifier but what's wrong with Math.random()?
tsujp · 4 months ago
JS also has Crypto.getRandomValues()
tsujp commented on Emacs: The macOS Bug   xlii.space/eng/emacs-the-... · Posted by u/xlii
rahen · 5 months ago
This is worth undertaking. macOS's stricter approach to handling some questionable hacks in Emacs could improve the codebase across all platforms. The PGTK frontend for Emacs (the Wayland-native frontend) was derived from the macOS version for instance. It replaced much of the messy X11 code with a cleaner, more modular Cairo-based frontend, which could be further enhanced by adopting a cross-platform, more future-proof SDL toolkit.

https://appetrosyan.github.io/posts/emacs-widget

Hopefully, similar improvements can address the issues with large locks and the lack of proper threading.

tsujp · 5 months ago
The problem with the PGTK frontend is it is notoriously EXTREMELY slow. The latency on user input compared to the X11 (especially Lucid) version has some people reverting back to X11/Lucid.

When I do run Linux I run Wayland, I daily drive macOS, but better than both are what you already allude to: the Emacs widget toolkit which will focus on replacing the GUI frontend with SDL and also (equally potentially) introducing an actor-type framework (akin to BEAM's) for communication to decouple that GUI.

tsujp commented on 'Shoe doping' changed marathon times in ways we still don't understand   nytimes.com/athletic/5834... · Posted by u/cainxinth
michaelt · a year ago
> Gears multiply (increase or decrease) power from the engine

Ah, so when you want a lot of power - such as to tow something heavy - you'd want a high gear for high power, right?

But fuel consumption will be highest in 6th gear, because more power means more power consumption - I'll save money by using a lower gear, yes?

/s

Honestly I'm not sure how people who've never learned about gear ratios understand this stuff. Maybe a combination of "have you ever ridden a bike? It's like that" and "always pull away in first gear" and "when the engine makes a vreeeee sound change up, when it makes a wubwubwub sound change down."

tsujp commented on 'Shoe doping' changed marathon times in ways we still don't understand   nytimes.com/athletic/5834... · Posted by u/cainxinth
quickthrowman · a year ago
> Gears multiply (increase or decrease) power from the engine depending on the gear you've selected.

Gears change how many times the wheels turn for every engine revolution.

Engine power is the product of angular velocity (rpm) and torque.

Gears are tangentially related to engine power output since they allow a user to select how fast the engine is spinning, but an engine outputs the same amount of power at a specific RPM regardless of what gear the transmission is in. 1800 RPM in 1st gear and 5th gear will generate the same amount of kW (or HP, if you prefer)

tsujp · a year ago
Understood, but in this (hypothetical) example his mother probably doesn't know exactly what angular velocity or torque are, so making things even simpler with a laymans "power" serves to get the point across.

One could include torque in the explanation to which the follow-up is probably "what's torque?".

The simpler one goes for that initial understanding, in most cases, the less technically correct one is; by design that helps the newbie learn and build up to a more technically correct understanding later on.

tsujp commented on 'Shoe doping' changed marathon times in ways we still don't understand   nytimes.com/athletic/5834... · Posted by u/cainxinth
thunderbong · a year ago
I remember my mom asking this when she was learning to drive a stick-shift in her 60s - "If both the gears and the clutch help in changing the speed, what's the difference between them?"

I had a huge problem in explaining this in simple terms without having to go into the the huge amount of detail.

Maybe it's something like that?

tsujp · a year ago
In general relying on excessive detail or jargon is symptomatic of not really understanding something when required to explain things in simple terms. I believe Richard Feynman said as much.

The general idea is people hide behind that detail/jargon precisely because they don't REALLY understand it enough to explain in simple terms what it is. That doesn't mean everything IS simple of course.

I assume you know now but in simple terms: the clutch connects the engine to the gearbox (transmission), so how well the clutch is engaged (connected) helps control speed. Gears multiply (increase or decrease) power from the engine depending on the gear you've selected.

u/tsujp

KarmaCake day4201June 2, 2019
About
[ my public key: https://keybase.io/tsujp; my proof: https://keybase.io/tsujp/sigs/MfER0YCQ_RtflWYef0O14ri7paC5Ogvl8-WCTcbAJYM ]
View Original