[JOB] Software Engineer (PuppetDB) - Remote, North America

2021-07-21 Thread Rob Browning
We are searching for a software engineer to help with the development, maintenance, and testing of PuppetDB – Puppet’s PostgreSQL backed, Clojure based data warehouse. -- https://puppet.com/company/careers/jobs/3247910 Thanks -- Rob Browning -- You received this message because you are

Re: spec with schema and select?

2019-03-08 Thread Rob Nikander
Thanks, I will do that. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this g

spec with schema and select?

2019-03-07 Thread Rob Nikander
Hi, I just watched a chunk of this talk from a few months ago ("Maybe Not" [1]). Is there a pre-release version of spec available, that has `schema` and `select` in it? I have a project where I'm fine with using bleeding edge stuff that will change. Rob [1]: https://www.yout

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-05 Thread rob
If ClojureScript repl integration works smoothly out of the box then that's already one reason to use it over Cider... (This is not a jab at Cider, just a statement of fact that Cider's support for ClojureScript development has so far been lacking, IME) On Thursday, July 5, 2018 at 10:51:02 AM

Re: Coordinating STM with database?

2018-03-23 Thread Rob Nikander
On Friday, March 23, 2018 at 4:26:37 PM UTC-4, Andy Fingerhut wrote: > > I do not know what the result of that discussion was, but I would guess it > did not turn into a change that was incorporated into Clojure. In the > discussion thread you linked to, Dave Griffith mentioned attaching a pat

Coordinating STM with database?

2018-03-23 Thread Rob Nikander
Hi, I see this was discussed before. Did it go anywhere? Basic idea: make a `dosync` transaction succeed or fail along with a database transaction. https://groups.google.com/forum/#!topic/clojure/qiKnCVAaZKw Rob -- You received this message because you are subscribed to the Google Groups

Re: Loop causing OutOfMemoryError: GC overhead limit exceeded ?

2018-03-02 Thread Rob Nikander
On Friday, March 2, 2018 at 12:48:28 AM UTC-5, Daniel wrote: > > How do you know this code is causing the error? Unless this is all your > code does, descriptions of the error suggest the memory leak might be > coming from anywhere. This tight loop might trigger too many successive GCs > thoug

Loop causing OutOfMemoryError: GC overhead limit exceeded ?

2018-03-01 Thread Rob Nikander
I have some Clojure code that throws this, occasionally. Unfortunately I can’t paste my real function here, but it looks much like the one below. (Changed variable names and simplified some irrelevant - I hope - details). Anything jump out as a memory-leak? It queries a DB table to get a li

Re: core.async consumer + producer working by chunk?

2018-01-06 Thread Rob Nikander
On Jan 5, 2018, at 8:01 PM, Gary Verhaegen wrote: > What about simply having the producer put items one by one on the channel? I will do that. My current producer is doing too many other things, but if I break it up into separate threads or go blocks for each work queue, then that should wor

Re: core.async consumer + producer working by chunk?

2018-01-05 Thread Rob Nikander
On Friday, January 5, 2018 at 4:00:25 PM UTC-5, Moritz Ulrich wrote: > > > You have a channel with a buffer-size of one. You clear the buffer by > taking one item from it, making room for another one. Therefore the put > succeeds. Try just `(async/chan nil xform)` to create a channel without >

Re: core.async consumer + producer working by chunk?

2018-01-05 Thread Rob Nikander
quot;)) (async/thread (async/>!! c [7 8 9]) (println "put #3"))) put #1 As expected it prints "put #1" right away, and other threads are blocked. But... user> (poll! c) => 1 put #2 user> (poll! c) => 2 put #3 As soon

Re: core.async consumer + producer working by chunk?

2018-01-05 Thread Rob Nikander
On Friday, January 5, 2018 at 2:03:00 PM UTC-5, Brian J. Rubinton wrote: > > > What is the buffered channel’s buffer used for? If that’s set to 1 and the > channel’s transducer is `(mapcat identity)` then the producer should be > able to continuously put chunks of work onto the channel with the

core.async consumer + producer working by chunk?

2018-01-05 Thread Rob Nikander
ather than `select ... limit 1` 50 times. Rob -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your

Re: form comment and meta data?

2017-10-13 Thread Rob Nikander
^:private foo 1) > (def 1) > Makes sense. Thanks. Rob -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient

form comment and meta data?

2017-10-13 Thread Rob Nikander
Hi, Why doesn't this compile? I tried to comment out the "private" metadata. (def #_^:private foo 1) CompilerException java.lang.RuntimeException: First argument to def must be a Symbol, compiling:(null:1:1) Rob -- You received this message because you are subscribe

Re: Updating repeated nested structures?

2017-10-10 Thread Rob Nikander
Gah. I changed one name and not another. I meant: (update-in m [:qs * :nums] ...) On Tuesday, October 10, 2017 at 10:18:56 AM UTC-4, Rob Nikander wrote: > > Hi, > > Say I have a map like this: > > (def m {:qs [{:nums [3 1 2]} {:nums [7 4]}]}) > > I want to tran

Updating repeated nested structures?

2017-10-10 Thread Rob Nikander
tic way to do this, that looks more like the shorter `update-in` idea? Rob -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - plea

Re: Help ship Clojure 1.9!

2017-10-02 Thread Rob Nikander
I get this when I switch from 1.8 to 1.9 beta, but maybe it's an issue with the `core.match` library? WARNING: boolean? already refers to: #'clojure.core/boolean? in namespace: clojure.tools.analyzer.utils, being replaced by: #'clojure.tools.analyzer.utils/boolean? Ro

Re: [ANN] Clojure 1.9.0-alpha20

2017-09-08 Thread rob
Relatedly, what is the rationale for this requiring or benefiting from new syntax, versus using tagged literals for things like Inf & -Inf. Is it a compiler performance optimization or something like that? On Friday, September 8, 2017 at 12:27:02 PM UTC-7, Alex Miller wrote: > > > On Fri, Sep 8

tags or categories for tests?

2017-08-20 Thread Rob Nikander
Hi, The lein command `lein help test` explains that you can add metadata to tests and select subsets of tests to run. Is there a way to do something like that from the REPL (clojure.test/run-tests) without lein? Rob -- You received this message because you are subscribed to the Google

Re: printing self referential data?

2017-07-24 Thread Rob Nikander
I think in my case here the easiest thing will be to remove the cycles, but still I'd like to understand a couple things... On Sunday, July 23, 2017 at 10:12:46 PM UTC-4, Didier wrote: > > I'm not sure I can fully help without you explaining more what you're > doing. It sounds like you've got a

printing self referential data?

2017-07-23 Thread Rob Nikander
clean and simple and I'm happy with it, except ... the things don't print in the REPL. (stack overflow) Are there any tricks to printing cyclical data structures in the REPL? Rob -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

Re: How is this code to create a stateful lazy sequence?

2017-07-23 Thread Rob Nikander
Yes, I find that much clearer too. Thanks! On Saturday, July 22, 2017 at 4:50:23 PM UTC-4, tbc++ wrote: > > If we think about what we're doing here is a stateful filter, then maybe > we could leverage a few more core Clojure functions: > > > (defn distinct-by [f coll] > (let [seen (atom #{})] >

How is this code to create a stateful lazy sequence?

2017-07-22 Thread Rob Nikander
y :a xs) => ({:n 1, :a a} {:n 2, :a b} {:n 4, :a c}) Rob -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with

Re: better way to group consecutive numbers in a vector?

2016-10-01 Thread Rob Jentzema
Nice, I like that solution. Clean, logical and semantical :) (defn consecutive? [[x y]] (= (inc x) y)) (def nonconsecutive? (complement consecutive?)) (partition-between nonconsecutive? [1 2 3 4 6 7 9 11 14 15]) ;=> ([1 2 3 4] [6 7] [9] [11] [14 15]) (partition-between consecutive? [1 2 3 4 6

Re: where to find clojure gigs?

2016-07-15 Thread rob
We're (http://www.Omnypay.net) looking for Clojurians to work short term with the eventual possibility of long term. Drop me a note (j...@omnypay.net or direct if you know my direct email) and let me know what you are looking for and your experience. Thanks! Rob On Wednesday, July 13,

Re: If a Java function seems to never return, how do I test?

2015-11-02 Thread Rob Lally
t; to capture it. Rob. > On 2 Nov 2015, at 12:22, Lawrence Krubner wrote: > > > Now there is a new error. > > Somehow, when the exception happens in our Java library, even though we, in > theory, write to System.out.println(), I never see the Exception in the logs. &

Re: Just found out about Elixirs function argument pattern matching...

2015-09-05 Thread Rob Lally
evidence) that the defun version is still faster than the elixir version. Rob --- user=> (bench (accum-defn 1)) WARNING: Final GC required 2.590098761776679 % of runtime Evaluation count : 429360 in 60 samples of 7156 calls. Execution time mean : 139.664539 µs Execut

Re: Using a dynamic var for my database connection for implicit connections+transactions

2015-08-03 Thread Rob Lally
; is started and retained for the lifecycle of the application. Creating the > additional hoops for the user to jump through for purely theoretical benefit > seems unwarranted in this scenario. > > > On Monday, August 3, 2015 at 6:48:05 PM UTC-4, Rob Lally wrote: > Hey Pablo, >

Re: Using a dynamic var for my database connection for implicit connections+transactions

2015-08-03 Thread Rob Lally
03:19, J. Pablo Fernández wrote: > > Rob, > > The transactions are not global, the transactions are local. Connections are > global and there's no way around it with the constraints of a traditional > RDBMs. Your idea of making the global connection unavailable for code t

Re: Using a dynamic var for my database connection for implicit connections+transactions

2015-08-01 Thread Rob Lally
Hey Pablo, I could be wrong, but it seems that the key problem here is the existence of the global transaction. If the global transaction didn’t exist then any time you failed to pass in a transaction the code would fail: immediately and loudly. I appreciate what you’re trying to do but it seem

Re: Convenient memoization with destructured arguments

2015-01-26 Thread Rob Lally
Graph from prismatic/plumbing [ https://github.com/Prismatic/plumbing <https://github.com/Prismatic/plumbing> ] provides memoization/delayed-execution allowing you to maintain a map-like structure whilst deferring and caching calculations. Rob. > On 26 Jan 2015, at 09:17, Da

Re: Deterministic Randomness in Functional Clojure

2014-11-03 Thread Rob Lally
It might also be worth noting that the JDK ships with java.security.SecureRandom a subclass of java.util.Random. http://docs.oracle.com/javase/8/docs/api/java/security/SecureRandom.html R. On 1 Nov 2014, at 10:31, Mars0i wrote: > > > On Friday, October 31, 2014 11:19:19 PM UTC-5, Isaac

Re: Type checking in :pre conditions

2014-07-23 Thread Rob Lally
Hi Wes, I'd be on the "don't do that" side of the fence. I did something similar when I first moved from Java to a dynamically typed language (I suspect that most people do) and it hinders at least as much as it helps. For me, the thing that I needed to internalise is that Clojure isn't lacking

Re: How should I implement an elevator state-machine with loops and core.async?

2014-05-22 Thread Rob Day
I haven't taken a detailed look yet, but you say you're watching the atom in a background loop - would http://clojuredocs.org/clojure_core/1.2.0/clojure.core/add-watch be more idiomatic and more efficient? Best, Rob On 22 May 2014 14:17, Jesse wrote: > Hey guys, I am trying to bu

Re: Joy of Clojure example not working

2014-05-19 Thread Rob Day
It looks like it expects the keyword :osx, not the symbol osx. Could that be the issue? On 19 May 2014 16:39, gamma235 wrote: > Hi guys, I am working through the pre-release second edition of Joy of > Clojure's section on multi-methods (section 9.2.~ : pg. 313), and am getting > different outputs

Re: Looking for help with a Stack Overflow error

2014-05-17 Thread Rob Day
A better approach might be to break it down into three groups: * The first three numbers (rows 1 and 2), constrained by rule D * The middle three numbers (row 3), constrained by rule A * The last four numbers (row 4), constrained by rule E There are only 10!/7! or 10!/6! initial possibilities fo

Re: What is going wrong in my code?

2014-05-11 Thread Rob Day
On 11 May 2014 15:18, Hussein B. wrote: > Hi, > > I'm trying to learn how to make DSL in Clojure and Korma project is a > really good place to learn from. I'm trying this very simple stuff (inspired > by Korma, not Korma code): [code snipped] > But when I'm trying in the REPL: > > (select > (

Re: What is going wrong in my code?

2014-05-11 Thread Rob Day
On 11 May 2014 15:18, Hussein B. wrote: > Hi, > > I'm trying to learn how to make DSL in Clojure and Korma project is a > really good place to learn from. I'm trying this very simple stuff (inspired > by Korma, not Korma code): [code snipped] > But when I'm trying in the REPL: > > (select > (

Re: project docs

2014-04-17 Thread Rob Day
If you just want to preview the docs, Emacs has a markdown-mode - http://jblevins.org/projects/markdown-mode/. I can type C-c C-c p when editing my README.md, and a properly formatted version comes up in Firefox. On 17 April 2014 19:31, Andrey Antukh wrote: > Hi. > > Personally I don't know any s

Re: Google Summer of Code 2014 proposal

2014-03-12 Thread Rob Day
I don't have enough experience in this field to comment very sensibly (or offer to mentor), but I wanted to say that I think it would be really nice to have a broader selection of specialised persistent data structures available for Clojure. On 12 March 2014 09:56, Matteo Ceccarello wrote: > The

Re: Is there a function to determine if code is run as script or library ?

2014-02-26 Thread Rob Day
'lein run -m ' will run the "main-" function of a namespace, which otherwise won't be run unless deliberately invoked (like all functions). Is that what you're looking for? (See https://github.com/technomancy/leiningen#basic-usage). On 26 February 2014 09:57, Aaron France wrote: > > Hi, > > > Yo

[ANN] ttlcache, an improved (?) version of core.cache's TTLCache

2014-02-25 Thread Rob Day
right or whether there's something simple I've missed. Thanks! Rob P.S. I don't think this is yet in a state where I can open a JIRA request and try and get some of the improvements back into core.cache - mainly because it's slower when expiring large numbers of keys from the cac

Re: How to override the default port on 3000?

2014-02-25 Thread Rob Day
If you do want to use port 80, it's generally safer to use a reverse proxy like nginx to listen on port 80 and forward to port 3000 - that way your code doesn't need root privileges and is less of a security headache. On 25 February 2014 14:59, Josh Kamau wrote: > you can also change this line on

Re: Why is Clojure faster than Java at this task?

2014-02-25 Thread Rob Day
It looks like an improvement in clojure.lang.BigInt over java.math.BigInteger - BigInt's add() method seems to do a long + long add if it doesn't overflow (https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/BigInt.java#L142) and only fall back to BigInteger's add method (which has

Re: I'm trying to make proper urls, but I seem to be failing at it.

2014-02-25 Thread Rob Day
What are url-encode and url-decode doing wrong? They look like they should work (e.g. https://github.com/ring-clojure/ring-codec/blob/master/test/ring/util/test/codec.clj#L21). On 25 February 2014 07:14, David Toomey wrote: > I'm building a site and I would like to allow users to create and accou

Re: a couple questions about counting frequencies of words in a text file

2014-02-11 Thread Rob Buhler
Thanks! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email

Re: a couple questions about counting frequencies of words in a text file

2014-02-11 Thread Rob Buhler
still reading in the file all at once. If this is not the case, then great! I did see this thread on updating a value in a map if. It exists -https://groups.google.com/forum/#!topic/clojure/sj2jc1Uquyk but if I don't need to go that route I won't this time -Rob -- You received th

a couple questions about counting frequencies of words in a text file

2014-02-10 Thread Rob Buhler
o the right track here. I'm just thinking of something like this (in Python): for i in xrange(100): key = i % 10 if key in d: d[key] += 1 else: d[key] = 1 Can I somehow count all of the frequencies line by line and not use an atom (

Re: [ANN] Buffy The ByteBuffer Slayer, Clojure library to working with binary data

2013-12-04 Thread Rob Day
On 29 November 2013 22:15, Alex P wrote: > Buffy [1] is a Clojure library to work with Binary Data, write complete > binary protocol implementations > in clojure, store your complex data structures in an off-heap chache, read > binary files and do > everything you would usually do `ByteBuffer`. I

Re: [ANN] overload-middleware 0.1.1

2013-11-17 Thread Rob Day
oad is: (def wrap-overload (create-overload-wrapper (constantly {:status 503 :body "Overloaded"}) #(= 503 (:status % Does this sound like it fits your use-case? Best, Rob -- -- You received this message because you are subscribed to the Google

Re: [ANN] overload-middleware 0.1.1

2013-11-16 Thread Rob Day
f telling if the wrapped function is reporting overload (the equivalent of #(= 503 (:status response)) then it should be quite easy to apply it to other protocols. Rob -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post t

[ANN] overload-middleware 0.1.1

2013-11-16 Thread Rob Day
tation is usable, so I'm announcing it now. Github (w/ docs): https://github.com/rkday/overload-middleware Clojars: https://clojars.org/overload-middleware Let me know if you have any feedback! Rob P.S. I threw together a simple demo (available from https://github.com/rkday/overload-mid

Re: Step by step debugging

2013-11-07 Thread Rob Ashton
There is redl which does some of this too, that's more for the vim workflow though On Thursday, November 7, 2013, Phillip Lord wrote: > > > Ritz does some things, but it doesn't do step through like edebug. > > I've never found anything as nice as edebug in any language; I guess, > it's the big a

Re: Step by step debugging

2013-11-07 Thread Rob Ashton
There is redl which does some of this too, that's more for the vim workflow though On Thursday, November 7, 2013, Phillip Lord wrote: > > > Ritz does some things, but it doesn't do step through like edebug. > > I've never found anything as nice as edebug in any language; I guess, > it's the big a

Re: boolean java interopt puzzle/bug?!

2013-10-06 Thread Rob Browning
rther, my understanding is that the Boolean constructors are more or less considered a mistake, and you should effectively never use them. For example: http://rayfd.me/2007/01/17/the-evil-boolean-constructors/ Hope this helps -- Rob Browning rlb @defaultvalue.org and @debian.org GPG as of 2011

Re: another game of exploding heap, via clojure.string/split

2013-09-18 Thread Rob Lally
I've used YourKit extensively for profiling and analysis and would highly recommend it . Rob. On 17 Sep 2013, at 08:56, Andy Fingerhut wrote: > Some of the hits point at commercial tools, which you didn't mention. > > I've heard positive comments about You

Re: Can a function determine it's own name at runtime?

2013-08-01 Thread Rob Jens
Thanks Timothy/Stephen, that was very useful to me :) Op zondag 20 december 2009 23:50:05 UTC+1 schreef Timothy Pratley: > > Regarding current function, Stephen posted this code a whie ago so I > don't think he'll mind me regurgitating it for you: > > (use 'clojure.contrib.str-utils) > > ; Stephen

Re: New CSS library - Garden

2013-06-27 Thread Rob Jens
P.p.s. the pound signs are causing reader errors (e.g. #px) in LightTable so I changed those plus additionally added a little Jetty https://gist.github.com/clojens/5878804 Cheers Op dinsdag 9 april 2013 21:58:50 UTC+2 schreef Joel Holdbrooks het volgende: > > Nobel Clojurians, > > I am please

Re: New CSS library - Garden

2013-06-27 Thread Rob Jens
ippet like it is? Cheers, Rob Op dinsdag 9 april 2013 21:58:50 UTC+2 schreef Joel Holdbrooks het volgende: > > Nobel Clojurians, > > I am pleased to announce the alpha version of > *Garden*<https://github.com/noprompt/garden>, > a new library for writing CSS in Clojure.

Re: New CSS library - Garden

2013-06-27 Thread Rob Jens
eaner but then again *the arithmetic isn't all on one 168 > character line > either*<https://github.com/twigkit/semantic.gs/blob/master/stylesheets/scss/grid.scss#L63>. > > There are a few refactorings and nearly all of it is documented in a > literate programming style.

Re: New CSS library - Garden

2013-06-26 Thread Rob Jens
sh to check out their grid in Sass/SCSS. Its math is quite elegant and simple. Cheers, Rob Op woensdag 19 juni 2013 13:14:03 UTC+2 schreef JeremyS het volgende: > > Hi Joel, > > Thank for the interest ! You can also take a look at some code have done > around css unit types there

Re: Loosing a space from an XML document

2013-06-19 Thread Rob Day
ous aspects of the XML syntax. When the white space is part of the XML syntax, it is discarded by XML parsers and not passed on to processing applications. XML allows for unbounded white space wherever white space is permitted in the XML syntax. This is useful for pretty printing an XML document."

Re: Graph API

2013-06-17 Thread Rob Lachlan
Loom was indeed working on this, and it's a very nice library. One thing that I particularly liked about Justin's design, was the ability to run a graph algorithm without worrying about conforming to a particular graph representation. See for example the bread first search function, here: htt

Re: In what OS do you code?

2013-06-15 Thread Rob Browning
Josh Kamau writes: > If i could rewind time, i wouldnt buy a mac. I would stick to linux. For whatever it's worth, Debian and presumably others run just fine on some Macbooks. -- Rob Browning rlb @defaultvalue.org and @debian.org GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C

Re: what directs the program in my-website progream to execute the various files, welcome, users?

2013-06-12 Thread Rob Day
> On Tuesday, June 11, 2013 5:32:46 AM UTC-7, jayvandal wrote: >> >> what statements makes the program execute. >> The main statement tells the program to execute server file >> what statements in the server file tell the program to run the welcome >> file ? the user file Is welcome.clj in src/my_

Re: [ANN] lein-pedantic is now deprecated

2013-06-11 Thread Rob Jens
+1 for both features... I found these *very* helpful Op donderdag 30 mei 2013 03:25:22 UTC+2 schreef Nelson Morris het volgende: > > Good news everybody! As of leiningen 2.2.0 using `lein deps :tree` will > perform version checks and version range detection. Therefore, I have > deprecated lein-p

Re: I18n

2013-05-25 Thread Rob Jens
Sweet. Thanks Stuart, I had never heard of ST before but now I've read some of the professors papers... I'm in! Op vrijdag 28 augustus 2009 16:39:07 UTC+2 schreef Stuart Sierra het volgende: > > My recommendation would be to keep your localized strings separate > from your source code, either i

Re: Why is using (not (empty? coll)) not idiomatic?

2013-05-11 Thread Rob Lachlan
Doesn't anyone use "not-empty"? http://clojuredocs.org/clojure_core/clojure.core/not-empty On Saturday, May 11, 2013 1:36:57 AM UTC-7, Nico Balestra wrote: > > I'm not sure this question has been asked already, but I really want to > know the "principle" behind (not (empty? coll)) not being idi

Re: [ANN] Clojure Cup 2013

2013-04-28 Thread Rob Lachlan
That looks like so much fun; can't wait! On Sunday, April 28, 2013 2:59:23 AM UTC-7, Tero Parviainen wrote: > > I've started putting together Clojure Cup, a global programming > competition for Clojure and ClojureScript programmers. The idea is to have > a 48-hour hackathon, similar to Rails Rum

Re: Coding while running the program

2013-03-23 Thread Rob Lachlan
Ring offers functionality for automatic reloading if you happen to be developing a web app. See here: https://github.com/mmcgrana/ring/wiki/Interactive-Development On Saturday, March 23, 2013 7:22:14 AM UTC-7, Oskar Kvist wrote: > > Hi! > > I saw this video http://www.youtube.com/watch?v=BES9

Re: "core.matrix" proposal

2013-01-05 Thread Rob Lachlan
I really like this idea -- I think there's a need for a dedicated matrix computation library in clojure. I really like the idea of having matrix operations implemented in clojure (I think that you have this in persistent_vector.clj) but also being able to call on java libraries. On Saturday,

Re: ANN: contrib-repl

2012-12-03 Thread rob
That was my first thought, and considered also generating a project.clj, but after thinking about it I decided I didn't want to encourage this type of behavior beyond REPL experimentation, so I preferred to do it in a way that focuses on the REPL. On Tuesday, December 4, 2012 2:24:38 AM UTC-5,

Re: Clojure on an Erlang-vm-os on Xen?

2012-09-04 Thread Rob Knight
There was an old Sun project to run the JVM directly on Xen[1] without a heavyweight OS inbetween. It looks like it never got beyond research stage, but in theory it would be possible to run Clojure on it. I'm afraid I have no idea if it actually works though! [1]: http://labs.oracle.com/proj

Re: Using read-string and macros together

2012-06-14 Thread Rob Harrop
Thanks Sean and Alan, I had noticed the same issue with moving (read-string) inside the macro - it works great for literals, but then why bother. I had almost resigned myself to that fact that this would require eval, but I wanted to exhaust all macro options first. Thanks, Rob On Thursday

Using read-string and macros together

2012-06-13 Thread Rob Harrop
quot;) (and prints nothing) I'm sure I'm missing something very obvious here but I had assumed that since (= '(println "rob") (read-string "(println \"rob\")")) that the above example would work. Regards, Rob Harrop -- You received this message bec

require without :as in clojurescript?

2012-05-03 Thread Rob
ght take a shot at fixing that. (The contributors agreement is in the mail :). Rob -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated -

In clojurescript (extend-protocol undefined ...) should be error?

2012-05-02 Thread Rob
as I find them, or not ... whatever you developers prefer. I don't know enough Clojure to be fixing them myself yet. ) Rob -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com

Re: what is "js/" in clojurescript?

2012-05-02 Thread Rob
On Thursday, May 3, 2012 12:17:03 AM UTC-4, Tamreen Khan (Scriptor) wrote: > > > However, doing the form (MyClass/MyStaticMethod arg1 arg2 ...) *does* > exist in Clojure. It's a way of calling static Java methods or accessing > static fields. See http://clojure.org/java_interop for more info.

what is "js/" in clojurescript?

2012-05-02 Thread Rob
Hi, Syntax like this doesn't work in normal Clojure, right? js/document.body.style It just did in a ClojureScript repl. Is there something magic about "js/" ? What is it? thanks, Rob -- You received this message because you are subscribed to the Google Groups "Clo

error in clojurescript dom.cljs?

2012-05-01 Thread Rob
[this] (log "Vector (-element " this ")") ... Is "Vector" not the right type name? Rob -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note

Re: What's the efficient functional way to computing the average of a sequence of numbers?

2012-03-29 Thread Rob Nagle
You can reduce in one pass with a function that tracks both the sum and the count. (defn avg [coll] (apply / (reduce (fn [[sum n] x] [(+ sum x) (inc n)]) [0 0] coll))) This reduce function is somewhat unusual in that its arguments have different forms. As a result, this one does require the ini

Re: Disable colored output

2012-02-27 Thread Rob Lally
I'm reasonably sure that with maven you can pass system properties using the form mvn goalname -Dinsert.property.here=true R. On 27 Feb 2012, at 17:54, Vladimir Matveev wrote: > Thank you again, I will try to look harder for it. > > On Feb 27, 5:46 pm, Stuart Sierra wrote: >> Sorry,

Re: Persistent collections and garbage collection

2012-02-12 Thread Rob Lally
better here if the code pattern was to create collections and then create lots of derived collections by creating copies of the collections contents and populating new collections with them. But that really isn't the Java way either. Of course, I could be wrong... Rob. On 12

Re: Is it possible to make a mirror of clojure.org?

2011-10-12 Thread Rob Lachlan
what you want. On Oct 12, 12:06 pm, Rob Lachlan wrote: > Many of the links off of the main page are ajax.  I don't think that > wget can scrape that very easily. > > On Oct 12, 11:10 am, Tassilo Horn wrote: > > > > > > > > > jingguo writes: > >

Re: Is it possible to make a mirror of clojure.org?

2011-10-12 Thread Rob Lachlan
Many of the links off of the main page are ajax. I don't think that wget can scrape that very easily. On Oct 12, 11:10 am, Tassilo Horn wrote: > jingguo writes: > > Hi! > > > When programming in Clojure, I use the Reference documentation on > > clojure.org a lot. But my network condition is hor

Re: ANN: core.match 0.2.0-alpha5

2011-10-10 Thread Rob Lally
Would supporting other data structures make it slower when using vectors, or only when using non-vector seq's? If it makes it substantially slower across the board, personally I'd still like core.match to support all of clojure's built in data structures; but I could understand why people would

Re: Leiningen Local Repositories

2011-10-05 Thread Rob Wolfe
Dave Sann writes: > Hey Rob, Thanks for your reply, > > I will try that for my projects > > My use case is slightly different though. I want to be able to build other > peoples projects from source (e.g. from github) without editing any of the > project.clj files - but st

Re: ANN: tools.trace 0.7.1

2011-10-03 Thread Rob Wolfe
s it's time to let me know about them. > > Src code and README at: > > https://github.com/clojure/tools.trace It seems that instead of """ #Usage: (ns your-namespace (:require tools.trace)) """ it should be: """ #Usage: (ns your-name

Re: Leiningen Local Repositories

2011-10-02 Thread Rob Wolfe
:omit-default-repositories true :repositories {"releases" "http://artifactory/artifactory/libs-release";, "snapshots" "http://artifactory/artifactory/libs-snapshot";, "local-release" "http://artifactory/artifactory/libs-release-local&q

Re: Is there a reason that def- isn't part of the core lib?

2011-09-18 Thread Rob Lally
r about how and where x will be used, while > (def- x 1) (defn foo [] (...use x...)) leaves open the possibility > that x is important all over the namespace. > - You avoid runtime var-deref costs for constants that will never > change. > > I find this style so useful and readable tha

Re: Is there a reason that def- isn't part of the core lib?

2011-09-18 Thread Rob Lally
is with functions, and therefore more need for > marking functions meant only for internal use as such (but that is > just guessing at other peoples' thought processes). > > [1] > http://groups.google.com/group/clojure/browse_thread/thread/80d873ef625221ac/243a0ad490150d3e?lnk=gs

Is there a reason that def- isn't part of the core lib?

2011-09-17 Thread Rob Lally
#x27;t seem to be a member of the core lib? In the spirit of Hunt & Thomas' "Select isn't broken", when I encounter something this trivial, useful and absent I tend to conclude that I'm the one who's got things wrong. Thanks in advance, Rob. -- You received

Re: Reload/Reimport Java Class

2011-08-27 Thread Rob Lally
There's a good chance that JavaRebel would let you do what you want: http://www.zeroturnaround.com/jrebel/ Rob. On 27 Aug 2011, at 15:41, Asim Jalis wrote: > Is there a way to reimport a Java class into the REPL? > > This would be very useful in dynamically developing

Re: Lein uberjar hangs when swank is required in the namespace.

2011-08-26 Thread Rob Wolfe
ository. Does it work for you: D:\>lein repl user=> (slurp "http://clojars.org/repo/swank-clojure/swank-clojure/ 1.2.1/") ? Br, Rob -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojur

Re: Most concise way to determine that a sequence is consecutive integers starting with one?

2011-07-01 Thread Rob Lachlan
Using map-indexed: (defn f [xs] (every? true? (map-indexed #(= (inc %1) %2) xs))) On Jul 1, 12:28 pm, ".Bill Smith" wrote: > I want a concise function that, given an arbitrary length sequence, > determines whether the sequence is of consecutive integers starting with > one.  So: > >  (f [1 2 3]

Re: Debian packages

2011-05-25 Thread Rob Lachlan
I'm curious about this as well, because of the ICFP programming contest. The contest organizers are soliciting requests for Debian packages to be installed on the contest environment. I don't suppose that this is the reason that you're asking? On May 24, 9:41 pm, Phil Hagelberg wrote: > It looks

Re: Intro to Live Programming with Overtone

2011-04-24 Thread rob levy
(I mean, the visual effects in particular) On Sun, Apr 24, 2011 at 6:49 PM, rob levy wrote: > Wow, that is awesome, I am definitely going to have to play with that. As > a side note, what did you write or use to configure your emacs in that way? > > On Sun, Apr 24, 2011 at 8:01 A

Re: Intro to Live Programming with Overtone

2011-04-24 Thread rob levy
Wow, that is awesome, I am definitely going to have to play with that. As a side note, what did you write or use to configure your emacs in that way? On Sun, Apr 24, 2011 at 8:01 AM, Sam Aaron wrote: > Hey there, > > you may have heard about Overtone - the Clojure front-end to SuperCollider > s

Re: ANN: Clojure Atlas (preview!)

2011-04-19 Thread rob levy
t 1:39 PM, Chas Emerick wrote: > > On Apr 19, 2011, at 1:10 PM, rob levy wrote: > > > This seems great. The $20 bothers me, not because I don't want to pay > it, I would gladly donate this meager amount for such a useful resource. > There's just something in poor taste

  1   2   3   >