news
Programming Leftovers
-
Science Alert ☛ Why Explaining Your Problems to a Rubber Duck Actually Works
It's a universal experience: the moment you try to explain a problem out loud, it all begins to make sense.
Software engineers call it "rubber duck debugging". So, where did this term come from and why is it so effective?
-
Great Lakes Consulting Services Inc ☛ MATLAB vs Julia: Best Programming Language for Renewable Energy Simulations
When air flows past a wind turbine, a wake forms downstream. The wake velocity deficit impacts turbine spacing, efficiency, and power output.
A simplified steady axisymmetric turbulent wake equation is:
\[ \frac{\partial U}{\partial x} = \nu_t \cdot \left( \frac{\partial^2 U}{\partial r^2} + \frac{1}{r} \frac{\partial U}{\partial r} \right) \]
where:
\( U \) is the axial velocity.
\( x \) is the downstream distance.
\( r \) is the radial coordinate.
\( \nu_t \) is the turbulent viscosity.
This is a reduced form of the momentum equation, capturing diffusion of momentum due to turbulence.
-
Daniel Lemire ☛ The smallest number that is infinite
In software, we represent real numbers as binary floating-point numbers. Effectively, we represent real numbers as a fixed-precision integer (the significand) multiplied by a power of two. Thus we do not represent exactly the number ‘pi’, but we get a very close approximation: 3.141592653589793115997963468544185161590576171875. The first 16 digits are exact.
-
Julian Andres Klode ☛ Dependency Tries
As I was shopping groceries I had a shocking realization: The active dependencies of packages in a solver actually form a trie (a dependency A|B - “A or B” - of a package X is considered active if we marked X for install).
-
Perl / Raku
-
Rakulang ☛ Rakudo Weekly 2025.39 Inversion of Control
-
-
Python
-
Anže Pečar ☛ Migrating Gunicorn to Granian
I migrated one of my Django apps from Gunicorn to Granian yesterday. Here is how the migration went and some of my thoughts on Granian and Gunicorn.
-