installing haskell within ubuntu 24.04 on a raspberry pi 5

I have been in something of a computer language exploratory phase recently. I don’t know how, but it was triggered when I watched an episode of Elementary named The Leviathan (season 1, episode 10, aired 13 December 2012). The Leviathan was a super-duper unbreakable vault that had been cracked twice, apparently by some sort of mathematical genius who used the Malbolge programming language to crack its randomly generated electronic ten digit access code. When I first saw the episode I thought the language was some sort of made-up crutch for the episode, but no, it actually exists (see link below for more details). The problem is that the example code show on the episode was copied from Malbolge’s Wikipedia page, and it was a mangled on the show. The complete example from Wikipedia only displays “Hello, world.”

I dug a little deeper and discovered that Malbolge is a descendant, if you will, of such other esoteric languages such as Brainfuck. Anyway, that got me looking into other not-quite-so-deliberately-obfuscated languages such as, well, Haskell. It is indeed cruel to lump Haskell with such languages as Malbolge and its ilk, but I never said I was particularly logical once I started down one of these odd paths of mine.

Anyway, here we are, and I have indeed installed Haskell on my Raspberry Pi. However, before you install Haskell, you’ll need to install the following libraries to support full a successful build of Haskell from its sources.

sudo apt install libffi-dev libgmp-dev libgmpxx4ldbl libncurses-dev libpkgconf3 pkg-config pkgconf pkgconf-bin

Once that’s done then you can proceed to install Haskell following the directions on its web page (again look at the links below).

Haskell proof of life

This is a minimal proof of life of Haskell on a Raspberry Pi 5 running under Ubuntu 24.04. The examples are all shown on the web page, so there’s no need to go over them again. I have absolutely no idea what I can do with this unique language on this unique platform, but it will be interesting and fun to find out.

Links

Malbolge — https://en.wikipedia.org/wiki/Malbolge

Haskell — https://www.haskell.org/

Haskell, Getting Started — https://www.haskell.org/get-started/

building deno 1.44.0 with rust 1.78 on a raspberry pi 5

Deno built with Rust

Rust 1.78 is available for this platform, so we’ll build Deno from its sources via Rust.

First, if you haven’t already, install Rust following the very simple directions on the Rust website ( https://www.rust-lang.org/learn/get-started ). Be advised that you’ll need to install curl and protobuf-compiler; the first to handle the installation of Rust, and the second to handle the build of deno. You should install these two packages before installing Rust and then using Rust to build deno.

After installing the two packages mentioned earlier and then installing Rust, perform cargo install deno and then go away for about 45 minutes until it’s done.

Why do it this way? First because you should install Rust, and install it locally to your login account, not globally. Second, because once again if you use apt to install rust, you only get version 1.74, not the current 1.78 stable release. When you install rust using the website’s method, you also get rustup, which allows you to keep your copy of Rust up-to-date. And if you want to do any kernel development you’ll need an up-to-date kernel (which you do have) and versions of Rust greater than or equal to version 1.77. Third, when you build deno yourself you get a whole slew of Rust crates that you can tinker with in other projects. Finally, you should use deno over node.js because the same creator of node, Ryan Dahl, is also the creator of deno; deno is far more robust and secure than node.js.

Finally, to learn more about deno and how to use it, go to https://docs.deno.com/runtime/manual and have at it.