In Rust you can add methods to any type in a sane way. It's elegant, but hard to get used to after years of 'no monkeypatching!'
miniblog.
Python trivia: x+(1+1) is faster than x+1+1 because the former bytecode can be optimised. The latter cannot because x may have __add__.
Many of my macros for control flow could be functions if I had lazy evaluation. Sadly I find laziness hard to reason about (familiarity?)
Why create tiny JS modules? https://github.com/sindresorhus/ama/issues/10#issuecomment-117766328 (works surprisingly well in practice!)
TIL the order of LLVM passes *really* matters. Running opt -O3 twice has tripled runtime perf, so the defaults don't suit my BF compiler.
"if you partially evaluate an interpreter with respect to a particular input, you get a compiler" https://blog.regehr.org/archives/1197
Today I learnt that GHC has an incredible facility to teach it optimisations applicable to your code: https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/rewrite-rules.html
Doxygen provides an excellent highlighted view of source code with hyperlinked cross-references! https://llvm.org/docs/doxygen/html/DataLayout_8cpp_source.html Why is this rare?
Maybe flat comments are better than nested. In HN the top tree dominates. In mailman there's next/prev links but a tree isn't linear!
@thattommyhall looks like bpython to me.
I've added GIFs to the smartparens README! https://github.com/Fuco1/smartparens#smartparens It can really help new users grok the feature set.
I learnt today that Rust's cargo has a clean command. Neat! I've been rm -rf'ing the target directory all this time.
JavaScript surprise of the day: [2] * 3 == 6.
If twitter can be microblogging, then GIFs are mico screencasts. They're a brilliant way of showcasing Emacs packages (working on some now).
Emacs tip: if you have a great keyboard macro, but always do the same thing after, you can extend it. C-u F3. https://psung.blogspot.co.uk/2010/03/some-emacs-macro-tricks.html
I'm often surprised by the effectiveness of a good README. It brings huge clarity and steers development. It may be GitHub's best feature.
Skimming the docs for lens.js: https://www.npmjs.com/package/safety-lens makes lenses look rather like lisp's setf to me. Is this superficial or deep?
It is so difficult to mix a good REPL (late binding everywhere!) with an optimising compiler (inlining etc). Do any langs do this well?
The remarkable success of Go, despite all the critiques, make me curious enough to try it. I suspect the tooling quality wins users over.
I'm considering using my own builds of Emacs simply because the links to C source code work. I wish distro packages had this.
Showing 41-60 of 650 posts