Re: [CM] Snd 24.9

2024-11-15 Thread Iain Duncan
Awesome, thanks Bill! ;) On Fri., Nov. 15, 2024, 12:05 p.m. , wrote: > Snd 24.9 > > mostly small optimizations in s7 > > checked: sbcl 2.4.10 > > ___ > Cmdist mailing list > Cmdist@ccrma.stanford.edu > https://cm-mail.stanford.edu/mailman/listinfo/cmdi

[CM] Announcing seriousmusictraining.com - s7-powered online music-ed tools.

2024-07-25 Thread Iain Duncan
Hi colleagues, I'm excited to announce that yesterday, on the very last day of my forties (ha), I launched my s7-powered online music ed project. The elevator pitch is essentially: online ear and harmony training tools that don't suck - that are actually effective, efficient, and can be customized

Re: [CM] making a debugger?

2024-07-02 Thread Iain Duncan
Thanks Bill, I'll take a look at those. Trying to rig up at least a half a debugger for my WASM use. :-) iain On Tue, Jul 2, 2024 at 9:20 AM wrote: > s7.html has a section toward the end of the file about > repl.scm and nrepl.acm. These have a function drop-into-repl > which can be used to pok

[CM] making a debugger?

2024-07-02 Thread Iain Duncan
Hi Bill and other s7 folks. I'm curious what the smartest way to make execution stop in the middle of some code is, for the purpose of having an interactive debugger. ideally with as little change to containing code as possible. Perhaps this exists already in the s7 sources and I just haven't found

Re: [CM] Snd 24.5

2024-07-02 Thread Iain Duncan
Thanks for all the work again! :-) iain On Tue, Jul 2, 2024 at 5:06 AM wrote: > Thanks for pointing this out -- I have updated the > homepage. > > ___ > Cmdist mailing list > Cmdist@ccrma.stanford.edu > https://cm-mail.stanford.edu/mailman/listinfo/cm

Re: [CM] S7 wrapper around SDL

2024-07-02 Thread Iain Duncan
Very cool, I looked into SDL a while back and am interested to see how this progresses! Please do keep us posted here. :-) iain On Tue, Jun 25, 2024 at 2:29 AM wrote: > That's an interesting project! I don't know anything > about SDL, so I can't offer any sage advice. On the > matrix library,

Re: [CM] s7 got some love in the Lisp game jam

2024-06-02 Thread Iain Duncan
Hi Bill, thanks a million for s7! :-) You got another rave about it on the same thread actually, though they said they ultimately decided to go to Fennel for other reasons. Some very nice praise of s7 though in response to my comment. https://news.ycombinator.com/item?id=40549250 On Sun, Jun 2, 2

Re: [CM] s7 got some love in the Lisp game jam

2024-06-02 Thread Iain Duncan
relevant thread on HN. https://news.ycombinator.com/item?id=40549250 On Sun, Jun 2, 2024 at 8:52 AM Iain Duncan wrote: > Interesting read I found on Hacker News, and nice to see the ease of > embedding recognized. > > https://dthompson.us/posts/lisp-icing-or-cake.h

[CM] s7 got some love in the Lisp game jam

2024-06-02 Thread Iain Duncan
Interesting read I found on Hacker News, and nice to see the ease of embedding recognized. https://dthompson.us/posts/lisp-icing-or-cake.html iain ___ Cmdist mailing list Cmdist@ccrma.stanford.edu https://cm-mail.stanford.edu/mailman/listinfo/cmdist

Re: [PD-dev] Seeking co-maintainers for Scheme for Pd

2024-03-24 Thread Iain Duncan
> > Message: 1 > Date: Tue, 19 Mar 2024 13:09:27 +0100 > From: IOhannes m zm?lnig > To: pd-dev@lists.iem.at > Subject: Re: [PD-dev] Seeking co-maintainers for Scheme for Pd > Message-ID: <29d3083f-0419-4c7a-a1b6-fbdb29169...@iem.at> > Content-Type: text/plain; charset

Re: [PD-dev] Seeking co-maintainers for Scheme for Pd

2024-03-24 Thread Iain Duncan
could find some time to give it some love. So uh, what exactly do I need to do to make this happen? Does it need a special license or anything? s7 is BSD licensed so I chose that to begin with. iain On Tue, Mar 19, 2024 at 5:10 AM IOhannes m zmölnig wrote: > On 3/17/24 06:14, Iain Dun

Re: [PD-dev] Seeking co-maintainers for Scheme for Pd

2024-03-16 Thread Iain Duncan
It occurred to me thinking further that really one doesn't need to know much about Scheme or Lisp, provided one is interested, as I didn't when I started! The work is mostly in C. FWIW. :-) iain On Sat, Mar 16, 2024 at 8:17 AM Iain Duncan wrote: > Hello hackers, a couple of yea

Re: [PD] Seeking co-maintainers for Scheme for Pd

2024-03-16 Thread Iain Duncan
It occurred to me thinking further that really one doesn't need to know much about Scheme or Lisp, provided one is interested, as I didn't when I started! The work is mostly in C. FWIW. :-) iain On Sat, Mar 16, 2024 at 8:17 AM Iain Duncan wrote: > Hello hackers, a couple of yea

[PD-dev] Seeking co-maintainers for Scheme for Pd

2024-03-16 Thread Iain Duncan
Hello hackers, a couple of years ago I made Scheme for Pd, a sibling project of my Scheme for Max external that allows scripting Pd (and Max) in s7 Scheme. I'm now into a PhD and am (surprise, surprise) rather busy, but there are some things that could be done with the Pd version that would be inte

[PD] Seeking co-maintainers for Scheme for Pd

2024-03-16 Thread Iain Duncan
Hello hackers, a couple of years ago I made Scheme for Pd, a sibling project of my Scheme for Max external that allows scripting Pd (and Max) in s7 Scheme. I'm now into a PhD and am (surprise, surprise) rather busy, but there are some things that could be done with the Pd version that would be inte

Re: [CM] doc update suggestion.

2023-11-21 Thread Iain Duncan
Great. I have plans (in my ever increasing work backlog, lol) to publish a more comprehensive example too that I have going as part of a pedagogy app, with a scheduler that runs in the audio worklet. I will let you know when that published. iain On Tue, Nov 21, 2023 at 6:24 AM wrote: > Thanks!

[CM] doc update suggestion.

2023-11-20 Thread Iain Duncan
Hi Bill, I just wanted to let you know that I have made an example of using s7 in wasm that is significantly easier to get going for the casual developer than the one Christos did, in that it does not depend on any JS build tools (it just uses vanilla JS and emscriptem). It might be good to mention

Re: [CM] What motivated the change from CL to Scheme?

2023-11-10 Thread Iain Duncan
I'll throw my two cents in. Like Mike, I have done both work code and music code in a whack of languages, though professionally for 20 years and not forty! However, I fancy I have some valuable insights from my last 5 years of doing technical due diligence for software acquisitions, in which I tal

Re: [CM] What motivated the change from CL to Scheme?

2023-11-09 Thread Iain Duncan
;s great! > > I may have some use for that > > - > Michael Gogins > Irreducible Productions > http://michaelgogins.tumblr.com > Michael dot Gogins at gmail dot com > > > On Thu, Nov 9, 2023 at 5:46 PM Iain Dunca

Re: [CM] What motivated the change from CL to Scheme?

2023-11-09 Thread Iain Duncan
tact the publisher and see if they would release it now in the > public domain. I might have the manuscript on some old hard drive but I > would need a release for that as well. > > --Rick > > On Nov 9, 2023, at 1:44 PM, Iain Duncan wrote: > > My reservations are mostly arou

Re: [CM] What motivated the change from CL to Scheme?

2023-11-09 Thread Iain Duncan
On a related note, I have been debating for a while whether to put in the work to ensure CM3 code (or at least, what is in the Notes book) could run unchanged on Scheme for Max and/or Scheme for Pd. My reservations are mostly around the fact that Notes is out of print and not available digitally so

Re: [CM] What motivated the change from CL to Scheme?

2023-11-09 Thread Iain Duncan
live-coding and scoring in scheme - so supporting conventions that make the code one must type as compact as possible. I hope to have this out sometime mid next year. On Thu, Nov 9, 2023 at 7:33 AM Iain Duncan wrote: > For what it's worth, I think that language is indeed Scheme. I wrote

Re: [CM] What motivated the change from CL to Scheme?

2023-11-09 Thread Iain Duncan
For what it's worth, I think that language is indeed Scheme. I wrote Scheme for Max after looking for the right language to use inside the Max environment for representing music symbolically, and I looked at a lot of options. I chose s7 for the combination of three factors: great for representing m

Re: [CM] Getting snd to work with conjure/neovim

2023-07-22 Thread Iain Duncan
Nice! thanks for doing this. I will definitely be trying it out. On Sat, Jul 22, 2023 at 11:13 AM Kenneth Flak wrote: > Hi all, > > I have written a blog post on my current snd/neovim setup: > https://roosnaflak.com/tech-and-research/setting-up-snd-with-neovim/ > Enjoy :-) > > Kenneth > > -- >

Re: [CM] Protecting Scheme data structures from GC?

2023-04-30 Thread Iain Duncan
Thanks Bill. I guess I was hoping reducing how much it had to scan over would make a scan faster, but am not correct. Do you have any suggestions for what one can do to cut GC times down on a code level when there is a lot of code going? thanks iain On Sat, Apr 29, 2023 at 10:14 AM wrote: > To

[CM] Protecting Scheme data structures from GC?

2023-04-29 Thread Iain Duncan
Hi all, perhaps this is not possible, but I'm wanting to know how one might prevent the GC from running over a Scheme let environment. The idea is that it would be nice in my large sequencing environments to be able to have the equivalent of static objects, where I know all the data members are mea

Re: [CM] How are people handling modules/imports?

2023-02-24 Thread Iain Duncan
s, Michael > > On 24 Feb 2023, at 7:41, Iain Duncan wrote: > > > Hi all, just curious to hear how others are making a module/import > > system > > in s7. I have a project now that would really benefit from some better > > protection against name

[CM] How are people handling modules/imports?

2023-02-24 Thread Iain Duncan
Hi all, just curious to hear how others are making a module/import system in s7. I have a project now that would really benefit from some better protection against name collisions if I am to share it. thanks! iain ___ Cmdist mailing list Cmdist@ccrma.sta

Re: [CM] most efficient way to map over a vector?

2022-04-03 Thread Iain Duncan
> Obviously substituting int-vector-* or byte-vector-* if appropriate. > > > > That said, if performance is really important, I might just write the > code in > > c. > > > > On Sat, 2 Apr 2022, Iain Duncan wrote: > > > >> Hi all, I'm map

[CM] most efficient way to map over a vector?

2022-04-02 Thread Iain Duncan
Hi all, I'm mapping some transforms over vectors in a part of the code that I need to have run as efficiently as possible. I'm hoping someone can tell me what the fastest running approach to this is. I would like to leave the data as vector as it is used in a framebuffer at the C level. thanks! ia

Re: [CM] Fastest way to copy scheme variables into a shared buffer?

2022-01-23 Thread Iain Duncan
thanks Bill, I will try playing with those and see if it makes enough of a difference! iain On Sat, Jan 22, 2022 at 9:30 AM wrote: > If the numbers are just integers or just floats, you > could use float-vectors or int-vectors (or byte-vector) > in s7, and use memcpy to copy the data from the C

Re: [CM] Fastest way to copy scheme variables into a shared buffer?

2022-01-22 Thread Iain Duncan
thanks for the answers, it sounds like I did a poor job of explaining what I'm trying to do, ha. Let's try again! There are two Max external instances, each with a complete s7 interpreter. One only runs in the high thread and one in the low. In the high thread there are sequencers, which have thei

[CM] Fastest way to copy scheme variables into a shared buffer?

2022-01-21 Thread Iain Duncan
Hi folks, just hoping for suggestions here before I get too far. I would like to have an s7 interpreter running in a low priority UI thread read data from a higher priority thread instance. The low instance will maintain a periodically update a copy of the data for a display, with the buffering don

Re: [CM] R7RS support

2022-01-17 Thread Iain Duncan
Hi Rudolf, Bill would be the person to address this better than me, but I think the Egghead team should read through the s7.html page pretty closely to see if s7 is a good fit. It's pretty clear in there that there is *limited* R7RS compatibility, but that s7 is not R7RS and nor is that a stated go

Re: [CM] Error trying to load Alex Shinn's regext library

2022-01-16 Thread Iain Duncan
My apologies for the noise, I'm an idiot who didn't read far enough through the docs. (RTFM and all that). One just needs to change the *all-chars* definition to the ASCII version in irregex.scm. I'll let people know how it goes! iain On Sun, Jan 16, 2022 at 9:49 AM Iain Duncan

Re: [CM] Error trying to load Alex Shinn's regext library

2022-01-16 Thread Iain Duncan
possible? iain On Sun, Jan 16, 2022 at 9:47 AM Iain Duncan wrote: > Hi, I thought I would try loading Alex's Shinn's iregex library from > http://synthcode.com/scheme/irregex but I'm getting an error that I'm not > sure how to fix. I try to load irregex.scm and get th

[CM] Error trying to load Alex Shinn's regext library

2022-01-16 Thread Iain Duncan
Hi, I thought I would try loading Alex's Shinn's iregex library from http://synthcode.com/scheme/irregex but I'm getting an error that I'm not sure how to fix. I try to load irregex.scm and get the error below. I'm hoping someone can tell me if this is something I just need to patch in s7? or any o

Re: [CM] question about pretty-print and object serialization

2022-01-15 Thread Iain Duncan
thanks Bill. I'll keep poking at it! iain On Sat, Jan 15, 2022 at 10:33 AM wrote: > I think the "..." truncation of vectors depends on the > (*s7* 'print-length) setting. It's 12 for historical > reasons. I think the :readable argument to object->string > (and the `W format option) came after

[CM] question about pretty-print and object serialization

2022-01-15 Thread Iain Duncan
Hi Bill and list, I've been playing with the pretty-print function in write.scm in further attempts to make a nice "back to code" serializer for my sequencers. I have the back to text part working at a basic level using the below, but it comes out as one long line. (define (save-seq seq-obj filena

Re: [CM] OT Using s7 in an iOS mobile app + SQLite

2022-01-12 Thread Iain Duncan
Thanks for sharing this Mike, that's super cool! I plan to eventually release some of my music pedagogy tools that I do in Max and s7 as mobile apps, so I would love to hear more as you progress. iain On Wed, Jan 12, 2022 at 1:34 AM Elijah Stone wrote: > On Wed, 12 Jan 2022, m...@eggheadgames.c

Re: [PD-dev] Question about right hand generic inlet creation

2021-12-08 Thread Iain Duncan
great, thanks very much. On Tue, Dec 7, 2021 at 10:38 PM IOhannes m zmölnig wrote: > Am 8. Dezember 2021 03:52:00 MEZ schrieb Iain Duncan < > iainduncanli...@gmail.com>: > >And follow up, if there is a way to make a generic handler for right hand > >inlets, is there a

Re: [PD-dev] Question about right hand generic inlet creation

2021-12-07 Thread Iain Duncan
And follow up, if there is a way to make a generic handler for right hand inlets, is there also a way to find out on which inlet the message came in? thanks On Tue, Dec 7, 2021 at 5:57 PM Iain Duncan wrote: > Hi folks, I'm not sure if I'm understanding the externals tutorial &

[PD-dev] Question about right hand generic inlet creation

2021-12-07 Thread Iain Duncan
Hi folks, I'm not sure if I'm understanding the externals tutorial properly. It seems to me that it is saying that one cannot make a generic inlet past the first one, as in something that passes any incoming message to the same handler as an array of atoms. Is that the case or am I totally misunder

[CM] Scheme for Pd is "officially" released

2021-11-27 Thread Iain Duncan
Hi friends, I have now "officially" released Scheme for Pd, with binaries available for Mac and Windows (linux builds with make), and tutorial videos up on youtube on installation and first steps. It ports most of Scheme for Max, but is more minimal so much more hacker friendly if one wanted to ext

Re: [PD] documenting messages to/from Pd and dynamic patching

2021-11-26 Thread Iain Duncan
+1 to having them in the docs but clearly labelled as something along the lines of "not in the public API - may change without notice". That kind of stuff is really helpful to people coming up on the whole system to better understand how it all works. my two cents Canadian. :-) On Fri, Nov 26, 20

[PD] Getting Started tutorial video for Scheme for Pd

2021-11-24 Thread Iain Duncan
Hi everyone, I've got a fairly extensive Getting Started with Scheme for Pd video tutorial up now. Between this, the help file, and the beginner's guide to s7, this should give someone new to Scheme everything they need to get up and running with Scheme for Pd. Getting Started video: https://youtu

Re: [PD] Scheme for Pd 0.1 binaries up for win and mac

2021-11-24 Thread Iain Duncan
Hi, yes they will be added to the package manager, in due time. Perhaps I'm in a minority here, but my perspective from a couple of decades of doing software is that package managers should only hold releases that are definitely stable and production ready. One only has one chance for a first impr

[PD] Videos on installing Scheme for Pd

2021-11-23 Thread Iain Duncan
Hi folks, I created a couple of videos walking through installing and getting going on Scheme for Pd in case anyone needs the help. Mac: https://youtu.be/aYgaaZTXZSY Windows: https://youtu.be/kqObOw

Re: [PD] Scheme for Pd 0.1 binaries up for win and mac

2021-11-23 Thread Iain Duncan
n ..." > > to > > "#N canvas 265 42 ..." > > - Or wait until a new updated package. > > :) > > Mensaje telepatico asistido por maquinas. > > On 11/23/2021 12:26 AM, Iain Duncan wrote: > > Hi everyone, I'm excited to announce that Sch

[PD] Scheme for Pd 0.1 binaries up for win and mac

2021-11-22 Thread Iain Duncan
Hi everyone, I'm excited to announce that Scheme for Pd 0.1 is ready for regular users (I think really!). I have binaries up for Mac and Windows, and building from source on Linux should "just work". Scheme for Pd is a Pd port of (most of) Scheme for Max. It enables you to script and live code

Re: [CM] Snd 21.8

2021-10-13 Thread Iain Duncan
otcurses, nrepl currently needs >notcurses version 2.4.3 or later -- sorry for the inconvenience! > > Thanks!: Iain Duncan, Brad Christensen, Christos Vagias, Woody Douglass, > James Hearon, Juan Reyes, Kjetil Matheussen > > ___

Re: [PD-dev] Helping with building Scheme for Pure Data for windows?

2021-10-11 Thread Iain Duncan
Many thanks to Lucas for his assistance. I'm now building successfully on windows, so should be able to make a binary release in the next week or so. iain On Sun, Oct 10, 2021 at 3:35 PM Iain Duncan wrote: > hi Lucas, that would be wonderful. You definitely don't need to know >

Re: [PD] Pd in cross-platform frameworks

2021-10-11 Thread Iain Duncan
I'm curious if anyone here has tried building Pd apps with Juce? It's a commercial license, but free for use in open source projects, and supports iOs and Android. I've heard the iOs and Android support is ok if you don't need full "nativity". It's definitely easy to work with for audio apps and w

Re: [PD-dev] Helping with building Scheme for Pure Data for windows?

2021-10-10 Thread Iain Duncan
t; > -- > > Mensaje telepatico asistido por maquinas. > > On 10/10/2021 2:10 PM, Alexandre Torres Porres wrote: > > Lucas usually helps with that ;) > > > > Em dom., 10 de out. de 2021 às 13:39, Iain Duncan > > escreveu: > > > > Long shot,

Re: [PD] pure-data.info

2021-10-10 Thread Iain Duncan
rote: > > > Em dom., 10 de out. de 2021 às 13:36, Iain Duncan < > iainduncanli...@gmail.com> escreveu: > >> Hi folks, wondering if we can talk about pure-data.info. >> > > yes we can > > >> It's a real mess of brutally outdated pages mixed in

[PD-dev] Helping with building Scheme for Pure Data for windows?

2021-10-10 Thread Iain Duncan
Long shot, but in case there is someone on here who is a) excited about using Scheme in Pd, and b) conversant with building externals for windows, I could definitely do with some help. I really only know developing on linux and osx. I'm sure I'll manage on my own, but it will be slower and harder t

[PD] pure-data.info

2021-10-10 Thread Iain Duncan
Hi folks, wondering if we can talk about pure-data.info. It's a real mess of brutally outdated pages mixed in with really helpful pages. What is the policy for become an editor? Is there anyone in charge of the site? I feel like a not-minor obstacle to people becoming more involved in Pd is wading

Re: [PD-dev] another file path question for sp4d

2021-10-09 Thread Iain Duncan
Thanks Antoine, using canvas_open has fixed my issues and opening from sub-dirs is working properly as well now. iain On Fri, Oct 8, 2021 at 8:55 AM Iain Duncan wrote: > Thanks Antoine, re my last point: if the norm is that it should, then > that's what I'll do. And is why

Re: [PD-dev] s4pd packaging: issues with [declare -path]

2021-10-09 Thread Iain Duncan
Answering my own question for the archives: Switching file finding to use canvas_open in the external seems to have fixed the issue. I can now load successfully with no file path set in preferences by using [declare -path s4pd]. :-) iain On Sat, Oct 9, 2021 at 8:43 AM Iain Duncan wrote: >

Re: [PD-dev] s4pd packaging: issues with [declare -path]

2021-10-09 Thread Iain Duncan
The object should be able to load files on the same folder as the help > patch or in folders relative to it, but it still can't (with version rc3). > > Em sáb., 9 de out. de 2021 às 12:09, Iain Duncan < > iainduncanli...@gmail.com> escreveu: > >> Oh I think I might hav

Re: [PD-dev] s4pd packaging: issues with [declare -path]

2021-10-09 Thread Iain Duncan
Oh I think I might have stumbled on the answer, but confirmation would be lovely. I was using open_via_path to find the file, is it that I need to use canvas_open for the declare path to work? iain On Sat, Oct 9, 2021 at 8:02 AM Iain Duncan wrote: > Hi folks, I'm still working on the p

[PD-dev] s4pd packaging: issues with [declare -path]

2021-10-09 Thread Iain Duncan
Hi folks, I'm still working on the packaging of s4pd with regard to finding scheme files, and am almost there, but having some weirdness with [declare -path]. It was recommended to me that I advise people in the docs to put a [declare -path s4pd] in their patches so that finding scm files would "ju

Re: [PD-dev] another file path question for sp4d

2021-10-08 Thread Iain Duncan
;canvas_open()" and "canvas_makefilename()" WILL traverse Pd > search paths... > > > Antoine > > > > Le ven. 8 oct. 2021 à 17:01, Iain Duncan a > écrit : > >> Hi folks, I want to solicit opinions from the broader Pd dev community >> before figuring out

[PD-dev] another file path question for sp4d

2021-10-08 Thread Iain Duncan
Hi folks, I want to solicit opinions from the broader Pd dev community before figuring out how to fix this bug report from Alex: https://github.com/iainctduncan/scheme-for-pd/issues/15 His point was that a relative path didn't do what he expected, situation - an s4pd object created as "sp4d scm/my

Re: [PD-dev] Packaging question for Scheme for Pd

2021-10-04 Thread Iain Duncan
in the same directory as the C files in the source? Or is there some suggested approach when using pd lib builder to make this simple? thanks iain On Mon, Oct 4, 2021 at 8:52 AM IOhannes m zmoelnig wrote: > On 10/4/21 5:22 PM, Iain Duncan wrote: > > of the package ('s4pd') so t

[PD-dev] Packaging question for Scheme for Pd

2021-10-04 Thread Iain Duncan
Hi folks, I need some advice on what is the expected way for a package to be laid out to avoid confusing users when they try to install. The situation is that s4pd requires the external, and scm files that come in the package. In development, I have those in an scm dir, and if you build from source

Re: [PD-dev] equivalent of Max attributes for optional keyword object args?

2021-09-24 Thread Iain Duncan
rence point. > > Christof > On 24.09.2021 17:33, Iain Duncan wrote: > > Hi folks, I want to add an optional argument for object creation time to > Scheme for Pd to allow setting the starting heap size, which can > dramatically lower garbage collector times. In Scheme for Max 0

[PD-dev] equivalent of Max attributes for optional keyword object args?

2021-09-24 Thread Iain Duncan
Hi folks, I want to add an optional argument for object creation time to Scheme for Pd to allow setting the starting heap size, which can dramatically lower garbage collector times. In Scheme for Max 0.3 I added the @heap attr. I'm not sure what the normal way to do this kind of thing is in Pd. The

Re: [CM] When does a let get created?

2021-09-24 Thread Iain Duncan
Don't know if this is helpful because I doubt this is new to you, but I have done something like the below: ; returns inner let (define (my-obj arg val) (let ((arg val) (foo 'bar)) (curlet))) In my use case it's bigger because I actually have objects that can return their let on a specific

Re: [CM] Question: hash-table vs lists for fast processing

2021-09-18 Thread Iain Duncan
Great, thanks! On Sat, Sep 18, 2021 at 6:28 AM wrote: > There's no difference in GC; I'd expect a hash-table to > be faster once you have more than 3 or 4 entries. > > ___ Cmdist mailing list Cmdist@ccrma.stanford.edu https://cm-mail.stanford.edu/mailm

[CM] Question: hash-table vs lists for fast processing

2021-09-17 Thread Iain Duncan
Following on the earlier post, I am looking up callbacks every 64 samples now. Given this is running a lot, is there an appreciable difference, either in speed or gc effects, in using a hash-table to find my callbacks vs an association list? thanks! iain ___

[CM] GC update, s7 flying in Ableton Live/Max for Live. :-)

2021-09-17 Thread Iain Duncan
Well thanks for the help everyone, I thought folks might be interested to know that running with lower heap size and proactive gc runs every 200 to 500ms is working like an absolute charm in Max for Live. I can run heavy real time synthesis in Live with quite substantial sequencers and have Ableton

Re: [CM] adding regex handling to scheme for max question

2021-09-16 Thread Iain Duncan
Great, thanks Bill! iain On Thu, Sep 16, 2021 at 8:19 AM wrote: > You can see for yourself by running (*s7* 'memory-usage), > perhaps calling (gc) first. It does add some names > and so forth to the *libc* environment, but I doubt > it is significant. If you want just the regex functions, > y

Re: [CM] adding regex handling to scheme for max question

2021-09-16 Thread Iain Duncan
Ah, I see, I will try this out. thanks. A related question... is there any disadvantage to pulling in libc.scm if people don't need it? As in, does all the stuff that comes with it give the gc more that it needs to run over and increase min heap-size? (I'm assuming yes, but I keep discovering my a

[CM] adding regex handling to scheme for max question

2021-09-16 Thread Iain Duncan
Hello colleagues, I'm thinking for many uses in Max and Pd, being able to run a regex over a string or symbol would be pretty handy. I see an example of using regex.make in the s7.html doc, but I'm not clear where this comes from, is this a C library that is standard? if anyone can point me at the

Re: [CM] question about s7_gc_protect

2021-09-15 Thread Iain Duncan
Great, thanks for the confirmation! :-) On Wed, Sep 15, 2021 at 3:41 PM wrote: > They will be safe as long as they are accessible from the > protected object. > > ___ Cmdist mailing list Cmdist@ccrma.stanford.edu https://cm-mail.stanford.edu/mailman/li

[CM] question about s7_gc_protect

2021-09-15 Thread Iain Duncan
Hi folks, I have some functions that recursively build trees of s7 objects from Max atoms. I am gc_protecting the top level object, but in the case that it might be a list or a hash, should I also be protecting child objects, or will they be safe as long as the parent is protected? thanks iain ___

Re: [CM] setting heap size preemptively at startup?

2021-09-11 Thread Iain Duncan
oh wow, OK! I need to try some low sizes :-) iain On Sat, Sep 11, 2021 at 7:41 AM wrote: > > You do mean 64 000 though right? (not 6400?) > > No, 6400 -- not sure how low it can go. > > ___ Cmdist mailing list Cmdist@ccrma.stanford.edu https://cm-

Re: [CM] setting heap size preemptively at startup?

2021-09-11 Thread Iain Duncan
Thanks Bill. I shall try that out. You do mean 64 000 though right? (not 6400?) iain On Sat, Sep 11, 2021 at 7:16 AM wrote: > > So is it correct that one cannot get the heap down to below the > > starting > > heap value without changing it and recompiling s7? > > Yes. The s7 I always use is bu

[CM] [OT] Coalton: new statically typed lisp

2021-09-11 Thread Iain Duncan
This looks like something that might be interesting to the folks around here. It's cool that they built it (if I'm understanding correctly) so it can run with CL. https://coalton-lang.github.io/20211010-introducing-coalton/ ___ Cmdist mailing list Cmdist

Re: [CM] setting heap size preemptively at startup?

2021-09-11 Thread Iain Duncan
errun but seems like I have to deliberately abuse it to make that happen, normally the gc does it's thing in time without issue. iain On Fri, Sep 10, 2021 at 9:59 AM Iain Duncan wrote: > Ah, great, thanks Bill. > > When I feel like I have got somewhere decent I will document up what

Re: [CM] setting heap size preemptively at startup?

2021-09-10 Thread Iain Duncan
Ah, great, thanks Bill. When I feel like I have got somewhere decent I will document up what I've learned and if it's useful to have up on a non-Scheme-for-Max specific cookbook page or something, I'd be happy to make that. iain On Fri, Sep 10, 2021 at 8:40 AM wrote: > To see heap and gc stats

Re: [CM] setting heap size preemptively at startup?

2021-09-10 Thread Iain Duncan
Hi, Woody's suggestion would be great for me. That's essentially what I'm doing manually, but it would cut down unnecessary processing a great deal if I could instead just do it when the gc wakes up. I've been using (set! (*s7* 'gc-stats) 1) to watch what goes on. Is there a way to see when a heap

Re: [CM] setting heap size preemptively at startup?

2021-09-09 Thread Iain Duncan
any real disadvantage to over-allocating the heap size aside from using up RAM? Thanks so much! iain On Thu, Sep 9, 2021 at 9:42 PM Elijah Stone wrote: > On Thu, 9 Sep 2021, Iain Duncan wrote: > > > Is there a way to pre-emptively make the heap big from c or scheme, > > aside from

[CM] setting heap size preemptively at startup?

2021-09-09 Thread Iain Duncan
Hi folks, I'm doing more experimenting with tweaking s4m for real time use, and have yet more gc related questions. Is there a way to pre-emptively make the heap big from c or scheme, aside from compiling in a default size? It appears from my recent tests like quite a feasible approach for some us

Re: [CM] need macro help!

2021-09-08 Thread Iain Duncan
thanks Elijah, much appreciated. And thanks for catching that! iain On Wed, Sep 8, 2021 at 1:18 PM Elijah Stone wrote: > On Wed, 8 Sep 2021, Elijah Stone wrote: > > (if (not (list? x)) > > Erratum: should be pair? > ___ > Cmdist mailing list > Cmdist

Re: [CM] need macro help!

2021-09-08 Thread Iain Duncan
oh wow, ok I will chew on that. In the meantime, I got it working as this, but feedback for style (or bugs I can't see) would be lovely. ;building on the example from Bill: (define s4m-expr-inputs (vector '() 11 22 33)) (define (string->sexp text) "convert a string of an sexp to an sexp" (rea

Re: [CM] need macro help!

2021-09-08 Thread Iain Duncan
Thanks Bill, yes that was it. I had figured out that was the (first!) error before you replied, but my solution was much more rube-goldbergish than yours, so much appreciated. Of course now I've realized it needs to be recursive, silly me. (+ %1 %2) works, but not (+ (+ %1 %2) %3). gah! iain On

[CM] need macro help!

2021-09-08 Thread Iain Duncan
I am apparently in over my head, I'm pretty darned new to defmacro'ing. If anyone can help with this, it would help me add a very nice ability to scheme for max! thanks! ; desired behaviour ; (s4m-run-expr "(+ %1 %2 %3)") ; should run as (+1 (expr-ins 1) (expr-ins 2) (expr-ins 3)) ; error i get:

Re: [CM] reading text from file to eval (as in... the other way!)

2021-08-31 Thread Iain Duncan
oh wow, I had not made the connection that it was that easy and I could just do: (set! _ (load "file")) Scheme (and s7) just keeps making me happier! thanks Bill! On Tue, Aug 31, 2021 at 4:02 PM wrote: > > I need to know the max file size > > You mean max-string-length, I think -- it default

Re: [CM] possibly a file output bug

2021-08-31 Thread Iain Duncan
Well that's embarrassing, you're right, it IS a directory, but I have no clue how it got there. I guess somehow I created a directory from Scheme when trying this stuff out. Which is weird, because all I was doing was calling port functions. So sorry!! iain On Tue, Aug 31, 2021 at 3:54 PM wrote:

[CM] reading text from file to eval (as in... the other way!)

2021-08-31 Thread Iain Duncan
Hi Bill and Elijah, that's working like a charm, this is going to be wonderful for being able combine file i/o with live coding. How would you recommend going the other way? I want to read the entire file in, and then just eval it to replace the serializable data arg. (my sequencer objects keep se

[CM] possibly a file output bug

2021-08-31 Thread Iain Duncan
Hi Bill, I am having this unusual behaviour and am wondering if it's a bug This works fine: (call-with-output-file "/Users/iainduncan/froms4m.txt" (lambda (output-port) (display "hello world, from s4m" output-port))) But if I put a hyphen in the file name ("/Users/iainduncan/from-s4m.txt"),

Re: [CM] creating text code from s7 objects?

2021-08-31 Thread Iain Duncan
Ah fantastic, thanks fellows! glad I asked, again! iain On Tue, Aug 31, 2021 at 12:47 PM wrote: > but now that I think about it (with an ever-widening smile), > s7 could include some reasonable facsimile of the continuation > stack and let chain. To be callable, it might also need the > rootlet

[CM] creating text code from s7 objects?

2021-08-31 Thread Iain Duncan
Hi list, I just thought I'd check here before I do any silly wheel reinventing. Is there a decent way to go from s7 objects to strings of the objects exactly as would need to put them in a text editor? I imagine I'll have to do some massaging, but for example I want to make something that could rec

[CM] Scheme for Max paper at ICFP 2021 Scheme Track

2021-08-24 Thread Iain Duncan
Hi everyone, I just wanted to let everyone know that s7 will be featured in at ICFP through my paper "Scheduling Musical Events in Max/MSP with Scheme For Max". I'll be doing a presentation Saturday, but it will mostly be aimed at non-computer-music people who have no idea what Max or s7 is. The pa

Re: [CM] metadata on vectors?

2021-07-26 Thread Iain Duncan
Bill, I'm not saying it would be good to adopt as I'm no language expert, but Clojure has an interesting metadata system that might be worth looking at. I mention it only because I remember you asking last year what things from Clojure were particularly nice. iain On Mon, Jul 26, 2021 at 3:16 AM

Re: [CM] autoload compiling when shared libs are in *load-path*

2021-07-21 Thread Iain Duncan
Haha, "lack of enhancement", I'm adopting that! :-) iain On Wed, Jul 21, 2021 at 2:14 PM wrote: > repl.scm adds "libm.scm" as the autoload info for *libm*. > This could instead be a function that looks for libm_s7.so > in the load-path, checks its write date against the > libm_s7.c in that dir

Re: [CM] scheme unit testing framework?

2021-07-19 Thread Iain Duncan
Hi Gregg, I know there exists one for Racket (RackUnit), which might not be hard to adapt. However, it is honestly probably just as easy to roll your own. S7's support for environments makes it very easy to set up the context for a call and assert. Check out with-let and let-ref in the s7.html pag

Re: [CM] s4pd (s7 for pd) with [text] perhaps for live-coding

2021-07-19 Thread Iain Duncan
Thanks Forrest, I will try this out! I just wrapped up a bunch of paper writing and have some time to dedicate to s4pd again. Right now each object is isolated on its own, because one can always use send and receives to simulate sharing, and use shared data structures as noted. Also, I should pro

  1   2   3   4   5   6   7   8   9   10   >