~ft

Stockholm, Sweden

https://ftrv.se/_about

Sigrid.

~ft/public-inbox

View more

Recent activity

Re: StreetLISP: number base conversion a month ago

From Sigrid Solveig Haflínudóttir to ~ft/public-inbox

Hello! You can call num->str with an optional third argument which is the base:

#;> (num->str 65000 16)
"fde8"

Types ptr, p32 and p64 are always displayed in hex, so you can also just use those and princ them.

On May 9, 2025 12:00:53 PM GMT+02:00, mag-one <mag-one@autistici.org> wrote:
>hi, 
>just another little question:
>Is there a way to convert a base 10 number into another base? 
>
>thanks,
>mag

Re: streetlisp: bug in lists? a month ago

From Sigrid Solveig Haflínudóttir to ~ft/public-inbox

Should be fixed. Thanks for the bug report!

Re: streetlisp: null? 2 months ago

From Sigrid Solveig Haflínudóttir to ~ft/public-inbox

Sorry, meant "return `F` in this case".

Re: streetlisp: null? 2 months ago

From Sigrid Solveig Haflínudóttir to ~ft/public-inbox

`null?` has been removed since the transition from `#t`/`#f` to `T`
and `NIL`.  It's now enough to use just `(not x)` instead of `(null?
x)`.  Anything but `NIL` will return `T` in this case.

Re: [PATCH] Declare snprintf to fix builds on macOS 2 years ago

From Sigrid Solveig Haflínudóttir to ~rabbits/public-inbox

It'd also work, but only because snprintf is not a define. Imo, this is just wrong way to fix this.

Re: [PATCH femtolisp] startup script in interactive sessions 2 years ago

From Sigrid Solveig Haflínudóttir to ~ft/public-inbox

(retrying replying again after SPF failure)

Very nice, thanks! Merged & bootstrapped to get it built in.

Re: [PATCH femtolisp] startup script in interactive sessions 2 years ago

From Sigrid Solveig Haflínudóttir to ~ft/public-inbox

Very nice, thanks!

h.264 within treason 4 years ago

From Sigrid Solveig Haflínudóttir to ~ft/public-inbox

Just testing this mailing list.  Treason now supports all kinds of
H.264, not just baseline.  That means any youtube video should be
playable.  Same goes to peertube and your local anime collection
(*coughs* needs subtitles rendering).

[pacman-dev] [PATCH 2/2] remove dead assignment, spotted by clang 15 years ago

From Serge Ziryukin to ~eschwartz/foo-test

Signed-off-by: Serge Ziryukin <ftrvxmtrx@gmail.com>
---
 src/pacman/util.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/pacman/util.c b/src/pacman/util.c
index 5099237..c37c8b0 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -648,7 +648,6 @@ void print_packages(const alpm_list_t *packages)
			string = strreplace(temp, "%s", size);
			free(size);
			free(temp);
			temp = string;
[message trimmed]

[pacman-dev] [PATCH 1/2] check for valid optarg before using strdup 15 years ago

From Serge Ziryukin to ~eschwartz/foo-test

Signed-off-by: Serge Ziryukin <ftrvxmtrx@gmail.com>
---
 src/pacman/pacman.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index d32d4d1..206cdcf 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -489,6 +489,7 @@ static int parseargs(int argc, char *argv[])
				setarch(optarg);
				break;
			case OP_PRINTFORMAT:
				check_optarg();
[message trimmed]