Photo by Mika Baumeister on Unsplash

Solving Fibonacci efficiently with Elixir


Defining the solution in Math

Simple Solution

defmodule Experiments do
def fib(0), do: 0
def fib(1), do: 1
def fib(n), do: fib(n-1) + fib(n-2)

Better Solution

defmodule Experiments do    defp comp_fib(0), do: [0 | 0]
defp comp_fib(1), do: [1 | 0]
defp comp_fib(n) do
[h | t] = comp_fib(n-1)
[h+t | h]…

A story about my experiments in implementing convolution in Julia and what I learned from it.

Photo by Roman Mager on Unsplash

Why Julia?

Photo by Felipe Portella on Unsplash

Zero-cost Abstraction Principle

Photo by Jordan Cormack on Unsplash

Blue/Green Deployment on ECS

Photo by Vidar Nordli-Mathisen on Unsplash

Yosi Pramajaya

Tech Lead, Cloud Architect, Machine Learning Practicioner

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store