New release of LSP server; LSP clients for Emacs and VSCodium available

2022-08-03 Thread Ricardo G. Herdt
Hi all, I want to announce some releases related to LSP support for Scheme, focusing on Guile. * scheme-lsp-server 0.1.3 Besides bug fixes, here what's new: - scheme-lsp-server now selectively uses geiser code when doable. This is especially the case for Guile. The goal is to encourage myse

Re: string is read-only

2022-08-03 Thread Pierpaolo Bernardi
Il giorno 3 agosto 2022, alle ore 13:36, Damien Mattei ha scritto: >On Wed, Aug 3, 2022 at 12:59 PM Maxime Devos wrote: >> >> (My unverified hypothesis on why you aren't seeing an error here.) >> >> >>  it would be a big change and very strange :-O if the few lines of code >below in scheme ret

Re: string is read-only

2022-08-03 Thread Damien Mattei
> > It's how all Lisps, including guile, works. So, yes, if one is > interested in these languages, this is interesting knowledge :) > Pierpaolo you sense of humour is tickling me :-) i admit it is not common nowadays to set-car! or set-cdr! and my teachers at the time i learn it forbided it and

Re: string is read-only

2022-08-03 Thread Damien Mattei
On Wed, Aug 3, 2022 at 12:59 PM Maxime Devos wrote: > > (My unverified hypothesis on why you aren't seeing an error here.) > > > it would be a big change and very strange :-O if the few lines of code below in scheme returned an error on lists: but no restrictions with lists in Guile: scheme@(gu

Re: string is read-only

2022-08-03 Thread Maxime Devos
On 03-08-2022 12:55, Damien Mattei wrote: but no restrictions with lists in Guile: scheme@(guile-user)> (define lst '(1 2 3)) scheme@(guile-user)> (set-car! lst 7) scheme@(guile-user)> lst (7 2 3) Non-empty lists are pairs and the second part of the pair is another list -- in Guile, this is e

Re: string is read-only

2022-08-03 Thread Damien Mattei
interesting the ELF file argument :-) ,i understand the idea, like a Turing machine that protect some part of ribbon... it is the same thing with arrays scheme@(guile-user)> (define vct '#(1 2 3)) scheme@(guile-user)> vct #(1 2 3) scheme@(guile-user)> (vector-set! vct 1 7) ice-9/boot-9.scm:1669:16

Re: string is read-only

2022-08-03 Thread Taylan Kammer
On 03.08.2022 11:50, Jean Abou Samra wrote: > > >> Le 3 août 2022 à 11:49, Taylan Kammer a écrit : >> >> On 03.08.2022 11:12, Damien Mattei wrote: >>> GNU Guile 3.0.1 >>> Copyright (C) 1995-2020 Free Software Foundation, Inc. >>> >>> Guile comes with ABSOLUTELY NO WARRANTY; for details type `,s

Re: string is read-only

2022-08-03 Thread Jean Abou Samra
> Le 3 août 2022 à 12:30, Taylan Kammer a écrit : > > On 03.08.2022 11:50, Jean Abou Samra wrote: >> >> Le 3 août 2022 à 11:49, Taylan Kammer a écrit : >>> >>> On 03.08.2022 11:12, Damien Mattei wrote: GNU Guile 3.0.1 Copyright (C) 1995-2020 Free Software Foundation, Inc.

Re: string is read-only

2022-08-03 Thread Ricardo G. Herdt
Hi, Am 03.08.2022 11:41 schrieb Maxime Devos: I'm not aware of explicit documentation that string literals may not be modified (and in this case, cannot be modified). However, see the following mail on string mutability and program text: R7RS has a chapter mentioning this (3.4. Storage Model).

Re: string is read-only

2022-08-03 Thread Jean Abou Samra
> Le 3 août 2022 à 11:49, Taylan Kammer a écrit : > > On 03.08.2022 11:12, Damien Mattei wrote: >> GNU Guile 3.0.1 >> Copyright (C) 1995-2020 Free Software Foundation, Inc. >> >> Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. >> This program is free software, and you ar

Re: Fwd: string is read-only

2022-08-03 Thread Maxime Devos
On 03-08-2022 11:51, Damien Mattei wrote: ok and i suppose it is the standard, i have been confused by other schemes or racket where my code worked: It happens to work in Guile too, when you use the interpreter instead of the compiler: scheme@(guile-user)> (eval `(let ((a ,(string-copy "fo

Fwd: string is read-only

2022-08-03 Thread Damien Mattei
-- Forwarded message - From: Damien Mattei Date: Wed, Aug 3, 2022 at 11:51 AM Subject: Re: string is read-only To: Thomas Morley ok and i suppose it is the standard, i have been confused by other schemes or racket where my code worked: CHICKEN (c) 2008-2019, The CHICKEN Team (c)

Re: string is read-only

2022-08-03 Thread Taylan Kammer
On 03.08.2022 11:12, Damien Mattei wrote: > GNU Guile 3.0.1 > Copyright (C) 1995-2020 Free Software Foundation, Inc. > > Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. > This program is free software, and you are welcome to redistribute it > under certain conditions; type `,s

Re: string is read-only

2022-08-03 Thread Maxime Devos
On 03-08-2022 11:12, Damien Mattei wrote: scheme@(guile-user)> (define str2 "hello") scheme@(guile-user)> (string-set! str2 4 #\a) ice-9/boot-9.scm:1669:16: In procedure raise-exception: string is read-only: "hello" It's not -- the existence of read-only strings is implied by substring/read-o

Re: string is read-only

2022-08-03 Thread Thomas Morley
Am Mi., 3. Aug. 2022 um 11:13 Uhr schrieb Damien Mattei : > > GNU Guile 3.0.1 > Copyright (C) 1995-2020 Free Software Foundation, Inc. > > Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. > This program is free software, and you are welcome to redistribute it > under certain con

string is read-only

2022-08-03 Thread Damien Mattei
GNU Guile 3.0.1 Copyright (C) 1995-2020 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(g