Johan Larsson
  • Blog
  • Publications
  • Software
  • Talks
  • CV
  • Bluesky
  • Google Scholar
Categories
All (16)
Awards (1)
Beamer (1)
C++ (1)
Color (1)
Data visualization (4)
Euler diagrams (1)
Eulerr (1)
Geometry (2)
JavaScript (1)
Julia (2)
Lasso (2)
LaTeX (2)
Linux (1)
LUSEM (1)
Moloch (1)
Optimization (3)
Polylabelr (1)
Pomodoro (1)
Presentations (2)
Productivity (1)
Python (1)
Qualpalr (2)
R (7)
Research (4)
Ridge regression (2)
Rust (2)
SLOPE (1)
Software (5)
Statistics (4)
Thesis (3)
Tomat (1)

Blog

Posts about research and programming

Posts by Johan Larsson on statistics, optimization, and scientific computing in R, Python, Julia, and Rust, plus notes on the software he develops.

Eunoia: Euler and Venn Diagrams in Five Languages

Eunoia: Euler and Venn Diagrams in Five Languages

Rust
R
Python
Julia
JavaScript
Software

Eunoia is a Rust engine for area-proportional Euler and Venn diagrams, now with bindings for R, Python, Julia, and JavaScript.

4 July 2026
Johan Larsson
Basin: Numerical Optimization in Rust

Basin: Numerical Optimization in Rust

Rust
Software
Optimization

Basin is a Rust library for numerical optimization, with pluggable linear-algebra backends, first-class constraints, and WebAssembly support.

10 June 2026
Johan Larsson
Introducing Tomat: A Pomodoro Timer for Status Bars

Introducing Tomat: A Pomodoro Timer for Status Bars

Tomat
Productivity
Pomodoro
Linux

I’ve decided that the world needs yet another pomodoro timer. yapt was unfortunately already taken, so I named it after the Swedish tomato.

12 January 2026
Johan Larsson
What’s New in Moloch 2.0.0

What’s New in Moloch 2.0.0

LaTeX
Presentations
Moloch

Moloch 2.0.0 is out, with a redesigned color system, new themes, improved documentation, redesigned itemize lists, and various other refinements.

5 December 2025
Johan Larsson
Qualpal

Qualpal

R
C++
Color
Research
Data visualization

My pet project Qualpal is now a stand-alone C++ library as well as web app and was just published in the Journal of Open Source Software!

22 October 2025
Johan Larsson
LUSEM’s Best Thesis Award 2024

LUSEM’s Best Thesis Award 2024

Thesis
Awards
Research
Statistics
LUSEM

Lund University School of Economics and Management awarded my PhD thesis on optimization and algorithms for sparse regression its best thesis prize for 2024.

6 May 2025
Johan Larsson
Cramér Prize for Best PhD Thesis

Cramér Prize for Best PhD Thesis

Thesis
Lasso
Ridge regression
Research
Optimization
Statistics

I received the 2025 Cramér Prize for the best PhD thesis in statistics defended in Sweden, for my work on optimization and algorithms for sparse regression! 🥳

5 February 2025
Johan Larsson
New Paper on Feature Normalization and Regularized Regression

New Paper on Feature Normalization and Regularized Regression

Research
Lasso
Ridge regression

We have a new arXiv paper on normalization for regularized regression (lasso, ridge, and elastic net), focused on how to standardize binary features.

21 January 2025
Johan Larsson
Moloch: A Revival of the Metropolis LaTeX Beamer Theme

Moloch: A Revival of the Metropolis LaTeX Beamer Theme

LaTeX
Software
Presentations
Beamer

Moloch is a fork of Metropolis, the popular but no longer maintained LaTeX beamer theme. It fixes the theme’s outstanding issues and adds new features.

30 May 2024
Johan Larsson
PhD Thesis

PhD Thesis

Thesis
Statistics
Optimization

My PhD thesis on optimization and algorithms for sparse regression has been published. Here I give a brief summary of the papers included in it.

22 May 2024
Johan Larsson
New Julia Package: ProjectRoot

New Julia Package: ProjectRoot

Julia
Software

Introducing ProjectRoot.jl, a small Julia package for robust file referencing relative to your project root, inspired by R’s here and Python’s pyprojroot.

13 May 2024
Johan Larsson
SLOPE 0.2.0

SLOPE 0.2.0

R
SLOPE
Statistics
Software

An update to the SLOPE R package for sparse regression with the sorted L1 norm, a generalization of the lasso that handles correlated predictors gracefully.

14 April 2020
Johan Larsson
Polygon Labeling with polylabelr

Polygon Labeling with polylabelr

R
Geometry
Polylabelr

polylabelr is a new R package that finds the visual center, the pole of inaccessibility, of a polygon, handy for labeling Euler diagrams and maps.

29 October 2018
Johan Larsson
Finding the Farthest Points in a Point Cloud

Finding the Farthest Points in a Point Cloud

R
Qualpalr
Data visualization
Geometry

An algorithm for finding the most mutually separated points in a cloud, used by the qualpalr R package to pick maximally distinct qualitative colors.

30 October 2016
Johan Larsson
Introducing eulerr

Introducing eulerr

R
Eulerr
Euler diagrams
Data visualization

This is an introduction to my new package, eulerr, an R package that computes and plots eulerr diagrams of set relationships.

19 October 2016
Johan Larsson
Introducing qualpalr

Introducing qualpalr

R
Data visualization
Qualpalr

Let me introduce qualpalr: an R package that generates qualitative color palettes with distinct colors using color difference algorithms.

15 October 2016
Johan Larsson
No matching items

Copyright 2016-2026, Johan Larsson

 
  • Edit this page
  • Report an issue