Programming Leftovers
-
Eric McClure ☛ Rust Async Makes Me Want To Gouge My Eyes Out
“But”, I hear you ask, “what does this have to do with Rust Async?” Well, like most things, Rust Async makes this annoying part of Rust twice as annoying because the default behavior is to silently eat the error and drop the future, unless you have stored the join handle somewhere, and you are in a position where you can access that join handle to find out what the actual error was. The API for making tokio panic when an unhandled panic happens is still unstable, with the interesting comment of “dropping errors silently is definitely the correct default behavior”. Really? In debug mode? In release mode, fine, that’s reasonable, but if I’ve compiled my program in debug mode I’m pretty sure I want to know if random errors are being thrown. Even with this API change, you’ll have to manually opt-in to it, they won’t helpfully default to this behavior when you compile in debug mode.
-
Evan Hahn ☛ My notes from the Lua 5.4 reference manual
I recently read the whole reference manual for Lua 5.4 and took a bunch of notes.
Perhaps more accurately, I made a subset of the manual that was interesting to me. (Lots of it was interesting, so I copied a lot.)
As you’ll see, I didn’t write most of the below…see Lua’s license.
-
Rlang ☛ Supply Chain Analysis with R Using the planr Package
Hey guys, welcome back to my R-tips newsletter. Supply chain management is essential in making sure that your company’s business runs smoothly. One of the key elements is managing inventory efficiently. Today, I’m going to show you how to estimate inventory and forecast inventory levels using the planr package in R. Let’s dive in!
-
[Old] ACM ☛ Eliza in SNOBOL4
When implemented in Snobol4, Eliza is dramatically shorter and simpler than the original Fortran program. The brevity of the rewritten Eliza greatly enhances its value in a course on artificial intelligence . The complete program, and a portion of a script are included as Appendices.
-
Perl / Raku
-
Arne Sommer ☛ Middle Hand with Raku - Arne Sommer
The MI index can be any one of the legal indices. So we iterate over the values. For each value, we simply take the sum of the array to the left of it, and compare that with the sum of the array to the right of it.
-
-
Standards/Consortia
-
Ben Werdmuller ☛ It turns out I'm still excited about the web
The web sits apart from the rest of technology; to me, it’s inherently more interesting. Silicon Valley’s origins (including the venture capital ecosystem) lie in defense technology. In contrast, the web was created in service of academic learning and mutual discovery, and both built and shared in a spirit of free and open access. Tim Berners-Lee, Robert Cailliau, and CERN did a wonderful thing by building a prototype and setting it free. As CERN points out on its page about the history of the web:
"An essential point was that the web should remain an open standard for all to use and that no-one should lock it up into a proprietary system."
That ethos is how it succeeded; it’s why the web changed the world. And it’s why someone like me — over in Scotland, with no networks, wealth, or privilege to speak of — was able to break in and build something that got peoples’ attention. It’s also why I was interested to begin with. “The internet is people,” I used to say; more than protocols and pipes, the web was a fabric of interconnectedness that we were all building together. Even in the beginning, some people saw the web and thought, “this is a way I can make a lot of money.” For me, it was always a way to build community at scale.
-