I am wondering if something like bytevector-string-ref is missing in the API.
Or is there any other way to extract a string from a byte vector, without
copying the data twice?
Amazing! Big fan of his work on Chickadee and Catbird. Congrats!
Alex
On Sat, 17 Dec 2022, 22:13 Christine Lemmer-Webber,
wrote:
> A lovely article by David Thompson:
>
>
> https://spritely.institute/news/growing-a-networked-garden-with-spritely-goblins.html
>
> By the way, David Thompson is w
On Sun, Dec 18, 2022 at 01:12:57PM +0100, Sascha Ziemann wrote:
> I am wondering if something like bytevector-string-ref is missing in the API.
> Or is there any other way to extract a string from a byte vector, without
> copying the data twice?
Alas, it's more complicated than this. There's a who
On 18.12.2022 13:12, Sascha Ziemann wrote:
> I am wondering if something like bytevector-string-ref is missing in the API.
> Or is there any other way to extract a string from a byte vector, without
> copying the data twice?
>
I don't think Guile currently has any way of giving you a string objec
On Sun, Dec 18, 2022 at 05:25:16PM +0100, Taylan Kammer wrote:
> On 18.12.2022 13:12, Sascha Ziemann wrote:
> > I am wondering if something like bytevector-string-ref is missing in the
> > API.
> > Or is there any other way to extract a string from a byte vector, without
> > copying the data twice
The 2 copies occur if you want a portion of the bytevector to be
converted to a string. The current API requires you to copy to a
bytevector that's the length of the slice, and then convert that copy to
a string.
I've sent patches to guile-devel to address this issue (by extending
utf{8,16,32}->st
Hello Guilers,
I'm pleased to announce Guile-PNG 0.3.0, Portable Network Graphics
(PNG)[1] library for GNU Guile, implemented in pure scheme:
https://github.com/artyom-poptsov/guile-png/releases/tag/v0.3.0
This version adds ability to draw polygons and filled rectangles, as
well as fixes line d
On 12/18/22 4:12 AM, Sascha Ziemann wrote:
I am wondering if something like bytevector-string-ref is missing in the API.
Or is there any other way to extract a string from a byte vector, without
copying the data twice?
I sympathize with the struggle here. I wonder if rlb is aware.
I believe
Maybe having a bytevector-slice-ref with shared memory would be more flexible.
The partial usage of a bytevector as a string is just one use case.
There may be others.
On Sun, Dec 18, 2022 at 11:45:49PM +0100, Sascha Ziemann wrote:
> Maybe having a bytevector-slice-ref with shared memory would be more flexible.
> The partial usage of a bytevector as a string is just one use case.
> There may be others.
Is that related to "shared arrays"? This seems to be even mo
"Artyom V. Poptsov" writes:
> I'm pleased to announce Guile-PNG 0.3.0, Portable Network Graphics
> (PNG)[1] library for GNU Guile, implemented in pure scheme:
> https://github.com/artyom-poptsov/guile-png/releases/tag/v0.3.0
>
> This version adds ability to draw polygons and filled rectangles,
11 matches
Mail list logo