Amsterdam
I write code.
From Drew DeVault to ~sircmpwn/sr.ht-dev
Thanks! To git@git.sr.ht:~sircmpwn/sr.ht-apkbuilds 0c0dc9c..b87072f master -> master
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.
From Drew DeVault to ~sircmpwn/hare-dev
Pushed
From Drew DeVault to ~sircmpwn/hare-dev
Pushed
From Drew DeVault to ~sircmpwn/hare-users
*why*
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.
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]
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]
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]
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]