why's it taken me this long to write a cleanup function in my ~/.profile to kill the ssh-agent, gpg-agent daemons etc

_cleanup() {
eval "$(ssh-agent -k)"
gpgconf --kill all
}
trap _cleanup EXIT

now everything is smooth and clean

phoebos boosted

All my code is perfect and never has conditions in it! race

Spent the night setting up a static wiki for the KISS community.

kisscommunity.bvnf.space/

uxn opcode frequencies, updated 

while read -r op; printf "%s " "$op"; find uxn uxn11 left drifblim -name \*.tal -exec cat {} + | tr ' ' '\n' | grep -c "$op"; end < opcode_list | sort -rnk2

Show thread

uxn opcode frequencies, updated 

JSR 1757
DEO 1557
JMP 1172
JCN 1116
STH 1032
LDZ 1010
DUP 895
POP 875
ADD 846
LDA 711
INC 670
SFT 558
SUB 521
STZ 503
DEI 486
SWP 448
GTH 349
NEQ 322
STA 321
EQU 317
LIT 305
BRK 250
NIP 248
ROT 230
OVR 226
AND 224
MUL 177
LTH 175
STR 171
LDR 108
DIV 104
ORA 85
EOR 66

Code from drifblim pushed JSR above DEO.

Show thread

how do people do anything other than text manipulation/some maths in ? unless everyone uses forth directly on bare metal, how do you eg. perform a syscall? is there an interface like `protocol type domain __NR_socket SYSCALL` or something? or if I want to do TCP/IP I have to implement it myself?

phoebos boosted
"Made some great progress on my todo list today:

❌ do laundry
❌ wash dishes
✅ implement ChaCha20-Poly1305 in Scratch
❌ eat food"
phoebos boosted

Starting selection, gosh, I love doing gui apps in postfix programming languages.

Show thread

I wrote a crap HTTP file server.

tmp.bvnf.space/bhttp.c

That was fun, and I can serve my website from it and Firefox displays everything as expected. Hot tip: don't bother working out Content-Type, the browser can do a good enough job.

phoebos boosted

#forth is my classic example of a bounded programming language, by the way. The behavior of #forth devotees makes this clear. There is not a large body of material written about the language. There is not a large body of source code to study. But the language is not dead. Anyone who is interested in the language and has an itch to do more with it is drawn... dare I say cursed?... to implement it, reimplement it, and tinker at length. Because there is just no other way to get deeper into it, other than making your own path. More than any other language, it is a folk language that has been reimplemented hundreds of times to satisfy some kind of deep primal curiosity.

Despite this independence, most of these Forths and Forthlikes have strong structural similarities and force similar programming patterns on their user. A whole lot of behavior inevitably falls out of a short set of rules. That's the cool bit.

Show thread

> unix::poll provides an interface for polling activity on file descriptors, compatible with the behavior defined by POSIX.

I wonder why they consider being compatible with POSIX. It's familiar, sure, but it seems a bit random


docs.harelang.org/unix/poll

Show thread

and i guess having a string type is good.
(*doubt* in C)

Show thread

docs.harelang.org/linux/timerf
oh this is cool. the non-portable syscall is available but it's very clearly non-portable, from the namespace

Show thread

it's nice to see a well-featured stdlib. having crypto stuff in stdlib is cool, although I expect that anyone who wants something really secure will use an audited library

Show thread

looks really nice, (especially since it can be installed now!) but I don't feel like I have the energy to learn it right now. C works just fine, and I enjoy playing with and tripping up over the subtleties of C.

I say trilogy, but there was a fourth extra book written in about 2019 I think, a short one.

Show thread

Did anyone read the Eragon trilogy? Yes they did, I had a couple of friends who did. That was quite a few years ago now, I wonder if I'd still enjoy it as much (I've read it probably about 5 times through since).

phoebos boosted

A law requiring restaurants to put calorie information on menus has recently come into effect in the UK. This method doesn't really work to combat obesity, but it causes severe anxiety, stress, and often panic attacks for the nearly 2 million people with diagnosed eating disorders, and also others with obsessions. Calories are not an effective measure of the health value of food.
If you're a UK citizen, please consider signing this petition.
petition.parliament.uk/petitio

Show older
Fosstodon

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.