Programming Leftovers
-
Rust most admired language, Stack Overflow survey says
Stack Overflow 2023 Developer Survey finds that JavaScript and Python are the most used and most desired languages, but they fall far short of Rust in satisfying their users.
-
Control, Escape, and Meta Tricks
Open a Unix or Linux terminal emulator. If you are using Terminal.app on macOS, ensure that the "Use Option as Meta Key" option is enabled in its "Preferences" section. Now type foo bar baz followed by meta+b (alt+b or option+b on modern keyboards). In a modern shell like Bash, Zsh, etc., the cursor should move backward by one word. Now type esc b. The cursor should move back again by one word. Finally type ctrl+[ b and the same thing should happen again. How are we able to perform the same operation in three different ways?
-
The faster-cpython plan for 3.13
The developers working on improving the speed of the CPython interpreter have posted a plan describing their objectives for the Python 3.13 release. The biggest piece appears to be the tier-2 optimizer, which will optimize larger chunks of Python code
-
Using CMake and GCC to Cross-Compile Binaries
Cross-compilation is the process of compiling your program on a different host than the target system. This enables developers to build binaries for different architectures without using those specific architectures themselves. For example, with cross-compilation, you can compile a binary for ARM-based devices like a Raspberry Pi on your standard x86-64 development machine.
When cross-compiling your software, CMake and the GNU Compiler Collection (GCC) can be helpful. CMake is a robust build system generator that uses configuration files to create cross-compiled binaries, and GCC is a toolchain that includes compilers for various programming languages, including C, C++, Objective C, and Fortran.
In this tutorial, you’ll learn how to build a simple C++ program and then cross-compile it for AArch64 or ARM64-based devices using CMake and GCC.
-
Sam Thursfield: Status update, 16/06/2023
This blog is about what’s on my mind, and recently I’ve been thinking about aeroplane flights, and limiting how many I take every year.
I’m not trying to make anyone feel impressed or ashamed here, or create rules that I insist everyone needs to live by. And I am no expert in climate science, but we need to start talking about this stuff more – as you probably spotted, the climate is uncomfortably hot now, caused mainly by all the “greenhouse gases” that we keep producing in our industrious human civilization.