Programming Leftovers
-
DJ Adams ☛ Keeping things simple in domain modelling with CDS
When embracing domain modelling with CAP, keep things simple. One of the greatest benefits of domain modelling done properly is having a domain expert on the team. Don't forget that domain expert, that key user, when building out the domain model.
-
Akseli Lahtinen ☛ Moving my game project from C to Odin language
Some months ago, I got really fed up with C.
Like, I don't hate C. Hating programming languages is silly. But it was way too much effort to do simple things like lists/hashmaps and other simple data structures and such.
I decided to try this language called Odin, which is one of these "Better C" languages. And I ended up liking it so much that I moved my game Artificial Rage from C to Odin. Since Odin has support for Raylib too (like everything really), it was very easy to move things around.
Here's how it all went.. Well, what I remember the very least.
-
Rlang ☛ Street names
Day 2 of 30DayMapChallenge: « Lines » (previously).
We’ll make a map of the street name gender in Lyon. We need a database of french first names where we’ll find the gender. We will extract the Lyon streets from OpenStreetMap.
-
Rlang ☛ Comparison of spatial patterns in categorical raster data for overlapping regions using R
This is the fourth part of a blog post series on comparing spatial patterns in raster data. More information about the whole series can be found in part one.
This blog post focuses on the comparison of spatial patterns in categorical raster data for overlapping regions. In other words, here we have two rasters with the same number of rows and columns, and we want to compare their spatial patterns.
-
Daniel Lemire ☛ Having fun with modern C++
Recent versions of the C++ language (C++20 and C++23) may allow you to change drastically how you program in C++. I want to provide some fun examples.
Thanks to the integration of the features from the popular fmt library, it is much easier to format strings elegantly in C++. In turn the fmt library was inspired by the work done in languages like Python.
-
Martin Hähne ☛ Paradigms Are Strategic Tools
A great, if very long read (at least as far as recommendations in blog posts are concerned): Donella Meadows - Leverage Points: Places to Intervene in a System. This is an essay about how to go about effectively changing a system - like a society - from a systems analysis perspective. It presents a list of leverage points (“These are places within a complex system (a corporation, an economy, a living body, a city, an ecosystem) where a small shift in one thing can produce big changes in everything.") and explains their ins and outs. Here’s the list: [...]
-
Perl / Raku
-
Arne Sommer ☛ Boomerang or Similar with Raku - Arne Sommer
You are given an array of points, (x, y).
Write a script to find out if the given points are a boomerang.
-
-
FSF
-
The Register UK ☛ GCC 15 to keep Itanium support for now, after all
Good news, everyone – well, everyone who's still onboard the Itanic, anyway. GCC 15 will de-deprecate Linux support for Intel's original 64-bit chip.
The development team of the GNU Compiler Collection has accepted a code patch from hero developer René Rebe of Berlin-based ExactCODE, with the crowd-pleasing announcement:
The following un-deprecates ia64*-*-linux for GCC 15. Since we plan to support this for some years to come.
All right, it may be a very small crowd, but the point stands. As such, we are happy to issue a correction for our April article: GCC 15 will still support building programs for Itanium boxes. So long as they are running Linux, anyway; if you're still on HP-UX or OpenVMS, this is somebody else's problem.
-
-
Python
-
James G ☛ How to use cProfile and snakeviz to profile Python code
Before you optimize your code, you should run a profiler to understand how your code performs.
In Python, you can use cProfile to profile your code. cProfile is part of the Python standard library. With cProfile, you can find out: [...]
-