Re: what is the best forum for keeping up with Clojure?

2024-01-10 Thread Laws
Thank you much. On Wednesday, January 10, 2024 at 1:26:16 AM UTC-5 Sean Corfield wrote: > The Clojurians Slack is probably the largest and most activity community > these days – http://clojurians.net to self-signup and > https://clojurians.slack.com for the content – but there's also > https:/

Re: what is the best forum for keeping up with Clojure?

2024-01-09 Thread Sean Corfield
The Clojurians Slack is probably the largest and most activity community these days – http://clojurians.net to self-signup and https://clojurians.slack.com for the content – but there's also https://clojureverse.org if you prefer a "forum" over "chat". And there's r/Clojure on Reddit – which als

Re: What is this notation? "-a"

2021-12-27 Thread Hank Lenzi
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: What is this notation? "-a"

2021-12-26 Thread William la Forge
https://stackoverflow.com/questions/10846423/is-there-a-clojure-convention-for-naming-private-functions/10853372 On Saturday, December 25, 2021 at 6:53:56 PM UTC-5 hank@gmail.com wrote: > Hello -- > > Sometimes I see a notation that uses a prefix "-", as in: > > user> (def -a (atom [])) > #'u

Re: what is currently considered a good blog engine, written in Clojure?

2020-12-13 Thread lawrence...@gmail.com
Thank you everyone. On Sunday, December 13, 2020 at 12:05:01 PM UTC-5 stan@gmail.com wrote: > On 13.12.2020 10:11, Christopher Small wrote: > > Oz (in addition to being a dataviz tookit) has evolved into the realm of > > static site generation > >

Re: what is currently considered a good blog engine, written in Clojure?

2020-12-13 Thread Eugen Stan
On 13.12.2020 10:11, Christopher Small wrote: Oz (in addition to being a dataviz tookit) has evolved into the realm of static site generation , complete with live code reloading. Simply |(require '[oz.core :as oz]) (oz/build! [{:from "

Re: what is currently considered a good blog engine, written in Clojure?

2020-12-13 Thread Christopher Small
Oz (in addition to being a dataviz tookit) has evolved into the realm of static site generation , complete with live code reloading. Simply (require '[oz.core :as oz]) (oz/build! [{:from "site-src/pages" :to "build"}]) This will set u

Re: what is currently considered a good blog engine, written in Clojure?

2020-12-12 Thread Sean Corfield
I think a lot of people use Cryogen: Simple static sites (cryogenweb.org) -- I used to use Octopress, based on Jekyll, and switched to Cryogen recently. For the commenting system, I've used Disqus for a long time. And I host on GitHub (via seancorfield.github.io and a cust

Re: what is currently considered a good blog engine, written in Clojure?

2020-12-12 Thread Andrea Richiardi
I like a lot and using perun for www.andrearichiardi.com The workflow is great but unfortunately work on boot and perun has stagnated a bit. Trying to give it a bit of love as we speak! On Saturday, December 12, 2020 at 1:52:43 AM UTC-8 lawrence...@gmail.com wrote: > Hello everyone. I've been

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

2018-07-09 Thread Sonny To
Not sure what you mean by minimum but here's instruction on setting up a dev environment that works for me http://lambdakids.stigmergy.systems/2018/6/6/hello-world.blog my emacs init.el is at https://bit.ly/2z3gtyi On Monday, July 2, 2018 at 6:41:23 AM UTC+3, Austin Haas wrote: > > I don't want

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

2018-07-08 Thread Austin Haas
Quick update. After a reboot, my REPL starts up much faster (~3-4 seconds) than I reported above. Sorry for the noise. I started adding CLJS support to inf-clojure: https://github.com/austinhaas/inf-clojure/tree/cljs Some of the problems that I reported above were due to inf-clojure only par

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

2018-07-07 Thread Austin Haas
I've determined that the previously mentioned errors are related to incompatibilities with inf-clojure and clojurescript. I filed a bug, and a workaround, with inf-clojure here: https://github.com/clojure-emacs/inf-clojure/issues/150 -- You received this message because you are subscribed to t

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

2018-07-07 Thread Austin Haas
I shouldn't have said that two of those errors were the same. They're different, but they both mention unquoted symbols. Monroe clojure.lang.ExceptionInfo: Arguments to require must be quoted. Offending spec: (symbol (namespace (quote clojure.repl/pst))) at line 1 {:file "", :line 1, :column

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

2018-07-07 Thread Austin Haas
I tried this, changing node to browser, like so: clojure -J-Dclojure.server.repl="{:port ${1:-} :accept cljs.server.browser/repl}" -cljs-canary -m cljs.main -re browser -r That starts a REPL in my terminal, but when I try to connect to it from Emacs, using C-c M-c RET localhost RET ,

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

2018-07-07 Thread Austin Haas
Yesterday, I followed the excellent "Clojurescript Quick Start Guide" (https://clojurescript.org/guides/quick-start). Everything worked as expected. They did a great job of making it as minimal as possible. After that, I followed the "Emacs and Inferior Clojure Interaction Mode" guide (https://

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

2018-07-06 Thread Andrea Richiardi
> > That seems to work, but I see something like this in the minibuffer every > time I move the cursor, with or without eldoc mode enabled: > > def: (:arglists^[[0m > ^[[36m3^[[0m ^[[36m(clojure.core/meta^[[0m > ^[[36m4^[[0m ^[[36m(clojure.core/resolve^[[0m > ^[[36m5^[[0m ^[[36m(clojure.

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

2018-07-06 Thread Andrea Richiardi
Ok this command will open a socket REPL directly in cljs.user: clojure -J-Dclojure.server.repl="{:port ${1:-} :accept cljs.server.node/repl}" -R:cljs-canary -m cljs.main -re node -r You need the right deps.edn aliases - then you will be able to nc localhost or inf-clojure-connect to i

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

2018-07-06 Thread Andrea Richiardi
Ok try this one: clojure -J-Dclojure.server.repl="{:port ${1:-} :accept cljs.se}" -R:cljs-canary -m cljs.main -re node -r and then nc localhost or inf-clojure-connect to . -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to thi

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

2018-07-06 Thread Andrea Richiardi
On Friday, July 6, 2018 at 11:18:56 AM UTC-7, Austin Haas wrote: > > I spent a couple more hours working with Monroe and Figwheel. I still > can't figure out how to use the REPL. After trying to evaluate a few > expressions, Emacs gets completely locked up spewing the following error > message

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

2018-07-06 Thread Austin Haas
I spent a couple more hours working with Monroe and Figwheel. I still can't figure out how to use the REPL. After trying to evaluate a few expressions, Emacs gets completely locked up spewing the following error message 1000s of times: clojure.lang.ExceptionInfo: Arguments to require must be q

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

2018-07-06 Thread Austin Haas
This is good, relevant information. Thank you, Andrea. On Thursday, July 5, 2018 at 4:32:58 PM UTC-7, Andrea Richiardi wrote: > > > > On Thursday, July 5, 2018 at 1:01:14 PM UTC-7, Austin Haas wrote: >> >> Gary, I had tried Figwheel a couple years ago and I had a positive >> experience, so that w

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

2018-07-05 Thread Daniel
Luminus has a leiningen template which works out-of-the-box with Cider and figwheel. Just (start-fw) and (cljs) inside the repl. It would be nice if we could have both repls open simultaneously within emacs, but everything was super unreliable the last time I tried that. -- You received this m

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

2018-07-05 Thread Andrea Richiardi
On Thursday, July 5, 2018 at 1:01:14 PM UTC-7, Austin Haas wrote: > > Gary, I had tried Figwheel a couple years ago and I had a positive > experience, so that was the next thing I reached for. > > I just want a practical dev environment, for both Clojure and > Clojurescript. To me, that means s

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

2018-07-05 Thread Andrea Richiardi
There is one more trick though. The new cljs.main allows you to have a socket repl for ClojureScript. This can then be used with `inf-clojure`. It will not be fancy and probably things will be broken though...the code path has not been seen much love. I did some experimentation and it definitel

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

2018-07-05 Thread Austin Haas
Gary, I had tried Figwheel a couple years ago and I had a positive experience, so that was the next thing I reached for. I just want a practical dev environment, for both Clojure and Clojurescript. To me, that means simple and stable. I definitely want fewer things that can go wrong, but if I c

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

2018-07-05 Thread Gary Trakhman
I'm not sure the desires for lightweight clojure-emacs integration and any CLJS integration are yet sympathetic. Figwheel is a pretty complex piece of software. For example, see my issue that has been languishing for almost a year and hints at greater problems with the compiler integration: https:

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: What is the minimal Emacs config for practical Clojure development?

2018-07-05 Thread Austin Haas
I tried Monroe, yesterday. It seems to work as advertised. I didn't have any issues. It's nice that "jump to definition" works out of the box. It does not appear to support Eldoc, so no help with function signatures. This is the Emacs config I'm currently using: ;;; clojure-mode (add-to-list

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

2018-07-04 Thread Łukasz Korecki
On Tuesday, July 3, 2018 at 4:46:05 PM UTC+1, Austin Haas wrote: > > Thanks for the replies. > > I only want a stable REPL, integrated with Emacs, and nothing else. > > Łukasz, why did you switch to Monroe? What do you prefer about it? If I'm not mistaken inf-clojure works best if you use the s

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

2018-07-03 Thread Didier
There's also inf-clojure, which is pretty minimal. -- 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.

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

2018-07-03 Thread Austin Haas
Thanks for the replies. I only want a stable REPL, integrated with Emacs, and nothing else. Łukasz, why did you switch to Monroe? What do you prefer about it? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloj

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

2018-07-03 Thread Jérémie Grodziski
I like very much Spacemacs with the Clojure layer for its discoverability and "out of the box" configuration. Ok it's a kind of a package manager, but once I switch to Spacemacs I've never look back. The tutorial by

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

2018-07-03 Thread Daniel Compton
Not sure exactly how minimal you're looking for but I like Prelude . It's maintained by Bozhidar Batsov, who also maintains CIDER, so it works well for Clojure development. On Tue, Jul 3, 2018 at 5:42 PM Łukasz Korecki wrote: > Hi! > > I've recently switched t

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

2018-07-02 Thread Łukasz Korecki
Hi! I've recently switched to Monroe - https://github.com/sanel/monroe Its feature set is quite limited, and it boils down to: - start a nREPL server - connect to it - a REPL buffer is created inside of Emacs - evaluate forms I've added a tiny bit of config on my side which adds a Clojure scrat

Re: What is juxt really doing?

2017-07-17 Thread Pierre-Yves Ritschard
A while back I showed how to use it for simplistic pattern matching too: http://spootnik.org/entries/2013/05/21/poor-mans-pattern-matching-in-clojure/ On Monday, July 17, 2017 at 3:10:14 AM UTC+2, lawrence...@gmail.com wrote: > > Thank you for all the responses. The examples of using juxt to sort

Re: What is juxt really doing?

2017-07-16 Thread lawrence . krubner
Thank you for all the responses. The examples of using juxt to sort among results that are otherwise the same is a good example. On Sunday, July 16, 2017 at 3:18:07 AM UTC-4, Boris V. Schmid wrote: > > I don't use juxt much, but the example that I did pick up is where juxt is > used for sortin

Re: What is juxt really doing?

2017-07-16 Thread Colin Yates
(defn ->k->node [m k] (into {} (map (juxt k identity) m)) is really useful, particularly (->k->node m :id) On Sunday, 16 July 2017, wrote: > If I do this: > > ((juxt :who :what :when) {:who 1 :when 2} {:who 4 :what 99}) > > I get: > > [1 {:who 4, :what 99} 2] > > Why does a map come back instead

Re: What is juxt really doing?

2017-07-16 Thread Boris V. Schmid
I don't use juxt much, but the example that I did pick up is where juxt is used for sorting on one function first, and in the case of a tie, on the second function. That is quite useful to me. > (sort-by (juxt first second) (map vector (repeatedly 10 #(rand-int 3)) (shuffle (range 10 ([0 1

RE: What is juxt really doing?

2017-07-15 Thread Sean Corfield
Yup, juxt is definitely useful, but you need to understand what it is really doing. In your case you have three “functions” and you’re invoking them each with two arguments. Let’s look at those: (:who {:who 1 :when 2} missing) ;; where missing is {:who 4 :what 99} => 1 (:what {:who 1 :when 2} m

Re: What is juxt really doing?

2017-07-15 Thread Justin Smith
juxt uses each of the functions supplied on all of your arguments. The hash-map for :what is because (:what {} :default) returns :default - it's invoking get, which takes an optional "not found" argument. On Sat, Jul 15, 2017 at 8:52 PM wrote: > If I do this: > > ((juxt :who :what :when) {:who 1

Re: What is wrong with this simple Regex?

2017-03-08 Thread piastkrakow
Thank you. On Wednesday, March 8, 2017 at 12:11:26 PM UTC-5, Sean Corfield wrote: > > Because you have a space in your regex, it is treated as a range, from > space to underscore which matches a lot of characters. Move the – to the > start: > > > > (clojure.string/replace phon

Re: What is wrong with this simple Regex?

2017-03-08 Thread Sean Corfield
Because you have a space in your regex, it is treated as a range, from space to underscore which matches a lot of characters. Move the – to the start:     (clojure.string/replace phone #"[- _]" garbage) Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEAN An Architect's View

Re: What is the correct way to increment a value in an atom from multiple workers?

2017-02-11 Thread Laws
Thank you On Friday, February 10, 2017 at 11:08:33 PM UTC-5, Francis Avila wrote: > > Not all intermediates appear because in between your completed swap! and > your log (really the deref of the atom) the value in the atom changed. > > You are using atoms correctly. Your swap! function would me m

Re: What is the correct way to increment a value in an atom from multiple workers?

2017-02-11 Thread Christophe Grand
Instead of dereferencing again for lgging, log the return value of the swap! call, thus you will log exactly what the worker just put in the atom. hth, Christophe On Fri, Feb 10, 2017 at 10:18 PM, Laws wrote: > (timbre/log :trace @accuracy-and-precision) -- On Clojure http://clj-me.cgran

Re: What is the correct way to use 'into'?

2016-12-17 Thread Timothy Baldridge
`into` with more three arguments is a variant where the middle argument is a transducer. So your original code was trying to use default-config as a transducer, this code would work with either merge or into chained with ->: (-> {} (into default-config) (into more-config)) I recently did a tutori

Re: What is replacement to maven-assembly-plugin in boot-clj environment?

2016-06-09 Thread Gregg Reynolds
try the boot channel on clojurians on slack. very responsive. On Jun 9, 2016 10:46 AM, "Jacek Grzebyta" wrote: > I need to build more complex package using boot-cl. I have cited my > request put on the StackOverflow: > > Copy of What is replacement to maven-assembly-plugin in boot-clj > environm

Re: what is the shortest series of casts needed to get

2015-10-10 Thread Lawrence Krubner
Thank you. This was a good idea: > So if your coworkers code just needs something iterable (for example), you may > not need to do any casting at all: just give him the vector. On Sunday, October 4, 2015 at 9:39:36 PM UTC-4, Francis Avila wrote: > > Does he actually need a real arraylist,

Re: What is the best way to pass log configs everywhere without a global var?

2015-07-27 Thread James Reeves
On 27 July 2015 at 08:28, crocket wrote: > Can I see your proof of concept on github? Is it just an idea? > Well, my first attempt at this was Inquest: https://github.com/weavejester/inquest The idea of Inquest was to (ab)use alter-var-root to insert monitoring into existing functions, but I qu

Re: What is the best way to pass log configs everywhere without a global var?

2015-07-27 Thread Gary Verhaegen
Have you guys looked at dire? https://github.com/MichaelDrogalis/dire/blob/master/README.md it could be used to take decomplection one step further, by not defining monitoring things inline at all. A library author could define additional logging namespace(s) with fns that load different levels o

Re: What is the best way to pass log configs everywhere without a global var?

2015-07-27 Thread Colin Yates
I don’t have a proof of concept either but if somebody is going to put some effort into writing a new library I had a great idea they could incorporate. Continuing the ‘decomplecting’ that James started, the other thing that is decomplected (or actually not addressed at all) is _why_ we want log

Re: What is the best way to pass log configs everywhere without a global var?

2015-07-27 Thread crocket
Can I see your proof of concept on github? Is it just an idea? On Mon, Jul 27, 2015 at 2:27 PM, James Reeves wrote: > On 27 July 2015 at 05:25, crocket wrote: >> >> How those logs are outputted is stored in a global state called log >> configuration. So, I think the separation was done. >> How e

Re: What is the best way to pass log configs everywhere without a global var?

2015-07-26 Thread James Reeves
On 27 July 2015 at 05:25, crocket wrote: > How those logs are outputted is stored in a global state called log > configuration. So, I think the separation was done. > How else do you want to separate that? > Traditionally, logging code is written something like: (log/info "HTTP request to"

Re: What is the best way to pass log configs everywhere without a global var?

2015-07-26 Thread Mikera
On Saturday, 25 July 2015 22:50:55 UTC+8, crocket wrote: > > Logging libraries seem to rely on a global config. This looks like a > dangerous state that could blow up. > I researched a little, and there seems to be reader monad and dependency > injection, all of which feel awkard. > > Is there no

Re: What is the best way to pass log configs everywhere without a global var?

2015-07-26 Thread crocket
How those logs are outputted is stored in a global state called log configuration. So, I think the separation was done. How else do you want to separate that? On Mon, Jul 27, 2015 at 12:20 PM, James Reeves wrote: > On 25 July 2015 at 15:50, crocket wrote: >> >> Logging libraries seem to rely on

Re: What is the best way to pass log configs everywhere without a global var?

2015-07-26 Thread James Reeves
On 25 July 2015 at 15:50, crocket wrote: > Logging libraries seem to rely on a global config. This looks like a > dangerous state that could blow up. > I researched a little, and there seems to be reader monad and dependency > injection, all of which feel awkard. > > Is there not a decent approac

Re: What is the best way to pass log configs everywhere without a global var?

2015-07-25 Thread crocket
I have a feeling that there is a better way to pass log config as implicit argument or implicit context without a global var. Perhaps, I'm being unreasonable, considering that logging itself is not a pure operation that shouldn't do I/O. On Sunday, July 26, 2015 at 1:21:14 AM UTC+9, Shantanu Kumar

Re: What is the best way to pass log configs everywhere without a global var?

2015-07-25 Thread Shantanu Kumar
Logging calls are far too frequent to practically pass config as argument everywhere, hence some kind of shared implicit context is required. Which logging libraries are you dealing with? If you use Timbre[1], you can pass config using dynamic vars or altering global state. If you use Logback[2]

Re: What is a real example of the Observer pattern?

2015-05-18 Thread martin madera
The best you can do is read the GoF book (yes, the one which is referenced on the very beginning of the Mr. Sierra's article). And please feel free to post your opinion if you have different than I have. I just finished writing a diploma thesis on design patterns in Java 7, Scala and Clojure, s

Re: What is "best practice" regarding transducers

2015-05-10 Thread Brandon Bloom
> > If you have a public project on Github that is using transducers, would > you please point me to it? I would like to see what you did. > Fipp's Clojure 1.7 tuned-up engine uses transducers to emulate mapcat(-with-state), while minimizing intermediate object allocations. Reducers was used

Re: What is "best practice" regarding transducers

2015-05-10 Thread Steve Miner
xempty is a transducer that just returns an empty result, essentially ignoring the input. The thought was that a degenerate transducer might be useful in a complex chain if you want to stop processing. I haven’t actually used it for anything, just experimenting. > On May 10, 2015, at 3:12 PM,

Re: What is "best practice" regarding transducers

2015-05-10 Thread piastkrakow
That is interesting. What is xempty for? On Friday, May 8, 2015 at 4:09:53 PM UTC-4, miner wrote: > > I wouldn’t make any claims about “best practices” but I’ve been playing > with transducers in my little project: > > https://github.com/miner/transmuters > > I have a blog post about how to

Re: What is "best practice" regarding transducers

2015-05-08 Thread Steve Miner
I wouldn’t make any claims about “best practices” but I’ve been playing with transducers in my little project: https://github.com/miner/transmuters I have a blog post about how to “chain” transducers. (Not sure that’s the best term.) Basically, I wanted to use a transducer that might terminat

Re: What is "best practice" regarding transducers

2015-05-07 Thread Rangel Spasov
I used transducers here https://github.com/raspasov/neversleep/blob/master/src/neversleep_db/node_keeper.clj Look at all the functions ending in -xf, they return transducers that are being attached to core.async channels. On Wednesday, May 6, 2015 at 8:15:42 AM UTC-7, larry google groups wro

Re: What is "best practice" regarding transducers

2015-05-07 Thread Rangel Spasov
I used it here https://github.com/raspasov/neversleep/blob/master/src/neversleep_db/node_keeper.clj Look at all the functions ending in -xf, they return transducers that are being attached to core.async channels. On Wednesday, May 6, 2015 at 8:15:42 AM UTC-7, larry google groups wrote: > >

Re: What is a real example of the Observer pattern?

2015-05-07 Thread Raoul Duke
Observer is often used in Java & iOS-Objective-C & Android-Java. As with any "eventing" kind of thing it is a very double-edged tool. -- 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 t

Re: What is a real example of the Observer pattern?

2015-05-07 Thread Juvenn Woo
Hi Larry, As far as I know, the core part of Om is implemented in Observer Pattern, see: https://github.com/omcljs/om/blob/master/src/om/core.cljs#L1164 which observes app state, and triggers DOM renders as that changes. Best, -- Juvenn Woo Sent with Sparrow (http://www.sparrowmailapp.com/?sig

Re: What is a real example of the Observer pattern?

2015-05-06 Thread Timothy Baldridge
add-watch is a good example of this: https://clojuredocs.org/clojure.core/add-watch On Wed, May 6, 2015 at 8:33 PM, larry google groups < lawrencecloj...@gmail.com> wrote: > I am looking here: > > > https://strange-loop-2012-notes.readthedocs.org/en/latest/monday/functional-design-patterns.html

Re: What is current "best practice" regarding exceptions?

2015-04-20 Thread Timothy Baldridge
On a project I worked on we used a bit of a heavy handed method. Our system was rather distributed, where servers processed messages off of durable queues. So we took a simplistic approach: Exceptions that bubbled all the way up to the top level of the application caused a hard exit of the JVM. Tha

Re: What is current "best practice" regarding exceptions?

2015-04-20 Thread Luc Préfontaine
1) no 2) no 3) yes at all cost 4) both, exceptions are logged with context (current bindings, etc) 5) undecided, under close examination however 6) never have to restart, we check what cause the error and correct it externally if required most errors are reported immediately, may depend on the

Re: What is the reasoning behind the Transducers eduction function?

2014-10-07 Thread Laurent PETIT
Hello, eduction does not return a seq, or anything already "concrete" like that, rather it returns a new reducible, with the interesting property lying in the retention of the xform argument (a transducer). This allows you, for instance, to pass around a collection with all the processing steps b

Re: What is the best setup to program Clojurescript IF...

2014-10-04 Thread Aleš Roubíček
LighTable is really friction less. On Thursday, October 2, 2014 9:13:14 PM UTC+2, Peter Mancini wrote: > > What is the best setup to program Clojurescript IF: > >- you hate EMACS >- use linux or windows > > Any suggestions? > -- You received this message because you are subscribed to the

Re: What is the best setup to program Clojurescript IF...

2014-10-03 Thread Rory Douglas
+1 for Lighttable -- 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, s

Re: What is the best setup to program Clojurescript IF...

2014-10-02 Thread Atamert Ölçgen
LightTable is awesome. On Thu, Oct 2, 2014 at 11:43 PM, Tony Tam wrote: > I use Sublime and Terminator (terminal) on Ubuntu > > (btw, there's a Clojurescript google group :)) > > On Thursday, October 2, 2014 8:13:14 PM UTC+1, Peter Mancini wrote: >> >> What is the best setup to program Clojuresc

Re: What is the best setup to program Clojurescript IF...

2014-10-02 Thread Tony Tam
I use Sublime and Terminator (terminal) on Ubuntu (btw, there's a Clojurescript google group :)) On Thursday, October 2, 2014 8:13:14 PM UTC+1, Peter Mancini wrote: > > What is the best setup to program Clojurescript IF: > >- you hate EMACS >- use linux or windows > > Any suggestions? >

Re: What is the best setup to program Clojurescript IF...

2014-10-02 Thread Colin Fleming
Hi Peter, I develop Cursive so I'm biased, but I think Cursive provides a pretty nice CLJS environment now. Unfortunately the Clojurescript functionality isn't well documented yet but it basically works like the Clojure support which is documented here . One

Re: What is the best setup to program Clojurescript IF...

2014-10-02 Thread blake
I've had the best luck with Cursive. On Thu, Oct 2, 2014 at 12:22 PM, Sean Grove wrote: > Presumably LightTable is a good way to get started? > > On Thu, Oct 2, 2014 at 12:13 PM, Peter Mancini wrote: > >> What is the best setup to program Clojurescript IF: >> >>- you hate EMACS >>- use

Re: What is the best setup to program Clojurescript IF...

2014-10-02 Thread Sean Grove
Presumably LightTable is a good way to get started? On Thu, Oct 2, 2014 at 12:13 PM, Peter Mancini wrote: > What is the best setup to program Clojurescript IF: > >- you hate EMACS >- use linux or windows > > Any suggestions? > > -- > You received this message because you are subscribed t

Re: What is the best setup to program Clojurescript IF...

2014-10-02 Thread Ashton Kemerling
If I recall vim has good tools. On Thu, Oct 2, 2014 at 1:13 PM, Peter Mancini wrote: > What is the best setup to program Clojurescript IF: >- you hate EMACS >- use linux or windows > Any suggestions? > -- > You received this message because you are subscribed to the Google > Groups "Clo

Re: What is happening in this code?

2014-08-27 Thread Tassilo Horn
Andy Fingerhut writes: Hi Andy, > FYI, if you *want* warnings about redefinition of functions, or any > vars in general, the Clojure lint tool Eastwood does that, among other > things: > > https://github.com/jonase/eastwood Nice. It really occured to me that while refactoring some working

Re: What is happening in this code?

2014-08-27 Thread Hemant Gautam
HI Andy, Thanks for your reply. On Wed, Aug 27, 2014 at 8:29 PM, Andy Fingerhut wrote: > FYI, if you *want* warnings about redefinition of functions, or any vars > in general, the Clojure lint tool Eastwood does that, among other things: > > https://github.com/jonase/eastwood > > Andy > > >

Re: What is happening in this code?

2014-08-27 Thread Andy Fingerhut
FYI, if you *want* warnings about redefinition of functions, or any vars in general, the Clojure lint tool Eastwood does that, among other things: https://github.com/jonase/eastwood Andy On Wed, Aug 27, 2014 at 7:32 AM, Tassilo Horn wrote: > Hemant Gautam writes: > > Hi Hemant, > > > Thi

Re: What is happening in this code?

2014-08-27 Thread Softaddicts
Repeat several times the magic incantation, dynamic, dynamic, dynamic, :))) Your second definition overrides the first one. Generating a warning when a redefinition occurs appears to me as not practical. In the REPL, you would not like it at all. Add another top level var to enable/disable t

Re: What is happening in this code?

2014-08-27 Thread Mauricio Aldazosa
You can use a linter to find out this cases: https://github.com/jonase/eastwood#redefd-vars---redefinitions-of-the-same-name-in-the-same-namespace ​ Cheers, Mauricio -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: What is happening in this code?

2014-08-27 Thread Tim Visher
Clojure is form-oriented so you can think of almost all of its evaluation as sending one form after another to a REPL. In that model of evaluation, you of course want to be able to re-define a symbol an arbitrary amount of times. The serialization of these forms into a file which has other forms i

Re: What is happening in this code?

2014-08-27 Thread Tassilo Horn
Hemant Gautam writes: Hi Hemant, > This is the code > > (ns clojure_begins_19_08_2014.core) Use hyphens instead of underscores for namespace and var names. > (defn first-fn[x] > (print x)) > > (defn first-fn[x] > (print "Value of x with String " x)) > > (first-fn 10) > > See, above code co

Re: what is "js/" in clojurescript?

2014-08-17 Thread Roberto Agostino Vitillo
As noted in the BR, it seems like JS style access after the / was actually intended. Is this behaviour documented somewhere? I see more and more examples in the wild that exploit this feature, it would be great to have it documented somewhere as it can cause confusion. > -- You received this

Re: what is the best way of seeding your database with leiningen

2014-07-27 Thread Rui Yang
Awesome, Nelson. That's exactly what I want. One minor thing to improve is to isolate these fixture loading codes with app source. I tried to use Leiningen Dev Profile :source-paths. It didn't work. I'll investigate more time into it later. At least for now, I can just put codes in the repl.clj

Re: what is the best way of seeding your database with leiningen

2014-07-26 Thread Nelson Morris
You can use `lein run` to execute a function from your project while avoiding the complexity/distribution of a plugin. In order to seed from a command line I would:: 1. Write a function that can seed the data (like the blog post). 2. Use `lein run -m my.seed.ns/load-fixtures`. This will start a j

Re: What is fn* ?

2014-05-26 Thread Sean Corfield
On May 26, 2014, at 8:43 AM, Ray Miller wrote: > What I really wanted to know was why clojure.java.jdbc needs fn* in > this macro rather than a simple fn, and why it needs the :once tag. I > found the answer here: > > http://clj-me.cgrand.net/2013/09/11/macros-closures-and-unexpected-object-reten

Re: What is fn* ?

2014-05-26 Thread Ray Miller
On 26 May 2014 16:31, Timothy Baldridge wrote: > All functions are eventually created via fn*. If you look for the source > code of fn it's a macro that emits a call to fn*. It's done this way so that > things like destructuring can be defined in clojure.core (and in Clojure) > instead of in Compi

Re: What is fn* ?

2014-05-26 Thread Timothy Baldridge
All functions are eventually created via fn*. If you look for the source code of fn it's a macro that emits a call to fn*. It's done this way so that things like destructuring can be defined in clojure.core (and in Clojure) instead of in Compiler.java (and in java). On Mon, May 26, 2014 at 9:08 A

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: What is the status of Clojure on LLVM or C?

2014-05-10 Thread Michał T . Lorenc
Hi, How about to port Clojure on top of golang? To get Clojure running on LLVM some of the ideas could be maybe looked from http://julialang.org/. Mic On Thursday, March 28, 2013 6:05:03 AM UTC+10, Joe Graham wrote: > > Hi Group, > Good afternoon I hope everyone is well. I just wanted to reach

Re: What is the right way to create dynamic var in another namespace?

2014-03-01 Thread Armando Blancas
This came up a while back and it appeared that the metadata just reflected whether the var was created with the ^:dynamic annotation. But the meta attribute is an output, so to speak; the info flows from the var declaration to the meta but not the reverse. Maybe it'll remain like that as there'

Re: What is "#" doing in " #+cljs [cljs.reader :as reader] "

2014-02-07 Thread Dom Kiva-Meyer
It's for the cljx preprocessor (https://github.com/lynaghk/cljx). On Fri, Feb 7, 2014 at 7:46 PM, larry google groups < lawrencecloj...@gmail.com> wrote: > > I am looking here: > > https://github.com/jkk/formative/blob/master/src/formative/parse.cljx > > and I see this line: > > #+cljs [cljs.rea

Re: What is a "state monad binding plan" (referring to code in core.async)

2013-07-26 Thread john
yes your explanations help me a lot! thank you for replying so quickly! I will try to work myself through your code as you suggest. Many thanks! Am Freitag, 26. Juli 2013 16:51:54 UTC+2 schrieb john: > > Hi, > I am trying to understand the code in > ioc_macros.clj

Re: What is a "state monad binding plan" (referring to code in core.async)

2013-07-26 Thread Timothy Baldridge
Well, I wrote the code, so I suppose I should comment on it a bit. The ioc_macros use a very loosely defined version of the state-monad. I don't know if the functions/macros follow all the monad laws, and I really don't care, but here's the problem: I needed to be able to track some state while pa

Re: What is the status of Clojure on LLVM or C?

2013-05-30 Thread Dax Fohl
(or the slightly hackier but probably easier version: create a tool that translates a subset of Clojure to RPython) On Friday, May 31, 2013 10:26:56 AM UTC+8, Dax Fohl wrote: > > So what I'm gathering (I'm still trying to grok) is that clojure-metal is > an approach that somewhat parallels PyPy,

Re: What is the status of Clojure on LLVM or C?

2013-05-30 Thread Dax Fohl
So what I'm gathering (I'm still trying to grok) is that clojure-metal is an approach that somewhat parallels PyPy, except in Clojure, and except that instead of defining a type-inferrable subset RClojure, you instead define an internal DSL via mjolnir that allows you to specify the types withi

  1   2   3   4   5   >