Programming Leftovers
-
An Introduction to PHP Programming Language
PHP is a popular server-side scripting language used for web development. It is an open-source language, meaning it is free to use and can be modified to suit the needs of developers. In this article, we will explore the basics of PHP and what makes it such a popular language for web development.
-
What a Sixty-Five-Year-Old Book Teaches Us About A.I.
Danny’s best friend is Joe Pearson, “a thin, sad-looking boy”; his next-door neighbor is Irene Miller, whose father, an astronomer, also teaches at Midston. We can tell right away that Irene knows at least as much about science as Danny does—and way more than Joe, whose main academic interests are literary. As the story begins, Danny is demonstrating a recent invention of his: a piece of wood, suspended by clothesline from a pair of pulleys attached to the ceiling, into which he has inserted two pens. When he writes with either pen, the other creates a duplicate on a second sheet of paper. (This device is called a polygraph; Thomas Jefferson owned several.) “Now I can do our arithmetic homework while you’re doing our English homework,” he tells Joe. “It’ll save us about half an hour for baseball practice.” Joe runs home to get more clothesline, and Danny dreams of bigger things: “If only I could build some kind of a robot to do all our homework for us. . . .”
The boys don’t perceive a moral dilemma, but Irene does. “It—it doesn’t seem exactly honest to me,” she says. Danny disagrees, and cites his landlord: “Professor Bullfinch says that homework doesn’t have much to do with how a kid learns things at school.”
-
parabola
This is a command line program that takes a gmisub url (on gemini), such as Antenna, follows all the links, and prints an Atom feed with all the post included and converted to HTML to stdout.
Any links in them retain the gemini:// scheme so you can open your Gemini browser from your Atom reader if you wanna browse around further.
-
A branchless segment of code to generate a printable hexadecimal value
I found reference to what may be the origin of this sequence: the article “A Design Philosophy for Microcomputer Architectures” from the February 1977 edition of Computer (the code appears on the third page of the article), but it's unclear if the author came up with this on his own, or it was a known sequence at the time.
-
Assert Your Environment
I was doing some data pipelining and dockerising my creation. And - as always - when testing and devving I forgot to set the right environment variables. And when container image gets passed around, the information about the required env settings will certainly get lost.
-
Perl and Raku Merch from Freewear
Freewear now has Perl and Raku merch featuring Camelia, The Onion Logo and a Camel Shadow. A donation is made to TPRF for each sale.
-
Keyword Generics Progress Report: February 2023
About 9 months ago we announced the creation of the Keyword Generics Initiative; a group working under the lang team with the intent to solve the function coloring problem 1 through the type system not just for async, but for const and all current and future function modifier keywords as well.
We're happy to share that we've made a lot of progress over these last several months, and we're finally ready to start putting some of our designs forward through RFCs. Because it's been a while since our last update, and because we're excited to share what we've been working on, in this post we'll be going over some of the things we're planning to propose.
-
Rust Keyword Generics Progress Report: February 2023