Runtime Penalty for Functional Code Style

Python, Rust and C++ all support procedural and functional programming style. Turns out in the native languages, the compiler can optimize the functional stuff and yield similar or even better performance. In Python, however, the functional programming style makes it even slower. ...

23. Mai 2026 · 8 Minuten · Martin Ueding

Reusable Infinite Generator in Python, Rust and C++

While learning Rust, I ported my prime number generator from Python to both C++ and Rust. It is curious to see how the different languages allow different ways of writing it and also looking into the performance of it. ...

17. Mai 2026 · 13 Minuten · Martin Ueding

Objektorientierung als Nachrichten verklärt

Viele der heute gängigen Programmiersprachen folgen dem objektorientierten Paradigma. In Anleitungen wurde das früher häufiger als »Nachrichten senden« erklärt, und mich hat das mehr verwirrt als es geholfen hätte. ...

11. Januar 2023 · 2 Minuten · Martin Ueding

My GNU Autohell Story

In academic software development I have seen one software suite which was known to be hard to compile. I was tasked to do try it, and ended up writing a 1200 line Bash script which took care of all the edge cases. ...

16. Mai 2021 · 20 Minuten · Martin Ueding

Python has no Variables

Python doesn’t have variables. It sounds mind-boggling, as one seems to use them all along. But really, that is not how it works with Python. This will really confuse people with a background in C or C++. If we do int n in C++, and write n = 1, n += 1 or the like, the address &n will never change. The value changes. ...

13. Juli 2020 · 3 Minuten · Martin Ueding

Finding a Stack Buffer Overflow

One of the danger of C-style arrays is that their length is not attached to the pointer that points to their beginning. This means that there are lots of unsafe library functions that might write beyond the allocated space. ...

23. August 2018 · 8 Minuten · Martin Ueding

C++ with Vim

I usually program C++ with Vim. Here is a list of handy plug-ins and auxiliary tools that I use. ...

27. Mai 2018 · 1 Minute · Martin Ueding

Fizz Buzz

There is a rather simple problem that sometimes is asked in job interviews: ...

30. Oktober 2017 · 4 Minuten · Martin Ueding

The Case for Standard Configuration File Formats

The numerical software that I work with is written as command line tools. As such, they get their parameters from command line arguments and/or parameter files. Their output is written to files as well. Since one can redirect standard output into a text file, we will only consider files here. ...

25. August 2017 · 8 Minuten · Martin Ueding

Strange C Function Syntax

The other day I saw some code C which I thought to be clearly wrong: ...

21. Juli 2017 · 2 Minuten · Martin Ueding