Re: Request to add *-resize! functions for contiguous mutable data structures.

2021-08-07 Thread tomas
On Sat, Aug 07, 2021 at 12:31:09PM +0200, Taylan Kammer wrote: > On 06.08.2021 16:33, Vijay Marupudi wrote: > > Hello! > > > > I was curious if Guile would be willing to provide a series of > > new procedures for resizing contiguous memory regions. [...] > Sounds like a good idea to me. I didn'

Re: Request to add *-resize! functions for contiguous mutable data structures.

2021-08-07 Thread Taylan Kammer
On 07.08.2021 13:09, Maxime Devos wrote: > > A problem is that this prevents optimisations and can currently > introduce bugs in concurrent code. Consider the following code: > > [... snip ... ] > > Greetings, > Maxime. > Couldn't we just state that resizing a vector/bytevector is a thread-u

Re: Request to add *-resize! functions for contiguous mutable data structures.

2021-08-07 Thread Maxime Devos
Vijay Marupudi schreef op vr 06-08-2021 om 09:33 [-0500]: > Hello! > > I was curious if Guile would be willing to provide a series of > new procedures for resizing contiguous memory regions. > > (bytevector-resize! new-size [fill]) > (vector-resize! new-size [fill]) > > The [fill] parameter co

Re: Request to add *-resize! functions for contiguous mutable data structures.

2021-08-07 Thread Taylan Kammer
On 06.08.2021 16:33, Vijay Marupudi wrote: > Hello! > > I was curious if Guile would be willing to provide a series of > new procedures for resizing contiguous memory regions. > > (bytevector-resize! new-size [fill]) > (vector-resize! new-size [fill]) > > The [fill] parameter could be used if