Re: core.async

2013-06-28 Thread Brandon Bloom
> CSP proper is amenable to certain kinds of automated correctness analysis. > No work has been done on that front for core.async as yet. Although a far cry from Go's race detector, Go did ship with one feature that is helpful for preventing a certain class

Re: Is there a better way to update a map atom?

2013-06-28 Thread Greg
OK, I've found something that shows how these two work when used in the implementation of a generator: https://gist.github.com/daveray/1263503 I think I understand what the problem is now: (reset! id (inc @id)) There's a "time gap" in between the dereference of 'id' and its assignment

Re: Detecting login and logout using friend

2013-06-28 Thread Steve Buikhuizen
Thanks Chas, since my current solution "ain't broke" I'll leave it as is for now. However, the moment I need to change it, I'll try your suggestion and will post the code here as well. -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: Latest JOGL with Clojure in Eclipse?

2013-06-28 Thread Greg
If you haven't considered LWJGL as an alternative to JOGL, I highly recommend it. I remember preferring it over JOGL when I compared them some years ago. Many popular game engines use it (like jMonkeyEngine). http://www.lwjgl.org/ http://mybuddymichael.com/writings/using-lwjgl-from-clojure.html

Re: lein repl and missing yank

2013-06-28 Thread Phil Hagelberg
On Friday, June 28, 2013 7:17:14 PM UTC-7, Jonathan Fischer Friberg wrote: > Should pasting be part of jline? Am I the only one that finds that really odd? jLine is a port of readline to the JVM. readline supports a kill ring, so jLine should too. That's different from the terminal performing pa

Re: Is there a better way to update a map atom?

2013-06-28 Thread Greg
Can anyone explain the relationship between swap! and reset! ? Why is using swap! in this example "safe" and using reset! not? I've tried searching google for comparisons of the two but can't find anything, and the documentation doesn't help much. Thanks, Greg On Jan 21, 2013, at 6:22 PM, Step

Re: lein repl and missing yank

2013-06-28 Thread Jonathan Fischer Friberg
Should pasting be part of jline? Am I the only one that finds that really odd? In my opinion, pasting should be part of the terminal - and it is. Standard shortcuts are ctrl+shift+v for gnome-terminal (and I assume other modern terminals, but I don't really know). The old standard is middle-click

Re: lein repl and missing yank

2013-06-28 Thread Manuel Sugawara
On Thu, Jun 27, 2013 at 10:50 AM, Manuel Sugawara wrote: > On Wed, Jun 26, 2013 at 6:51 PM, Phil Hagelberg wrote: > >> On Wednesday, June 26, 2013 3:26:58 PM UTC-7, Manuel Sugawara wrote: >> > Am working on a linux terminal with the REPL (as in lein repl) and the >> C-y binding does not work (ya

Re: core.async

2013-06-28 Thread Brandon Bloom
> Are people in love with names like `!!`, or is there room for rethinking the naming? These operators are important and common enough to justify being *syntax* in Go, which is pretty minimal on syntax overall. Personally, I think the names are pretty good. -- -- You received this message be

Re: core.async

2013-06-28 Thread Alex Baranosky
Very cool stuff. One point of feedback though: I thought Clojure Core had done a great job of avoiding a Haskell-like symbol-heavy. I might've been mis-informed, but I thought this tendency to avoid symbol-heavy naming was intentional. For example, instead of `-?>` in 1.5 we got `some->`. I tho

Records won't round-trip through edn.

2013-06-28 Thread Cedric Greevey
(defrecord MyRecord [x y]) (require '(clojure [edn :as e])) (e/read-string (pr-str (MyRecord. 'foo 42))) => RuntimeException No reader function for tag user.MyRecord clojure.lang.EdnReader$TaggedReader.readTagged (EdnReader.java:739) Is there some incantation that will make records round-trip su

Re: core.async

2013-06-28 Thread Nahuel Greco
I forgot the second Ulf Wiger link, related to the previous one: http://www.infoq.com/presentations/Death-by-Accidental-Complexity Saludos, Nahuel Greco. On Fri, Jun 28, 2013 at 4:46 PM, Nahuel Greco wrote: > Very nice! Selectable channels FTW. > > Btw, are you aware of the Erlang selective-re

Re: core.async

2013-06-28 Thread Nahuel Greco
Very nice! Selectable channels FTW. Btw, are you aware of the Erlang selective-receive model? Is often very overlooked but it showed big advantages over unfiltered channels. See this: http://www.erlang.se/euc/05/1500Wiger.ppt Saludos, Nahuel Greco. On Fri, Jun 28, 2013 at 4:06 PM, Rich Hickey

Re: core.async

2013-06-28 Thread David Nolen
Excellent! I've been playing around the ClojureScript support ... needs work ... but already A-M-A-Z-I-N-G. David On Fri, Jun 28, 2013 at 3:06 PM, Rich Hickey wrote: > I've blogged a bit about the new core.async library: > > http://clojure.com/blog/2013/06/28/clojure-core-async-channels.html

core.async

2013-06-28 Thread Rich Hickey
I've blogged a bit about the new core.async library: http://clojure.com/blog/2013/06/28/clojure-core-async-channels.html Please try it out. Thanks, Rich -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloju

[UPDATE] sublime-lispindent, clojure indenting for sublime text 2/3

2013-06-28 Thread Jonathan Fischer Friberg
Hi, This is a message to announce that sublime-lispindent has recently received an update. If you don't know what it is, check out the github page: https://github.com/odyssomay/sublime-lispindent The updates are: * Improved string/comment handling. Previously, lispindent tried to guess whether s

Re: I'm starting to wonder if I'm the only person using clooj ...

2013-06-28 Thread Plínio Balduino
Yup. It's the same problem. That lib is only available on OSX. On Fri, Jun 28, 2013 at 1:04 PM, Gary Trakhman wrote: > Happens on linux too: > gary@gary-dell:~/dev$ java -jar ~/Downloads/clooj-0.4.1-standalone.jar > # > java.lang.ClassNotFoundException: com.apple.eawt.FullScreenUtilities >

Re: I'm starting to wonder if I'm the only person using clooj ...

2013-06-28 Thread Gary Trakhman
Happens on linux too: gary@gary-dell:~/dev$ java -jar ~/Downloads/clooj-0.4.1-standalone.jar # java.lang.ClassNotFoundException: com.apple.eawt.FullScreenUtilities at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

Re: I'm starting to wonder if I'm the only person using clooj ...

2013-06-28 Thread Plinio Balduino
Hi there I sent a pull request fixing this Apple lib issue. https://github.com/arthuredelstein/clooj/pull/119 I'm not in Clooj list and never heard about before, but it sounds like an awesome project. Regards Plínio On Thursday, June 27, 2013 11:05:56 PM UTC-3, Cedric Greevey wrote: > > I'm

Re: I'm starting to wonder if I'm the only person using clooj ...

2013-06-28 Thread Gary Trakhman
I wanted to try out 0.4.1 on my desktop, is there a trick to getting it to run on windows? It errored out with something that looked like OSX-specific AWT usage. I can look at it more deeply some time. On Fri, Jun 28, 2013 at 10:06 AM, Lee Spector wrote: > > On Jun 28, 2013, at 4:53 AM, Rich M

Re: Adding implicit indexing to Clojure lists and arrays?

2013-06-28 Thread Mikera
Mike or mikera is fine :-) If you wanted to provide this kind of functionality, I'd normally suggest doing it with a protocol. Something like: (defprotocol PWrappedIndex (get-wrapped [coll index])) (extend-protocol PWrappedIndex clojure.lang.Indexed (get-wrapped [coll index] (nth

Re: Clojure generates unnecessary and slow type-checks

2013-06-28 Thread Mikera
On Thursday, 20 June 2013 08:45:47 UTC+1, Jason Wolfe wrote: > > On Saturday, June 15, 2013 4:37:06 AM UTC-7, Mikera wrote: >> >> On Friday, 14 June 2013 18:15:34 UTC+1, Jason Wolfe wrote: >> >>> Hey Mikera, >>> >>> I did look at core.matrix awhile ago, but I'll take another look. >>> >>> Right n

Re: I'm starting to wonder if I'm the only person using clooj ...

2013-06-28 Thread Lee Spector
On Jun 28, 2013, at 4:53 AM, Rich Morin wrote: > > That said, I'm also very interested in Light Table, which appears to be > developing rapidly into an open framework for IDE experimentation. So, > I'm wondering whether it might be easier and more productive (over the > long term) to create some

Re: Detecting login and logout using friend

2013-06-28 Thread Chas Emerick
Rather than looking at session changes (which may not capture all authentications, e.g. requests carrying HTTP Basic creds), why not a utility that composes workflow fns, squirting authentication events out the side? Your app is entirely responsible for logouts (you're either calling friend/log

Re: Latest JOGL with Clojure in Eclipse?

2013-06-28 Thread Andrew Voron
I dont know if I miss something, but after "lein deps" and trying to import NewtFacroty for ex. , clojure says me about absence of gluegen-rt-2.0.0-rc11-natives-windows-amd64.jar. All start working when I put this jar and native dlls into \.m2\repository\org\clojars\toxi\gluegen-rt\2.0.0-rc11\

Re: [ClojureScript] Re: ANN: ClojureScript release 0.0-1798

2013-06-28 Thread David Nolen
Thanks for the report! Please file a ticket for this in JIRA and we'll look into it. On Fri, Jun 28, 2013 at 3:13 AM, buze3000 wrote: > Hey David, > > just noticed this exception when switching back to :whitespace > optimizations but still having the :source-map entry active: > > https://www.ref

Re: New Fuzzy Matching Library - Fuzzy Matcher

2013-06-28 Thread Smit Shah
Hey there, Thank you so much for all the feedback, I really appreciate that you took the time to review you my code! I have made few changes since then let me address them, 1) I am aware of the bottom up dynamic algorithm for edit distance (using two dimensional array as a table), I just didn

Re: Pure/deterministic functions, as values in the compiler

2013-06-28 Thread Chris Bilson
emporas writes: emporas writes: > Now that the practice of applying collision resistant hashes (ie > unique strings), to save multiple > versions of structures with the possibility of overlapping, is > becoming less deficient thanks to better > hardware, i am wondering if there is a compiler in

Re: Looking for Clojure freelancers

2013-06-28 Thread Peter Taoussanis
Hi Xavi, thanks for getting in touch. Really sorry for taking forever to get back to you about this! I've got your details on file now (thanks for that!). Will get in touch if any projects come up for which I think I could use you. In that case I'll send you an email with the project details (what

Re: I'm starting to wonder if I'm the only person using clooj ...

2013-06-28 Thread Rich Morin
On Jun 27, 2013, at 21:53, Arthur D. Edelstein wrote: > Thanks again to both of you for your comments, suggestions, and bug > reports. Cedric's recent observations on clooj are very helpful and I > do hope to fix some of the problems soon. Sorry I've been unable to > maintain clooj at a reasonabl

Re: Detecting login and logout using friend

2013-06-28 Thread Steve Buikhuizen
I'll answer my own question here for future reference value. I found a much cleaner way was to create a wrapper type (deftype) for the ring session store impl. It is a simple delegating wrapper but it sees the correct cookies, regardless of the servlet container. It has the disadvantage of not

Re: ANN: ClojureScript release 0.0-1798

2013-06-28 Thread buze3000
Hey David, just noticed this exception when switching back to :whitespace optimizations but still having the :source-map entry active: https://www.refheap.com/16171 After removing the :source-map from the project.clj compilation failed with this exception: https://www.refheap.com/16172 After