941 karma · joined February 14, 2009
For example, C++ templates were not meant to be Turing-complete, but they work by rewriting terms [1], so you can encode lambda calculus in it, and run arbitrary programs at compile time.
Philip Wadler does a better job than me at getting excited by lambda calculus. He calls it "the omniversal programming language", and claims that aliens will probably have discovered it [2].
[1]: http://matt.might.net/articles/c++-template-meta-programming... [2]: https://www.youtube.com/watch?v=IOiZatlZtGU
$ mount /mnt/floppy
$ mv !$/file_I_needed .
$ u!mo
The last command would umount(8) the floppy.I use !! all the time, specially when first using find to see which files I will operate on and then doing the actual operation:
$ find . -name '*Foo*.scala'
path/src/main/scala/foo/Foo.scala
path/src/test/scala/foo/FooSpec.scala
$ git add "$(!!)"
Shameless plug: I actually use nq, my find wrapper: https://github.com/rbonvall/nqThe J programming language, developed in the early 1990s by Kenneth E. Iverson and Roger Hui,[4][5] is a synthesis of APL (also by Iverson) and the FP and FL function-level languages created by John Backus.[6]
To avoid repeating the APL special-character problem, J uses only the basic ASCII character set, resorting to the use of the dot and colon as inflections[7] to form short words similar to digraphs.
> - keys can be any mutable in Python, not string;
You mean immutable. I will goto my_grave loving C, from that day[0] ...I keep a file with my passwords, encrypted with Vim's builtin encryption. Neovim removed that feature. If I ever switch to neovim, I can still use vim when I need to open that file.
The Better Parts by Douglas Crockford: https://youtu.be/Ji6NHEnNHcA
If you like first-class functions, then Javascript becomes "Scheme in the browser." If you miss having a REPL and then discover Python, it becomes "LISP with C-syntax." If you like objects responding to arbitrary messages, then Ruby is "Smalltalk without images" and so on.
I learned about 142857 when reading The Man Who Counted as a kid. I remember getting obsessed with it and discovering more properties (much fewer than the ones shown on the video), e.g.:
142 + 857 = 999
14 + 28 + 57 = 99To make the most of the capabilities of HTML, I would have made citations hoverable, so a tooltip can show the reference next to it without the need to go to the bottom.