Show newer

vim: "Google, how do I quit?"
neovim: "Google, how do I escape :terminal mode?"

I am now the third fastest person to report a time for Celestial Resort, side B.
Third fastest can also be written as "slowest".
Wow did that take ages to finally beat without dying.

speedrun.com/Celeste/Celestial

Have you ever wanted AGPL compliance in just one rust macro?

Introducing the "include_repo!" macro, to easily let you compile all your source code into your binary, ready to be served to your users.

github.com/euank/include-repo

Euan boosted

Hey everyone, I'm Sam. I'm friends with @ek, @iliana@cybre.space, @noahm@chaos.social, and probably others that I don't yet know in the fediverse. I work on Linux containers for a living.

For anyone curious about the details, it's basically "ipv6" github.com/moby/moby/issues/33

In go's defence, the behaviour was fixed in go1.9, so it probably can't panic anymore (whoops, didn't realize that until I looked it up now) github.com/golang/go/issues/18

@iliana@cybre.space For bonus points, did you know that the `Addr` may not actually be what it's listening on?

That is to say, the following code can panic in some cases:

conn, err := net.Listen("tcp", ":8080")
if err != nil {
log.Fatal("couldn't listen")
}
_, err = net.Dial("tcp", conn.Addr().String())
if err != nil {
panic("this does happen in some cases")
}

software 

Original commit that added it doesn't totally answer why it exists, but I guess it's the best I'll get for now. It was a lot shorter back then too!

github.com/clvv/fasd/commit/27

Show thread

software 

@cosine@anticapitalist.party It is amazing and I developed muscle memory for using it...

And then the code scared me too much so I rewrote it in rust, so I use pazi these days (github.com/euank/pazi).

I'm looking into the best way to bring fasd's file-path-tracking stuff into pazi too is why I'm reading this code

software 

As far as I can tell, it works!

echo '..' | sed ..... => /home

echo 'foo/../foo' | sed ... => /home/esk/foo

But also why does this exist

Show thread

software 

the best and worst implementation of realpath I've seen:

sed '/^[^/]/s@^@'"$PWD"'/@
s@/\.\.$@/../@;s@/\(\./\)\{1,\}@/@g;:0
s@[^/][^/]*//*\.\./@/@;t 0
s@^/*\.\./@/@;s@//*@/@g;s@/\.\{0,1\}$@@;s@^$@/@'

from github.com/clvv/fasd/blob/90b5

Euan boosted

I'm happy to announce the release of pazi 0.1.0! If you spend lots of time in your shell, pazi might help you get around!

github.com/euank/pazi/releases

err != nil 

@iliana@cybre.space But I'm here to talk about Go

I'm at Rustconf tomorrow (and Portland for half a day today and Saturday)!

If anyone wants to meet up, let me know

Euan boosted
Euan boosted

conspiracy theory:
firefox has services called “firefox sync” and “firefox send”
rust has traits called Sync and Send
firefox and rust are both mozilla projects

:throunking:

Euan boosted
Show older
Wobscale Social

wobscale.social - a server for friends of the Wob, affiliated with Wobscale Technologies