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

Good Thing When Home Appliances Are Ancient Antiques
dealing with the alarm has cost only time
The Bloating of the Web Contributes to Global Warming and Causes Burnout (Slowdown, Hardware Erosion, Waste)
This problem isn't limited to weather sites or subsites
Why It's Ludicrous to Call Us "Microsoft Haters"
Even if clustered together, news items still cover a broad spectrum (or spectra) of issues
The Old Ways of Computing Were Objectively Better
Not as fast, but certainly much better
 
Gemini Links 26/05/2026: A Year of Composting, Fedora Bricks Itself and Infuriates Users With Slop and Wayland (Not What Users Want, What IBM Wants), Crawlers on Geminispace a Nuisance
Links for the day
Links 26/05/2026: "Making the Digital Physical"; "The Medical System Abandons Women When They Are Most Vulnerable"
Links for the day
While US Government Greenlights (or Bluelights) Bailouts for IBM Some Foreign Governments Blacklist It
"Albany leadership doesn’t know what they are doing but are damn good at pretending they do."
IBM Bailouts and the IBM People Inside the Administration
It seems possible/plausible that it is bailout money down the drain or that this money will never arrive at all
Links 26/05/2026: Lithium Batteries Causing Fires (Even on Planes), 'Timmy' the Whale Dies
Links for the day
Pursuing Facts in an Age of Lies and 'Hallucinations' (Falsehoods Without Anyone Accountable, They Try Calling Computer-Generated Lies or Forgeries "Intelligence").
Our aim is to relay information while bypassing gossip networks like social control media and slop in "search" clothing
Computer-Generated Legal Filings Get You Reported to the Solicitors Regulation Authority (SRA)
We'll write a lot more about this in the future
EPO "Cocaine Communication Manager" - Part XII - In the Second-Largest Institution in Europe One Can Take Paid 'Sick Leave' for Doing Cocaine, Then Come Back
Cocaine addicts in the management were bullying colleagues. They're still in charge.
Sites in Their Twenties
We currently run concurrently a handful of series and have a lot more in the backlog
SLAPP Censorship - Part 88 Out of 200: Brett Wilson LLP is Defaming Trans People in America Because Garrett Pays Hired Guns to Silence Them
Garrett is scoring many own goals this year
Sloppy "Resource Action," (RA) or IBM Layoff, Leads to Another IBM Lawsuit, Alleging IBM Tries to Pass Liability to Algorithms
IBM is meanwhile resorting to slop to gaslight its remaining shareholders
The Latest IBM Layoff Rumours
What has happened to the company that invented so much of modern computing?
Holy See Recognises the Threat of GAFAM and Slop
Will the Holy See move away from GAFAM?
Social Control Media is a Giant Waste of Time (and There Are No Future Remedies for This)
Social Control Media is considered unhealthy to young people, but it is also collectively unhealthy to nations and nation-building
Codecs and Software Patents - Part X - Florian Müller Still Muddying the Waters for FOSS, Using Software Patents
Some things never change...
Gemini Links 26/05/2026: Slop Bug Reports and Crawlers Considered Evil
Links for the day
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Monday, May 25, 2026
IRC logs for Monday, May 25, 2026
Slop Causes Global Warming
in some parts of the world people die from overheat (heat strokes) as temperatures reach almost 50 degrees as early as May in the northern hemisphere
Vatican Speaks Out Against Slop, Promoting Instead "Truth, Dignity of Work, Social Justice, and Peace."
Religion (no matter which) does not oppose machines, but LLMs aren't useful machines
SLAPP Censorship - Part 87 Out of 200: Access to Justice
this part will be short
A Promise IBM/Red Hat Could Not Keep
"all about control, not so much optics."
Links 25/05/2026: Russia Lobbing Oreshnik Ballistic Missile Again, Slop Comes Under More Fire
Links for the day
Gemini Links 25/05/2026: Injury in Gym and Abusive LLMs DDoSing Software Developers While Misusing Their Code
Links for the day
A 'Bank Holiday' When National Debt Doubles in a Decade
Maybe it's time to rename "Bank Holidays"
Links 25/05/2026: Lingering Environmental Concerns and Domain Registrars Targeted for Unmasking
Links for the day
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Sunday, May 24, 2026
IRC logs for Sunday, May 24, 2026
Gemini Links 24/05/2026: Impressions of Auckland, the Age of Left or Right Extremism, and .zim files
Links for the day
Microsoft's 'Hiring Freeze' (Layoffs) and Salary Freeze (While Inflation Approaches Double-Digit Rates)
If they get replaced by anyone, it'll be low-paid folks in low-salary regions [...] workers' stress levels shoot up, compensation goes down
Slop Will Not End Humanity, The Pushers of It Do (Artificial Scarcities and Global Warming)
Causing hunger and poverty in the name of "computation"
How Can the 'Broligarchs' Love Us When They Don't Even Love Themselves?
Their SLAPPs have their limits
Death at IBM Due to Overwork
Dying for IBM is never worth it
We Publish Less, We Get More Exposure
UbuntuPit is coming to realise that quantity isn't what comes to matter or truly "count", especially when quantity comes at expense of authenticity
Codecs and Software Patents - Part IX - GNU Project Has Chosen to Adopt AV1 for Its Videos, Conversion and Additions Underway
One of our readers is working to help GNU through the maze of software patents and maze of patent lawsuits, which aren't the same thing but are somewhat overlapping issues
SLAPP Censorship - Part 86 Out of 200: The Position of Courts on Computer-Generated Lawsuits and Filings From Another Continent (Made by Two Men Who Work for Slop Companies)
Lawsuits by proxy from California
Links 24/05/2026: SoftBank CEO Getting Conned by Scam Altman, Hotter 2026 and El Nino With Growing Impact
Links for the day
Links 24/05/2026: Ebola Outbreak and "Journalists Identify Murder Victims Of Trump’s Boat Strike Program"
Links for the day
IAM Magazine is in Effect Dead, It's Now Fused Into Microsoft's Patent Troll (Which It Has Promoted All Along)
Microsoft-connected patent trolls in Europe [...] Now, in his new job, Wild can use his 'expertise' to help guide blackmail/extortion to better harm Europe's industry
A Huge Proportion of 'Articles' in The Register MS Are Actually Paid Spam of the Communist Party of China, Selling Compromised (for Wiretapping) Technology
The Register MS is having a go at becoming a marketing company or "B2B"
Top Officials Have Just Left Microsoft, Layoffs in Anything But Name
Microsoft's debt is very fast-growing
Local Staff Committee The Hague (LSCTH) Meets "Alicante Mafia" at the European Patent Office (EPO)
Report on meeting with VP1 and his team on 21 April 2026
UbuntuPit (ubuntupit.com) Has Deleted Slop Pages, Its Slopfarm Experiment Has Failed (Like Always!)
Turning one's site into a slopfarm is a death knell
Over at Tux Machines...
GNU/Linux news for the past day
IRC Proceedings: Saturday, May 23, 2026
IRC logs for Saturday, May 23, 2026