#clojure logs

2008-03-26

09:03bgeronrhickey: 0install.net yes
09:03rhickeydo people have to install it first?
09:06bgeronthey have to install zeroinstall once, but you don't have to be root for that
09:06rhickeyhmm...
09:06bgerondon't feel obliged to make a feed though :)
09:07bgeronyou have to package your dependencies as well if you want it to work really neat, which can be a lot of work
09:07bgeronsource implementations, compile binaries on multiple platforms if necessary
09:08rhickeydoesn't sound like my kind of thing
09:08rhickeyClojure is a dev tool
09:09bgeronwhat made me lose devel-time was seeing 0launch http://quackcode.org/2008/interfaces/parrot.xml work on my box
09:09bgeron(won't work if you don't have ICU or are not on Linux-i486, which I'm fixing)
09:57Chousersurely anybody could package Clojure for 0install or any other packagin system if they really wanted to.
12:00nsinghal_Rich, I am reading from the remote repl the results of my command (all-ns). The (read rdr) is trying to parse the result. I get errors:
12:00nsinghal_socket=> java.lang.Exception: ReaderError:(2,1) No dispatch macro for: <
12:00nsinghal_ at clojure.lang.LispReader.read(LispReader.java:158)
12:00nsinghal_ at clojure.fns.clojure.read__425.invoke(boot.clj:1371)
12:01nsinghal_then i can keep running (read rdr) and getting errors:
12:01nsinghal_java.lang.Exception: ReaderError:(2,1) Invalid token: Namespace:
12:01nsinghal_ at clojure.lang.LispReader.read(LispReader.java:158)
12:01nsinghal_ at clojure.fns.clojure.read__425.invoke(boot.clj:1371)
12:03rhickeyThe output of the REPL is meant for humans, not all of it can be read with read
12:04rhickeySo a program communicating via a Repl must take care to to execute only the fns for which the ouput can be prn'ed and read
12:04rhickeyi.e. you'll need to write some helper functions
12:07nsinghal_ok let me do that. thx
12:08rhickey(map #(. % name) (all-ns))
12:08rhickey(xml zip clojure set user)
12:08rhickeylike that
16:30rhickeyrepl-on-a-socket, client and server, 50 lines: http://en.wikibooks.org/wiki/Clojure_Programming#Examples
17:17rhickeyNice blog entry on Clojure: http://bendiken.net/2008/03/26/finding-clojure
17:31Chouserwhat do you think about continuations? Pretty much impossible with how Clojure uses the JVM stack?
17:43rhickeyI'm not a fan of continuations as a practical programming feature
17:49rhickeyand a no go on the JVM stack
17:50Chouseryeah, ok.
17:56rhickeyTCO I'd take in a heartneat
17:56rhickeyheartbeat
17:58rhickeyhttp://blogs.sun.com/gbracha/entry/will_continuations_continue
22:04jonathan_Oh rhickey, the proxy stuff kicks ass btw! I managed to use it to render JTables exactly like my legacy C++ grids in a work demo... ;)
22:04jonathan_Go subclassing!
22:06rhickeyGreat!
22:09jonathan_And I ported my RPCish code to .NET this morning so my developers will be calling a Clojure/Oracle backend from .NET GUIs ... I think they are a bit freaked out by seeing someone write a IVBSAXContentHandler and get it working inside about 2 hours
22:10jonathan_hehe ... I suspect it would take me a week to get anywhere at all with WCF, not that I would ever try
22:11rhickeyfun
22:11jonathan_What's your background Rich? I'm assuming you haven't had to put up with any Business Consulting ...
22:14rhickeyscheduling, yield management, audio fingerprinting, broadcast automation, election projection and most recent, machine listening and cochlear modeling
22:15jonathan_what sort of scheduling?
22:16rhickeymusic and advertising scheduling for broadcasters
22:17jonathan_dandelionradio.com <-- best internet radio ever (aside)
22:18jonathan_interesting, I was at Queens Medical center early 90's, they did some cochlear implants there I think ... never got to work on that though, though my background is medical physics
22:19rhickeythis is strictly modeling for machine hearing, not assistive
22:19jonathan_ahh ok, what's the goals for machine listening?
22:20rhickeyautomated polyphonic music transcription
22:20jonathan_wow, that really sounds like a lot of fun
22:20rhickeyyup
22:21rhickeyunsolved problem territory
22:21jonathan_yeah, I think I've figured out, that making users happy (gas pipeline schedulers and shippers in my case), is what makes me happy
22:21jonathan_yeah, breaking new ground is cool
22:23jonathan_(for the smart kids)
22:23jonathan_but in the land of the blind, the one-eyed man is king ...
22:25rhickeyheh
22:27jonathan_there's some interesting applications using doppler ultrasound to listen for high speed bloodflow at the edges of tumor vascularization
22:27jonathan_I'm sure there's loads of 'listening to' structures applications too
22:29rhickeyyeah, I'm interested in modeling musicians, who need to 'hear', and long-term, musical memory
22:29jonathan_what do you play?
22:29rhickeyguitar
22:30rhickeyand you?
22:30jonathan_yeah, I play bass, but it's more of a disability, than an actual ability. I own a guitar though
22:30jonathan_I wish I had time to pick it up
22:31jonathan_I'm sure playing a real instrument makes you hear differently
22:32rhickeyhearing is an amazing sense, and very tough to model
22:33jonathan_how can you know if you are modeling it accurately?
22:33rhickeywhen the model can discern what I can, it works
22:34rhickeybut biological viability is secondary for my work
22:35rhickeystill, I have hair cells and and a neural net
22:36jonathan_if I analyze my own voice, I see 3 or 4 distinct traces, I assume that corresponds to vocal chords?
22:40rhickeydepending on the resolution of your trace, they're either harmonics, or more coarsely, formant regions
22:41rhickeyMy model has thousands of hair cells
22:41jonathan_ok, I had no idea, I should hit wikipedia
22:43jonathan_simulated hair cells?
22:43jonathan_moving around in the fluid in the cochlea?
22:44rhickeyright
22:49rhickeywas doing Mathematica and C++, now moving most of it to Clojure
22:54jonathan_yeah, that makes sense, the JVM has a lot going for it, performance and ease of deployment, once you remove the jre1.3 from the xp path ... well for us windows users, anyway
22:55jonathan_Java numerics have a bad rep though?
22:56jonathan_FUD?
22:57rhickeywell, I'm working on building a bridge to the Intel Performance Primitives for the lowest-level part of the filters
22:58rhickeythousands of hair cells x 44kHz sampling rate
22:58rhickeylots of crunching
22:59jonathan_wow, sounds amazing
23:02albino[02:22] <mnestic> funny that cloujure is on the JVM :-) you should convince him to re-write the VM in C ... a little healthy competition.
23:02albinoThe #factor guys are talking about cloujure
23:04jonathan_It's in SVN, they could port it, ... or fork dotLisp ... ;)
23:04rhickeyyikes
23:05rhickeyI would never try to write Clojure in c/c++
23:07rhickeyhuge benefits to sharing memory model. GC and type system with implementation language
23:14albinoyeah
23:14albinofactor started out on the jvm
23:15jonathan_I love Swing ... after using MFC then WinForms
23:17rhickeyI don't know too much about factor