Month: January 2018

  • Webassembly

    According to this post on the mozilla blog, we will be able to compile wasm as it streams into the browser in much the same way that images are decoded. This is a huge game changer from the current paradigm of loading javascript completely before being able to parse and compile it.

    JavaScript code is much more expensive, byte for byte, than an image, because of the time spent parsing and compiling it. It’s possible to parse and compile wasm as fast as it comes over the network, which makes it much more like an image than JavaScript code. Game changer!

    — Yehuda Katz (@wycats) December 19, 2017

    This will make so many things possible in the browser that never were before!

    I decided to follow this tutorial and ended up with this.

    I don’t know what to do next. Any ideas?

  • git remotes with ssh aliases

    Did you know that ~/.ssh/config aliases work for git remotes?

    ~/.ssh/config

    Host gh
    HostName github.com
    User git
    IdentityFile ~/.ssh/gh_key

    You can now use gh:username/repo as the remote in place of git@github.com:username/repo, which is much shorter and easier to type many times!

    git clone gh:benharri/learngit

    There are many other use cases for the ssh_config file. For example, here is my config for the tilde machine for easy ssh connections.

    Host tilde
    HostName tilde.team
    User ben

    Then use ssh tilde to start a new ssh session. This also works with scp: try something like this scp file.txt tilde:workspace/. in place of scp file.txt ben@tilde.team:workspace/.

    The ssh_config file is super useful. Check man ssh_config for a full list of options!