Stories

  • Brewing the Firmware for Raspberry PI with Elixir and Nerves

    Brewing the Firmware for Raspberry PI with Elixir and Nerves

    As the PIX PROJECT started to be a real thing. I decided to make it more dynamic. The first version written in Ruby is very static. There is no easy way to animate dots within the clock for example. Also, you have to install the whole Linux, install packages and start the application. It’s not how the firmware works right? I decided to rewrite it into Elixir and wrap it with Nerves to create firmware. Let the story begin…
    27 December 2017 ・ Reading time: 5 minutes
  • The Beginner’s Guide to Linux Kernel Module, Raspberry Pi and LED Matrix

    The Beginner’s Guide to Linux Kernel Module, Raspberry Pi and LED Matrix

    When I found an old broken bluetooth speaker with RGB LED matrix, I decided to make use of it. It will be the great challenge to connect LEDs to Raspberry and display some fancy information.
    10 September 2017 ・ Reading time: 6 minutes
  • Definitive guide to Rust, SDL 2 and Emscripten!

    Definitive guide to Rust, SDL 2 and Emscripten!

    So, you want to write a game? And run it in the browser? Do you like Rust? Great! I’ll show you how to write a sample program in Rust using SDL2 and how to compile it with Emscripten.
    1 April 2017 ・ Reading time: 9 minutes
  • Learning Tensorflow with Crystal

    Learning Tensorflow with Crystal

    Crystal bindings for Tensorflow In this article I’d like to describe: How to build a tensorflow library How to generate bindings for Crystal How to use tensorflow library in Crystal Share the results of my work: tensorflow.cr Useful Links Crystal language: https://crystal-lang.org/ Crystal bindings generator: https://github.com/crystal-lang/crystal_lib Tensorflow: https://www.tensorflow.org/ Tensorfow repository: https://github.com/tensorflow/tensorflow tensorflow.cr repository: https://github.com/fazibear/tensorflow.cr rensorflow.cr examples repository: https://github.com/fazibear/tensorflow.cr_examples Install and build tensorflow To install and compile tensorflow we will need to install all these things:
    4 March 2017 ・ Reading time: 5 minutes
  • Defql: SQL Queries as Elixir Functions

    Defql: SQL Queries as Elixir Functions

    Elixir world is functional. There are no objects or instances at all. In this case, I asked myself a question.
    23 January 2017 ・ Reading time: 3 minutes
  • Story About Inesita, Ruby Frontend Framework

    Story About Inesita, Ruby Frontend Framework

    Inesita aims to be a simple, light, Ruby front-end framework. It’s a component based framework focused on building web applications. Inesita uses an Opal runtime, so you will write Ruby code instead of JavaScript. Inesita is responsible only for view layer, development process and release build mechanism. Other things like how you store and change application state depends on you. View layer is built on top of virtual-dom, so there is no pain to render entire tree of components lot of times. But let’s start from the beginning.
    22 December 2016 ・ Reading time: 3 minutes
  • Real-Time Audio Processing with Ruby

    Real-Time Audio Processing with Ruby

    When I first read about MRuby, I just want to play with it. The first thing that came to my mind was a VST plugin. I could build a little wrapper, and pass all function to ruby interpreter. I’ll describe how I’ve done this.
    19 December 2016 ・ Reading time: 10 minutes
  • Elixir, Ruby, don’t fight. Benchmark!

    Elixir, Ruby, don’t fight. Benchmark!

    Now we know how to talk to Ruby from Elixir. We’ve been described 3 methods so far. Now it’s time for comparisons and benchmarks. If you want to benchmark it yourself you can use the application in this repository. Let’s start!
    14 December 2016 ・ Reading time: 2 minutes
  • Elixir, Ruby, don’t fight. Talk… with Erlectricity

    Elixir, Ruby, don’t fight. Talk… with Erlectricity

    The third method that allows us to communicate Ruby and Elixir is Erlectricity. It’s only a Ruby gem that you have to open an Erlang Port yourself, also you have to take care of data conversion (on Elixir side). Erlport using same trick underneath. Regardless I want do describe how to connect to Ruby with Erlectricity. Let’s do it!
    12 December 2016 ・ Reading time: 3 minutes
  • Elixir, Ruby, don’t fight. Talk… with Erlix

    Elixir, Ruby, don’t fight. Talk… with Erlix

    This article describes another way, how Elixir and Ruby can talk to each other. We will use Erlix this time. This method makes Ruby process act like the Erlang node, which is connected to Erlang VM over the network.
    3 December 2016 ・ Reading time: 5 minutes
  • Elixir, Ruby, don’t fight. Talk… with Export/Erlport

    Elixir, Ruby, don’t fight. Talk… with Export/Erlport

    There are still a lot of things in Ruby world, that don’t exist in Elixir yet. To resolve that problem. I’ve done a research. Tried to figure it out if both worlds can talk to each other. And the answer is yes. They can. I’ll try to describe few ways how to do it.
    22 November 2016 ・ Reading time: 2 minutes
  • Play SID Files on the Real Commodore 64

    Play SID Files on the Real Commodore 64

    A long time ago, I’ve written Inesid, a SID files Web Player. It looks like an old Commodore 64 program with a retro interface. Lately, I’ve added a tree view, so you can easily browse all HVSC collection and play a file you want.
    30 September 2016