3,828 karma · joined September 11, 2022
Reach me at tmt_vdl@gmx.com.
Although on second thought if there were larger coins in circulation then vending machines would be more lucrative targets and the increased vandalism and theft would lead to even fewer vending machines being around.
The US style? I much prefer the Japanese style instead (where €5 would be a coin instead of a note). When our largest coin is too small to buy a drink at a vending machine we've got a problem. ATMs don't turn over €5 notes anyway, so their existence is painfully awkward.
',.pyf
Which isn't as catchy as Dvorak. (defun first-two (list)
(assert (>= (length list)
2))
(list (first list)
(second list)))
In a language which doesn't normalise the case of symbols you could in theory work around that by capitalising or upper-casing either the function or the variable, but that's still not a particularly elegant solution. (loop :do (print (eval (read))))
to implementing all of Common Lisp in RISC-V assembly: pacman -Syu sbcl emacs
M-x package-install slime RET
isn't a lot of keystrokes.> a baked in way to run some sort of unit test suite. Have dozens of options if you want, but what is the "cargo test"?
That actually is ASDF, to be more specific:
(asdf:test-system system &rest keys &key force force-not verbose version &allow-other-keys)
Although if we're honest, the real way to run a test suite in CL is to open the REPL, load your system, and just type something like (run-test-suite). (defun merge-sort (list before?)
(declare (type List list)
(type Function before?))
(flet ((merge-2 (a b)
(declare (type List a b)
(merge 'List a b before?)))
(unless (null list)
(reduce #'merge-2 list :key #'list))))
(merge-sort '(1 9 8 2 3 4 7 6 5)
#'<)
Instead of having to name lists 'lst' or something. Which is pretty much personal preference anyway. (setq read-process-output-max
(with-temp-buffer
(insert-file-contents "/proc/sys/fs/pipe-max-size")
(string-to-number (buffer-string))))The latest finalised submission to the Common Lisp Document Repository (confusingly called CDR instead of CLDR) dates from August 4, 2013. CDRs are the equivalent to the SRFIs from the Scheme world. You could argue that they are not THE standard, but they are A standard. And considering the original standardization supposedly cost 400,000 USD (about 900,000 USD in today's money), I can see why there hasn't been another official ANSI standard.
Educational books are an investment in the future, and some (like Euclid's Elements) don't ever lose their relevance.