Re: What the best way to support hot reloading in Chicken?

Kristian Lein-Mathisen via Chicken-users <[email protected]>
Newsgroups gmane.lisp.scheme.chicken
Message-ID <CAAGQtHxWUpDVN8uH34a=QSVzj_Jexc74Z+4Gyh4jpfgyH6hrjg@mail.gmail.com>
On Tue, Aug 11, 2026, 23:03 Srayan Jana <[email protected]> wrote:

> Thanks! This was exactly what I was looking for!
> Can you embed the repl into your programs?
>

You can, by using the chicken.repl module and then compiline your program
as normal. You can also use nrepl [1] if you want a REPL over a plain TCP
socket for example, leaving your stdout available for other uses.

I'm the author of nrepl (which I think I'll rename to tcprepl for C6),
please let me know if the documentation is unclear.

K.

[1] http://wiki.call-cc.org/eggref/5/nrepl


> Get Outlook for iOS <https://aka.ms/o0ukef>
> ------------------------------
> *From:* Kristian Lein-Mathisen <[email protected]>
> *Sent:* Tuesday, 11 August 2026 10:53:21
> *To:* Srayan Jana <[email protected]>
> *Cc:* chicken-users <[email protected]>
> *Subject:* Re: What the best way to support hot reloading in Chicken?
>
>
> Hi,
>
> I'd say all the hot-swapping functionality you need is the REPL itself.
>
> Many Schemes, like Chicken, allow you to replace values defined at the
> top-level. These new definitions will be picked up by anything using them*.
> If you organize your code appropriately, you can hot-swap things by
> issuing, for example:
>
>     (define (existing-function x) (* x x))
>
> Note that you can get a running REPL on your own compiled programs, it's
> not csi specific. See http://api.call-cc.org/6/doc/chicken/repl
>
> Also, this 8 year old video of mine may be of interest:
> https://www.youtube.com/watch?v=eXB3I3S3vJc
>
> Cheers and hope you'll enjoy this form of interactive development!
>
> *: Does not always apply to highly optimized compiled code.
> K.
>
> On Tue, Aug 11, 2026, 17:38 Srayan Jana via Chicken-users <
> [email protected]> wrote:
>
> Hello!
> Is it at all possible to do hot reloading/hot swapping in Chicken Scheme?
> Like, being able to edit code while a program is running like you can do
> with SBCL and SLIME? I'm going to guess the answer is no.
>
> Get Outlook for iOS <https://aka.ms/o0ukef>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.