Programming Leftovers
-
How To Install Lua Scripting Language on Ubuntu 22.04 LTS - idroot
In this tutorial, we will show you how to install Lua Scripting Language on Ubuntu 22.04 LTS. For those of you who didn’t know, Lua is a lightweight, high-level, multi-paradigm programming language designed primarily for embedded use in applications. It’s an extensible and interpreted scripting language that is dynamically typed, and run by interpreting bytecode with a register-based virtual machine.
This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the Lua programming language on Ubuntu 22.04 (Jammy Jellyfish). You can follow the same instructions for Ubuntu 22.04 and any other Debian-based distribution like Linux Mint, Elementary OS, Pop!_OS, and more as well.
-
What is Linear Programming?
Linear programming is a method for determining the best solution to a linear function. Making a few simple assumptions is the best technique for carrying out linear optimization. The objective function is referred to as the linear function. Relationships in the real world can be extremely complex. However, such relationships can be represented using linear programming, which makes it simpler to analyze them.
Numerous sectors, including manufacturing, energy, telecommunications, and transportation, use linear programming. This article clarifies the various aspects of linear programming, including its definition, formula, approaches for using it to solve issues, and related examples.
-
Compiling syslog-ng git snapshots on FreeBSD - Blog - syslog-ng Community - syslog-ng Community
The syslog-ng team publishes nightly syslog-ng git snapshot builds for Debian and Ubuntu. I publish weekly snapshot builds for RPM distributions. Recently, I was asked if creating git snapshot builds for FreeBSD is also possible. Yes, it is. That is how I test syslog-ng on FreeBSD. However, it needs some extra preparations.
-
Commercial LTS Qt 5.15.11 Released
We have released Qt 5.15.11 LTS for commercial license holders today. As a patch release, Qt 5.15.11 does not add any new functionality but provides bug fixes and other improvements.
-
Implementing truly safe semaphores in rust
Low-level or systems programming languages generally strive to provide libraries and interfaces that enable developers, boost productivity, enhance safety, provide resistance to misuse, and more — all while trying to reduce the runtime cost of such initiatives. Strong type systems turn runtime safety/sanity checks into compile-time errors, optimizing compilers try to reduce an enforced sequence of api calls into a single instruction, and library developers think up of clever hacks to even completely erase any trace of an abstraction from the resulting binaries. And as anyone that’s familiar with them can tell you, the rust programming language and its developers/community have truly embraced this ethos of zero-cost abstractions, perhaps more so than any others.
-
Al-Qudsi: Implementing truly safe semaphores in rust
Mahmoud Al-Qudsi provides extensive details on what it takes to implement a safe semaphore type in the Rust language.