~sircmpwn

Amsterdam

https://drewdevault.com

I write code.

~sircmpwn/hare-dev

Last active an hour ago

~sircmpwn/sr.ht-discuss

Last active an hour ago

~sircmpwn/sr.ht-ops

Last active 2 hours ago

~sircmpwn/email-test-drive

Last active 7 hours ago

~sircmpwn/sr.ht-image-failures

Last active 13 hours ago

~sircmpwn/sr.ht-dev

Last active 17 hours ago

~sircmpwn/alpine-aports

Last active 21 hours ago

~sircmpwn/hare-users

Last active a day ago

~sircmpwn/public-inbox

Last active 2 days ago

~sircmpwn/hare-rfc

Last active 3 days ago
View more

Recent activity

Re: [PATCH sr.ht-apkbuilds] soju: upgrade 22 hours ago

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

Thanks!

To git@git.sr.ht:~sircmpwn/sr.ht-apkbuilds
   0c0dc9c..b87072f  master -> master

Re: How to make slice from string? a day ago

From Drew DeVault to ~sircmpwn/hare-users

This is deliberately not possible because, due to the nature of Unicode,
byte-wise slicing of a string is usually the wrong thing to do in almost
every language but English. You can use strings::sub, but note that
this is also going to fall short of what's necessary for a completely
correct approach to Unicode.

Re: strings::toutf8 allow to write more then allocated 5 days ago

From Drew DeVault to ~sircmpwn/hare-users

Generally if you want to get directly at the data and capacity of the
slice you're doing something wrong; you're side-stepping the normal
modes of operation for Hare and you probably want to do something else
(which is to say, please ask your real question[0]).

[0]: https://xyproblem.info/

That said, you can cast any pointer to a slice to types::slice to get at
the innards if you really want to do that. But you probably don't want
to do that.

[PATCH hare] unix::signal: add sigwait(2) family of functions 5 days ago

From Drew DeVault to ~sircmpwn/hare-dev

Signed-off-by: Drew DeVault <sir@cmpwn.com>
---
(probably) depends on my earlier unix::signal patch

 rt/+freebsd/signal.ha      | 26 ++++++++++++
 rt/+linux/signal.ha        | 23 +++++++++++
 rt/+openbsd/signal.ha      | 15 +++++++
 time/+freebsd/functions.ha |  7 ++++
 time/+linux/functions.ha   |  7 ++++
 time/+openbsd/functions.ha |  7 ++++
 unix/signal/+freebsd.ha    | 85 ++++++++++++++++++++++++++++++++++++++
 unix/signal/+linux.ha      | 76 ++++++++++++++++++++++++++++++++++
 unix/signal/+openbsd.ha    | 19 +++++++++
 9 files changed, 265 insertions(+)
[message trimmed]

[PATCH hare v3] unix, rt: add alarm(2) support 5 days ago

From Drew DeVault to ~sircmpwn/hare-dev

Signed-off-by: Drew DeVault <sir@cmpwn.com>
---
v3 is applied on top of my earlier unix:: patch.

 rt/+freebsd/signal.ha   | 38 +++++++++++++++++++++++++++++
 rt/+linux/+x86_64.ha    |  4 ----
 rt/+linux/signal.ha     | 31 ++++++++++++++++++++++++
 rt/+openbsd/signal.ha   | 53 +++++++++++++++++++++++++++++++++++++++++
 rt/+openbsd/syscalls.ha |  2 --
 unix/signal/+freebsd.ha |  7 ++++++
 unix/signal/+linux.ha   |  7 ++++++
 unix/signal/+openbsd.ha |  7 ++++++
 8 files changed, 143 insertions(+), 6 deletions(-)
[message trimmed]

[PATCH hare v2] unix, rt: add alarm(2) support 5 days ago

From Drew DeVault to ~sircmpwn/hare-dev

Signed-off-by: Drew DeVault <sir@cmpwn.com>
---
v2 just adds the subject prefix so builds.sr.ht picks it up

 rt/+freebsd/signal.ha   | 38 +++++++++++++++++++++++++++++
 rt/+linux/+x86_64.ha    |  4 ----
 rt/+linux/signal.ha     | 31 ++++++++++++++++++++++++
 rt/+openbsd/signal.ha   | 53 +++++++++++++++++++++++++++++++++++++++++
 rt/+openbsd/syscalls.ha |  2 --
 unix/signal/+freebsd.ha |  7 ++++++
 unix/signal/+linux.ha   |  7 ++++++
 unix/signal/+openbsd.ha |  7 ++++++
 8 files changed, 143 insertions(+), 6 deletions(-)
[message trimmed]

[PATCH] unix, rt: add alarm(2) support 5 days ago

From Drew DeVault to ~sircmpwn/hare-dev

Signed-off-by: Drew DeVault <sir@cmpwn.com>
---
 rt/+freebsd/signal.ha   | 38 +++++++++++++++++++++++++++++
 rt/+linux/+x86_64.ha    |  4 ----
 rt/+linux/signal.ha     | 31 ++++++++++++++++++++++++
 rt/+openbsd/signal.ha   | 53 +++++++++++++++++++++++++++++++++++++++++
 rt/+openbsd/syscalls.ha |  2 --
 unix/signal/+freebsd.ha |  7 ++++++
 unix/signal/+linux.ha   |  7 ++++++
 unix/signal/+openbsd.ha |  7 ++++++
 8 files changed, 143 insertions(+), 6 deletions(-)

diff --git a/rt/+freebsd/signal.ha b/rt/+freebsd/signal.ha
index f8078fcc..e4bbe8fc 100644
[message trimmed]