Re: [PSA] Clojars scp disabled until further notice

2014-09-26 Thread David Pollak
Please count me in for $500 this month. Contact me off-list user d, domain athena dot com with info where I should send money. I ran the scala-tools.org Scala JAR repo for many years with the help of a few other folks. I understand the challenges of running a repo... the expectation that everyt

Re: Weird core.async/ClojureScript not workings...

2013-09-17 Thread David Pollak
- prismatic 0.1.2 >> >> but they don't seem to cause issues with 1859. If you've got any tips on >> using core.async master (maybe using lein's checkout feature?) I wouldn't >> mind trying that. >> >> On Sep 16, 2013, at 3:32 PM, David Nolen wro

Re: Weird core.async/ClojureScript not workings...

2013-09-16 Thread David Pollak
[org.clojure/clojurescript "0.0-1878"] [org.clojure/core.async "0.1.222.0-83d0c2-alpha"] [[lein-cljsbuild "0.3.2"]] On Mon, Sep 16, 2013 at 3:32 PM, David Nolen wrote: > Which versions of ClojureScript and core.async are you using? > > David > > &g

Weird core.async/ClojureScript not workings...

2013-09-16 Thread David Pollak
Howdy, I'm using core.async and ClojureScript and it seems that inside a go block, if/when/loop/while code is never executed. For example: (def dog33 (go (if true (.log js/console "it's true") (.log js/console "it's false" prints neither "it's true" nor "it's false", but (def dog33 (go

Weird core.async/ClojureScript issues

2013-09-16 Thread David Pollak
Howdy, I'm using core.async and ClojureScript and I'm running into a weird problem... basically if/when/loop constructs don't work anymore in go blocks in ClojureScript. For example: -- Telegram, Simply Beautiful CMS https://telegr.am Lift, the simply functional web framework http://liftweb.net

Re: Multiple Clojure contexts in the same JVM

2013-08-21 Thread David Pollak
Sweet. Thanks! On Tue, Aug 20, 2013 at 3:51 PM, Toby Crawley wrote: > > David Pollak writes: > > > I have an application where I need multiple independent Clojure contexts > > running in the same JVM. > > You can use ShimDandy[1] to load multiple Clojure runtimes

Re: Multiple Clojure contexts in the same JVM

2013-08-20 Thread David Pollak
y-var) > > I haven't pushed too much at the boundaries of classloaders tho' so > there may well be dragons there, but the above works for me for > embedding Clojure in an existing JVM-based web application. > > Sean > > > On Tue, Aug 20, 2013 at 1:35 PM, Dav

Multiple Clojure contexts in the same JVM

2013-08-20 Thread David Pollak
Howdy, I have an application where I need multiple independent Clojure contexts running in the same JVM. I've played around with a custom classloader, but when I try to eval code (calling RT.eval.invoke via reflection), I wind up with: java.lang.ClassCastException: clojure.core$eval1 cannot be c

Re: core.async channel GUID

2013-08-13 Thread David Pollak
> > On Wednesday, August 7, 2013 7:15:55 PM UTC-4, David Pollak wrote: >> >> Howdy, >> >> I'm working on bridging between core.async channels in the browser and on >> the server. It would be very useful to have a GUID associated with the >> channel s

Re: core.async channel GUID

2013-08-13 Thread David Pollak
That's what I went with. Thanks! On Wed, Aug 7, 2013 at 4:47 PM, Brandon Bloom wrote: > You can emulate this relatively easily with a pair of > serialize/deserialize functions which read/write to a global atom > containing a map. > > > On Wednesday, August 7, 2013 7:15:55

Re: Do you like the Clojure syntax?

2013-08-12 Thread David Pollak
A couple of quick reactions... The survey itself is too "flat". It's like asking "do you like red or green?" Well... I like green on my walls, but I like red on my ties. Scala has macros and a much richer syntax (although doing anything like core.async with Scala macros might be like putting tabs

core.async channel GUID

2013-08-07 Thread David Pollak
Howdy, I'm working on bridging between core.async channels in the browser and on the server. It would be very useful to have a GUID associated with the channel so that when I serialize a message that contains a channel, I can send the GUID instead and on the other side, create a proxy channel so t

Re: RPC over channels

2013-08-02 Thread David Pollak
This is a tough and interesting issue. Let's put aside the whole RPC issue for a moment and look at how code progressed from C-land to Java-land. In C, the developer had to check return values from function calls to see if the function succeeded. That led to ignoring return values or testing with

Re: core.async JAR

2013-07-05 Thread David Pollak
I've found the core.async files are in snapshots... this line in project.clj works for me: :repositories {"sonatype-oss-public" " https://oss.sonatype.org/content/repositories/snapshots/"} On Fri, Jul 5, 2013 at 12:24 AM, James Reeves wrote: > On 4 July 2013 15:20, pmf wrote: > >> Is there

Re: How to implement a distributed and concurrent system in Clojure?

2013-07-04 Thread David Pollak
Please keep in mind that Scala's "Actor Model" is a very thin piece of code that is not inherently distributed. There are a ton of issues in Scala related to crossing address spaces. Scala is not nearly as biased to immutability as Clojure. Sure, there are case classes, but case classes can easil

Re: core.async

2013-06-30 Thread David Pollak
Thanks! On Mon, Jul 1, 2013 at 8:13 AM, Sean Corfield wrote: > On Sun, Jun 30, 2013 at 4:42 PM, David Pollak > wrote: > > Looking forward to it > > being published (even as SNAPSHOT) in a Maven repo. > > It's accessible like this: > > (defproject async "

Re: Offline Clojure docs

2013-06-30 Thread David Pollak
Thanks everyone for the super helpful suggestions! On Mon, Jul 1, 2013 at 9:04 AM, Mark Engelberg wrote: > Download here: > https://github.com/clojure/clojure/tree/gh-pages > > -- > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to th

Re: Microsoft Rx -style operations with core.async

2013-06-30 Thread David Pollak
On Mon, Jul 1, 2013 at 7:46 AM, Brandon Bloom wrote: > Two bits of core.async feedback: > > 1) The (let [c chan] (go ...) c) pattern is *extremely-common*. Might be > nice to have something like (go-as c ...) that expands to that pattern. > > 2) It's somewhat annoying to always have to consider bo

Offline Clojure docs

2013-06-30 Thread David Pollak
Folks, Is there an offline package of Clojure docs (the full core.* api docs, cheat sheets, etc.)? I'm traveling with intermittent Internet connectivity (I'm in China now and it's marginal but I'm going to the UP in Michigan where there's no Internet within 15 miles of where I'm staying). With a

Re: core.async

2013-06-30 Thread David Pollak
.async stuff is really, really nice. Hats off and a huge "way to go, dudes!" to the team that made it happen. Looking forward to it being published (even as SNAPSHOT) in a Maven repo. Rock on! > > > On Sat, Jun 29, 2013 at 2:50 PM, David Pollak wrote: > >> What's

Re: core.async

2013-06-29 Thread David Pollak
What's the entry in project.clj to use the core.async stuff? Thanks! On Sat, Jun 29, 2013 at 9:44 AM, Joseph Smith wrote: > It seems to me that the Clojure space suffers from an unusual malady: it's > busy sitting here quietly advancing half of applied computer science, and > no one seems to n

Re: [ClojureScript] ANN: core.match 0.2.0-beta2

2013-06-17 Thread David Pollak
Awesome! On Mon, Jun 17, 2013 at 1:04 AM, David Nolen wrote: > At long last I've come around to overhauling core.match. > > Changes/Fixes/Enhancements are documented here: > http://github.com/clojure/core.match/blob/master/CHANGES.md > > core.match should no longer have AOT issues as far as I k

Re: simple brute-force password cracker runs out of memory

2013-06-16 Thread David Pollak
If there was a Clojure -> LLVM -> CUDA pipeline... Sorry just thinking about possibilities On Jun 16, 2013 3:19 AM, "Jim - FooBar();" wrote: > Hi guys, > > I tried for fun to write a parallel brute-force password cracker. I > particularly thought that if I can generate lazily all the possible >

Re: license of Javascript files generated by Clojurescript?

2013-06-12 Thread David Pollak
Unless one of the folks working on ClojureScript says otherwise, I would find it a real difficult interpretation of the EPL as applied to ClojureScript to be more restrictive than the GPL. On Wed, Jun 12, 2013 at 2:29 PM, PTCMHB wrote: > Thanks David, > I was confused because when using clojures

Re: license of Javascript files generated by Clojurescript?

2013-06-12 Thread David Pollak
The license of the JavaScript generated by the ClojureScript compiler is the license of the source code that was compiled. And that license may be "my company owns it and it's proprietary and we're not licensing it to anyone else." Even the FSF does not assert a GPL over code compiled by GCC even

Re: idiot question about macros

2013-06-09 Thread David Pollak
lop macros, I'll work hard to make sure the end users (who may not be me) get better feedback. Rock on. David On Fri, Jun 7, 2013 at 4:43 PM, Ben Wolfson wrote: > On Fri, Jun 7, 2013 at 12:30 PM, David Pollak < > feeder.of.the.be...@gmail.com> wrote: > >> >>

Re: idiot question about macros

2013-06-07 Thread David Pollak
On Fri, Jun 7, 2013 at 11:14 AM, Ben Wolfson wrote: > On Fri, Jun 7, 2013 at 11:09 AM, larry google groups < > lawrencecloj...@gmail.com> wrote: > >> >> I am very stupid and I am having trouble figuring out how to read >> this: >> >> (defmacro match-func [& body] `(fn [~'x] (match [~'x] ~@body)))

Re: Making things go faster

2013-06-06 Thread David Pollak
he lack of first-class namespaces and the static > nature of ClojureScript compilation and Closure optimization. > > In any case, whatever you do, any workflow that results in your bouncing > the JVM is a broken one, and any tools/libraries/frameworks/whatever that > push you in that d

Re: Why the CLR languages fail?

2013-06-06 Thread David Pollak
On Wed, Jun 5, 2013 at 11:55 PM, Zed Becker wrote: > Why do the languages running on the CLR (ironRuby, ironPython, ironScheme, > ScalaCLR) FWIW -- Scala on the CLR has always been a Microsoft funding issue. When Martin's lab got a grant for ScalaCLR, it did the work. When the funding went away

Re: Making things go faster

2013-06-04 Thread David Pollak
Thanks for pointing me in the right direction. I did a quick blog post to help other newbies: http://blog.goodstuff.im/clojure_workflow On Tue, Jun 4, 2013 at 1:54 PM, Tim Visher wrote: > On Tue, Jun 4, 2013 at 4:51 PM, David Pollak > wrote: > > So... the questions: > >

Re: core.match -- adding extractors?

2013-06-04 Thread David Pollak
en a ticket at this time. I just want to put the idea out there. > > > On Tue, Jun 4, 2013 at 4:17 PM, David Pollak < > feeder.of.the.be...@gmail.com> wrote: > >> Howdy David & Co., >> >> One of the *really* nice things about Scala's pattern matching

Making things go faster

2013-06-04 Thread David Pollak
Folks, I've been doing Clojure coding for the last couple of weeks and really love the language... and the community is fantastic. But the development cycle is slow. I'm coming from mostly Scala and a little Java. In Java, there's no REPL or anything... but the compile/test cycle is very fast.

core.match -- adding extractors?

2013-06-04 Thread David Pollak
Howdy David & Co., One of the *really* nice things about Scala's pattern matching is the ability to extend pattern matching using extractors. The research is presented in http://lampwww.epfl.ch/~emir/written/MatchingObjectsWithPatterns-TR.pdf The practical aspects allow testing and transforming a

Re: Future/Promise and not using threads

2013-05-30 Thread David Pollak
(+ 1 2) > > ... or maybe you want just `delay` > > Cheers, > Paul > > > > On Thursday, May 30, 2013 6:09:02 AM UTC-7, David Pollak wrote: > >> Okay... I wrote my own: >> >> https://github.com/**projectplugh/plugh/blob/** >> master/src/plugh/u

Re: Future/Promise and not using threads

2013-05-30 Thread David Pollak
Okay... I wrote my own: https://github.com/projectplugh/plugh/blob/master/src/plugh/util/misc.clj#L51 One can register for on-done and on-fail. I'll work on adding fail-fast and also map (so one can transform the future and execute code when the transformed future has been realized/delivered/fini

Future/Promise and not using threads

2013-05-29 Thread David Pollak
Howdy, I'm looking at using Future/Promise to be thread-friendly in some code. Background... Lift has Futures (or LAFuture... yeah... go ahead make fun of the name... pronounce it with a French accent)... with Lift futures, one can do: future.foreach(v => /* do something with the value */) If t

Compiling ClojureScript to JavaScript inside an app

2013-05-29 Thread David Pollak
Howdy, I'm looking to embed the ClojureScript compiler into an app I'm building (I'm packaging the app via uberjar). I'm trying to figure out how to compile ClojureScript to JavaScript in memory so that I get JavaScript stuff that I can shuttle off to places that can run JavaScript. Are there any

Re: Compiling ClojureScript to JavaScript inside an app

2013-05-29 Thread David Pollak
eers, > > Dave > > On Wed, May 29, 2013 at 1:49 PM, David Pollak > wrote: > > Howdy, > > > > I'm looking to embed the ClojureScript compiler into an app I'm building > > (I'm packaging the app via uberjar). I'm trying to figure out how to &

Re: Patching core.match

2013-05-29 Thread David Pollak
s. I know, I know, it's a bit of rigamarole > but that's the steps outlined by Clojure. > > Thanks again, > David > > > On Wed, May 29, 2013 at 3:47 PM, David Pollak < > feeder.of.the.be...@gmail.com> wrote: > >> I'm mailing my CLA to Rich right no

Re: Patching core.match

2013-05-29 Thread David Pollak
role > but that's the steps outlined by Clojure. > > Thanks again, > David > > > On Wed, May 29, 2013 at 3:47 PM, David Pollak < > feeder.of.the.be...@gmail.com> wrote: > >> I'm mailing my CLA to Rich right now. >> >> I'll do a pull r

Re: Patching core.match

2013-05-29 Thread David Pollak
ng > > Thanks, > David > > > On Wed, May 29, 2013 at 3:27 PM, David Pollak < > feeder.of.the.be...@gmail.com> wrote: > >> Howdy, >> >> I'm looking to patch core.match. There are a couple of cases where the >> pattern matcher eliminates rows

Patching core.match

2013-05-29 Thread David Pollak
Howdy, I'm looking to patch core.match. There are a couple of cases where the pattern matcher eliminates rows (basically, if you're pattern matching against a Map, a row containing a map that has all wildcards will be considered a "wildcard" row and all the subsequent rows will be removed). Here's

Re: Some feedback on coding style

2013-05-26 Thread David Pollak
s, > Ambrose > > > On Mon, May 27, 2013 at 9:08 AM, David Pollak < > feeder.of.the.be...@gmail.com> wrote: > >> Mark and James, >> >> Thank you for your input. >> >> There are two reasons why I don't want to simply test for nil as the >>

Re: Some feedback on coding style

2013-05-26 Thread David Pollak
t it might be worth it. > > In Clojure, it seems quite common to use functions that return nil to > achieve the same effect as partial functions, and there are several > functions and macros, like some-> and keep, that support that idiom. > > - James > > > > On 25

Some feedback on coding style

2013-05-25 Thread David Pollak
Hello, This is my first post to this group. If my post or the tone of my post is not up to this communities standards, please give me feedback so that I can integrate with the community. I'm coming from Scala-land. In Scala, there's a PartialFunction: http://www.scala-lang.org/archives/downloads