[livecode] Re: Vivid: Reconnect without reloading all modules?

From: Jeffrey Brown <jeffbrown.the_at_gmail.com>
Date: Mon, 2 Jul 2018 21:46:56 -0500

> now that I know you may need it

I was just trying to speed up my development cycle, but now that you make
me examine it more, it's really not a pressing need at all. Reloading the
program (which includes reimporting all of Vivid) currently takes about 5
seconds.

On Mon, Jul 2, 2018 at 9:27 PM <amindfv_at_gmail.com> wrote:

> Hi Jeffrey - Is there a reason you need to kill the running sc server
> process? If it's just to silence a long-running sound, the function
> "freeAll" (or "cmdPeriod" for the SC peeps) will silence the everything
> that's playing.
>
> To answer your specific question, though: unfortunately not at the moment.
> The "closeSCServerConnection" function should be all you need, but it
> currently doesn't clear all the resources it needs to (in other words, it
> forgets that there are some things the SC server has forgotten.)
>
> The next version will have a fix for this (and I'll fast-track it now that
> I know you may need it), but for now you should either not kill the server
> or re-start GHCi after you've killed it.
>
> Tom
>
> El 2 jul 2018, a las 21:13, Jeffrey Brown <jeffbrown.the_at_gmail.com>
> escribió:
>
> Suppose I copy one of the demo programs at http://www.vivid-synth.com/
> into a file called "demo.hs". After starting the SuperCollider server in
> the terminal, I can run "demo.hs" by calling `:l demo.hs` and then `main`
> from GHCI.
>
> Suppose I then stop the server (by pressing Ctrl-C from the terminal in
> which it is running). After restarting the server, is there a way to rerun
> `main` without reloading all of `demo.hs`?
>
> --
> Jeff Brown | Jeffrey Benjamin Brown
> Website <https://msu.edu/~brown202/> | Facebook
> <https://www.facebook.com/mejeff.younotjeff> | LinkedIn
> <https://www.linkedin.com/in/jeffreybenjaminbrown>(spammy, so I often
> miss messages here) | Github <https://github.com/jeffreybenjaminbrown>
>
>
> _______________________________________________
> Livecode mailing list -- livecode_at_we.lurk.org
> To unsubscribe send an email to livecode-leave_at_we.lurk.org
>
> _______________________________________________
> Livecode mailing list -- livecode_at_we.lurk.org
> To unsubscribe send an email to livecode-leave_at_we.lurk.org
>


-- 
Jeff Brown | Jeffrey Benjamin Brown
Website <https://msu.edu/~brown202/>   |   Facebook
<https://www.facebook.com/mejeff.younotjeff>   |   LinkedIn
<https://www.linkedin.com/in/jeffreybenjaminbrown>(spammy, so I often miss
messages here)   |   Github <https://github.com/jeffreybenjaminbrown>


_______________________________________________
Livecode mailing list -- livecode_at_we.lurk.org
To unsubscribe send an email to livecode-leave_at_we.lurk.org
Received on Tue Jul 03 2018 - 02:47:19 BST

This archive was generated by hypermail 2.4.0 : Sun Aug 20 2023 - 16:02:23 BST