2025-04-30

How fast is CeTZ-Plot?

In a recent post, I showed how CeTZ-Plot can be used to plot data from a CSV file. I posted this on Reddit and got some interesting comments. One comment was that CeTZ-Plot was too slow for plotting data with 90k rows to SVG. This could be due to SVG being a vector format, so it will always add all 90k points even if they are on top of each other. It's probably a better idea to plot PNG in such cases.

But let's still see how fast CeTZ-Plot is. This is actually an interesting question in general because CeTZ-Plot is written in Typst. Typst is a new typesetting system similar to LaTeX. Writing in this system is probably slower than writing in a more optimized language. But on the other hand, Typst was written in Rust so maybe the performance is not too bad.

Show more

2025-04-29

Plotting a CSV file with Typst and CeTZ-Plot

Whenever I need to plot some data, I usually prefer to have a tool that

  • is fast,

  • is easy to install,

  • is reliable,

  • is flexible,

  • is free to use,

  • produces high-quality plots, and

  • doesn't require many dependencies.

gnuplot and matplotlib are popular choices, but I personally don't like the appearance of gnuplot and I usually am not so happy with Python's large amount of dependencies.

For quick plotting, I recently discovered CeTZ-Plot. It's a plotting library inside Typst. Typst is a modern alternative to LaTeX, so it is meant to create full documents, but it's also quite easy to use it to create images.

Show more

2025-04-28

File Upload in fx

File uploads for fx are now implemented in pull request #21.

Here is an image that is hosted on this site:

sunset.jpg

2025-04-27

I don't like the way you're running our country

An old joke from Ronald Reagan:

An American and a Russian are arguing about their two countries. The American says look: "In my country, I can walk into the Oval Office, pound the president's desk, and say 'Mr. President, I don't like the way you're running our country!'".

And the Russian says "I can do that." The American says "You can?" The Russian says "Yes, I can walk right into the Kremlin, go to the General Secretary's office, slam my fist on his desk and say "I don't like the way President Reagan is running his country."

2025-04-26

TIL: EV fires can quickly be extinguished via a special lance that punctures the battery and sprays water on the cells directly (https://youtu.be/1FWY3LNuPU4).

2025-04-26

Blogs are still very much alive. This post by Tommy Breslein for example would not have worked as one or more tweets. As a YouTube video maybe it would have worked but even then it’s hard to beat the effectiveness of a clear blog post.

2025-04-25

Set -euxo pipefail

To make working with Bash scripts less problematic, I've switched to these default shebang and settings:

#!/usr/bin/env bash
set -euxo pipefail

The first line tells the interpreter to run the file via bash as found at /usr/bin/env. This /usr/bin/env is one of the most platform-independent locations that I know (it even works on NixOS).

The second line makes it much easier to find problems in the script. The -e option will cause the script to fail immediately when a command fails, the -o pipefail will also crash if one of the commands in a pipe fails (this could have avoided a Cloudflare outage), -u will treat unset variables as error, and -x will print each command before execution.

2025-04-24

This speech by Oliver Anthony is exactly my social media experience as well. A few people are famous and get all the attention while the rest are "nobodies". I think it's a bit inherent to the massive scale of social media. In a small town, it's hard to be a complete nobody. At least some people know your parents or have seen you in the supermarket, for example.

2025-04-24

I think I’m going to skip the comment feature for fx (https://fx.huijzer.xyz). Niall Ferguson recently argued that people in technology often forget about the past and say that now everything is different even though usually it isn’t (https://youtu.be/giZC4pCqB4o). Most of the time, new things are just old things with slight variations.

So what are old things that are great? Publishing text from one paragraph length to multiple paragraphs. This is what newspapers did for more than a century. Then you still have book authors and authors like Dijkstra (EWD notes) that also published. To write a comment, you have to write your own publication. Not some effortless comment a la modern social media.

Show more

2025-04-21

"Why are big tech companies slow? Because they've packed in as many features as possible in order to make more money, and the interaction of existing features adds an unimaginable amount of cognitive load" (https://www.seangoedecke.com/difficulty-in-big-tech/).

◀ prev

▶ next