Feed digilinux.ru [copy] http://digilinux.ru/feed/ has loading error: cURL error 22: The requested URL returned error: 403 Forbidden
Feed freepost [copy] https://freepo.st/rss/new has loading error: cURL error 6: Could not resolve host: freepo.st
Nvidia sucks and I'm sick of it
There’s something I need to make clear about Nvidia. Sway 1.0, which is the release after next, is not going to support the Nvidia proprietary driver, EGLStreams, or any other proprietary graphics APIs. The only supported driver for Nvidia cards will be the open source nouveau driver. I will explain why.
Today, Sway is able to run on the Nvidia proprietary driver. This is not and has never been an officially supported feature - we’ve added a few things to try and make it easier but my stance has always been that Nvidia users are on their own for support. In fact, Nvidia support was added to...
The future of Wayland, and sway's role in it
Today I’ve released sway 0.15-rc1, the first release candidate for the final 0.x release of sway. That’s right - after sway 0.15 will be sway 1.0. After today, no new features are being added to sway until we complete the migration to our new plumbing library, wlroots. This has been a long time coming, and I would love to introduce you to wlroots and tell you what to expect from sway 1.0.
Sway is a tiling Wayland compositor, if you didn’t know.
Before you can understand what wlroots is, you have to understand its predecessor: wlc. The role of wlc is to manage a number of low-level plumbing components of a Wayland...
Analyzing HN moderation & censorship
Hacker News is a popular “hacker” news board. One thing I love about HN is that the moderation generally does an excellent job. The site is free of spam and the conversations are usually respectful and meaningful (if pessimistic at times). However, there is always room for improvement, and moderation on Hacker News is no exception.
Notice: on 2017-10-19 this article was updated to incorporate feedback the Hacker News moderators sent to me to clarify some of the points herein. You may view a diff of these changes here.
For some time now, I’ve been scraping the HN API and website to learn how the moderators work, and to gather some...
Killing ants with nuclear weapons
Complexity is quickly becoming an epidemic. In this developer’s opinion, complexity is the ultimate enemy - the final boss - of good software design. Complicated software generally has complicated bugs. Simple software generally has simple bugs. It’s as easy as that.
It’s for this reason that I strongly dislike many of the tools and architectures that have been proliferating over the past few years, particularly in web development. When I look at a tool like Gulp, I wonder if its success is largely attributable to people not bothering to learn how Makefiles work. Tools like Docker make me wonder if they’re an excuse to avoid learning how to...
Game Engine Black Book Postmortem
I am pleased to announce that the Game Engine Black Book about Wolfenstein 3D has shipped. It is 316 pages, full color and made of three parts describing the hardware of the 1991, id Software tools, and the game engine internals. You can read a preview on Google Books and buy it here:
Amazon.com (.fr, .de, .co.uk, .ca,...).
Google Play Books for web browsers, Android devices, and iOS devices.
It took me three years to complete this project. It had its fair share of heavy winds and bumpy roads. I thought it could benefit some writers in the making to give...
2017-08-30
suckless.org now supports TLS using Let's Encrypt. Cloning git repos over HTTPS now works. Some links on the page have been changed to allow both HTTP and HTTPS.
HSTS is not fully working yet. This will be fixed.
The IPv6 AAAA record was added and IPv6 is fully working now.
suckless has many subdomains, these should hopefully all work via TLS. If you see a subdomain without a signed certificate please report it. If you find any broken links on the wiki pages, these can be fixed by anyone.
FizzleFade
I enjoy reading a lot of source code and after 15 years in the field I feel like I have seen my fair share. Even with a full-time job, I still try to spare evenings here and there to read. I don't see myself every stopping. It is always an opportunity to learn new things to follow somebody's mind process.
Every once in a while I come across a solution to a problem that is so elegant, and so creative that there is no other word but "beautiful" to describe it. Q_rsqrt, better knows as "Inverse Square Root" and popularized...
When not to use a regex
The other day, I saw Learn regex the easy way. This is a great resource, but I felt the need to pen a post explaining that regexes are usually not the right approach.
Let’s do a little exercise. I googled “URL regex” and here’s the first Stack Overflow result:
https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)
source
This is a bad regex. Here are some valid URLs that this regex fails to match:
http://x.org http://nic.science http://名がドメイン.com (warning: this is a parked domain) http://example.org/url,with,commas https://en.wikipedia.org/wiki/Harry_Potter_(film_series) http://127.0.0.1 http://[::1] (ipv6 loopback)Here are some invalid URLs the regex is fine with:
http://exam..ple.org http://--example.orgThis answer has been revised 9 times on Stack Overflow, and this is the best they could come up with. Go back and read the...