Side by Side Comparison - Gleam vs R
Posted on September 5, 2024
| 23 minutes
| 4804 words
| Jonathan Carroll
| Link to source

I thoroughly dislike ‘hot takes’ comparing programming languages based solely on
a “feel” or differential familiarity (“I know this one better therefore it is
better) so when I came across a blog post detailing a small learning project
written in Gleam I wanted to understand what advantages and disadvantages that
language brings to the problem. This post details a side-by-side comparison after
rewriting the project in R with a goal of better understanding the approach on
both sides.
[Read More]
IPv4 Components in APL
Posted on August 22, 2024
| 11 minutes
| 2213 words
| Jonathan Carroll
| Link to source
At a recent APL-focussed Meetup someone posed a challenge to slice up the
components of an IPv4 address with an APL language and it prompted me to learn
a bit more about how that works in general and how I could do the processing in
APL myself.
[Read More]
Tidy DataFrames but not Tibbles
Posted on August 11, 2024
| 42 minutes
| 8877 words
| Jonathan Carroll
| Link to source
A while ago (2019 seems so long ago now) I started working on something I
thought was interesting but which never really got any traction. It has
potential once more, so it’s about time I wrote up what it does and why I think
it’s a useful idea. I’m going to talk about using the {dplyr} package on some
data with rows and columns, but we’re not talking about data.frames or
tibbles…
[Read More]
{charcuterie} - What if Strings Were Iterable in R?
Posted on August 3, 2024
| 9 minutes
| 1737 words
| Jonathan Carroll
| Link to source
I’ve been using a lot of programming languages recently and they all have their
quirks, differentiating features, and unique qualities, but one thing most of
them have is that they handle strings as a collection of characters. R doesn’t,
it has a “character” type which is 0 or more characters, and that’s what we call
a “string”, but what if it did have iterable strings?
[Read More]
Let's Talk About the Weather
First, we'll need data!
Posted on July 27, 2024
| 17 minutes
| 3420 words
| Jonathan Carroll
| Link to source
A while ago I made some plots I really liked, but I never made a blog post
about them. Then the data source stopped working and I couldn’t make them
again. Now there’s a new data source, so it’s time for a post about some
weather data!
[Read More]
Constructing HTML with Functional Functions
Posted on June 20, 2024
(Last modified on July 6, 2024)
| 12 minutes
| 2550 words
| Jonathan Carroll
| Link to source
I heard that learning Elm is a good way to approach learning Haskell, so I gave
it a go and was surprised early on about an approach to writing abstracted HTML.
In this post I compare the way that R and Elm generate HTML and the differences
between their approaches.
[Read More]
Digits Dilemma
Posted on June 15, 2024
(Last modified on July 6, 2024)
| 9 minutes
| 1854 words
| Jonathan Carroll
| Link to source
Another day, another short riddle to be solved with several programming
languages! This one is nice because solving it doesn’t need a lot of code, but
it uses some interesting aspects of evaluation.
[Read More]
Iterative Square Root
Posted on May 29, 2024
| 7 minutes
| 1371 words
| Jonathan Carroll
| Link to source
I saw a toot celebrating a short, clean implementation of a square root
finding algorithm and wanted to dig a bit deeper into how it works, with a
diversion into some APL.
[Read More]
I Patched R to Solve an Exercism Problem
Posted on February 26, 2024
| 14 minutes
| 2935 words
| Jonathan Carroll
| Link to source
With a serious yak shaving deviation, I have a really short “cheat” solution to
one of the featured Exercism problems. It’s been a really insightful journey
getting to this point, and as always I’ve learned a lot along the way. The fact
that I was able to understand the required changes and propose them is thanks
to the open-source nature of programming languages.
[Read More]
Advent of Array Elegance (AoC2023 Day 7)
Posted on December 10, 2023
| 17 minutes
| 3517 words
| Jonathan Carroll
| Link to source
I’m solving Advent of Code this year using a
relaxed criteria compared to last
year in that I’m
allowing myself to use packages where they’re helpful, rather than strictly
base R. Last year I re-solved half of the exercises using Rust which helped me
learn a lot about Rust. This year I’m enamored with APL, and I wanted to share a
particularly beautiful solution.
[Read More]