Abstract Heresies
Unorthodox opinions on computer science and programming.
Monday, February 14, 2022
Symbols vs. Strings
›
Most popular computer languages don't have symbols as a data type. You can make do with a string, or encode your symbol as a small i...
2 comments:
Saturday, February 5, 2022
Imperative vs. Declarative
›
I saw this recently: token = request.headers.get('Authorization') token = token.split(' ')[1] From an imperative pr...
2 comments:
Thursday, January 6, 2022
Idle puzzles 2: Revenge of the Shift
›
The idle puzzles got some web traffic, so here are a couple more in the same vein. Not much new, just a variation on a theme. They can b...
Wednesday, December 29, 2021
Idle puzzles
›
I've been amusing myself with these little puzzles. They're simple enough you can do them in your head, but I coded them up just ...
Thursday, October 14, 2021
Update October 2021
›
Here's a few things I've been playing with lately. jrm-code-project/utilities has a few utilities that I commonly use. Include...
Monday, August 30, 2021
Tail recursion and fold-left
›
fold-left has this basic recursion: (fold-left f init ()) = init (fold-left f init (a . d)) = (fold-left f (f init a) d) A straightfo...
4 comments:
Friday, August 27, 2021
A Floating-point Problem
›
Here's a 2x2 matrix: [64919121 -159018721] [41869520.5 -102558961] We can multiply it by a 2 element vector like this: (defun mxv (a b...
2 comments:
‹
›
Home
View web version