Re: Request for Discussion: user created reader macros

2009-08-13 Thread Scott
On Aug 13, 1:30 pm, Brian Hurt wrote: > I'm just wondering what people's response would be to allow user-generated > reader macros. [...] I think you could get most of the benefits for DSL's by using regular strings, except that regular strings have quoting issues: (my-dsl-macro "Here is my

Re: Request for Discussion: user created reader macros

2009-08-13 Thread Scott
On Aug 13, 5:47 pm, Chas Emerick wrote: > > A good thought, but #"foo" is reader syntax for defining a regular   > expression with the pattern "foo". :-/ > Sorry about that, I'm not experienced at Clojure, but I should have been more clear. The first important part isn't which character trigge

globing filenames via clojure

2009-12-12 Thread Scott
Trying to learn clojure via some simple examples. I would like to use a simple glob expression to open a file using read- line How would I write the equivalent of: (for [line (read-lines "*.txt")] (print line)) Where *.txt would match only the first file found in the present working directo

Re: globing filenames via clojure

2009-12-14 Thread Scott
n Dec 13, 2:19 am, Travis wrote: > On Dec 12, 11:20 am, Scott wrote: > > > Trying to learn clojure via some simple examples. > > > I would like to use a simple glob expression to open a file using read- > > line > > > How would I write the equivalent o

stripping parenthesis

2010-01-19 Thread Scott
i am utilizing parenthesis to represent a tree structure within a genetic algorithm I am trying to write a function that can strip all parenthesis such that I can perform crossovers/mutations on the permutation. Ex. ( 1 2 3 4 (5 6 7 8) ((9 10 11 12)) (((13 14 15 16))) ) into ( 1 2 3 4 5 6 7 8

Re: stripping parenthesis

2010-01-19 Thread Scott
, Laurent PETIT wrote: > Maybe you're in quest > ofhttp://richhickey.github.com/clojure-contrib/seq-utils-api.html#cloju... > ? > > HTH, > > -- > Laurent > > 2010/1/19 Scott : > > > i am utilizing parenthesis to represent a tree structure within a > &

Re: stripping parenthesis

2010-01-19 Thread Scott
thanks all! On Jan 19, 2:06 pm, kyle smith wrote: > http://groups.google.com/group/clojure/browse_thread/thread/806ebb1cb... -- 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

function to perform operations on adjacent values

2010-01-21 Thread Scott
looking for something very similar to reduce, but sequentially operate on adjacent values for example if (defn reduce-n [f col n]) (reduce-n + (range 7) 2) => (3 7 11) ie 1+2, 3+4, 5+6 ideas? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To pos

Re: function to perform operations on adjacent values

2010-01-21 Thread Scott
Thanks! On Jan 21, 7:07 am, Meikel Brandmeyer wrote: > Hi, > > On Jan 20, 8:03 pm, Scott wrote: > > > (reduce-n + (range 7)  2) > > => (3 7 11) > > user=> (map #(reduce + %1) (partition 2 (range 1 7))) > (3 7 11) > > Sincerely > Meikel -- You

performance improvments for the following code

2010-01-27 Thread Scott
wondering if I can please get some advice on how to improve the performance of this piece of code (defn select-n-tournament [popu fit-fn n] (let [k 7] (take n (repeatedly #(first (sort-by fit-fn > (take k (shuffle popu)) ) ) The profiler is telling me that first is eating up alot of

binary representation + operators

2010-03-12 Thread Scott
(bit-concat 2r0 2r00) -> 2r000 (bit-concat 2r011 2r1100) -> 2r000 . . . I looked into formats, but everything defaults to integer representation. I need to stay in binary representation. Its for a genetic algorithm with grey coding. Thanks! Scott -- You received this message becaus

Re: binary representation + operators

2010-03-13 Thread Scott
java to the rescue! Thanks to all for your suggestions Scott On Mar 13, 3:45 pm, Michał Marczyk wrote: > On 12 March 2010 23:26, Scott wrote: > > > How do I write a function 'bit' that converts an integer to binary > > representation: > > > (bit 0)

database management: curing lock issues

2010-03-25 Thread Scott
Question on best practices on handling SQL database concurrency issues I am "pmap"ping a evaluation to a long list (which calls a computationally intense script) from within clojure. The script itself is designed to be completely free of concurrency side-effects. During the evaluation, several ca

Re: database management: curing lock issues

2010-03-25 Thread Scott
s > as well. > > 2010/3/25 Scott > > > > > Question on best practices on handling SQL database concurrency issues > > > I am "pmap"ping a evaluation to a long list (which calls a > > computationally intense script) from within clojure.  The script

Re: database management: curing lock issues

2010-03-25 Thread Scott
thanks for your suggestions two clear options 1) agents and queued transactions 2) MVC enabled databases (postgresql, h2 (neat project)) Ill try the first option and see how it scales, and worst case move to the second Thanks again Scott On Mar 25, 12:47 pm, prhlava wrote: > > Is

Re: concurrency and rand-int

2010-03-26 Thread Scott
0 (inclusive) and n (exclusive)." [n] (int (srand n))) then just replace rand-int with srand-int Scott On Mar 25, 10:35 pm, Lee Spector wrote: > I'm trying to track down the reason that I sometimes see a lot of concurrency > in my system (up to 1200% CPU utilization on a d

Eclipse and Compojure

2010-08-09 Thread scott
a $PROJECT.jar file containing the compiled .class files as well as the source .clj files. Any suggestions would be appreciated - thanks. Scott Hickey -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloj

Re: Eclipse and Compojure

2010-08-09 Thread scott
gardless of the REPL running. I assumed the problem had to do with the JDT finding no .class files in the compojure jar file, but there is no error in the error console now. Thanks for offering to help - it seems to work now. Scott Hickey On Aug 9, 1:41 pm, Laurent PETIT wrote: > Hi, > >

Re: Clojure Conj 2011?

2010-12-28 Thread scott
the two. Scott Hickey (no relation) On Dec 27, 8:07 pm, Alan Dipert wrote: > Hi, > > On Mon, Dec 27, 2010 at 7:41 PM, Sean Corfield wrote: > > Now that videos are being posted for the 2010 conj, I figured it might > > be worth asking if there has been any discussion about wh

Re: Unary Application of (= ...)

2008-12-04 Thread Scott Fleckenstein
I'm a newbie, so feel free to bash me on the noggin if i'm missing something: Personally, I would love = to support null-ary case; being able to use apply with = seems very powerful, and would remove the need to check for an empty sequence. -Scott On Dec 3, 9:39 pm, Krukow <[EM

Re: In core structure editor, anyone?

2008-12-10 Thread Scott Fleckenstein
Seems like having something like this would be a good step towards supporting image-based development similar to Smalltalk. Whether that is a good thing or not is a different discussion ;) -Scott Fleckenstein On Dec 10, 8:16 am, Stuart Sierra <[EMAIL PROTECTED]> wrote: > On Dec 10

Microsoft SQL Server and the sql contrib

2008-12-16 Thread Scott Jaderholm
QLException] Restarts: 0: [ABORT] Return to SLIME's top level. Backtrace: 0: java.sql.DriverManager.getConnection(Unknown Source) 1: java.sql.DriverManager.getConnection(Unknown Source) Can anyone help? Thanks! Scott --~--~-~--~~~---~--~~ You received this mess

Re: Microsoft SQL Server and the sql contrib

2008-12-16 Thread Scott Jaderholm
I don't think that's a problem: user> (. Class (forName "com.microsoft.sqlserver.jdbc.SQLServerDriver")) com.microsoft.sqlserver.jdbc.SQLServerDriver On Tue, Dec 16, 2008 at 12:21 PM, MikeM wrote: > > To make sure your driver is really on the classpath, try this from the > REPL: > > (. Class (fo

Re: Microsoft SQL Server and the sql contrib

2008-12-17 Thread Scott Jaderholm
using JDBC with MSSQL Express requires some extra setup. > > > On Dec 16, 3:49 pm, "Scott Jaderholm" wrote: > > I don't think that's a problem: > > user> (. Class (forName "com.microsoft.sqlserver.jdbc.SQLServerDriver")) > > com.micros

Re: semi-structured program editing

2009-01-03 Thread Scott Bell
http://mumble.net/~campbell/emacs/paredit.el http://mumble.net/~campbell/emacs/paredit.html Should work out of the box with Clojure and Emacs. - Scott On Jan 2, 8:48 pm, falcon wrote: > http://www.cs.brown.edu/research/plt/software/divascheme/ > > or > > http://www.yout

Re: Fully lazy sequences are coming - feedback wanted!

2009-02-15 Thread Aaron Scott
I agree with the op. While the language is still relatively young please break things so they sit better in the long term. Accurate and descriptive names are totally valueable, and I'm pretty handy with find/replace on the editor anyway :p Aaron On Feb 15, 2009, at 10:43 AM, CuppoJava w

Re: Fully lazy sequences are coming - feedback wanted!

2009-02-16 Thread Aaron Scott
How about e-rest, for the empty set returning version? Perry Trolard wrote: If it's the case that rest will almost exclusively appear in the context of constructing lazy-seqs (lazy-seq (cons [something] (rest [something])) & next will appear all over, it makes sense to me to sacrif

Re: What profilers are you using?

2009-03-12 Thread Scott Jaderholm
On Sat, Feb 7, 2009 at 8:16 AM, David Powell wrote: > > Newer versions of JDK 1.6, eg Update 11, have an application called > 'jvisualvm' in the bin directory. It lets you attach to any running > Java process and it has a profiler that you can switch on at runtime. If you're starting Clojure fr

Re: Game of Life

2009-03-15 Thread Scott Fraser
cs" I would imagine there may be some other way to get clojure to cache the reflected handle to Graphics, but I am still a little new to this so don't have any other ideas on how to eliminate the high amount of reflection without a type hint. -Scott http://fraser.blogs.com/ On Mar

Parallel Game of Life

2009-03-15 Thread Scott Fraser
I have taken Larry's "Game of Life" example that he originally posted here: http://groups.google.com/group/clojure/msg/fdfc88f1ba95bdee ...and updated it to use all the CPU's your JVM has access to. My first attempts ran into the classic map -> pmap slowdown. My next attempt had too much dosync,

Re: Parallel Game of Life

2009-03-16 Thread Scott Fraser
understand how pmap sizes that executor pool. -Scott On Mar 16, 11:51 am, Larry Sherrill wrote: > Hi Kyle, > > I added life-conway.clj to the files section last week. It has rand, > clear, and bounded buttons, and the ability to use your mouse to draw > the pattern rather than rel

Re: Parallel Game of Life

2009-03-20 Thread Scott Fraser
-core it is quite colorful and fun. As always, comments appreciate. Here is it: -Scott (import '(javax.swing JFrame JPanel JButton) '(java.awt BorderLayout Dimension Color) '(java.awt.event ActionListener)) (def cells (ref {})) (def running (atom false)) (def x-cells ( * 32 1

Re: Java 6 dependency in clojure-contrib ok?

2009-04-09 Thread Scott Hickey
ng as possible. It may not make sense to those of us trying new languages on the JVM but it is a reality that is out there. Scott Hickey Senior Consultant Object Partners, Inc. From: Rich Hickey To: Clojure Sent: Wednesday, April 8, 2009 7:31:19 PM Subject: Re: J

Re: PeepCode screencast

2009-04-24 Thread Scott Jaderholm
Thanks Phil! I just bought it and look forward to watching it this weekend. Are you planning something more advanced? On Fri, Apr 24, 2009 at 11:03 AM, Phil Hagelberg wrote: > > I'm proud to announce that the "Functional Programming with Clojure" > PeepCode screencast has just been published: >

Re: A little help needed in understnding anonymous functions

2009-08-26 Thread Scott Moonen
Hi Soura. I think you have an extra set of parentheses in your second example, on the line with dosync. It should read: (defn foo2 [n] (let [r (ref n)] #(dosync (alter r + %) @r))) -- Scott On Wed, Aug 26, 2009 at 2:40 PM, Sourav wrote: > > Hi, > > I'm new to

[ANN] Clojure quickstart maven archetype

2009-09-07 Thread Scott Fleckenstein
7;s not an easy way to launch a REPL into your code, and no support fr clojure-maven-plugin clojure:run (it uses a script, my archetype assumes a compiled main class). Thanks, Scott Fleckenstein --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: Clojure quickstart maven archetype

2009-09-07 Thread Scott Fleckenstein
ke file I've got to do it. Oh well, I'll figure it out eventually. If I'm able to get a repl goal working, are you open to patches? -Scott On Sep 7, 5:58 pm, Mark Derricutt wrote: > Excellent!  This was one of the missing pieces I was hoping to pull together > next. >

Re: Clojure quickstart maven archetype

2009-09-07 Thread Scott Fleckenstein
etype, and figure out how best I want to support AOT along with Script execution. -Scott On Sep 7, 9:40 pm, Stuart Sierra wrote: > Also look at the ClojureShell Maven > plugin,http://github.com/fred-o/clojureshell-maven-plugin/tree/master > which runs a REPL or Swank server. > > -

Re: Clojure quickstart maven archetype

2009-09-09 Thread Scott Fleckenstein
When I said central repo, yes, I meant repo1.maven.org. Clojure contrib is only available as a SNAPSHOT there. My actual dependency element looks like: org.clojure clojure-contrib 1.0-SNAPSHOT -Scott On Sep 9, 12:42 am, Fredrik Appelberg wrote: > On Tue, Se

Re: temp variables best practice

2009-09-12 Thread Scott Moonen
/lojic.com/blog/2009/03/01/digest-tag-population-in-ruby/comment-page-1/#comment-1879 -- Scott On Sat, Sep 12, 2009 at 7:23 PM, Terrance Davis wrote: > > For instance, in Java ... > > tmpString = JOptionPane.showInputDialog("What is your foobar?"); > finalFoo = Double.par

[ANN] units.clj - unit conversion functions without repeating yourself

2010-01-14 Thread Scott Jaderholm
equations this library will define 168 conversion functions for you (56 each for length, area, and volume). The code is at http://gist.github.com/276662#file_units.clj I'd love to receive feedback. Thanks, Scott Notes [1] For a reliable alternative, see JScience.org -- You received this me

Re: Cond, and abusing or

2010-01-15 Thread Scott Burson
very common idiom in Common Lisp and other older dialects. I guess there are a few people who don't like it, but a lot of us do it routinely. You'll even see stuff like (or (try-to-construct-a-foo) (error "Couldn't construct a foo")) -- Scott -- You received this

binary structures/bitstrings

2010-04-17 Thread Scott T
Does anyone know of a clojure library for handling (un)packing of binary structures? I'm looking for something similar to perl/ruby/ python's pack(...) function or something like OCaml's bitstring module. My initial google and clojure-contrib perusing hasn't turned up anything obvious though I've

Re: binary structures/bitstrings

2010-04-18 Thread Scott T
one particular task, but I'd like to separate it > and push it to clojars. It's about time I learn how to do that. > > - Geoff > > On Apr 16, 9:28 pm, Scott T wrote: > > > > > Does anyone know of a clojure library for handling (un)packing of > > bi

Re: binary structures/bitstrings

2010-04-19 Thread Scott T
Thanks a lot for pulling that out. I'll let you know how it goes. -Scott On Apr 19, 1:40 am, Geoff wrote: > I've pushed the bytebuffer stuff into it's own repo and project and > cleaned up the documentation a bit. > Seehttp://github.com/geoffsalmon/bytebuffer > &g

Re: binary structures/bitstrings

2010-04-20 Thread Scott T
ild my prototype (with all 8.5 seconds of free time I have), and if I come up with any feedback or contributions, I'll let you know. -Scott On Apr 19, 8:52 pm, Scott T wrote: > Thanks a lot for pulling that out.  I'll let you know how it goes. > > -Scott > > On A

Testing macros that throw errors at compile time?

2015-01-22 Thread Scott Rabin
We have a few macros in my employer's codebase that throw compile-time errors when you've given them invalid configurations, and have generally simply tested the result of these macros and not necessarily the direct expansion of said macros. What we would like to do is *test* that the macro blo

Re: Testing macros that throw errors at compile time?

2015-01-24 Thread Scott Rabin
n should be true >> >> As long as you know that the *right* exception is being thrown. >> >> On Thu, Jan 22, 2015 at 4:41 PM, Scott Rabin > > wrote: >> >>> We have a few macros in my employer's codebase that throw compile-time >>> errors

Silence "WARNING: Long already refers to: class java.lang.Long in namespace: ..." in aot compile compatible way

2015-04-27 Thread Scott Nielsen
he ns-unmap is being executed causing the ns-unmap to unmap the desired 'Long and not java.lang.Long. Is there a way to silence the warning in a way that will work with both aot and non-aot compiled code? Thanks for any help in advance, Scott -- You received this message because you are

Lein :provided profile and uberjar not working

2015-06-03 Thread Scott Klarenbach
I'm unable to post a new topic to the leinigen group so I thought I'd try my luck here. I'd like to exclude certain dependencies from my uberjar, by using the :provided profile, but the jars are always included. I've added the following to my project.clj, but the edu.stanford.nlp jars end up

Re: Lein :provided profile and uberjar not working

2015-06-03 Thread Scott Klarenbach
The issue was that I hadn't removed the dependencies from the toplevel vector. Thanks to Jeremy Heiler for pointing that out. On Wednesday, June 3, 2015 at 12:35:30 PM UTC-7, Scott Klarenbach wrote: > > I'm unable to post a new topic to the leinigen group so I thought I'

Re: Is Korma still a good current choice for DB backend?

2014-07-25 Thread Scott Nielsen
agnostic, so it will work with any connection that clojure.java.jdbc can work with, including a connection pool. Scott Nielsen > > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to

Re: Sequential processing of the data

2014-08-02 Thread Scott Nielsen
Hi Alexander, The partition function is the tool you're looking for to help create the windows in your example. http://grimoire.arrdem.com/1.6.0/clojure.core/partition/ I made a comment on your gist that shows how it would be used in your example. Scott Nielsen On Aug 2, 2014, at 12:

Re: Transducers are Coming

2014-08-07 Thread Scott Thoman
I doubt I can answer this as clearly as Rich or others but... I think the answer to this lies in the fact that composing transducers is composing reducer-transformers not reducer functions themselves. When composing reducer-transformers, the result is another transformer. When this new transfo

Mexico City Clojureists?

2020-10-20 Thread Scott Klarenbach
Wondering who is living/working in Mexico City? -- 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

Re: Mexico City Clojureists?

2020-10-22 Thread Scott Klarenbach
Ok great. If anyone is down for a beer in the sun to chat about tech, programming etc let me know. We've also got some contract work for Clojure devs on a pretty regular basis if anyone is interested. This is my company: https://invisiblerobot.io -- You received this message because you are su

[ANN] aws-api 0.8.686 is now available!

2023-07-06 Thread Scott Bale
aws-api 0.8.686 is now available! 0.8.686 / 2023-07-06 * Support list member values in request headers #234 README: https://github.com/cognitect-labs/aws-api/ API: https://cognitect-labs.github.io/aws-api/ Changelog: https://github.com/cogn

[ANN] Nubank's aws-api 0.8.692

2024-01-31 Thread Scott Bale
Nubank's aws-api 0.8.692 is now available. 0.8.692 / 2024-01-31 * upgrade to cognitect http-client 1.0.127 * upgrade to org.eclipse.jetty/jetty-client-9.4.53.v20231009 #249 * upgrade to org.clojure/core.async 1.6.681 * upgrade to or

Re: Joy of Clojure : Backward running lisp ??

2016-06-27 Thread Scott Nielsen
On Wednesday, June 22, 2016 at 8:22:35 PM UTC-6, Ashish Negi wrote: > > I am reading joy of clojure. In the "forward to second edition" William E > Byrd and Daniel P Firedman says : > > > > *As with recursion, the art of defining little languages encourages—and > rewards—wishful thinking. You m

Monads and Middleware

2016-07-01 Thread Scott Klarenbach
lling reason to use monads in clojure instead of middleware? 3.) Are there classes of problems that can be solved with monads that can't be solved with middleware? 4.) Is there any benefit (beyond curiosity) to porting/re-implementing middleware as monads? Thanks. Scott

Re: Application silently shuts down by itself after running for some hours

2017-03-04 Thread Scott Bauer
Out of curiosity, have you tried catching any and all errors as opposed to expecting to see an error message logged upon the system dying? While searching for possible causes, I did come across this similar post from a few

Re: [ANN] Clojure 1.9.0-alpha16 is now available

2017-04-27 Thread scott stackelhouse
Glad to see this separation. Also I just wanted to chime in and say that I greatly appreciate the work you've done with Spec. It's been a great help to me. On Thursday, April 27, 2017 at 8:20:16 AM UTC-7, Alex Miller wrote: > > Clojure 1.9.0-alpha16 is now available. > > [...snip...] > Also

is s/and different inside an s/fdef?

2017-08-11 Thread scott stackelhouse
bove this paragraph in the guide could be changed a little to make the behavior clearer... I have never checked, but I assume the clojure docs are on github? If so are pull requests welcomed for updating docs? --Scott -- You received this message because you are subscribed to the Google Groups &q

Re: is s/and different inside an s/fdef?

2017-08-11 Thread scott stackelhouse
sorry, I edited this a few times and bumbled the words. That last sentence should say: I can think of different ways to do it, but I don't think any of them are better. However I feel the example used above [...] On Friday, August 11, 2017 at 1:06:39 PM UTC-7, scott stackelhouse wrote:

RE: is s/and different inside an s/fdef?

2017-08-12 Thread scott stackelhouse
ec) as the first predicate in the s/and worked. --Scott -- 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

Clojure(script) Contractors in Vancouver?

2017-08-25 Thread Scott Klarenbach
es if this violates the group etiquette, just figured it would be a good place to get the word out. -- Regards, Scott Klarenbach Invisible Robot Technologies invisiblerobot.io 604-537-1856 scott@i nvisiblerobot.io Suite R - 2404 Guelph Street Vancouver, BC, V5T 3P3

Code Review -- Testing truthiness twice

2017-10-01 Thread Scott Barrett
Clojure noob, here. I'm very excited to be learning about this language and becoming a part of this community :) I'm writing a function that works well, but seems just a bit wrong to me, stylistically speaking. I was hoping I could get some guidance from you all. Here's the code: (defn get-if

Re: Code Review -- Testing truthiness twice

2017-10-01 Thread Scott Barrett
Very helpful! Thanks for the swift and response critique. -- 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 firs

Re: If Clojure is to blame for the majority of the startup time, why doesn't ClojureScript proportionally slow down the JavaScript startup time also?

2018-01-31 Thread scott stackelhouse
I was just reading about Docker+CRIU. For me, the slow startup isn't much of a bother for normal operations of my apps. They are generally long running services. But development is where I am bothered by it the most. It can be painful to restart a repl and it's very disruptive to my abilit

Re: How to apply multiple values to a function

2018-03-28 Thread Scott Thoman
call one time. For example... (apply treat-request [x1 y1 z1] > [x2 y2 z2] [x3 y3 z3]) > > > How about something like (map (partial apply treat-request) [[x1 y1 z1] [x2 y2 z2] [x3 y3 z3]]) ? /Scott -- You received this message because you are subscribed to the Google Groups "Cloju

Re: clojure.spec

2016-05-23 Thread scott stackelhouse
Could someone describe what a spec of a seq in a seq would look like? i.e. ['("a" "b" "c") '("d" "e" "f")]. I'm not quite "getting it." --Scott On Monday, May 23, 2016 at 7:12:29 AM UTC-7, Rich Hickey wrot

Re: clojure.spec

2016-05-23 Thread scott stackelhouse
;b" "c") ("d" "e" "f")] > > The benefit of using s/* in string-list is that if you wanted to include > string-list inside another regex you could but with coll-of, it would > always start a new collection: > > (s/conform (s/cat :nu

Re: clojure.spec

2016-05-24 Thread scott stackelhouse
a ::b ::c] :opt [(and ::d ::e ::f)]) and that fails an assertion. It appears that the logicals (and, or) are not allowed in the optional section? Am I thinking about this in the wrong way? --Scott -- You received this message because you are subscribed to the Google Groups "Clojure&

Re: clojure.spec

2016-05-24 Thread scott stackelhouse
Ok. Thanks all who have worked on this, btw. It is incredibly timely for me and is already great help for a work project. --Scott On Tuesday, May 24, 2016 at 10:57:26 AM UTC-7, Rich Hickey wrote: > > ‘and' and ‘or’ are not currently supported in :opt > > > > On M

Re: clojure.spec

2016-05-24 Thread scott stackelhouse
I restructured my data to make this section an optional sub-map, which I think is actually better anyway. On Tuesday, May 24, 2016 at 11:08:27 AM UTC-7, scott stackelhouse wrote: > > Ok. > > Thanks all who have worked on this, btw. It is incredibly timely for me > and is alr

Re: core.async pub/sub

2014-03-05 Thread Scott Johnson
all" sub-two) (go (while true (let [v (! pub-chan "shine") (! pub-chan "on") (! pub-chan "you crazy") (! pub-chan "diamond"))) -Scott On Thursday, July 11, 2013 2:15:28 AM UTC-7, Thomas Heller wrote: > > Hey, > > the lab stuff looks very

Re: [ANN] Instaparse 1.3.0

2014-03-12 Thread Scott Thoman
Excellent! I've actually been using instaparse on a small "filter expression" compiler that looks headed for production now. It has worked *very* well and has been a pleasure to use! Thanks for a great tool. /stt On Wed, Mar 12, 2014 at 8:53 PM, Mark Engelberg wrote: > Instaparse is a lightwe

Re: Instaparse - thank you!

2014-06-11 Thread Scott Thoman
+1 ! I'm about to use it in a production deployment. It has been a pleasure to use! -- 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 - pleas

What non-deprecated Clojure Web libraries to use?

2013-10-27 Thread Scott M
Ring seems well maintained, but Noir and Compojure are marked deprecated. Can anyone lay out a Clojure Web library "stack" (up to templating) that is current and maintained? Any and all sagacious wisdom greatly appreciated - thanks! - Scott -- -- You received this message becau

Re: Any interest in Compojure/Ring screencasts?

2013-10-31 Thread Scott Thoman
On Thursday, October 31, 2013 7:28:39 PM UTC-4, Amr Malik wrote: > > Yes please, I'd be interested :) > > -A > > On Tuesday, 29 October 2013 18:39:05 UTC-4, James Reeves wrote: >> >> I'm considering putting together a screencast, or a series of >> screencasts, based on my Functional Web >> Arch

Re: Big Excel (xlsx) file parsing (docjure, incanter...)

2013-12-10 Thread scott tudd
orthogonal, perhaps helpful: I wrote a clojure (wrapper) library that "streams" data in-and-out of Excel quite easily (and other applications, mostly finance, that use DDE). especially useful if you need to monitor or updates changes to cells. https://github.com/tuddman/clj-dde feedback welcome

"Dynamically" push / pull / read Data Into and Out of Excel

2013-12-10 Thread scott tudd
built a clojure (wrapper) library: https://github.com/tuddman/clj-dde basically it can 'monitor' defined Excel cells for changes... which can 'trigger' your clojure app to do stuff. conversely, can add / modify data in Excel cells programmaticaly from clojure ;-), as well. useful for 'real-tim

Heroku & Boot Times

2013-01-23 Thread Scott Parker
Anyone else running a production website with Clojure in Heroku and struggling with boot time problems? After digging through our logs from the past month, I've noticed it's not uncommon to have a dyno crashed for awhile because of boot time problems. It seems especially likely when dynos are cycli

Re: Heroku & Boot Times

2013-01-23 Thread Scott Parker
ble. Thanks a bunch Jeroen. -SP On Wed, Jan 23, 2013 at 11:19 AM, Jeroen van Dijk < jeroentjevand...@gmail.com> wrote: > Hi Scott, > > We had some issues as well. SNAPSHOTS are likely to be an issue because > they are re-checked at least once a day. So if your app needs a restart &g

Re: How to ensure consistency when accessing database?

2013-03-07 Thread Scott Reynolds
Use mongo findandmodify command. Only way I know On Mar 6, 2013 8:36 AM, "bruce li" wrote: > Hello, > I'm working on a piece of code that uses congomongo to access mongodb. > What I want to implement is to use one collection of the DB as a > queue(let's say, it's called "task"). > > Using congomo

FileNotFoundException when running lein droid new

2013-03-25 Thread Scott Thoman
All, I figured I'd give the leiningen droid plugin a shot now that I've got a few spare moments to mess around with clojure for an android app. However, when I attempt to bootstrap a new project, I get the following: - $ lein --version

Re: FileNotFoundException when running lein droid new

2013-03-25 Thread Scott Thoman
Perfect! I'll grab master for now. > > Thanks! /stt -- -- 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

Re: --> macro proposal

2010-07-06 Thread Scott Jaderholm
se -> and ->> together to handle changing argument orders. (-> "foo" (str "1") (->> (conj #{}))) Scott (I would like --> or let-> in contrib though) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

Re: --> macro proposal

2010-07-06 Thread Scott Jaderholm
On Tue, Jul 6, 2010 at 3:37 PM, Scott Jaderholm wrote: > > On Tue, Jul 6, 2010 at 3:24 PM, Greg wrote: > >> > This would be most likely java interop, ie. ->. >> > There the main arguments are 99% of the times the first or the last >> ones. So -> or ->

Re: Any Clojure2js Libraries?

2010-07-08 Thread Scott Jaderholm
Clojurescript is the only thing I know of like scheme2js. There are a couple parenscript like programs, the best being http://github.com/arohner/scriptjure Scott On Thu, Jul 8, 2010 at 1:17 PM, Tim Robinson wrote: > All I got from google was Clojurescript, but I'm wondering what >

Elisp for highlighting java method names in slime inspector

2010-08-17 Thread Scott Jaderholm
egex feel free to respond. Scott -- 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 unsubsc

clojure.contrib.trace not working on 1.2?

2010-09-07 Thread Scott Jaderholm
ACE t1882: ||=> 1 TRACE t1883: ||(fib 0) TRACE t1883: ||=> 0 TRACE t1881: |=> 1 TRACE t1884: |(fib 1) TRACE t1884: |=> 1 TRACE t1880: => 2 2 user> On 1.2 user> dotrace (fib) (fib 3)) TRACE t11624: (fib 3) TRACE t11624: => 2 Thanks, Sco

Re: clojure.contrib.trace not working on 1.2?

2010-09-08 Thread Scott Jaderholm
On Wed, Sep 8, 2010 at 7:30 AM, Mark Nutter wrote: > I seem to recall that 1.2 is using "chunked" lazy sequences for > performance reasons, and fib is a lazy sequence. I wonder if you'd > start seeing intermediate steps using (fib 20) instead of (fib 3)? This fib doesn't look lazy to me so I don'

Re: ANN: Clojure Cookbook

2010-09-27 Thread Scott Jaderholm
and to go through all your dependencies and prompt whether your want to update. Scott On Mon, Sep 27, 2010 at 10:01 AM, Daniel Pittman wrote: > Tim Daly writes: > > > There is a movement afoot in the common lisp community to implement > > quicklisp which is similar to the

Looking for more affordable sleeping options for clojure-conj

2010-09-28 Thread Scott Jaderholm
meone interested in splitting one of the rooms with two double beds. 4) Someone who lives close by willing to let me {sofa, air mattress} Thanks, Scott -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@g

Re: Find file from namespace symbol

2010-09-29 Thread Scott Jaderholm
swank.commands.basic> (find-ns-definition 'clojure.set) (("clojure.set" (:location (:zip "/home/scott/project/lib/clojure-1.2.0-master-20100813.160144-94.jar" "clojure/set.clj") (:line 1) nil))) Scott On Wed, Sep 29, 2010 at 6:34 PM, Jeff Valk wrote:

Re: lispy ways of handling dev mode

2010-10-02 Thread Scott Jaderholm
I don't know if it has issues in war deployments or such, I haven't done them. If someone knows of problems with this approach I'd be curious to hear them. Scott -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Re: ANN: funkyweb 0.1.0 - The clojure webframework with route inference

2010-10-06 Thread Scott Jaderholm
t that you then destructure in a let in your action? Cheers, Scott On Wed, Oct 6, 2010 at 3:30 AM, Patrik Hedman wrote: > I'm pleased to announce the 0.1.0 release of funkyweb, my ring based > clojure webframework. > > It provides the following main abstractions: > > Cont

Re: ClojureCLR startup times...

2011-03-18 Thread Scott Thoman
On Fri, Mar 18, 2011 at 11:46 AM, Timothy Baldridge wrote: >> I'm open to suggestions on improving this.  In particular, more >> detailed profiling information would be of interest. > > Hrm...we have some fairly detailed profilers through my work, so I'll > have to fire it up over lunch and see wh

Re: ClojureCLR startup times...

2011-03-19 Thread Scott Thoman
On Fri, Mar 18, 2011 at 3:57 PM, dmiller wrote: > No signed assemblies. > > What got you below the reported JIT activity into the real problem? > > On Mar 18, 11:37 am, Scott Thoman wrote: > >> I've had a similar issue unrelated to clojure.  In my case we had some

  1   2   >