alda

WE'VE MOVED! Join us at: http://slack.alda.io
2016-03-02T15:24:14.000006Z

Hi I'm really keen to help out with Alda (I'm passionate about Clojure and about music..)

2016-03-02T15:27:23.000007Z

I saw this issue https://github.com/alda-lang/alda/issues/160 which sounds pretty straightforward to pick up and will be (hopefully!) an easy way to help out while I get to know the codebase - is it a case of changing most/all defs to defonce? If so is there anything rigorous I can do to test that it's worked beyond leaving it on for a few hours?

dave 2016-03-02T15:53:30.000009Z

hi @djtango -- that would be super helpful, thanks so much for offering to help out!

dave 2016-03-02T15:53:48.000010Z

this is probably a great issue to start with

dave 2016-03-02T15:54:02.000011Z

it could definitely be an issue of using defonce instead of def

dave 2016-03-02T15:54:45.000012Z

we have a bunch of things (mostly defined as dynamic vars) that are reused that should probably be defonce'd instead of def

2016-03-02T15:55:17.000013Z

oh the dynamic vars can be defonce'd?

dave 2016-03-02T15:55:19.000014Z

particularly in the alda.server and alda.sound namespaces

dave 2016-03-02T15:55:35.000015Z

i'm thinking of things like the *midi-synth*

2016-03-02T15:55:36.000016Z

wasn't familiar enough with the inner workings to know whether it would be safe to change those

dave 2016-03-02T15:55:47.000017Z

yeah, they should be able to be defonced

2016-03-02T15:55:51.000018Z

okay

2016-03-02T15:55:53.000019Z

I'll take a look the

2016-03-02T15:55:54.000020Z

then*

dave 2016-03-02T15:56:23.000021Z

one way that i've typically been able to reproduce the issue is to start a server and play around with it, then shut my laptop and come back later and re-open it and interact with the same server

dave 2016-03-02T15:56:34.000022Z

my theory is that the shutting of the laptop has something to do with it

dave 2016-03-02T15:56:50.000023Z

perhaps things are being somehow re-def'd when my computer comes out of standby?

2016-03-02T20:03:40.000024Z

okay

2016-03-02T20:03:43.000025Z

I'll take a look at that

dave 2016-03-02T22:26:35.000026Z

@djtango: in case you weren't aware, you can run an alda server in the foreground (to see stacktraces, etc.) by running boot dev

dave 2016-03-02T22:27:17.000027Z

or if you have a local build of alda (say in /tmp), /tmp/alda server will run a server in the foreground