Disclaimer: I may have no idea what I'm talking about!
Excuse the Pikelet syntax
[0..10]
# unregister broken GHC packages. Run this a few times to resolve dependency rot in installed packages. | |
# ghc-pkg-clean -f cabal/dev/packages*.conf also works. | |
function ghc-pkg-clean() { | |
for p in `ghc-pkg check $* 2>&1 | grep problems | awk '{print $6}' | sed -e 's/:$//'` | |
do | |
echo unregistering $p; ghc-pkg $* unregister $p | |
done | |
} | |
# remove all installed GHC/cabal packages, leaving ~/.cabal binaries and docs in place. |
Gfx and glium are Rust libraries that aim to provide a "rusty" abstraction over graphics programming APIs. | |
Both may look similar, and one of the questions that gets asked frequently on IRC is "what are the differences between gfx and glium?". Here is a comparison table: | |
| Gfx | Glium | |
-------------------------------------|-------------------------------------------------------------------------------------------------------------------|-------------------------------- | |
URL | <https://github.com/gfx-rs/gfx-rs> | <https://github.com/tomaka/glium> | |
History | Papers since Oct 2013. Really started in June 2014. | Private/confidential from Feb 201 |
Disclaimer: I may have no idea what I'm talking about!
Excuse the Pikelet syntax
[0..10]
Here's a list of mildly interesting things about the C language that I learned mostly by consuming Clang's ASTs. Although surprises are getting sparser, I might continue to update this document over time.
There are many more mildly interesting features of C++, but the language is literally known for being weird, whereas C is usually considered smaller and simpler, so this is (almost) only about C.
struct foo {
struct bar {
int x;