Bonum Certa Men Certa

For the Want of a Pixel

2020 figosdev

Index



Pixel screenshot
Chapter 9: For the Want of a Pixel



Summary: "It is still possible to win, but the FSF has practically left the field."

Fundamentally, putting graphics on the screen is like anything else -- numeric data is moved to a location where it changes the output of the video device. Whether the device is in text mode or a graphics mode, you either decide to send character data or data on individual dots. Doing this efficiently involves more complex code.



The projects most relevant to this chapter are desktop environments or DEs, window managers or WMs and toolkits or libraries. The choices we make there decide what kind of crappy developer politics we end up saddled with.

"The choices we make there decide what kind of crappy developer politics we end up saddled with."But to start with, we need a graphical environment to work in. Our choices for the most part are SVGAlib, directfb, Weston/Wayland and X.Org. SVGAlib is ancient, directfb is in a sort of limbo, Wayland is the new corporate love-interest and X.Org is what I'm using now -- sometimes you get both X.Org and Wayland, but the former is still common and has been a de facto standard for ages.

X.Org does not draw or manage windows -- the programs that decorate and move or resize the windows are called window managers. X just displays the rectangles and the contents of each window.

Suites that incorporate relevant utilities (often including a window manager) are called desktop environments. This may or may not seem complicated, but really they stack up like this:

4. Other graphical programs (applications) 3. Window manager OR Desktop environment + Window manager 2. X.Org 1. Operating system

One thing to note is that you can swap out options at each of these layers. You can have these things on a different OS, with a different graphical environment, running a different WM with various different applications.

Right now, I'm typing this with the following:

4. My own Python/Tkinter editor (running with PyPy) 3. dwm 2. X.Org 1. Tiny Core GNU/Linux (CorePlus)

Usually someone makes these choices and puts these things together for you -- but you can still change the defaults. CorePlus comes with X.Org, but I installed PyPy (instead of CPython) and told it to replace the regular choice of WM with dwm.

"My editor is only 200 lines of code, and I wrote only some of them -- this 200 line count is misleading anyway."Python is a programming language, PyPy is a 3rd-party Free software version of Python, dwm and X.Org supply and manage the graphical environment, and PyPy uses the Tkinter library to tell dwm and X.Org what to do with graphical controls and windows.

My editor is only 200 lines of code, and I wrote only some of them -- this 200 line count is misleading anyway.

Each line of code in turn calls many lines of the Tkinter library which I have never even looked at. With PyPy, you might use one or two lines to tell Tkinter to create a window of a particular size -- then a couple more lines to add a text box. Tkinter is a well-established Free software library, it is even used to implement Python's standard editor, IDLE.

There are many graphical toolkits that Python or PyPy can make use of: including Qt, Tk, Gtk2, Gtk3, wx and Motif. Tkinter is the standard Python library for dealing with the Tk graphical toolkit.

"Gtk is a victim of all kind of corporate political crap I want no part of."On the practical side of things, I do not relish writing code for Gtk or Qt. Qt is a very nice toolkit, you get a very nice "product" out of it, but it isn't something I personally want to code with if I don't have to -- or pull in as a requirement. Gtk is a victim of all kind of corporate political crap I want no part of.

In fact my favourite editor (the one I hope to replace with my own, and haven't opened in days) is Leafpad. I like its simplicity, I love that you can redirect text to it without saving or opening a file first, I used to have many Leafpad windows open. But my own editor will also run shell code.

Leafpad is written in Gtk and is a hostage of Microsoft GitHub. As I encourage people to boycott GitHub as much as possible (this is no easy task, and deserves its own chapter) I try to find alternatives to GitHub-based projects as well.

"...Microsoft is working hard to gain influence over the standard CPython, the Python Foundation itself, and CPython (like Leafpad) is hosted on Microsoft GitHub."Incredibly, every graphical toolkit I know of (including Tk, sadly) depends on GitHub directly or indirectly, due to using either Zlib1g (a library related to PNG compression) or libffi, or both.

I have two reasons to switch to PyPy over the standard Python offering. One is that Microsoft is working hard to gain influence over the standard CPython, the Python Foundation itself, and CPython (like Leafpad) is hosted on Microsoft GitHub.

I didn't spend several years migrating away from Windows just to have all my computing controlled by Microsoft again, and their purchase of GitHub falls perfectly in line with their plans outlined in the Halloween documents. Leafpad is (was) one of the programs I used the most on my computer -- the fact that I could find a replacement is a bit of a triumph, though the struggle is ongoing.

To compare the various choices in this example:

Leafpad: * Gtk (GNOME) - GNOME is absolutely toxic to Free software * Hosted on Microsoft GitHub - Microsoft is absolutely toxic * Needs libffi and/or Zlib1g (GitHub)

Python (standard CPython): * Hosted on Microsoft GitHub * Needs libffi and/or Zlib1g (GitHub)

Tkinter: * Tk is not hosted on GitHub (minor win) * Sadly needs libffi and/or Zlib1g (GitHub) as do all the graphical toolkits I know

PyPy: * Not hosted on GitHub (huge win) * Sadly needs libffi and/or Zlib1g (GitHub) as does virtually every friendly scripting language I know -- but even if it didn't, I would still be using it with Tkinter which does

So there are a few lessons here:

1. Importantly, it is often possible (and in my opinion, desirable) to move from projects based on GitHub to projects based elsewhere. It is better, as much as reasonably possible -- to be less GitHub/Microsoft encumbered than more. I have no interest in supporting an organisation dedicated to destroying Free software or exploiting users.

2. Even if you move your programming language and toolkit away from GitHub, you're still probably going to need libffi and/or Zlib1g (every program/language/toolkit that supports PNG graphics does).

3. It really sucks that Microsoft has libffi (I think some alternatives may exist, but they are rarely used in mainstream projects) and Zlib1g (no known alternatives for PNG support) in their clutches.

4. We have many "choices" but so many lead to GitHub that "no matter what you choose, you always get Microsoft" -- this is a clear violation of antitrust law, but antitrust law is obviously a unicorn anyway.

GNOME was debatably part of several coups against the Free software world over the years, most recently in taking a fall on behalf of software patents -- which constitute a serious (but heavily mitigated) threat to software freedom. I have little more desire to support GNOME or any of its ilk than I do to support Microsoft itself.

Technically speaking, you are free to make your own choices, as it were. But also technically speaking, they aren't really choices then.

"I didn't spend several years migrating away from Windows just to have all my computing controlled by Microsoft again, and their purchase of GitHub falls perfectly in line with their plans outlined in the Halloween documents."I know this paints a bleak picture, and I know that some people understand these problems -- a lot of money is poured into being dismissive of exactly this sort of thing. Microsoft Loves Linux, don't you know -- but they are referring to GNU.

"Linux" is what you call GNU if you prefer corporate hegemony to freedom. You can call it whatever you like, but if someone really loves you, they probably won't call you a different name (where that name is used to mislead and exploit the user).

Love is real, I believe -- but Microsoft is not. O.J loves Nicole, Oscar loves Reeva, Microsoft loves Linux; if you believe it. What is even funnier than the idea that Microsoft "loves" something it spent more than a decade trying to kill is the narcissistic idea that we are obligated to love it back.

"What is even funnier than the idea that Microsoft "loves" something it spent more than a decade trying to kill is the narcissistic idea that we are obligated to love it back."At most, we are obligated to be fair, not that Microsoft has. Myself, I think if someone treats you the way that Microsoft has treated competition and customer alike for the entirety of its existence, you owe it to yourself to try to get away from them.

Now that we largely have, Microsoft has purchased a single house that at least thousands of us have stupidly decided to all live in, and decided that we should love them -- under their rules.

But all is fair in love and corporate takeover, I guess?

"Myself, I think if someone treats you the way that Microsoft has treated competition and customer alike for the entirety of its existence, you owe it to yourself to try to get away from them."Free software cannot be free and also controlled top-down by corporations. Where the FSF has screwed up fundamentally is in focusing too much on the (admittedly vital) license issues, and ignoring various other ways that monopolies can exert influence and ultimately control over the work we rely on.

It is still possible to win, but the FSF has practically left the field. Sadly, most of these projects are not fighting for us either.

"It is still possible to win, but the FSF has practically left the field."Without a viable movement, nothing will push or really so much as nudge the makers of these tools to care about the user -- or their freedom. Freedom requires eternal vigilance, and the vigilant have become either silent, or purged.

Licence: Creative Commons CC0 1.0 (public domain)

Recent Techrights' Posts

"The War on Children" Explained by The Cyber Show
Consumer protection and the war on children
In statCounter, a Lot of "Unknown" Turns Out to be GNU/Linux
GNU/Linux has more than doubled
Silent Layoffs (PIPs) Have Allegedly Accelerated Since IBM's Stock Cratered
"IBM is Managing Decline, Not Building Growth"
 
Daniel Pocock Campaigns Around "Safety of Children Online" and "Cybersecurity"
There seems to be a growing 'coalition' in the UK based around important issues which impact the entire planet
XBox the Console is Practically Finished (Unofficially), Even the Streaming ("Live") or DRM Service is Dead
XBox has never been closer to profitability
Many CEOs Are Just Glorified Scammers With Suits and Ties
Economies cannot function when few people abuse them for self-enrichment
After statCounter Figures Out Many "Unknowns" Were in Fact GNU/Linux the "Market Share" Estimate in China More Than Doubles
Japan is the same for similar reasons
peppe8o - a Site About Raspberry Pi, Arduino and Electronics - Has Turned Into a Slopfarm
We won't be linking to it anymore
Feeding 'the Children'
Maybe some time soon we'll do a fund-raiser to help feed the birds
Japan: GNU/Linux Crosses the 5% Threshold, Two Years Ago It Was Only 1%
Now it's at over 5%
We Need More Transparency
Our heads of state are very much aware of and concerned about SLAPPs and censorship
EPO Cocainegate and Current EPO/EU Series to Carry on for Months to Come
Another week has begun
When IBM "Managers Have to Mark 15% of Their Teams as Low Performers" a PIP Means Likely Layoffs (Disguised as a Performance Issue)
"IBM is a Law firm with an I/T department."
Links 27/07/2026: Chatbots Lead to Suicides, Social Control Media Intentionally Designed for Addiction
Links for the day
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Sunday, July 26, 2026
IRC logs for Sunday, July 26, 2026
Daniel Pocock in Mainstream Media Again
AFR wrote an article today. It is about Pocock and another contender.
Millions of Daily Requests
4.5+ million requests in 4 days
3,500 Active Gemini Capsules Soon
How much longer before 3,500+ active? A month?
Gemini Links 26/07/2026: European Eclipse, Writing About Writing, and Comments on Formatting Gopher Posts
Links for the day
Stigma of Being Laid Off by Microsoft
One might call this the "curse" of having worked for Microsoft
Non-Techs Using Slop Run Fedora and It's Turning Out to be a Total Disaster
RIP, Fedora?
Gemini Links 26/07/2026: Beach Day, CAs, and Plaintext
Links for the day
Sweden Needs GNU/Linux and Free Software, Not GAFAM
home of IKEA and ABBA
Being Pro-Slop is Death Knell to One's Credibility
It's not hard to see Ubuntu users resisting and antagonising this
Maintenance Today
Preparing for more mass-publication activities
Links 26/07/2026: "Zelenskyy Says Russia Wants To Bring North Korean Troops Into Ukraine", Muslim Van Ramming Attack on Berlin Pride
Links for the day
Centrica fraud exposed: worse than Palestine Action 'terrorists' with cardboard placards
Reprinted with permission from Daniel Pocock
Links 26/07/2026: "Nate Silver Discovers the Educated Poor" and "India’s “Cockroach” Protest Movement Faces State Repression"
Links for the day
The Slop Bubble is Killing the Planet, Not Just the Economy
The chatbot/LLM speculation bubble not only causes a health crisis, a mental health epidemic, and climate change; it's also crashing the economy on several levels
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Saturday, July 25, 2026
IRC logs for Saturday, July 25, 2026
IBM Hammers a CoI Into a CoCed Fedora, RIP Fedora?
Also in the "Fedora is dead" dept. today
Gemini Links 25/07/2026: Zoo, MUD, Literature, EMF Camp, and e-ID
Links for the day
European Patent Office (EPO) Series: The Solution of No Choice: A Shortlist of One
deployment of the "shortlist of one" by Campinos
Wife of Dan Williams Has Explained Mental Factors Leading to His Death
"We need to be open and honest about mental health," his wife pleads
Several New Series Coming Soon
we'll publish 8 series in tandem, in parallel
Insolvency as the New Norm in the United States' Economy
this is vastly worse than then 2008 subprime mortgage crisis
IBM's CEO Might 'Retire' or 'Step Down' by Christmas
PIP the CEO
Misleading Articles About YouTube and Google Financial Performance
The future of Google is self-serving monopolisation and destruction of the Web
Microsoft Cannot Survive the Fall of Windows
It has amassed way too much debt
Links 25/07/2026: Hong Kong Squashing Criticism/Dissent, Mirror Caught Breaking Into Voicemail
Links for the day
PIPs Are Shrinking IBM and "IBM is Managing Decline, Not Building Growth"
IBM is going down the drain
IBM is Killing the Fedora Community, Replacing It With LLM Slop From IBM Staff
Krishna buys companies only to gut them. They've all learned this from experience.
Give Me Your "Dumbest" (Devices)
Why can't people accept that a "modern "smart" "phone" isn't necessary to check the time (overkill) and playing social control media "on the go" is far from necessary?
Earlier This Year Dan Williams Prepared for Scenario Where Linus Torvalds Dies
He had only just started a job at NVIDIA
Links 25/07/2026: Data Breaches Abundant and Attribution Imperiled in the Age of Slop Hype
Links for the day
Gemini Links 25/07/2026: Poetry and Plaintext Pages
Links for the day
What is Doctor of Philosophy (Ph.D.)
In many cases, the acronym became a misnomer
IBM PIPs Continue Until Morale Improves, Silent or Quiet Firings at IBM Explained
IBM is a dying company
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Friday, July 24, 2026
IRC logs for Friday, July 24, 2026