DeepSeek R1, the new entrant to the Large Language Model wars has created quite a splash over the last few weeks. Its entrance into a space dominated by the Big Corps, while pursuing asymmetric and novel strategies has been a refreshing eye-opener.GPT AI improvement was starting to show signs of slowing down, and has been observed to be reaching a point of diminishing returns as it runs out of data and compute required to train, fine-tune increasingly large models. This has turned the focus towards building "reasoning" models that are post-trained through reinforcement learning, techniques such as inference-time and test-time scaling and search algorithms to make the models appear to think and reason better. OpenAI&aposs o1-series models were the first to achieve this successfully with its inference-time scaling and Chain-of-Thought reasoning.
Intelligence as an emergent property of Reinforcement Learning (RL)Reinforcement Learning (RL) has been successfully used in the past by Google&aposs DeepMind team to build highly intelligent and specialized systems where intelligence is observed as an emergent property through rewards-based training approach that yielded achievements like AlphaGo (see my post on it here - AlphaGo: a journey to machine intuition).DeepMind went on to build a series of Alpha* projects that achieved many notable feats using RL:
AlphaGo, defeated the world champion Lee Seedol in the game of Go
AlphaZero, a generalized system that learned to play games such as Chess, Shogi and Go without human input
AlphaStar, achieved high performance in the complex real-time strategy game StarCraft II.
AlphaFold, a tool for predicting protein structures which significantly advanced computational biology.
AlphaCode, a model designed to generate computer programs, performing competitively in coding challenges.
AlphaDev, a system developed to discover novel algorithms, notably optimizing sorting algorithms beyond human-derived methods.
All of these systems achieved mastery in its own area through self-training/self-play and by optimizing and maximizing the cumulative reward over time by interacting with its environment where intelligence was observed as an emergent property of the system.The RL feedback loopRL mimics the process through which a baby would learn to walk, through trial, error and first principles.
R1 model training pipelineAt a technical level, DeepSeek-R1 leverages a combination of Reinforcement Learning (RL) and Supervised Fine-Tuning (SFT) for its training pipeline:DeepSeek-R1 Model Training PipelineUsing RL and DeepSeek-v3, an interim reasoning model was built, called DeepSeek-R1-Zero, purely based on RL without relying on SFT, which demonstrated superior reasoning capabilities that matched the performance of OpenAI&aposs o1 in certain benchmarks such as AIME 2024.The model was however affected by poor readability and language-mixing and is only an interim-reasoning model built on RL principles and self-evolution.DeepSeek-R1-Zero was then used to generate SFT data, which was combined with supervised data from DeepSeek-v3 to re-train the DeepSeek-v3-Base model.The new DeepSeek-v3-Base model then underwent additional RL with prompts and scenarios to come up with the DeepSeek-R1 model.The R1-model was then used to distill a number of smaller open source models such as Llama-8b, Qwen-7b, 14b which outperformed bigger models by a large margin, effectively making the smaller models more accessible and usable.
Key contributions of DeepSeek-R1
RL without the need for SFT for emergent reasoning capabilities
R1 was the first open research project to validate the efficacy of RL directly on the base model without relying on SFT as a first step, which resulted in the model developing advanced reasoning capabilities purely through self-reflection and self-verification.Although, it did degrade in its language capabilities during the process, its Chain-of-Thought (CoT) capabilities for solving complex problems was later used for further RL on the DeepSeek-v3-Base model which became R1. This is a significant contribution back to the research community.The below analysis of DeepSeek-R1-Zero and OpenAI o1-0912 shows that it is viable to attain robust reasoning capabilities purely through RL alone, which can be further augmented with other techniques to deliver even better reasoning performance.Source: https://github.com/deepseek-ai/DeepSeek-R1Its quite interesting, that the application of RL gives rise to seemingly human capabilities of "reflection", and arriving at "aha" moments, causing it to pause, ponder and focus on a specific aspect of the problem, resulting in emergent capabilities to problem-solve as humans do.
Model distillation
DeepSeek-R1 also demonstrated that larger models can be distilled into smaller models which makes advanced capabilities accessible to resource-constrained environments, such as your laptop. While its not possible to run a 671b model on a stock laptop, you can still run a distilled 14b model that is distilled from the larger model which still performs better than most publicly available models out there. This enables intelligence to be brought closer to the edge, to allow faster inference at the point of experience (such as on a smartphone, or on a Raspberry Pi), which paves way for more use cases and possibilities for innovation.Source: https://github.com/deepseek-ai/DeepSeek-R1Distilled models are very different to R1, which is a massive model with a completely different model architecture than the distilled variants, and so are not directly comparable in terms of capability, but are instead built to be more smaller and efficient for more constrained environments. This technique of being able to distill a larger model&aposs capabilities down to a smaller model for portability, accessibility, speed, and cost will bring about a lot of possibilities for applying artificial intelligence in places where it would have otherwise not been possible. This is another key contribution of this technology from DeepSeek, which I believe has even further potential for democratization and accessibility of AI.
Why is this moment so significant?DeepSeek-R1 was a pivotal contribution in many ways.
The contributions to the state-of-the-art and the open research helps move the field forward where everybody benefits, not just a few highly funded AI labs building the next billion dollar model.
Open-sourcing and making the model freely available follows an asymmetric strategy to the prevailing closed nature of much of the model-sphere of the larger players. DeepSeek should be commended for making their contributions free and open.
It reminds us that its not just a one-horse race, and it incentivizes competition, which has already resulted in OpenAI o3-mini a cost-effective reasoning model which now shows the Chain-of-Thought reasoning. Competition is a good thing.
We stand at the cusp of an explosion of small-models that are hyper-specialized, and optimized for a specific use case that can be trained and deployed cheaply for solving problems at the edge. It raises a lot of exciting possibilities and is why DeepSeek-R1 is one of the most pivotal moments of tech history.
Another short status update of what happened on my side last
month. Mostly focused on quality of life improvements in phosh and
cleaning up and improving phoc this time around (including catching up
with wlroots git) but some improvements for other things like
phosh-osk-stub happened on the side line too.
phosh
Fix crash when switching bitween some fractional scales (MR)
Make layer surface code more flexible and fade in system modal dialogs (MR)
Allow events to override the sound feedback with custom sounds
(MR). Allows
desktop/mobile shells like phosh to honour application prefs for notifications.
udev regression affecting gmobile (Bug). Many thanks to Yu Watanabe
for providing the fix so quickly
Reviews
This is not code by me but reviews on other peoples code. The list is
incomplete, but I hope to improve on this in the upcoming
months. Thanks for the contributions!
As people around the world understand how LLMs behave, more and more people
wonder as to why these models hallucinate, and what can be done about to
reduce it. This provocatively named article by Michael Townsen Hicks, James
Humphries and Joe Slater bring is an excellent primer to better understanding
how LLMs work and what to expect from them.
As humans carrying out our relations using our language as the main tool, we are
easily at awe with the apparent ease with which ChatGPT (the first widely
available, and to this day probably the best known, LLM-based automated
chatbot) simulates human-like understanding and how it helps us to easily
carry out even daunting data aggregation tasks. It is common that people ask
ChatGPT for an answer and, if it gets part of the answer wrong, they justify it
by stating that it s just a hallucination. Townsen et al. invite us to switch
from that characterization to a more correct one: LLMs are bullshitting. This
term is formally presented by Frankfurt [1]. To Bullshit is not the same as to
lie, because lying requires to know (and want to cover) the truth. A
bullshitter not necessarily knows the truth, they just have to provide a
compelling description, regardless of what is really aligned with truth.
After introducing Frankfurt s ideas, the authors explain the fundamental ideas
behind LLM-based chatbots such as ChatGPT; a Generative Pre-trained Transformer
(GPT) s have as their only goal to produce human-like text, and it is carried
out mainly by presenting output that matches the input s high-dimensional
abstract vector representation, and probabilistically outputs the next token
(word) iteratively with the text produced so far. Clearly, a GPT s ask is not to
seek truth or to convey useful information they are built to provide a
normal-seeming response to the prompts provided by their user. Core data are not
queried to find optimal solutions for the user s requests, but are generated on
the requested topic, attempting to mimic the style of document set it was
trained with.
Erroneous data emitted by a LLM is, thus, not equiparable with what a person
could hallucinate with, but appears because the model has no understanding of
truth; in a way, this is very fitting with the current state of the world, a
time often termed as the age of post-truth [2]. Requesting an LLM to provide
truth in its answers is basically impossible, given the difference between
intelligence and consciousness: Following Harari s definitions [3], LLM
systems, or any AI-based system, can be seen as intelligent, as they have the
ability to attain goals in various, flexible ways, but they cannot be seen as
conscious, as they have no ability to experience subjectivity. This is, the
LLM is, by definition, bullshitting its way towards an answer: their goal is
to provide an answer, not to interpret the world in a trustworthy way.
The authors close their article with a plea for literature on the topic to adopt
the more correct bullshit term instead of the vacuous, anthropomorphizing
hallucination . Of course, being the word already loaded with a negative
meaning, it is an unlikely request.
This is a great article that mixes together Computer Science and Philosophy, and
can shed some light on a topic that is hard to grasp for many users.
[1] Frankfurt, Harry (2005). On Bullshit. Princeton University Press.
[2] Zoglauer, Thomas (2023). Constructed truths: truth and knowledge in a
post-truth world. Springer.
[3] Harari, Yuval Noah (2023. Nexus: A Brief History of Information Networks
From the Stone Age to AI. Random House.
Thrilled to announce a new package: zigg. It arrived
on CRAN today after a few days
of review in the newbies queue. zigg provides
the Ziggurat
pseudo-random number generator for Normal, Exponential and Uniform draws
proposed by Marsaglia and
Tsang (JSS, 2000),
and extended by Leong et al. (JSS, 2005).
I had picked up their work in package RcppZiggurat
and updated its code for the 64-buit world we now live in. That package
alredy provided the Normal generator along with several competing
implementations which it compared rigorously and timed them. As one of
the generators was based on the GNU GSL via the
implementation of Voss, we always ended
up with a run-time dependency on the GSL too. No more: this new package
is zero-depedency, zero-suggsts and hence very easy to deploy.
Moreover, we also include a demonstration of four distinct ways of
accessing the compiled code from another R package: pure and straight-up
C, similarly pure C++, inclusion of the header in C++ as well as via Rcpp.
The other advance is the resurrection of the second generator for the
Exponential distribution. And following Burkardt we expose the
Uniform too. The main upside of these generators is their excellent
speed as can be seen in the comparison the default R generators
generated by the example script timings.R:
Needless to say, speed is not everything. This PRNG comes the time of
32-bit computing so the generator period is likely to be shorter than
that of newer high-quality generators. If in doubt, forgo speed and
stick with the high-quality default generators.
The short NEWS entry follows.
Apparently somebody managed to resell Seagate hard disks that have 2-5 years of operations on them as brand new.
They did this by using some new shrink wrap bags and resetting the used hard disk SMART attributes to factory-new values.
Luckily Seagate has a proprietary extension "Seagate FARM (Field Access Reliability Metrics)" implemented in their disks that ... the crooks did not reset.
Luckily ... because other manufacturers do not have that extension. And you think the crooks only re-sell used Seagate disks? Lol.
The get access to the Seagate FARM extension, you need smartctl from smartmontools v7.4 or later.
For Debian 12 (Bookworm) you can add the backports archive and then install with
apt install smartmontools/bookworm-backports.
For Debian 11 (Bullseye) you can use a backport we created at my company:
You can also download static builds from https://builds.smartmontools.org/ which keeps the latest CI builds of the current development branch (v7.5 at the time of writing).
To check the state of your drives, compare the output from smartctl -x and smartctl -l farm. Double checking Power_On_Hours vs. "Power on Hours" is the obvious. But the other values around "Head Flight Hours" and "Power Cycle Count" should also roughly match what you expect from a hard disk of a certain age. All near zero, of course, for a factory-new hard disk.
This is what it looks like for a hard disk that has gracefully serviced 4 years and 8 months so far. The smartctl -x and smartctl -l farm data match within some small margins:
$ smartctl -x/dev/sda
smartctl 7.42023-08-01 r5530 [x86_64-linux-6.1.0-30-amd64](local build) Copyright (C)2002-23, Bruce Allen, Christian Franke, www.smartmontools.org
My journey in CS has always been driven by curiosity, determination, and a deep love for understanding software solutions at its tiniest, most complex levels.
Taking ALX Africa Software Engineer track after High school was where it all started for me. During the 1-year intensive bootcamp, I delved into the intricacies of Linux programming and low-level programming with C, which solidified my foundational knowledge. This experience not only enhanced my technical skills but also taught me the importance of adaptability and self-directed learning. I discovered how to approach challenges with curiosity, igniting a passion for exploring software solutions in their most intricate forms. Each module pushed me to think critically and creatively, transforming my understanding of technology and its capabilities.
Let s just say that I have always been drawn to asking, How does this happen?" And I just go on and on until I find an answer eventually and sometimes I don t but that s okay. That curiosity, combined with a deep commitment to learning, has guided my journey.
Debian Webmaster
My drive has led me to get involved in open-source contributions, where I can put my knowledge to the test while helping my community. Engaging with real-world experts and learning from my mistakes has been invaluable. One of the highlights of this journey was joining the Debian Webmasters team as an intern through Outreachy. Here, I have the honor of working on redesigning and migrating the old Debian webpages to make them more user-friendly. This experience not only allows me to apply my skills in a practical setting but also deepens my understanding of collaborative software development.
Building My Skills: The Foundation of My Experience
Throughout my academic and professional journey, I have taken on many roles that have shaped my skills and prepared me for what s ahead I believe. I am definitely not a one-trick pony, and maybe not completely a jack of all trade either but I am a bit diverse I d like to think.
Here are the key roles that have defined my journey so far:
Volunteer Developer at Yoris Africa (June 2022 - August 2023)
I began my career by volunteering at Yoris, where I collaborated with a talented team to design and build the frontend for a mobile app. My contributions extended beyond just the frontend; I also worked on backend solutions and microservices, gaining hands-on experience in full-stack development. This role was instrumental in shaping my understanding of software architecture, allowing me to contribute meaningfully to projects while learning from experienced developers in a dynamic environment.
Freelance Academics Software Developer (September 2023 - October 2024)
I freelanced as an academic software developer, where I pitched and developed software solutions for universities in my community. One of my most notable projects was creating a Computer-Based Testing (CBT) software for a medical school, which featured a unique questionnaire and scoring system tailored to their specific needs. This experience not only allowed me to apply my technical skills in a real-world setting but also deepened my understanding of educational software requirements and user experience, ultimately enhancing the learning process for students.
Open Source Intern at Debian Webmaster Team (November 2024 -)
Perhaps the most transformative experience has been my role as an intern at Debian Webmasters. This opportunity allowed me to delve into the fascinating world of open source. As an intern, I have the chance to work on a project where we are redesigning and migrating the Debian webpages to utilize a new and faster technology: Go templates with Hugo.
For a detailed look at the work and progress I made during my internship, as well as information on this project and how to get involved, you can check out the wiki.
My ultimate goal with this role is to build a vibrant community for Debian in Africa and, if given the chance, to host a debian-cd mirror for faster installations in my region.
You can connect with me through LinkedIn, or X (formerly Twitter), or reach out via email.
In 2020 my company bought a DYMO LabelWriter Wireless. It is an awesome little device for thermal printing a wide variety of labels. The labels are easily available both from DYMO and from third parties so the pricing is quite acceptable.
Unfortunately DYMO supplies their DYMO Connect Software only for Microsoft Windows and MacOSX. A mobile app of the same name for Android and Apple iOS devices is available in the app stores.
There is a SDK for Linux and there are drivers published for Linux but the LabelWriter Wireless was not supported on Linux when I tried to get it running for Debian in 2020.
This year I have had a new look at the situation as we still use the LabelWriter Wireless printers a lot and the company runs fully on Linux. So it is always a chore to run a Windows VM just to run DYMO Connect.
Continue reading "Printing labels with the DYMO LabelWriter Wireless (and LabelWriter 5xx) on Debian Linux"
A new maintenance release of RcppStreams
is now on CRAN marking the
first release in almost six years. RcppStreams
brings the excellent Streamulus C++
template library for event stream processing to R.
Streamulus,
written by Irit Katriel, uses clever template meta-programming (via Boost
Fusion) to implement an embedded domain-specific event
language created specifically for event stream processing.
This release covers only package and CRAN-specific updates.
The NEWS file entries follows below:
Changes in version 0.1.4
(2024-01-29)
Package maintenance with updates to DESCRIPTION and
README.md
Continunous integration has been update multiple times
Internationalization support in Picolibc
There are two major internationalization APIs in the C library:
locales and iconv. Iconv is an isolated component which only performs
charset conversion in ways that don't interact with anything else in
the library. Locales affect pretty much every API that deals with
strings and covers charset conversion along with a huge range of
localized information from character classification to formatting of
time, money, people's names, addresses and even standard paper sizes.
Picolibc inherits it's implementation of both of these from
newlib. Given that embedded applications rarely need advanced
functionality from either these APIs, I hadn't spent much time
exploring this space.
Newlib locale code
When run on Cygwin, Newlib's locale support is quite complete as it
leverages the underlying Windows locale support. Without Windows
support, everything aside from charset conversion and character
classification data is stubbed out at the bottom of the stack. Because
the implementation can support full locale functionality, the
implementation is designed for that, with large data structures and
lots of code.
Charset conversion and character classification data for locales is
all built-in; none of that can be loaded at runtime. There is support
for all of the ISO-8859 charsets, three JIS variants, a bunch of
Windows code pages and a few other single-byte encodings.
One oddity in this code is that when using a JIS locale, wide
characters are stored in EUC-JP rather than Unicode. Every other
locale uses Unicode. This means APIs like wctype are implemented by
mapping the JIS-encoded character to Unicode and then using the
underlying Unicode character classification tables. One consequence of
this is that there isn't any Unicode to JIS mapping provided as it
isn't necessary.
When testing the charset conversion and Unicode character
classification data, I found numerous minor errors and a couple of
pretty significant ones. The JIS conversion code had the most serious
issue I found; most of the conversions are in a 2d array which is
manually indexed with the wrong value for the length of each row. This
led to nearly every translated value being incorrect.
The charset conversion tables and Unicode classification data are now
generated using python charset support and the standard Unicode data
files. In addition, tests have been added which compare Picolibc to
the system C library for every supported charset.
Newlib iconv code
The iconv charset support is completely separate from the locale
charset support with a much wider range of supported targets. It also
supports loading charset data from files at runtime, which reduces the
size of application images.
Because the iconv and locale implementations are completely separate,
the charset support isn't the same. Iconv supports a lot more
charsets, but it doesn't support all of those available to
locales. For example, Iconv has Big5 support which locale
lacks. Conversely, locale has Shift-JIS support which iconv does not.
There's also a difference in how charset names are mapped in the two
APIs. The locale code has a small fixed set of aliases, which doesn't
include things like US-ASCII or ANSI X3.4. In contrast, the iconv
code has an extensive database of charset aliases which are compiled
into the library.
Picolibc has a few tests for the iconv API which verify charset names
and perform some translations. Without an external reference, it's
hard to know if the results are correct.
POSIX vs C internationalization
In addition to including the iconv API, POSIX extends locale support
in a couple of ways:
Exposing locale objects via the newlocale, uselocale, duplocale
and freelocale APIs.
uselocale sets a per-thread locale, rather than the process-wide
locale.
Goals for Picolibc internationalization support
For charsets, supporting UTF-8 should cover the bulk of embedded
application needs, and even that is probably more than what most
applications require. Most (all?) compilers use Unicode for wide
character and string constants. That means wchar_t needs to be Unicode
in every locale.
Aside from charset support, the rest of the locale infrastructure is
heavily focused on creating human-consumable strings. I don't think
it's a stretch to say that none of this is very useful these days,
even for systems with sophisticated user interactions. For picolibc,
the cost to provide any of this would be high.
Having two completely separate charset conversion datasets makes
for a confusing and error-prone experience for developers. Replacing
iconv with code that leverages the existing locale support for
translating between multi-byte and wide-character representations will
save a bunch of source code and improve consistency.
Embedded systems can be very sensitive to memory usage, both read-only
and read-write. Applications not using internationalization
capabilities shouldn't pay a heavy premium even when the library
binary is built with support. For the most sensitive targets, the
library should be configurable to remove unnecessary functionality.
Picolibc needs to be conforming with at least the C language standard,
and as much of POSIX as makes sense. Fortunately, the requirements for
C are modest as it only includes a few locale-related APIs and doesn't
include iconv.
Finally, picolibc should test these APIs to make sure they conform
with relevant standards, especially character set translation and
character classification. The easiest way to do this is to reference
another implementation of the same API and compare results.
Switching to Unicode for JIS wchar_t
This involved ripping the JIS to Unicode translations out of all of
the wide character APIs and inserting them into the translations
between multi-byte and wide-char representations. The missing Unicode
to JIS translation was kludged by iterating over all JIS code points
until a matching Unicode value was found. That's an obvious place for
a performance improvement, but at least it works.
Tiny locale
This is a minimal implementation of locales which conforms with the C
language standard while providing only charset translation and
character classification data. It handles all of the existing
charsets, but splits things into three levels
ASCII
UTF-8
Extended, including any or all of:
a. ISO 8859
b. Windows code pages and other 8-bit encodings
c. JIS (JIS, EUC-JP and Shift-JIS)
When built for ASCII-only, all of the locale support is
short-circuited, except for error checking. In addition, support in
printf and scanf for wide characters is removed by default (it can be
re-enabled with the -Dio-wchar=true meson option). This offers the
smallest code size. Because the wctype APIs (e.g. iswupper) are all locale-specific,
this mode restricts them to ASCII-only, which means they become
wrappers on top of the ctype APIs with added range checking.
When built for UTF-8, character classification for wide characters
uses tables that provide the full Unicode range. Setlocale now selects
between two locales, "C" and "C.UTF-8". Any locale name other than "C"
selects the UTF-8 version. If the locale name contains "." or "-",
then the rest of the locale name is taken to be a charset name and
matched against the list of supported charsets. In this mode, only
"us_ascii", "ascii" and "utf-8" are recognized.
Because a single byte of a utf-8 string with the high-bit set is not a
complete character, all of the ctype APIs in this mode can use the
same implementation as the ASCII-only mode. This means the small ctype
implementation is available.
Calling setlocale(LC_ALL, "C.UTF-8") will allow the application to use
the APIs which translate between multi-byte and wide-characters to
deal with UTF-8 encoded strings. In addition, scanf and printf can
read and write UTF-8 strings into wchar_t strings.
Locale names are converted into locale IDs, an enumeration which lists
the available locales. Each ID implies a specific charset as that's
the only thing which differs between them. This means a locale can be
encoded in a few bytes rather than an array of strings.
In terms of memory usage, applications not using locales and not using
the wctype APIs should see only a small increase in code space. That's
due to the wchar_t support added to printf and scanf which need to
translate between multi-byte and wide-character representations. There
aren't any tables required as ASCII and UTF-8 are directly convertible
to Unicode. On ARM-v7m, The added code in printf and scanf add up to
about 1kB and another 32 bytes of RAM is used.
The big difference when enabling extended charset support is that all
of the charset conversion and character classification operations
become table driven and dependent on the locale. Depending on the
extended charsets supported, these can be quite large. With all of the
extended charsets included, this adds an additional 30kB of code and
static data and uses another 56 bytes of RAM.
There are two known gaps in functionality compared with the newlib
code:
Locale strings that encode different locales for different
categories. That's nominally required by POSIX as LC_ALL is
supposed to return a string sufficient to restore the locale, but
the only category which actually matters is LC_CTYPE.
No nl_langinfo support. This would be fairly easy to add,
returning appropriate constant values for each parameter.
Tiny locale was merged to picolibc main in this PR
Tiny iconv
Replacing the bulky newlib iconv code was far easier than swapping
locale implementations. Essentially all that iconv does is compute two
functions, one which maps from multi-byte to wide-char in one locale
and another which maps from wide-char to multi-byte in another locale.
Once the JIS locales were fixed to use Unicode, the new iconv
implementation was straightforward. POSIX doesn't provide any _l
version of mbrtowc or wcrtomb, so using standard C APIs would have
been clunky. Instead, the implementation uses the internal
APIs to compute the correct charset conversion functions. The entire
implementation fits in under 200 lines of code.
Tiny iconv is in process in this PR
Future directions
Right now, both of these new bits of code sit in the source tree
parallel to the old versions. I'm not seeing any particular reason to
keep the old versions around; they have provided a useful point of
comparison in developing the new code, but I don't think they offer
any compelling benefits going forward.
With all the recent buzz about DeepSeek and its capabilities, I ve decided to give it a try
using Ollama and Open WebUI on my work laptop which has an NVIDIA GPU:
For the installation I initially I looked into the approach suggested on this
article, but after reviewing it I decided to go for a
docker only approach, as it leaves my system clean and updates are easier.
Step 0: Install dockerI already had it on my machine, so nothing to do here.
Step 1: Install the nvidia-container-toolkit packageAs it is needed to use the NVIDIA GPU with docker I followed the instructions to install the package using
apt
from the NVIDIA website.
Step 2: Run the Open WebUI container bundled with OllamaI could install ollama directly on linux or run it on
docker, but I found out that there is a container with
Open WebUI bundled with Ollama, so I decided to use
it instead.
To start the container I ve executed the following command:
Once the container is up and running, I can access the Open WebUI on http://localhost:3000/ and the Ollama API on
http://localhost:11434/ (I added the OLLAMA_HOST environment variable to be bind the server to all the container IPs,
as it is needed to export it to the host).
Step 3: Install DeepSeek-R1 model from Open WebUIAfter creating an admin user on the Open WebUI, I went to the select a model button and asked to download the
deepseek-r1 model (at the time of writing this it matches version
deepseek-r1:7b, which uses 4.7GB of space).
After the download was completed I was able to start chatting with the model on my local machine.
Step 4: Ask a questionThe first question I asked was Can you tell me what is Debian? and the answer I got was:
Debian is one of the most popular Linux distributions used worldwide. It is an
open-source operating system that has been around since 1993 and is known for
its stability, security, and reliability. Debian is widely used in servers, data
centers, and enterprise environments because it provides a robust base platform
with excellent documentation, tools, and community support.
### Key Features of Debian:
1.**History**:
- Debian started as a project called "Pop!!" (Pootle) led by Lars Knutsen, a
developer from Denmark.
- It was initially forked from the Linux distribution Red Hat's RH-Debian to
gain independence and reduce reliance on Red Hat.
2.**Use Cases**:
- Debian is commonly used as an operating system for servers due to its
reliability and ease of use in enterprise environments.
- It is also used for individual user machines (laptops, desktops) because it
offers a smooth and stable experience.
- Debian provides the foundation for many popular derivatives like Ubuntu,
which are designed for consumer use.
3.**Supported Architectures**:
- Debian supports all major Linux architectures, including 32-bit and 64-bit
systems, and runs on a wide range of hardware from old servers to modern
smartphones.
4.**Package Management**:
- Debian comes with a robust package management system called **Debian Policy
Language (DPL)**, which allows users to easily install, update, and manage
software packages.
- This makes it easy for users to keep their systems up to date without
needing to download multiple repositories or deal with version conflicts.
5.**Security Focus**:
- Debian is known for its strong security practices. It has a reputation for
being one of the most stable Linux distributions, making it a favorite
among organizations that prioritize security.
- The distribution regularly updates its software packages to patch
vulnerabilities and protect against common attacks.
6.**Compatibility with Servers**:
- Debian is widely used in data centers because it provides a consistent and
reliable environment for running servers and applications.
- Many open-source projects are compatible with Debian, making it an ideal
choice for developers who want to work on servers or distributed systems.
7.**Popularity**:
- Debian has a large and active community of users and contributors.
- It is one of the most widely used Linux distributions in the world, with
many enterprise organizations relying on it as their primary operating
system.
### Comparison with Other Distributions:-**Ubuntu**: Ubuntu is based on Debian but adds graphical user interfaces (like
Gutsy Gibbon), modern tools (like GIMP and LibreOffice), and integrates with
Microsoft services.
-**RHEL (Red Hat Enterprise Linux)**: RHEL is a derivative of Red Hat's
distribution, which forked from Debian. It focuses more heavily on enterprise
security and support compared to Debian.
### Why Debian?
Debian is popular because:
- It is free and open-source, making it accessible to anyone.
- It provides excellent documentation and tools for system administrators.
- It has a strong focus on stability and reliability.
- It supports a wide range of hardware and software needs.
If you're looking for a reliable and flexible Linux distribution that works well
in both personal and enterprise environments, Debian is an excellent choice.
Haven t tried the same question with ChatGPT, but the History, Package Management and Comparison with Other
Distributions sections are hilarious, but they provided me with important data:
Now I know that APT is the real Debian Project Leader, what don t know is why we have elections each year ;)
Linux Distributions are recursive Debian was a fork of Red Hat, which was a fork of Debian, which was a fork of
Red Hat,
As everybody is testing the model I will not talk more about the chat and the results, I just thought that this answer
was really funny.
Step 5: Install the DeepSeek Coder and DeepSeek Coder v2 models from Open WebUIAs done before, to download the models I went to the select a model button and asked to download the
deepseek-coder and
deepseek-coder-v2 models (the default version of version one is said to
be really quick and small, while version two is supposed to be better but slower and bigger, so I decided to install
both for testing).
Step 6: Integrate Ollama with NeovimSince some months ago I ve been using Github Copilot with Neovim; I don t
feel it has been very helpful in the general case, but I wanted to try it and it comes handy when you need to perform
repetitive tasks when programming.
It seems that there are multiple neovim plugins that support ollama, for now I ve installed and configured the
codecompanion plugin on my config.lua file using packer:
I ve tested it a little bit and it seems to work fine, but I ll have to test it more to see if it is really useful, I ll
try to do it on future projects.
ConclusionAt a personal level I don t like nor trust AI systems, but as long as they are treated as tools and not as a magical
thing you must trust they have their uses and I m happy to see that open source tools like Ollama and models like
DeepSeek available for everyone to use.
The Sky Road is the fourth book in the Fall Revolution series, but
it represents an alternate future that diverges after (or during?) the
events of The Sky Fraction. You probably
want to read that book first, but I'm not sure reading
The Stone Canal or
The Cassini Division adds anything to
this book other than frustration. Much more on that in a moment.
Clovis colha Gree is a aspiring doctoral student in history with a summer
job as a welder. He works on the platform for the project, which the
reader either slowly discovers from the book or quickly discovers from the
cover is a rocket to get to orbit. As the story opens, he meets (or, as he
describes it) is targeted by a woman named Merrial, a tinker who works on
the guidance system. The early chapters provide only a few hints about
Clovis's world: a statue of the Deliverer on a horse that forms the
backdrop of their meeting, the casual carrying of weapons, hints that
tinkers are socially unacceptable, and some division between the white
logic and the black logic in programming.
Also, because this is a Ken MacLeod novel, everyone is obsessed with
smoking and tobacco the way that the protagonists of erotica are obsessed
with sex.
Clovis's story is one thread of this novel. The other, told in the
alternating chapters, is the story of Myra Godwin-Davidova, chair of the
governing Council of People's Commissars of the International Scientific
and Technical Workers' Republic, a micronation embedded in post-Soviet
Kazakhstan. Series readers will remember Myra's former lover, David Reid,
as the villain of The Stone Canal and the head of the corporation
Mutual Protection, which is using slave labor (sort of) to support a
resurgent space movement and its attempt to take control of a balkanized
Earth. The ISTWR is in decline and a minor power by all standards except
one: They still have nuclear weapons.
So, first, we need to talk about the series divergence.
I know from reading about this book on-line that The Sky Road is an
alternate future that does not follow the events of The Stone Canal
and The Cassini Division. I do not know this from the text of the
book, which is completely silent about even being part of a series.
More annoyingly, while the divergence in the Earth's future compared to
The Cassini Division is obvious, I don't know what the
Jonbar
hinge is. Everything I can find on-line about this book is maddeningly
coy. Wikipedia claims the divergence happens at the end of The Sky
Fraction. Other reviews and the Wikipedia talk page claim it happens in
the middle of The Stone Canal. I do have a guess, but it's an
unsatisfying one and I'm not sure how to test its correctness. I suppose I
shouldn't care and instead take each of the books on their own terms, but
this is the type of thing that my brain obsesses over, and I find it
intensely irritating that MacLeod didn't explain it in the books
themselves. It's the sort of authorial trick that makes me feel dumb, and
books that gratuitously make me feel dumb are less enjoyable to read.
The second annoyance I have with this book is also only partly its fault.
This series, and this book in particular, is frequently mentioned as good
political science fiction that explores different ways of structuring
human society. This was true of some of the earlier books in a
surprisingly superficial way. Here, I would call it hogwash.
This book, or at least the Myra portion of it, is full of people doing
politics in a tactical sense, but like the previous books of this series,
that politics is mostly embedded in personal grudges and prior romantic
relationships. Everyone involved is essentially an authoritarian whose
ability to act as they wish is only contested by other authoritarians and
is largely unconstrained by such things as persuasion, discussions,
elections, or even theory. Myra and most of the people she meets are
profoundly cynical and almost contemptuous of any true discussion of
political systems. This is the trappings and mechanisms of politics
without the intellectual debate or attempt at consensus, turning it into a
zero-sum game won by whoever can threaten the others more effectively.
Given the glowing reviews I've seen in relatively political SF circles,
presumably I am missing something that other people see in MacLeod's
approach. Perhaps this level of pettiness and cynicism is an accurate
depiction of what it's like inside left-wing political movements. (What an
appalling condemnation of left-wing political movements, if so.) But many
of the on-line reviews lead me to instead conclude that people's
understanding of "political fiction" is stunted and superficial. For
example, there is almost nothing Marxist about this book it contains
essentially no economic or class analysis whatsoever but MacLeod uses a
lot of Marxist terminology and sets half the book in an explicitly
communist state, and this seems to be enough for large portions of the
on-line commentariat to conclude that it's full of dangerous, radical
ideas. I find this sadly hilarious given that MacLeod's societies tend, if
anything, towards a low-grade libertarianism that would be at home in a
Robert Heinlein novel. Apparently political labels are all that's needed
to make political fiction; substance is optional.
So much for the politics. What's left in Clovis's sections is a classic
science fiction adventure in which the protagonist has a radically
different perspective from the reader and the fun lies in figuring out the
world-building through the skewed perspective of the characters. This was
somewhat enjoyable, but would have been more fun if Clovis had any
discernible personality. Sadly he instead seems to be an empty receptacle
for the prejudices and perspective of his society, which involve a lot of
quasi-religious taboos and an essentially magical view of the world.
Merrial is a more interesting character, although as always in this series
the romance made absolutely no sense to me and seemed to be conjured by
authorial fiat and weirdly instant sexual attraction.
Myra's portion of the story was the part I cared more about and was more
invested in, aided by the fact that she's attempting to do something more
interesting than launch a crewed space vehicle for no obvious reason. She
at least faces some true moral challenges with no obviously correct
response. It's all a bit depressing, though, and I found Myra's
unwillingness to ground her decisions in a more comprehensive moral
framework disappointing. If you're going to make a protagonist the ruler
of a communist state, even an ironic one, I'd like to hear some real
political philosophy, some theory of sociology and economics that she used
to justify her decisions. The bits that rise above personal animosity and
vibes were, I think, said better in The Cassini Division.
This series was disappointing, and I can't say I'm glad to have read it.
There is some small pleasure in finishing a set of award-winning genre
books so that I can have a meaningful conversation about them, but the
awards failed to find me better books to read than I would have found on
my own. These aren't bad books, but the amount of enjoyment I got out of
them didn't feel worth the frustration. Not recommended, I'm afraid.
Rating: 6 out of 10
Moose Madness is a sapphic shifter romance novella (on the short
side for a novella) by the same author as Wolf Country. It was originally published in the anthology
Her Wild Soulmate, which appears to be very out of print.
Maggie (she hates the nickname Moose) grew up in Moose Point, a tiny
fictional highway town in (I think) Alaska. (There is, unsurprisingly, an
actual Moose Point in Alaska, but it's a geographic feature and not a
small town.) She stayed after graduation and is now a waitress in the
Moose Point Pub. She's also a shifter; specifically, she is a moose
shifter like her mother, the town mayor. (Her father is a fox shifter.) As
the story opens, the annual Moose Madness festival is about to turn the
entire town into a blizzard of moose kitsch.
Fiona Barton was Maggie's nemesis in high school. She was the cool,
popular girl, a red-headed wolf shifter whose friend group teased and
bullied awkward and uncoordinated Maggie mercilessly. She was also
Maggie's impossible crush, although the very idea seemed laughable. Fi
left town after graduation, and Maggie hadn't thought about her for years.
Then she walks into Moose Point Pub dressed in biker leathers, with
piercings and one side of her head shaved, back in town for a wedding in
her pack.
Much to the shock of both Maggie and Fi, they realize that they're
soulmates as soon as their eyes meet. Now what?
If you thought I wasn't going to read the moose and wolf shifter romance
once I knew it existed, you do not know me very well. I have been saving
it for when I needed something light and fun. It seemed like the right
palette cleanser after a very
disappointing book.
Moose Madness takes place in the same universe as Wolf
Country, which means there are secret shifters all over Alaska (and
presumably elsewhere) and they have the strong magical version of love at
first sight. If one is a shifter, one knows immediately as soon as one
locks eyes with one's soulmate and this feeling is never wrong. This is
not my favorite romance trope, but if I get moose shifter romance out of
it, I'll endure.
As you can tell from the setup, this is enemies-to-lovers, but the whole
soulmate thing shortcuts the enemies to lovers transition rather abruptly.
There's a bit of apologizing and air-clearing at the start, but most of
the novella covers the period right after enemies have become lovers and
are getting to know each other properly. If you like that part of the arc,
you will probably enjoy this, but be warned that it's slight and somewhat
obvious. There's a bit of tension from protective parents and annoying
pack mates, but it's sorted out quickly and easily. If you want the
characters to work for the relationship, this is not the novella for you.
It's essentially all vibes.
I liked the vibes, though! Maggie is easy to like, and Fi does a solid job
apologizing. I wish there was quite a bit more moose than we get, but
Delaney captures the combination of apparent awkwardness and raw power of
a moose and has a good eye for how beautiful large herbivores can be. This
is not the sort of book that gives a moment's thought to wolves being
predators and moose being, in at least some sense, prey animals, so if you
are expecting that to be a plot point, you will be disappointed. As with
Wolf Country, Delaney elides most of the messier and more ethically
questionable aspects of sometimes being an animal.
This is a sweet, short novella about two well-meaning and fundamentally
nice people who are figuring out that middle school and high school are
shitty and sometimes horrible but don't need to define the rest of one's
life. It's very forgettable, but it made me smile, and it was indeed a
good palette cleanser.
If you are, like me, the sort of person who immediately thought "oh, I
have to read that" as soon as you saw the moose shifter romance, keep your
expectations low, but I don't think this will disappoint. If you are not
that sort of person, you can safely miss this one.
Rating: 6 out of 10
Although I am a Debian Developer (not very active, BTW) I am using Ubuntu LTS (right now version 24.04.1) on my main
machine; it is my work laptop and I was told to keep using Ubuntu on it when it was assigned to me, although I don t
believe it is really necessary or justified (I don t need support, I don t provide support to others and I usually test
my shell scripts on multiple systems if needed anyway).
Initially I kept using Debian Sid on my personal laptop, but I gave it to my oldest son as the one he was using (an old
Dell XPS 13) was stolen from him a year ago.
I am still using Debian stable on my servers (one at home that also runs LXC containers and another one on an OVH VPS),
but I don t have a Debian Sid machine anymore and while I could reinstall my work machine, I ve decided I m going to try
to use a system container to run Debian Sid on it.
As I want to use a container instead of a VM I ve narrowed my options to lxc or systemd-nspawn (I have docker and
podman installed, but I don t believe they are good options for running system containers).
As I will want to take snapshots of the container filesystem I ve decided to try
incus instead of systemd-nspawn (I already have
experience with it and while it works well it has less features than incus).
Installing incusAs this is a personal system where I want to try things, instead of using the packages included with Ubuntu I ve decided
to install the ones from the zabbly incus stable
repository.
To do it I ve executed the following as root:
# Get the zabbly repository GPG key
curl -fsSL https://pkgs.zabbly.com/key.asc -o /etc/apt/keyrings/zabbly.asc
# Create the zabbly-incus-stable.sources file
sh -c'cat <<EOF > /etc/apt/sources.list.d/zabbly-incus-stable.sources
Enabled: yes
Types: deb
URIs: https://pkgs.zabbly.com/incus/stable
Suites: $(. /etc/os-release && echo $ VERSION_CODENAME )
Components: main
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/zabbly.asc
EOF'
Initially I only plan to use the command line tools, so I ve installed the incus and the incus-extra packages, but
once things work I ll probably install the incus-ui-canonical package too, at least for testing it:
apt update
apt install incus incus-extra
Adding my personal user to the incus-admin groupTo be able to run incus commands as my personal user I ve added it to the incus-admin group:
sudo adduser "$(id-un)" incus-admin
And I ve logged out and in again of my desktop session to make the changes effective.
Initializing the incus environmentTo configure the incus environment I ve executed the incus admin init command and
accepted the defaults for all the questions, as they are good enough for my current use case.
Creating a Debian containerTo create a Debian container I ve used the default debian/trixie image:
incus launch images:debian/trixie debian
This command downloads the image and creates a container named debian using the default profile.
The exec command can be used to run a root login shell inside the container:
incus exec debian -- su -l
Instead of exec we can use the shell alias:
incus shell debian
which does the same as the previous command.
Inside that shell we can try to update the machine to sid changing the /etc/apt/sources.list file and using apt:
As my machine has docker installed the apt update command fails because the network does not work, to fix it I ve
executed the commands of the following section and re-run the apt update and apt dist-upgrade commands.
Making the incusbr0 bridge work with DockerTo avoid problems with docker networking we have to add rules for the incusbr0 bridge to the DOCKER-USER chain as
follows:
That makes things work now, but to make things persistent across reboots we need to add them each time the machine
boots.
As suggested by the incus documentation I ve installed the iptables-persistent package (my command also purges the
ufw package, as I was not using it) and saved the current rules when installing:
sudo apt install iptables-persistent --purge
Integrating the DNS resolution of the container with the hostTo make DNS resolution for the ictus containers work from the host I ve followed the
incus documentation.
To set up things manually I ve run the following:
br="incusbr0";br_ipv4="$(incus network get "$br" ipv4.address)";br_domain="$(incus network get "$br" dns.domain)";dns_address="$ br_ipv4%/*";dns_domain="$ br_domain:=incus";
resolvectl dns "$br""$ dns_address";
resolvectl domain "$br""~$ dns_domain";
resolvectl dnssec "$br" off;
resolvectl dnsovertls "$br" off;
And to make the changes persistent across reboots I ve created the following service file:
sh -c"cat <<EOF sudo tee /etc/systemd/system/incus-dns-$ br.service
[Unit]
Description=Incus per-link DNS configuration for $ br
BindsTo=sys-subsystem-net-devices-$ br.device
After=sys-subsystem-net-devices-$ br.device
[Service]
Type=oneshot
ExecStart=/usr/bin/resolvectl dns $ br$ dns_address
ExecStart=/usr/bin/resolvectl domain $ br ~$ dns_domain
ExecStart=/usr/bin/resolvectl dnssec $ br off
ExecStart=/usr/bin/resolvectl dnsovertls $ br off
ExecStopPost=/usr/bin/resolvectl revert $ br
RemainAfterExit=yes
[Install]
WantedBy=sys-subsystem-net-devices-$ br.device
EOF"
If all goes well the DNS resolution works from the host:
$host debian.incus
debian.incus has address 10.149.225.121
debian.incus has IPv6 address fd42:1178:afd8:cc2c:216:3eff:fe2b:5cea
Using my host user and home dir inside the containerTo use my host user and home directory inside the container I need to add the user and group to the container.
First I ve added my user group with the same GID used on the host:
Once the user is created we can mount the home directory on the container (we add the shift option to make the
container use the same UID and GID as we do on the host):
incus config device add debian home disk source=$HOMEpath=$HOMEshift=true
We have the shell alias to log with the root account, now we can add another one to log into the container using the
newly created user:
incus alias add ush "exec @ARGS@ -- su -l $(id--user--name)"
To log into the container as our user now we just need to run:
incus ush debian
To be able to use sudo inside the container we could add our user to the sudo group:
But that requires a password and we don t have one, so instead we are going to add a file to the /etc/sudoers.d
directory to allow our user to run sudo without a password:
incus exec debian --\
sh -c"echo '$(id--user--name) ALL = NOPASSWD: ALL' /etc/sudoers.d/user"
Accessing the container using sshTo use the container as a real machine and log into it as I do on remote machines I ve installed the openssh-server
and authorized my laptop public key to log into my laptop (as we are mounting the home directory from the host that
allows us to log in without password from the local machine).
Also, to be able to run X11 applications from the container I ve adusted the $HOME/.ssh/config file to always forward
X11 (option ForwardX11 yes for Host debian.incus) and installed the xauth package.
After that I can log into the container running the command ssh debian.incus and start using it after installing other
interesting tools like neovim, rsync, tmux, etc.
Taking snapshots of the containerAs this is a system container we can take snapshots of it using the incus snapshot command; that can be specially
useful to take snapshots before doing a dist-upgrade so we can rollback if something goes wrong.
To work with container snapshots we run use the incus snapshot command, i.e. to create a snapshot we use de create
subcommand:
incus snapshot create debian
The snapshot sub commands include options to list the available snapshots, restore a snapshot, delete a snapshot, etc.
ConclusionSince last week I have a terminal running a tmux session on the Debian Sid container with multiple zsh windows open
(I ve changed the prompt to be able to notice easily where I am) and it is working as expected.
My plan now is to add some packages and use the container for personal projects so I can work on a Debian Sid system
without having to reinstall my work machine.
I ll probably write more about it in the future, but for now, I m happy with the results.
The House That Fought is the third and final book of the
self-published space fantasy trilogy starting with
The House That Walked Between
Worlds. I read it as part of the Uncertain Sanctuary omnibus,
which is reflected in the sidebar metadata.
At the end of the last book, one of Kira's random and vibe-based trust
decisions finally went awry. She has been betrayed! She's essentially
omnipotent, the betrayal does not hurt her in any way, and, if anything,
it helps the plot resolution, but she has to spend some time feeling bad
about it first. Eventually, though, the band of House residents return to
the problem of Earth's missing magic.
By Earth here, I mean our world, which technically isn't called Earth in
the confusing world-building of this series. Earth within this universe is
an archetypal world that is the origin world for humans, the two types
of dinosaurs, and Neanderthals. There are numerous worlds that have split
off from it, including Human, the one world where humans are dominant,
which is what we think of as Earth and what Kira calls Earth half the
time. And by worlds, I mean entire universes (I think?), because traveling
between "worlds" is dimensional travel, not space travel. But there is
also space travel?
The world building started out confusing and has degenerated over the
course of the series. Given that the plot, such as it is, revolves around
a world-building problem, this is not a good sign.
Worse, though, is that the quality of the writing has become unedited,
repetitive drivel. I liked the first book and enjoyed a few moments of the
second book, but this conclusion is just bad. This is the sort of book
that the maxim "show, don't tell" was intended to head off. The dull,
thudding description of the justification for every character emotion
leaves no room for subtlety or reader curiosity.
Evander was elf and I was human. We weren't the same. I had magic. He
had the magic I'd unconsciously locked into his augmentations. We were
different and in love. Speaking of our differences could be a trigger.
I peeked at him, worried. My customary confidence had taken a hit.
"We're different," he answered my unspoken question. "And we work
anyway. We'll work to make us work."
There is page after page after page of this sort of thing: facile
emotional processing full of cliches and therapy-speak, built on the most
superficial of relationships. There's apparently a romance now, which
happened with very little build-up, no real discussion or communication
between the characters, and only the most trite and obvious relationship
work.
There is a plot underneath all this, but it's hard to make it suspenseful
given that Kira is essentially omnipotent. Schwartz tries to turn the
story into a puzzle that requires Kira figure out what's going on before
she can act, but this is undermined by the confusing world-building. The
loose ends the plot has accumulated over the previous two books are mostly
dropped, sometimes in a startlingly casual way. I thought Kira would care
who killed her parents, for example; apparently, I was wrong.
The previous books caught my attention with a more subtle treatment of
politics than I expect from this sort of light space fantasy. The
characters had, I thought, a healthy suspicion of powerful people and a
willingness to look for manipulation or ulterior motives. Unfortunately,
we discover here that this is not due to an appreciation of the complexity
of power and motive in governments. Instead, it's a reflexive bias against
authority and structured society that sounds like an Internet libertarian
complaining about taxes. Powerful people should be distrusted because all
governments are corrupt and bad and steal your money in order to waste it.
Oh, except for the cops and the military; they're generally good people
you should trust.
In retrospect, I should have expected this turn given the degree to which
Schwartz stressed the independence of sorcerers. I thought that was going
somewhere more interesting than sorcerers as self-appointed vigilantes who
are above the law and can and should do anything they damn well please.
Sadly, it was not.
Adding to the lynch mob feeling, the ending of this book is a deeply
distasteful bit of magical medieval punishment that I thought was vile,
and which is, of course, justified by bad things happening to children. No
societal problems were solved, but Kira got her petty revenge and got to
be gleeful and smug about it. This is apparently what passes for a happy
ending.
I don't even know what to say about the bizarre insertion of Christianity,
which makes little sense given the rest of the world-building. It's
primarily a way for Kira to avoid understanding or thinking about an
important part of the plot. As sadly seems to often be the case in books
like this, Kira's faith doesn't appear to prompt any moral analysis or
thoughtful ethical concern about her unlimited power, just certainty that
she's right and everyone else is wrong.
This was dire. It is one of those self-published books that I feel a
little bad about writing this negative of a review about, because I think
most of the problem was that the author's skill was not up to the story
that she wanted to tell. This happens a lot in self-published fiction,
particularly since Kindle Unlimited has started rewarding quantity over
quality. But given how badly the writing quality degraded over the course
of the series, and how offensive the ending was, I do want to warn other
people off of the series.
There is so much better fiction out there. Avoid this one, and probably
the rest of the series unless you're willing to stop after the first book.
Rating: 2 out of 10
Dark Matters is the fourth book in the science fiction semi-romance
Class 5 series. There are spoilers for all of the previous books, and
although enough is explained that you could make sense of the story
starting here, I wouldn't recommend it. As with the other books in the
series, it follows new protagonists, but the previous protagonists make an
appearance.
You will be unsurprised to hear that the Tecran kidnapped yet
another Earth woman. The repetitiveness of the setup would be more
annoying if the book took itself too seriously, but it doesn't, and so I
mostly find it entertaining. I thought Diener was going to dodge the
obvious series structure, but now I am wondering if we're going to end up
with one woman per Class 5 ship after all.
Lucy is not on a ship, however, Tecran or otherwise. She is a captive in a
military research facility on the Tecran home world. The Tecran are in
very deep trouble given the events of the previous book and have decided
that Lucy's existence is a liability. Only the intervention of some
sympathetic Tecran scientists she partly befriended during her captivity
lets her escape the facility before it's destroyed. Now she's alone, on an
alien world, being hunted by the military.
It's not entirely the fault of this book that it didn't tell the story
that I wanted to read. The setup for Dark Matters implies this book
will see the arrival of consequences for the Tecran's blatant violations
of the Sentient Beings Agreement. I was looking forward to a more
political novel about how such consequences could be administered. This is
the sort of problem that we struggle with in our politics: Collective
punishment isn't acceptable, but there have to be consequences sufficient
to ensure that a state doesn't repeat the outlawed behavior, and yet
attempting to deliver those consequences feels like occupation and can set
off worse social ruptures and even atrocities. I wasn't expecting that
deep of political analysis of what is, after all, a lighthearted SF
adventure series, but Diener has been willing to touch on hard problems.
The ethics of violence has been an ongoing theme of the series.
Alas for me, this is not what we get. The arriving cavalry, in the form of
a Class 5 and the inevitable Grih hunk to serve as the love interest du
jour, quickly become more interested in helping Lucy elude pursuers (or
escape captors) than in the delicate political situation. The conflict
between the local population is a significant story element, but only as
backdrop. Instead, this reads like a thriller or an action movie, complete
with alien predators and a cinematic set piece finale.
The political conflict between the Tecran and the United Council does
reach a conclusion of sorts, but it's not that satisfying. Perhaps some of
the political fallout will happen in future books, but here Diener
simplifies the morality of the story in the climax and dodges out of the
tricky ethical and social challenge of how to punish a sovereign nation.
One of the things I like about this series is that it takes moral
indignation seriously, but now that Diener has raised the (correct)
complication that people have strong motivations to find excuses for the
actions of their own side, I hope she can find a believable political
resolution that isn't simple brute force.
This entry in the series wasn't bad, but it didn't grab me. Lucy was fine
as a protagonist; her ability to manipulate the Tecran into making
mistakes fits the longer time she's had to study them and keeps her
distinct from the other protagonists. But the small bit of politics we do
see is unsatisfying and conveniently simplistic, and this book mostly
degenerates into generic action sequences. Bane, the Class 5 ship featured
in this story, is great when he's active, and I continue to be entertained
by the obsession the Class 5 ships have with Earth women, but he's
sidelined for too much of the story. I felt like Diener focused on the
least interesting part of the story setup.
If you've read this far, there's nothing wrong with this entry. You'll
probably want to keep reading. But it felt like a missed opportunity.
Followed in publication order by Dark Ambitions, a novella that
returns to Rose to tell a side story. The next novel is Dark Class,
in which we'll presumably see the last kidnapped Earth woman.
Rating: 6 out of 10
Another minor maintenance release for the RcppBDT
package is now on CRAN.
The RcppBDT
package is an early adopter of Rcpp
and was one of the first packages utilizing Boost and its Date_Time
library. The now more widely-used package anytime is a
direct descentant of RcppBDT.
This release follows the recent updates of other package updating
their C++ compilation standard along with other standard package
updates. No feature or interface changes.
The NEWS entry follows:
Changes in version 0.2.7
(2025-01-25)
The package no longer sets a C++ compilation standard
Package infrastructure, documentation and continuous integration
support have been updated
Several manual pages now have package anchors for the code
link
Becoming a Debian maintainer is a journey that combines technical expertise, community collaboration, and continuous learning. In this post, I ll share 10 key habits that will both help you navigate the complexities of Debian packaging without getting lost, and also enable you to contribute more effectively to one of the world s largest open source projects.
1. Read and re-read the Debian Policy, the Developer s Reference and the git-buildpackage manual
Anyone learning Debian packaging and aspiring to become a Debian maintainer is likely to wade through a lot of documentation, only to realize that much of it is outdated or sometimes outright incorrect.
Therefore, it is important to learn right from the start which sources are the most reliable and truly worth reading and re-reading. I recommend these documents, in order of importance:
The Debian Policy Manual: Describes the structure of the operating system, the package archive, and requirements for packages to be included in the Debian archive.
The Developer s Reference: A collection of best practices and process descriptions Debian packagers are expected to follow while interacting with one another.
The git-buildpackage man pages: While the Policy focuses on the end result and is intentionally void of practical instructions on creating or maintaining Debian packages, the Developer s Reference goes into greater detail. However, it too lacks step-by-step instructions. For the exact commands, consult the man pages of git-buildpackage and its subcommands (e.g., gbp clone, gbp import-orig, gbp pq, gbp dch, gbp push). See also my post on Debian source package git branch and tags for an easy to understand diagrams.
2. Make reading man pages a habit
In addition to the above, try to make a habit of checking out the man page of every new tool you use to ensure you are using it as intended.
The best place to read accurate and up-to-date documentation is manpages.debian.org. The manual pages are maintained alongside the tools by their developers, ensuring greater accuracy than any third-party documentation.
If you are using a tool in the way the tool author documented, you can be confident you are doing the right thing, even if it wasn t explicitly mentioned in some third-party guide about Debian packaging best practices.
3. Read and write emails
While members of the Debian community have many channels of communication, the mailing lists are by far the most prominent. Asking questions on the appropriate list is a good way to get current advice from other people doing Debian packaging. Staying subscribed to lists of interest is also a good way to read about new developments as they happen.
Note that every post is public and archived permanently, so the discussions on the mailing lists also form a body of documentation that can later be searched and referred to.
Regularly writing short and well-structured emails on the mailing lists is great practice for improving technical communication skills a useful ability in general. For Debian specifically, being active on mailing lists helps build a reputation that can later attract collaborators and supporters for more complex initiatives.
4. Create and use an OpenPGP key
Related to reputation and identity, OpenPGP keys play a central role in the Debian community. OpenPGP is used to various degrees to sign git commits and tags, sign and encrypt email, and most importantly to sign Debian packages so their origin can be verified.
The process of becoming a Debian Maintainer and eventually a Debian Developer culminates in getting your OpenPGP key included in the Debian keyring, which is used to control who can upload packages into the Debian archive.
The earlier you create a key and start using it to gain reputation for that specific key that is used to sign your work, the better. Note that due to a recent schism in the OpenPGP standards working group, it is safest to create an OpenPGP key using GnuPG version 2.2.x (not 2.4.x), or using Sequoia-PGP.
5. Integrate Salsa CI in all work
One reason Debian remains popular, even 30 years after its inception, is due to its culture of maintaining high standards. For a newcomer, learning all the quality assurance tools such as Lintian, Piuparts, Adequate, various build variations, and reproducible builds may be overwhelming. However, these tasks are easier to manage thanks to Salsa CI, the continuous integration pipeline in Debian that runs tests on every commit at salsa.debian.org.
The earlier you activate Salsa CI in the package repository you are working on, the faster you will achieve high quality in your package with fewer missteps. You can also further customize a package specific salsa-ci.yml to have more testing coverage.
6. Fork on Salsa and use draft Merge Requests to solicit feedback
All modern Debian packages are hosted on salsa.debian.org. If you want to make a change to any package, it is easy to fork, make an initial attempt at the change, and publish it as a draft Merge Request (MR) on Salsa to solicit feedback.
People might have surprising reasons to object to the change you propose, or they might need time to get used to the idea before agreeing to it. Also, some people might object to a vague idea out of suspicion but agree once they see the exact implementation. There may also be a surprising number of people supporting your idea, and if there is an MR, they have a place to show their support at.
Don t expect every Merge Request to be accepted. However, proposing an idea as running code in an MR is far more effective than raising the idea on a mailing list or in a bug report. Get into the habit of publishing plenty of merge requests to solicit feedback and drive discussions toward consensus.
7. Use git rebase frequently
Linear git history is much easier to read. The ease of reading git log and git blame output is vital in Debian, where packages often have updates from multiple people spanning many years even decades. Debian packagers likely spend more time than the average software developer reading git history.
Make sure you master git commands such as gitk --all, git citool --amend, git commit -a --fixup <commit id>, git rebase -i --autosquash <target branch>, git cherry-pick <commit id 1> <id 2> <id 3>, and git pull --rebase.
If rebasing is not done on your initiative, rest assured others will ask you to do it. Thus, if the commands above are familiar, rebasing will be quick and easy for you.
8. Reviews: give some, get some
In open source, the larger a project becomes, the more it attracts contributions, and the bottleneck for its growth isn t how much code developers can create but how much code submissions can be properly reviewed.
At the time of writing, the main Salsa group Debian has over 800 open merge requests pending reviews and approvals. Feel free to read and comment on any merge request you find. You don t have to be a subject matter expert to provide valuable feedback. Even if you don t have specific feedback, your comment as another human acknowledging that you read the MR and found no issues is viewed positively by the author. Besides, if you spend enough time reviewing MRs in a specific domain, you will eventually become an expert in it. Code reviews are not just about providing feedback to the submitter; they are also great learning opportunities for the reviewer.
As a rule of thumb, you should review at least twice as many merge requests as you submit yourself.
9. Improve Debian by improving upstream
It is common that while packaging software for Debian, bugs are uncovered and patched in Debian. Do not forget to submit the fixes upstream, and add a Forwarded field to the file in debian/patches! As the person building and packaging something in Debian, you automatically become an authority on that software, and the upstream is likely glad to receive your improvements.
While submitting patches upstream is a bit of work initially, getting improvements merged upstream eventually saves time for everyone and makes packaging in Debian easier, as there will be fewer patches to maintain with each new upstream release.
10. Don t hold any habits too firmly
Last but not least: Once people learn a specific way of working, they tend to stick to it for decades. Learning how to create and maintain Debian packages requires significant effort, and people tend to stop learning once they feel they ve reached a sufficient level. This tendency to get stuck in a local optimum is understandable and natural, but try to resist it.
It is likely that better techniques will evolve over time, so stay humble and re-evaluate your beliefs and practices every few years.
Mastering these habits takes time, but each small step brings you closer to making a meaningful impact on Debian. By staying curious, collaborative, and adaptable, you can ensure your contributions stand the test of time just like Debian itself. Good luck on your journey toward becoming a Debian Maintainer!
I keep saying I'm "done" with my CP/M emulator, but then I keep overhauling it in significant ways. Today is no exception. In the past the emulator used breakpoints to detect when calls to the system BIOS, or BDOS, were made. That was possible because the BIOS and BDOS entry points are at predictable locations. For example a well-behaved program might make a system call with code like this:
LD A,42
LD C,4
CALL 0x0005
So setting a breakpoint on 0x0005 would let you detect a system-call was being made, inspect the registers to see which system-call was being made and then carry out the appropriate action in your emulator before returning control back to the program. Unfortunately some binaries patch the RAM, changing the contents of the entry points, or changing internal jump-tables, etc. The end result is that sometimes code running at the fixed addresses is not your BIOS at all, but something else. By trapping/faulting/catching execution here you break things, badly.
So today's new release fixes that! No more breakpoints. Instead we deploy a "real BDOS" in RAM that will route system-calls to our host emulator via a clever trick. For BDOS functions the C-register will contain the system call to operate, our complete BDOS implementation is:
OUT (C),C
RET
The host program can catch writes to output ports, and will know that "OUT (3), 3" means "Invoke system call #3", for example. This means binary patches to entry-points, or any internal jump-tables won't confuse things and so long as control eventually reaches my BIOS or BDOS code areas things will work.
I also added a new console-input driver, since I have a notion of pluggable input and output devices, which just reads input from a file. Now I can prove that my code works. Pass the following file to the input-driver and we have automated testing:
A:
ERA HELLO.COM
ERA HELLO.HEX
ERA HELLO.PRN
hello
ASM HELLO
LOAD HELLO
DDT HELLO.com
t
t
t
t
t
t
t
t
t
C-c
EXIT
Here we:
Erase "HELLO.COM", "HELLO.HEX", "HELLO.PRN"
Invoke "hello[.com]" (which will fail, as we've just deleted it).
Then we assemble "HELLO.ASM" to "HELLO.HEX", then to "HELLO.COM"
Invoke DDT, the system debugger, and tell it to trace execution a bunch of times.