Re: ANN: Pink 0.4.0 / Score 0.4.0

2018-01-10 Thread Steven Yi
the time to work on but would much rather just use! Thank you! > > On Mon, Jan 8, 2018 at 1:41 PM, Steven Yi > > wrote: > >> Hi All, >> >> I'd like to announce the release of Pink 0.4.0 and Score 0.4.0: >> >> [kunstmusik/pink "0.4.0"]

ANN: Pink 0.4.0 / Score 0.4.0

2018-01-08 Thread Steven Yi
Hi All, I'd like to announce the release of Pink 0.4.0 and Score 0.4.0: [kunstmusik/pink "0.4.0"] [kunstmusik/score "0.4.0"] Pink is an audio engine library, and Score is a library for higher-level music representations (e.g. notes, phrases, parts, scores). Change logs are available at: https:

Re: Clarification on # as valid symbol character

2016-11-08 Thread Steven Yi
; using characters other than those explicitly endorsed in the documentation > might be useful. I also suspect a lot of people would want it off by > default, given that it might be fairly noisy for some projects. > > Andy > > On Tue, Nov 8, 2016 at 8:17 AM, Steven Yi > > wr

Re: Clarification on # as valid symbol character

2016-11-08 Thread Steven Yi
x27;<' are in common use as part of symbol names. ('$' seems often used with as->). As a user, I see one description in text, but in real world code I see other things in use, and that makes it confusing. It would be useful (to me at least) to have this be a little clearer w

Re: Clarification on # as valid symbol character

2016-11-08 Thread Steven Yi
Hi Ikuru, I'm afraid that section of the site doesn't really clear it up for me. There's a difference between when # is found as the initial character of the next item to read and when it's in the middle or end (i.e., auto-gensyms). (It's okay though; I'll reply further in my reply to Alex's

Clarification on # as valid symbol character

2016-11-07 Thread Steven Yi
Hi All, I wanted to understand whether '#' may be treated as a valid character for symbols. The Clojure site [1] has: "Symbols begin with a non-numeric character and can contain alphanumeric characters and *, +, !, -, _, ', and ? (other characters may be allowed eventually)." I realized I was us

[ANN] diff-eq - generate signal processing functions using difference equations

2016-10-06 Thread Steven Yi
Hi All, I'm pleased to announce the release of diff-eq, a library for generating signal processing functions using difference equations. https://github.com/kunstmusik/diff-eq https://clojars.org/kunstmusik/diff-eq The library provides the dfn macro which takes in a set of difference equations an

[ANN] Pink 0.3.0

2016-05-24 Thread Steven Yi
Hi All, I'd like to announce the release of Pink 0.3.0: https://clojars.org/kunstmusik/pink [kunstmusik/pink "0.3.0"] Pink is an audio engine library for making music systems and compositions. The ChangeLog is available at: https://github.com/kunstmusik/pink/blob/master/CHANGELOG.md This rele

JavaOne Meetup

2015-10-16 Thread Steven Yi
Hi All, I was wondering if anyone here will be attending JavaOne and would like to meet up. If interested, feel free to email me off-list and maybe we can work out a place for coffee/dinner/drinks/etc. Thanks! steven -- You received this message because you are subscribed to the Google Groups

Re: [ANN] Pink 0.2.0, Score 0.3.0

2015-07-30 Thread Steven Yi
AM UTC-4, zcaudate wrote: > > Wow, just watched the talk. I just recently inherited a USB keyboard so > I'll be trying some things out with this > > On a seperate topic, would pink be able to do distortion effects, ie.. > Plugging in an acoustic guitar and having it modulate the w

Re: [ANN] Pink 0.2.0, Score 0.3.0

2015-07-29 Thread Steven Yi
I haven't had much time lately so that's all there is at the moment. The design of Pink hasn't changed much since that presentation, so the contents of the video should still be relevant for understanding the design. I'm hoping to have more time available from October and am planning on develop

Re: [ANN] Pink 0.2.0, Score 0.3.0

2015-07-28 Thread Steven Yi
re built in Clojure and Java without using an external server. > > > On Tuesday, July 28, 2015 at 9:54:14 AM UTC-7, W. David Jarvis wrote: >> >> This might be a naive question, but for someone who's only tangentially >> familiar with the space, where does th

Re: [ANN] Pink 0.2.0, Score 0.3.0

2015-07-25 Thread Steven Yi
lider, engine for one of them is very precious! > > пятница, 24 июля 2015 г., 23:47:30 UTC+3 пользователь Steven Yi написал: >> >> Hi All, >> >> I'd like to announce the release of Pink 0.2.0 and Score 0.3.0: >> >> [kunstmusik/pink "0.2.0"] &g

[ANN] Pink 0.2.0, Score 0.3.0

2015-07-24 Thread Steven Yi
Hi All, I'd like to announce the release of Pink 0.2.0 and Score 0.3.0: [kunstmusik/pink "0.2.0"] [kunstmusik/score "0.3.0"] Pink is an audio engine library, and Score is a library for higher-level music representations (e.g. notes, phrases, parts, scores). ChangeLogs are available at: https:/

Re: awful performance on Windows 7 compared to anything else

2015-07-07 Thread Steven Yi
Hi Colin, I thought you might check: * "java -version" to see if you're defaulting to client or server mode, and maybe use -server to force that if it comes up client * "java -d64" to force 64-bit mode in case you have 32bit and 64bit JVM's there This is assuming you're on a 64-bit Windows and

Re: Question regarding java array

2015-06-15 Thread Steven Yi
aking some stupid mistake or something I'm not already know. > > On Thursday, June 11, 2015 at 11:20:42 AM UTC-5, Steven Yi wrote: >> >> I'm not sure why you'd see much slower results there. For reference, >> I'm on a Core i7-2720-M (MacbookPro 8,1 13&quo

Re: Question regarding java array

2015-06-11 Thread Steven Yi
AM, Ritchie Cai wrote: > Yup. Reflection is issue, I needed type hint. > However, on another note, I notice that in your first test case, your > evaluation takes about 3 ms, but on my machine it takes 76 ms. I'm running a > Xeon CPU at 3.5 GHZ, clojure-1.7-RC1. What could cause such

Re: Question regarding java array

2015-06-10 Thread Steven Yi
As mentioned by Colin and Andy, I would guess it would be some form of boxing and reflection going on. I tried the following: (defn array-max [^doubles arr] (let [len (alength arr)] (loop [m Double/NEGATIVE_INFINITY indx 0] (if (< indx len) (recur (max m (aget arr indx))

Re: When should defrecord be slower than deftype?

2015-06-04 Thread Steven Yi
16 PM, Mars0i wrote: > > > On Tuesday, June 2, 2015 at 11:16:49 PM UTC-5, Steven Yi wrote: >> >> As a side note, as an experiment I just tried overriding Object.equals >> and Object.hashCode with a defrecord, and I got a compiler error: >> >> CompilerException

Re: When should defrecord be slower than deftype?

2015-06-02 Thread Steven Yi
entical? > uses)--something like that? So if you want fast hashing by raw identity, > you should not use defrecord? > > > > On Tuesday, June 2, 2015 at 8:10:04 PM UTC-5, Steven Yi wrote: >> >> I'm not aware of anything that would lead to significant differences

Re: When should defrecord be slower than deftype?

2015-06-02 Thread Steven Yi
I'm not aware of anything that would lead to significant differences in regards to the function call. As a test, I defined an interface and used deftype and defrecord, then used no.disassemble[1] to inspect the results, using the following commands: user=> (use 'no.disassemble) user=> (defint

Re: [BUG?] loading Clojure source files from various data sources (classloading)

2015-05-21 Thread Steven Yi
Hi Alex, I'm not sure this will help, but I was working on a test project with embedding Clojure in Java and ended up adding my custom class loader to a map, bound to *ns*, and pushing/popping it to thread bindings: https://gist.github.com/kunstmusik/8e7817f71dff5ceb5229 In some commented out

Re: Why does the following Clojure code take 10x the time the C# version does? How to improve the Clojure version?

2015-05-20 Thread Steven Yi
yped to `Paper` and the various `x1, x2 etc` fields are of type long in the > Paper definition. > >- Also, > > (recur (unchecked-inc i)) > > > can be > > (recur (inc i)) > > > because `*unchecked-math*` is set to a truthy value. > > Please correct me if I m

Re: Why does the following Clojure code take 10x the time the C# version does? How to improve the Clojure version?

2015-05-19 Thread Steven Yi
On Tue, May 19, 2015 at 12:49 PM, Steven Yi wrote: > Hi Amith, > > Just got back from a trip and had a chance to look at this again. I'm > not sure why you didn't see a change there; I'm running the same > version of Clojure and Java here. > > I did another

Re: Why does the following Clojure code take 10x the time the C# version does? How to improve the Clojure version?

2015-05-19 Thread Steven Yi
beta3 and Oracle Java 1.8.0_45 on OSX Mavericks. > > On Saturday, 16 May 2015 08:32:12 UTC+5:30, Steven Yi wrote: >> >> Ah, I see. Well, I think then you can ignore the stuff about warming >> up, as this certainly takes a while to run here: >> >> "Elapsed tim

Re: Why does the following Clojure code take 10x the time the C# version does? How to improve the Clojure version?

2015-05-15 Thread Steven Yi
he `true` tells it to use the function that internally uses a java > array (as opposed to the function that internally uses a transient map.) > > The above mentioned command takes around 250secs on my laptop. My apologies > again, I should have made it clear how to execute the project. &

Re: Why does the following Clojure code take 10x the time the C# version does? How to improve the Clojure version?

2015-05-15 Thread Steven Yi
Hi Amith, I checked out your project from git and just doing 'lein run' I got a reported: "Elapsed time: 185.651689 msecs" However, if I modify the -main function in 214_intermediate.clj to wrap the time testing with (doseq [_ (range 20)]), to run the test multiple times, the behavior is much

Re: [ANN] mapfs: Using Clojure map as filesystem

2015-03-17 Thread Steven Yi
as a time-stamp) on a > file-equivalent ? If one could then see that metadata using some parameter > to your commands (ls -l), that would make this pretty powerful, IMHO. > > Thanks > Vish > > On Monday, March 16, 2015 at 11:41:04 AM UTC-5, Steven Yi wrote: >> >>

[ANN] mapfs: Using Clojure map as filesystem

2015-03-16 Thread Steven Yi
Hi All, I've posted a small experimental project I've been working on the past day that I thought was somewhat novel called mapfs: https://github.com/kunstmusik/mapfs It allows using a Clojure map like a filesystem. An example recording of it in use is here: http://kunstmusik.com/mapfs.gif T

Re: volatile vs java.util.concurrent.atomic.* vs atom

2015-03-11 Thread Steven Yi
I took a look at the bytecode of what was generated using no.disassemble (wrapping parts of the test code into defn's to disassemble it). I saw a couple of things going on, but I'm not sure exactly what it all means as I'm not super familiar with when Hotspot does method inlining. Maybe someon

Re: [ANN] Pink 0.1.0, Score 0.2.0

2015-03-09 Thread Steven Yi
Yes, Pink is written mostly in Clojure, with two Java classes there. In terms of efficiency, Pink is slower than SC and Csound. I found it a little hard to benchmark, as the systems aren't quite apples to apples (e.g., SuperCollider use a 32-bit signal processing chain, while Csound and Pink use 6

Re: [ANN] Pink 0.1.0, Score 0.2.0

2015-03-08 Thread Steven Yi
.com/2013/12/22/spectrograms-with-overtone/ > > On Monday, 9 March 2015 02:36:27 UTC+8, Steven Yi wrote: >> >> Hi All, >> >> I'd like to announce the release of Pink 0.1.0 and Score 0.2.0: >> >> [kunstmusik/pink "0.1.0"] >> [kunstmu

[ANN] Pink 0.1.0, Score 0.2.0

2015-03-08 Thread Steven Yi
Hi All, I'd like to announce the release of Pink 0.1.0 and Score 0.2.0: [kunstmusik/pink "0.1.0"] [kunstmusik/score "0.2.0"] Pink is an audio engine library, and Score is a library for higher-level music representations (e.g. notes, phrases, parts, scores). For more information, please see the

Re: Extending the LispReader with "embeded language lorms"

2015-02-11 Thread Steven Yi
For what it's worth, I see two things intertwined here, one being the desire to embed text in an arbitrary format and interpret it, the other being the mechanism in which you're doing it. To me, it seems you can do the kinds of things you have shown as examples by using just functions, macros,

Re: java.lang.OutOfMemoryError: PermGen space

2014-12-18 Thread Steven Yi
well upon the frees of PermGen space. I had Oracle JDK 1.7 on this test VM, so I don't know if that's a factor. Either way, I suspect it's an interaction of parts of your system with something being cached along the way that might be causing the OOME. On Thursday, December 18, 20

Re: java.lang.OutOfMemoryError: PermGen space

2014-12-18 Thread Steven Yi
. [1] - https://groups.google.com/forum/#!topic/clojure/LGZlC5BX92A [2] - http://java.dzone.com/articles/what-permgen-leak On Wednesday, December 17, 2014 7:05:36 PM UTC-5, Steven Yi wrote: > > Out of curiosity, are you colleagues perhaps using Java 8 JDK's? I saw > your message m

Re: java.lang.OutOfMemoryError: PermGen space

2014-12-17 Thread Steven Yi
Out of curiosity, are you colleagues perhaps using Java 8 JDK's? I saw your message mentions JDK 7 and PermGen was removed in Java 8[1]. [1] - http://www.infoq.com/articles/Java-PERMGEN-Removed On Wednesday, December 17, 2014 12:41:29 PM UTC-5, Moritz Ulrich wrote: > > > Hello, > > I'm getting

[ANN] Signals - 0.1.0

2014-12-15 Thread Steven Yi
Hi All, I'd like to announce a new Clojure library called Signals: http://github.com/kunstmusik/signals This is a library for working with time-varying signals (mutable data). It's designed with the view that Clojure's IDeref's (i.e. atoms, refs, agents) are time-varying signal sources. It use

Re: Memoize in the real world

2014-12-09 Thread Steven Yi
No reason really, just ended up writing it that way for the example. (Maybe subconsciously I didn't want to think about pointer pointers and wanted to break up the notation. :P) On Tue, Dec 9, 2014 at 11:18 PM, Fluid Dynamics wrote: > > > On Tuesday, December 9, 2014 7:19:27 PM UT

Re: Memoize in the real world

2014-12-09 Thread Steven Yi
Hi Andy, Just my two cents here, but I don't think memoize makes sense here myself due to this not being referentially transparent, and I think Andrey's comment on delays makes more sense to me. You could do something like this: (def conf (atom (delay (read-and-expensively-parse "somefile.xml"

Re: Dynamic args in delayed function calls

2014-12-05 Thread Steven Yi
Hi All, Just following up, I've been contemplating the idea of dynamic values/time-varying state a lot in the context of my previous email. If something that is deref-able (IDeref) is considered something that is time-varying, then it also leaks that what uses it is impure. If IDeref becomes

Dynamic args in delayed function calls

2014-12-02 Thread Steven Yi
Hi All, I was working on a music notation issue with my music libraries Pink and Score and came upon a solution I thought was curious. It certainly solved a real problem I had with delayed function calls, and I thought maybe others might find a use for it too. The scenario I had is that in writin

Re: Attempting to import class from a non-standard location [interop]

2014-11-30 Thread Steven Yi
Hi John, Could this maybe just be a dependencies problem? It seems you're trying to use classes from two different libraries: com.googlecode.libphonenumber/libphonenumber com.googlecode.libphonenumber/carrier If checking the dependencies for your build doesn't solve it, could you explain a li

Re: Performance notes for Pink

2014-11-26 Thread Steven Yi
Hi Sergey, Yes, there's two places I fell back to Java. One was in the primitive math operations when using two arrays (in pink.util, for sum, mul, div, and sub). I found it was a little slower over a million runs using the Clojure code, but I'm still debating whether to return it back and see

Re: Clojure meetup in Rochester, NY?

2014-11-23 Thread Steven Yi
Hi Tom, I'm a little late to reply, but I live in Rochester and would love to get together to talk about all things Clojure. If you're still up for meeting or have a meeting planned already, please do contact me offlist. Thanks! steven On Thursday, November 13, 2014 9:08:00 PM UTC-5, Tom Georg

Performance notes for Pink

2014-11-23 Thread Steven Yi
Hi All! First I wanted to say that the Clojure/Conj was fantastic! I learned a great deal and met many wonderful people. Many thanks to Cognitect! Regarding my music system Pink, I had wanted to talk about performance concerns in building a signal processing system on the JVM, but had to cut ou

[ANN] Pink and Score

2014-08-11 Thread Steven Yi
Hi All, I'd like to announce two Clojure libraries for music systems design and composition called Pink[1] and Score[2]. Pink is a library for music system design. It currently contains code for an audio engine, events processing, and signal processing. It is heavily influenced by Music-N systems

Re: Questions regarding lazy sequence processing

2013-02-16 Thread Steven Yi
gt; > >> To your first question: How about >> >> (defn amix >> [& a] >> (apply map + a)) >> >> >> >> 2013/2/16 Steven Yi > >> >>> Hi All, >>> >>> I'm fairly new to Clojure (enjoying it very much!)

Questions regarding lazy sequence processing

2013-02-15 Thread Steven Yi
Hi All, I'm fairly new to Clojure (enjoying it very much!) and had a couple questions regarding lazy sequences. 1. With a sequence of sequences, I want to reduce the sequences down into a single sequence. So, the heads of all the sequences gets reduced, then the next items, etc. The end re