What are my study topics today, you might be asking, given you think of me as someone who studies, which would not be far wrong. Here's my answer: Rust, sentence similarity, science fiction.
On the topic of Rust, my focus is how best to explain it to a veteran Python user, which is something I am too. Absent the garbage collector, Python programs would pile up with garbage, but they're not allowed to, as long as the gc is turned on (which it is, by default). In Rust though, there's no room for some running program besides the one. Rust runs close to the metal, like C. Python runs atop a virtualization layer, running bytecodes of its own making, more like Java or any CLI language in the .NET environment (if you're a Microsoft speaker). That the JVM is bytecode based is what allows to be targeted by the likes of Scala and Clojure.
Regarding sentence similarity, I owe it to myself to stay in touch ML as a namespace, meaning word2vec and GloVe, meaning cosine distance in a Hilbert Space (my shorthand for linear algebra space, with its flowing tensors). So I've been diving into YouTubes showing more about that branch of NLP: measuring sentence similarity by means of a vector db. You might need to import BERT. I watched a similar demo in Socratica, using Wolfram Language. I'm not that partisan about Python; it's the lingua franca of our day.
Back to Rust: so, absent a garbage collector, that job is thrown back on the programmer: memory management is once again my responsibility, whereas Python largely let me forget about it, at the cost of running more slowly, with periodic garbage collection hosted by Python runtime on my program's behalf. "Python wipes your bottom" might be the anti-slogan here (true but perhaps inelegant).
The way in which memory management becomes the coders job in Rust inherits from the C and C++ family (I haven't studied Holy C yet, but know about it). All kinds of semantics creep in involving indirection, meaning you're mostly in voyeur peeping-tom mode, lurking in without write access. Only the owner of a thing is allowed to change it, meaning the compiler keeps track of ownership before any runtime is allowed to occur. Keeping track of ownership means getting very explicit about who sees what, and how long what lives.
Another thing about Rust that Python coders will take for granted, is how hard it works to give us duck typing at higher levels. Using traits and dynamic dispatching, an object gets accepted through the proverbial door (where looming bouncers mass, where type checking happens ("show your ID")) thanks to its "having the right interface" as a Java coder might put it. Or: "you walk like a duck" (how a Pythonista might put it) -- likely not an insult, coming from a Pylady. "Our types quack" (said with pride).
What makes programs unsafe are memory glitches, wherein threads or whole processes contend for the same resource, leading to DNS suicide.
Null pointers are the other death knell, thanks to which a program will run off a cliff, given no road ahead.
The Rust compiler makes sure the race track has no cliffs before the drivers have to drive it. The security provided by compile-type checking is what drives the dynamic languages to reinstate "harness programming", adding stiffness. "More than enough rope to hang yourself" is what dynamic programming provides. "Use at your own risk" (the South Africa mantra, malesh if shit happens).
Science fiction: Skeleton by Ray Bradbury. I have yet to actually read the story, having just found out about it this morning. I eyeballed the PDF and found the type-font distracting. No matter: like everyone else in her brother, I'm exploring what chatbots might do. I asked Perplexity to follow-up on a TrimTabber's suggestion that I could link the two (the cartoon and the story). I found Perplexity's response plenty informative.
Copypasta from FB:
Women get cranky when the hubby implodes, likely due to mounting pressures at work, combined with a sense of overwhelm with respect to domestic responsibilities.
Fortunately, medications developed by the latest science will help the missus calm down and come to accept hubby’s low energy state.
Ask your doctor if CalmAden [tm] is right for you.