~sircmpwn

Amsterdam

https://drewdevault.com

I write code.

For sourcehut support, see the wiki.

~sircmpwn/sr.ht-discuss

Last active an hour ago

~sircmpwn/sr.ht-ops

Last active 10 hours ago

~sircmpwn/email-test-drive

Last active 21 hours ago

~sircmpwn/hare-users

Last active a day ago

~sircmpwn/alpine-devel

Last active a day ago

~sircmpwn/hare-dev

Last active a day ago

~sircmpwn/godocs.io

Last active a day ago

~sircmpwn/sr.ht-dev

Last active a day ago

~sircmpwn/public-inbox

Last active a day ago

~sircmpwn/alpine-aports

Last active 3 days ago
View more

Recent activity

Re: What's an idiomatic way for recursion? a day ago

From Drew DeVault to ~sircmpwn/hare-users

On Tue Nov 29, 2022 at 7:28 PM CET, Person wrote:
> Without worrying too much about why I'm doing it, I was trying to do 
> something recursive like this:
>
> export fn main() void = {
>          let tail = io::drain(os::stdin) as []u8;
>          defer free(tail);
>
>          while (len(tail) > 0) {
>                  let (hd, tail) = bytes::cut(tail, ' ');
>                  io::write(os::stdout, hd)!;
>          };
> };
>

Re: Tuples a day ago

From Drew DeVault to ~sircmpwn/hare-users

On Tue Nov 29, 2022 at 4:42 PM CET, Person wrote:
> I noticed that I can't write something like:
>
>      let (hd, tail) = bytes::cut(contents, delim);

This should work, assuming your toolchain is up to date.

> so I have to write something like
>
>      let tup = bytes::cut(contents, delim);
>
> My question is: how do I access the parts of the tuple?

tup.0, tup.1, etc

Re: [PATCH meta.sr.ht] schema.sql: Add missing table a day ago

From Drew DeVault to ~sircmpwn/sr.ht-dev

Thanks!

To git@git.sr.ht:~sircmpwn/meta.sr.ht
   0458b5d..b088949  master -> master

Re: IPv6 support on sr.ht 2 days ago

From Drew DeVault to ~sircmpwn/sr.ht-discuss

No update. We're still planning it as part of our larger EU rollout.

Re: [PATCH builds.sr.ht] api: pass job owner to StartJobGroupUnsafe() 3 days ago

From Drew DeVault to ~sircmpwn/sr.ht-dev

Thanks!

To git@git.sr.ht:~sircmpwn/builds.sr.ht
   eaf435b..292dc73  master -> master

Re: Hare on Arduino or similar microcontroller? 3 days ago

From Drew DeVault to ~sircmpwn/hare-users

You'd want to start with an arm32 port for qbe. Not going to be terribly
difficult but not trivial.

Re: Alpine RISC-V port 4 days ago

From Drew DeVault to ~sircmpwn/public-inbox

RISC-V support has landed in Alpine upstream.

Re: [PATCH builds.sr.ht] Update core-go and pq (Postgres driver) 5 days ago

From Drew DeVault to ~sircmpwn/sr.ht-dev

Thanks!

To git@git.sr.ht:~sircmpwn/builds.sr.ht
   5b4a40f..eaf435b  master -> master

Re: [PATCH core-go] Update pq (Postgres driver) to latest version 5 days ago

From Drew DeVault to ~sircmpwn/sr.ht-dev

Thanks!

To git@git.sr.ht:~sircmpwn/core-go
   3e69641..b1540a2  master -> master

Re: Derivative work: code.pfad.fr/vanitydoc 5 days ago

From Drew DeVault to ~sircmpwn/godocs.io

Yep, that's more-or-less correct.