Skip to content

Instantly share code, notes, and snippets.

View sergv's full-sized avatar

Sergey Vinokurov sergv

View GitHub Profile
@probonopd
probonopd / Wayland.md
Last active May 13, 2025 23:44
Think twice about Wayland. It breaks everything!

Think twice before abandoning Xorg. Wayland breaks everything!

Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better off avoiding Wayland.

Wayland solves no issues I have but breaks almost everything I need. Even the most basic, most simple things (like xkill) - in this case with no obvious replacement. And usually it stays broken, because the Wayland folks mostly seem to care about Automotive, Gnome, maybe KDE - and alienating everyone else (e.g., people using just an X11 window manager or something like GNUstep) in the process.


As 2024 is winding down:

@dpritchett
dpritchett / naur.md
Last active April 6, 2025 04:44
Programming as Theory Building

Programming as Theory Building

Peter Naur, 1985

(copied from http://alistair.cockburn.us/ASD+book+extract%3A+%22Naur,+Ehn,+Musashi%22)

Introduction

The present discussion is a contribution to the understanding of what programming is. It suggests that programming properly should be regarded as an activity by which the programmers form or achieve a certain kind of insight, a theory, of the matters at hand. This suggestion is in contrast to what appears to be a more common notion, that programming should be regarded as a production of a program and certain other texts.

@rblaze
rblaze / mersenne32.hs
Created August 1, 2011 15:40
32-bit Mersenne Twister in Haskell
import Data.Bits
import Data.Word
import System.Random
mtN = 624
mtM = 397
data MersenneTwister = MersenneTwister [Word32] Int
deriving Show