Have you looked into running clojurescript on Node.js?
This should be a reasonable environment for command line scripting
--
--
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
Hi Cedric,
Thanksvery insightful!
On Sunday, January 5, 2014 1:30:07 AM UTC+3, Cedric Greevey wrote:
You might wish to consider a different data structure. For example, the
inner objects might be better off as maps with named keys, so your lookup
keys would be things like :amount rather
Hi juanghui,
If you're working out your stuff, more power to you, but I do want to
say that you sound quite far off the beaten path of Clojure usage, so
just be aware that you may be accomplishing your goal in a
non-standard, hard to support way. :)
On Sat, Jan 4, 2014 at 6:12 AM, jianghui
Agreed, sticking with require scales better than load-file, and require is
actually the right way to use functionality in another ns. load-file is a
clumsy tool and you will hit its limits quickly.
On Sunday, January 5, 2014 8:54:18 AM UTC-8, Tim Visher wrote:
Hi juanghui,
If you're
On Saturday, January 4, 2014 1:12:12 PM UTC-5, Michael Gardner wrote:
Hopefully the landscape for alternative Clojure hosts will improve with
the completion of CinC [2].
[2] https://github.com/Bronsa/CinC
Looks like CinC is now:
* https://github.com/clojure/tools.analyzer
*
Hi - I've been playing with this and I'm a little confused.
I can understand how you use the library to pass around stateful
components, and to start/stop them and wire them up etc.
But I'm not sure I see how it should be used for more general dependency
injection.
I'll pick a concrete example
Hi Korny,
Components implementing protocols can provide different implementations. In
the Database example, both the real component and the stub component
would have to implement some common protocol that defines the primitive
capabilities needed by the application.
Traditional update-in-place
Sure, anyone can go and write an emitter using these tools, but this
doesn't solve the issues of a good type system, GC, JIT, etc. These tools
make it easier to make any Clojure implementation self hosting, but those
impls still need a good foundation to build on, and that's the hard part.
Thanks - I'd kind-of worked that out after posting (with the aid of a walk
outside, and a beer!) but it's nice to know I'm on the right track.
On 5 Jan 2014 19:05, Stuart Sierra m...@stuartsierra.com wrote:
Hi Korny,
Components implementing protocols can provide different implementations.
In
Hi,
I can’t get auto-completion or jumping to the definition of a function in
Emacs, while working with ClojureScript. Is this a limitation of Emacs’
Cider https://github.com/clojure-emacs/cider plugin?
I managed to get nRepl working by using the awesome
On Sunday, 5 January 2014 18:18:22 UTC, John Gabriele wrote:
On Saturday, January 4, 2014 1:12:12 PM UTC-5, Michael Gardner wrote:
Hopefully the landscape for alternative Clojure hosts will improve with
the completion of CinC [2].
[2] https://github.com/Bronsa/CinC
Looks like CinC is
As a suffix to my last reply; if Hy were capable of delivering acceptable
truthy semantics and persistent data structures, I might recommend it.
On Saturday, January 4, 2014 9:44:08 AM UTC-8, g vim wrote:
On 04/01/2014 17:28, gaz jones wrote:
Why not just use Ruby or (my preference) Python?
Michał: This is awesome. Thanks for the continued awesome work on data
structures!
;; if the key is not present in the collection, -1 is returned:
(avl/rank-of (avl/sorted-set 3 4 5) 0)
;= -1
Curious: Why not return nil instead of -1?
--
--
You received this message because
On Sunday, 5 January 2014 23:33:41 UTC, Brandon Bloom wrote:
Michał: This is awesome. Thanks for the continued awesome work on data
structures!
;; if the key is not present in the collection, -1 is returned:
(avl/rank-of (avl/sorted-set 3 4 5) 0)
;= -1
Curious: Why not
I wonder if Go could be a good substrate for native-compiled Clojure.
On Sun, Jan 5, 2014 at 5:27 PM, Mikera mike.r.anderson...@gmail.com wrote:
On Sunday, 5 January 2014 18:18:22 UTC, John Gabriele wrote:
On Saturday, January 4, 2014 1:12:12 PM UTC-5, Michael Gardner wrote:
Hopefully
If boot time is your primary concern, this can help. The jvm is still
there, though :/
https://github.com/technomancy/grenchman
On Saturday, January 4, 2014 9:43:22 AM UTC-5, g vim wrote:
I have recently moved most of my work to Clojure and Clojurescript but
neither of these
How many states can the US have and keep a flag with a reasonably close to
square arrangement of stars like it currently has?
(take-while #(= % 100)
(sort
(distinct
(for [m (range 3 20)
n (range (int (* m 3/4)) (inc m))]
(- (* 2 m n) m n -1)
(8 13 18 23 25 32
Ha! Just saw your Sortable example popup in Git!
Very cool.
On Thursday, January 2, 2014 4:00:45 PM UTC-8, David Pidcock wrote:
Very nice. Relatively easy to follow. Basically it's re-implementing the
drag-list behaviour in React. I had thought to re-use some existing code,
provided
Using maven, we usually package the project in a directory with sub dirs
like:
bin/ # bash/python scripts
lib/ # all jars
conf/ # resources/configuration files
And, we often use the *maven-dependency-plugin* to copy dependency jars and
use the *maven-resources-plugin* to copy scripts
I am new to clojure and working on a small jabber bot as a starter
project. One of the things I am adding is a simple weather lookup, but
in doing so I need to convert zip code to lat/long. I've found a
suitable CSV from http://www.boutell.com/zipcodes/ and am wondering the
best way to deal with
If you are only going to read the CSV files, you can put the CSV file in
`resources` directory (so that it is part of the jar/uberjar), and use
https://github.com/clojure/data.csv with
http://clojuredocs.org/clojure_core/clojure.java.io/resource to read the
data. If you need to make some
There's Clojure Maven plugin if that can help:
https://github.com/talios/clojure-maven-plugin
Shantanu
On Monday, 6 January 2014 11:03:45 UTC+5:30, Qiu Xiafei wrote:
Using maven, we usually package the project in a directory with sub dirs
like:
bin/ # bash/python scripts
lib/
22 matches
Mail list logo