Skip to content

u/sprash

In this archive from May 2012 to Aug 2017

5
posts
189
comments
5
media
566
score

Monolithic kernels do not violate the unix philosophy since they are still modular. Microkernels have the advantage that crashing drivers are less likely to bring down the whole system, but on the other hand introduce much more complexity and redundancy. One could argue that monolithic kernels are more of a KISS approach.

2 points

And nobody said that this is a good thing. I would instantly switch to plan 9 which is the ultimate implementation of the so called "unix philosophy". All it needs is more software and better driver support.

Linux won because of random coincidences and popularity. If Linus Torvalds came up with his stuff just one or two years later everybody would use NetBSD now.

1 points

Because the rc style scripts and the simple central plain text file configuration philosophy was what made me switch to arch in the first place.

Now the only reason left to use arch is may be AUR. Everything else is inferior to more integrated and popular distributions.

0 points

Turns out that the multipass blur kernel feature in compton has much better performance. I'm using this configuration:

blur-kern = "15,1,0.25,0.5,0.75,1,1,1,1,1,1,1,1,0.75,0.5,0.25;1,15,0.25,0.5,0.75,1,1,1,1,1,1,1,1,0.75,0.5,0.25";
1 points

For some reason compton blur is really slow, especially for large convolution kernels. The compromise for me is using 7x7box blur. Every shader from shadertoy runs faster than that, so there clearly seems to be something wrong with the compton implementation.

Besides that, there are much more efficient methods implementing blur in openGL e.g. utilizing mipmaps. Convolution kernels are just the most generic thing you can do. Maybe it's time for a fork.

2 points

I also hate that bash is bloated as F*. But if you actually want to get shit done there is no alternative. And everybody on the planet (soon even Windows users) has it installed.

The only alternative would be to write a minimalistic full bash compatible clone, with less memory bloat and more speed. Good luck with that.

2 points

The lack of scrolling

There is a patch for that. Now even context aware.

I couldn't get it to display Unicode

Hm, that is rather odd. When i do

curl "https://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt"

it renders flawlessly. Do you use the standard config.h? And if so is the appropriate font "Liberation Mono" installed?

2 points

For that I would recommend the VT220 or VT320 with amber tube and a 3rd party keyboard. Also most WYSE models are great too because of their great compatibility and great keyboards. If you can live with the lack of international ANSI characters and the lack of many advanced control codes the ADM3A is for you, because nobody can beat that superior design.

8 points

This can only be complete if you start this script on every shell session:

#!/bin/sh

A=0;
F="0.1"

while true
do
    [ $A == 628318 ] && A=0 || A=$((A + 1))
    R=$(echo "s ($F*$A + 0)*127 + 128" | bc -l | cut -d'.' -f1)
    B=$(echo "s ($F*$A + 2)*127 + 128" | bc -l | cut -d'.' -f1)
    G=$(echo "s ($F*$A + 4)*127 + 128" | bc -l | cut -d'.' -f1)
    printf "\033]10;#%02x%02x%02x\007" $R $B $G
    sleep 0.01
done
3 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.