Nursing Code

Using WebAssembly in Ember.js (Rust + wasm-pack)

Brief introduction to WebAssembly WebAssembly (wasm) is a technology which aims to allow the use of 'high' level languages (like Rust, C and C++) to create programs that are to be run in a 'web' environment, whether that be in a client or on a server. For…

Continue Reading →

Using Rust in Ruby

Introduction I'm not going to make the case for using Rust, there are hundreds of articles and videos out there which will do a much better job of explaining the case for why Rust is an amazing language. This guide is about how to put Rust to practical us…

Continue Reading →

Getting started with Glimmer Components in Ember.js

There's a lot of buzz in the Ember community about the upcoming release of Ember Octane Edition. It represents an enormous amount of work by the Ember core team and community. The release will roll out a hugely simplified javascript model and the use of G…

Continue Reading →

Debugging Broccoli and Ember-CLI

Recently I've been working on an extension to one of our products and we decided that we should explore using an Ember Engine to properly separate concerns and make the extension mountable in multiple places. As part of the process we have plans to swap o…

Continue Reading →

Phoenix in Production with systemd

In this post, I'm going to explore how we can leverage systemd to ensure our apps are kept running even following a power outage or whole system crash. Running Elixir in production For those not familiar with running an Elixir application there are two ma…

Continue Reading →

Recursion and Pattern Matching in Elixir

In this post I will try and explain how pattern matching and recursion work in Elixir with some (hopefully) simple examples. I’m not going go into the ‘why’, for that, there are many people better qualified than me to explain. What I hope to acheive is a …

Continue Reading →

Profiling Phoenix on a Raspberry Pi 2

I've been talking a lot recently with colleagues (and anyone foolish enough to ask) about the benefits of Elixir, based on the performance of the underlying Erlang Virtual Machine (BEAM). One of the things I'm most impressed with is the ability to utilize…

Continue Reading →

Shitty UX in the name of 'Security'

Today I saw someone in a Slack discussing a website that blocked pasting. This led to me wanting to share some thoughts on the topic of user experience (UX) and security. Why does (product / service) stop me from pasting? The only real argument that I he…

Continue Reading →

Remote Profiling Elixir Over SSH

Erlang comes with an awesome tool called observer, which is readily available to the Elixir user. If you want to use it, simple run :observer.start from an IEx session. An interesting feature is that you can then connect to another node and observer its d…

Continue Reading →

Lightning Deploys with Phoenix and Ember

I have been really interested in the discussions in the Rails and Ember communities on the topic of Lightning Deploys. Here are some things I've tried, failed, learned and succeeded with! What's a lightning deploy anyway? One of the issues that many folk…

Continue Reading →