On Friday, February 12, 2016 at 9:51:50 AM UTC+1, Scaramaccai wrote:
>
>
>
> On Thursday, February 11, 2016 at 9:54:19 PM UTC+1, Sean Corfield wrote:
>>
>> Scaramaccai wrote on Thursday, February 11, 2016 at 8:32 AM:
>> >I'm learning Clojure, and I find difficult to understand where a
>>
On Thursday, February 11, 2016 at 9:54:19 PM UTC+1, Sean Corfield wrote:
>
> Scaramaccai wrote on Thursday, February 11, 2016 at 8:32 AM:
> >I'm learning Clojure, and I find difficult to understand where a specific
> compiler error happens:
>
> The stacktraces can be pretty daunting at first,
(.printStackTrace *e)
will print the full stacktrace of the most recent exception to the standard
error stream (STDERR) of the Java process.
Depending on your REPL / tooling environment, stuff printed to standard
error may not show up in your REPL. If that happens, try this:
(.printStackTrace
I agree, lovely indeed--I am already being tempted to learn to use it to
just create some diagrams for my own documentation! Thank you.
On Wednesday, February 10, 2016 at 7:40:57 PM UTC-6, Colin Fleming wrote:
>
> This looks really lovely, thanks!
>
> On 11 February 2016 at 13:51, Stathis
Scaramaccai wrote on Friday, February 12, 2016 at 1:01 AM:
On Friday, February 12, 2016 at 9:51:50 AM UTC+1, Scaramaccai wrote:
Yes, the problem seems to be how I compiled the code. I was using
Vim+Fireplace, and doing a "cpr" (takes the content from the active buffer and
requires it inside the
I currently have some core.async code that looks like:
(map< :foo ch)
However, map< and map> are now deprecated, with the suggestion to use
transducers instead. Unfortunately it's not obvious how to go about that.
At first I thought that I could use a pipe and a new channel:
(pipe ch
On 02/12/2016 01:37 PM, Alan Thompson wrote:
> Hey - Just saw something on the clojure.core/type function:
>
>
>
> (defn type
> "Returns the :type metadata of x, or its Class if none"
> {:added "1.0"
> :static true}
> [x]
> (or (get (meta x) :type) (class x)))
>
>
Hey - Just saw something on the clojure.core/type function:
(defn type
"Returns the :type metadata of x, or its Class if none"
{:added "1.0"
:static true}
[x]
(or (get (meta x) :type) (class x)))
I have never seen this before, and it appears the :type metadata is not
used in the clojure.core
I'm just starting to use ring/compojure to create web apps.
One thing I would like to do is have an updatable collection of apps that
can be accessed based on the URL input.
For example, if I have an app named "foo", then website.com/foo would
redirect to that app.
So far, I have the
On 02/12/2016 01:47 PM, Kevin Downey wrote:
> On 02/12/2016 01:37 PM, Alan Thompson wrote:
>> Hey - Just saw something on the clojure.core/type function:
>>
>>
>>
>> (defn type
>> "Returns the :type metadata of x, or its Class if none"
>> {:added "1.0"
>> :static true}
>> [x]
Hello All,
I 'm doing a program that have to:
- Read a file with list of hosts ip
- Start pinging from n threads pool or whatever
- Cycle the pinging again after thread sleep
What is the best way doing it? Producer and consumer to use queue? One
thread by ip?
Any advice about it?
Regards,
Hi Fernando,
You could try agents, but I'm not sure they're a good fit for periodic
execution. I suggest looking at the scheduled Executors in
java.util.concurrent, and then using them in your Clojure code. Mixes
pretty much seamlessly with Clojure's refs and functions (indeed much of
Clojure's
On Feb 12, 2016 4:40 PM, "JvJ" wrote:
>
> I'm just starting to use ring/compojure to create web apps.
>
> One thing I would like to do is have an updatable collection of apps that
can be accessed based on the URL input.
>
> For example, if I have an app named "foo", then
13 matches
Mail list logo