unclebobmartin's avatar
unclebobmartin
unclebobmartin@nostrplebs.com
npub19mun...jnft
Uncle Bob, Software Craftsman. http://cleancoder.com http://cleancoders.com
An oldie but goodie. Watch Josh Hawley HUMILIATES Mayorkas Over STUPID 'Disinfo Board' EXPOSE... via @YouTube
Clojure macros are tricky, but fun. I'm making good progress on this scoping macro. Maybe it'll even be useful.
Well, it looks like I'm going to have to write a significant clojure macro. Wish me luck!
Good Morning Nostr, My lovely wife and I have retired, once again, to our Northern Hidewawy. The weather is awful -- foggy, slushy, rainy -- ugh. But life is good and I'm looking forward to relaxing with her and seeing friends. I just watched (re-watched) one of Rich Hickey's remarkable talks from 2018. The first half is all about the problems with "Maybe" and "Nilable". The second half if much more clojure specific; and makes a promise that I think he has yet to fulfill. So you can skip that if you are not a clojurian.
Good Morning Nostrs. Today on X someone said: Scientific consensus is well established on climate change issue: It is human made, and drastic reduction of emissions is required. To which I replied: “Consensus” is a political term that is used to obscure the actual science. It’s an argument from authority, with that authority being usurped by the arguer. The actual research indicates rising levels of CO2 and rising temperatures; but does not suggest “drastic” anything. In short, the research is interpreted, then summarized, then reinterpreted, then re-summarized, in a game of “telephone” that warps and obscures the actual results of the research to align with the goals of the politicians.
Do you know how to use a slide rule? This is my father’s from long, long ago. image
There is something very pleasing about _numerically_ calculating that e^iπ=-1. (defn cadd [[xr xi] [yr yi]] [(+ xr yr) (+ xi yi)]) (defn cmul [[xr xi] [yr yi]] [(- (* xr yr) (* xi yi)) (+ (* yr xi) (* xr yi))]) (defn cscale [[xr xi] s] [(/ xr s) (/ xi s)]) (defn cprn [[xr xi]] (prn (double xr) '+ (double xi) 'i)) (defn compound [balance rate periods] (let [period-rate (cadd [1 0] (cscale rate periods))] (loop [balance [balance 0] periods periods] (if (zero? periods) balance (recur (cmul balance period-rate) (dec periods)))))) (cprn (compound 1 [0 3.141592653589793] 100000)) -1.0000493492396174 + 1.0335963488293152E-9 i
Another lesson I learned long, long ago: Don't drink and code! 8 hours bottle to throttle.
The collision of an A350 and a coast guard plane, on the runway in Tokyo was horrible. All 379 passengers and crew on the A350 got out safe. The crew of the coast guard plane died, except for the captain who is in critical condition and on life support. CNN reported this as an event when everything "goes right". The anchor was talking about the evacuation of the A350; and, yes, _that_ went right. But collisions on runways are becoming much more frequent lately, probably due to inexperienced pilots and air traffic controllers hired after the experienced folks were retired early due to Covid. IMHO.