It's a question simply stated with an answer that depends on a lot of
things. And, as is often the case with the person giving an answer, without
asking other people I can only relate it to my own experiences with clojure
and programming in general.
The fun and freeing thing about clojure is the f
That works! I guess I haven't had to import an inner class before.
Thanks.
On Tue, Dec 8, 2015 at 9:09 AM, Alex Miller wrote:
> You probably want TransactionStore$Transaction - that's how the jvm refers
> to inner classes.
>
>
> On Tuesday, December 8, 2015 at 9:06
I'm probably making a dumb mistake but I've been unable to import the
necessary classes to do transactions in H2 (MVMap interface).
I receive the following error at the repl:
---
user=> (in-ns 'asdf.core)
#object[clojure.lang.Namespace 0x46d3c2c8
he function had the work being done within the agent
which would have killed parallelized I/O for me (in a separate project).
On Thu, Jun 11, 2015 at 9:32 PM, Ryan Waters wrote:
> https://gist.github.com/rwat/4abcebcb4cfae956f382
>
> I've enjoyed using clojure.core.cache for caching
https://gist.github.com/rwat/4abcebcb4cfae956f382
I've enjoyed using clojure.core.cache for caching results from time
expensive operations involving I/O, etc. and feel like this is the sort of
function that makes c.c.cache as simple to use as possible. e.g. all it
becomes is:
(cache-interact c f
What follows is an issue I was having with leiningen on a couple new linux
installations.
This writeup is only tangentially related to Clojure but I wanted to email
it out there for others who may run into this same issue. The following is
relevant for Debian (Jessie) and Ubuntu Server 14.10 as o
In working with vertigo I've found the need to parameterize the struct
field I wish to examine. Unfortunately vertigo doesn't seem to like vars
in its macros. For example:
- - - -
;; vs is 'vertigo.structs and vc is 'vertigo.core
(vs/def-typed-struct mystruct :ints (vs/array vs/uint32 10))
(def
I was just starting to use Sente [1] (which relies on httpkit [2]) and this
conversation is a real eye opener. Unless a person uses a library that
supports backpressure, as mentioned earlier, your
transport-concern-made-opaque-because-of-core-async must become an
application-level concern. The fa
rrb-vector/subvec, which
> produces a new vector containing the appropriate subrange of the input
> vector (in contrast to clojure.core/subvec, which returns a view on the
> input vector).
>
> [1] https://github.com/clojure/core.rrb-vector
>
>
> On Saturday, March 29, 2014 8:42:25
Mar 29, 2014 at 10:07 AM, Aaron Cohen wrote:
>
>
> On Sat, Mar 29, 2014 at 10:09 AM, Ryan Waters wrote:
>
>> I have some code that blows up the heap and I'm not sure why. I've
>> reduced it down to the following.
>>
>> I've tried to make sure t
I have some code that blows up the heap and I'm not sure why. I've reduced
it down to the following.
I've tried to make sure the atom doesn't have boundless growth and I didn't
think 'while' hangs on to the head of sequences so I'm embarrassed to say
I'm stumped.
(defn leaks-memory
[]
(let
Thank you Saravana. I'm finding a number of the posts David Nolen [1] has
written on his blog to be invaluable. Once I figure out what mix of
libraries I'll be using I can let you know!
[1] http://swannodette.github.io/
On Sat, Nov 9, 2013 at 12:33 PM, Ryan Neufeld wrote:
> Stuart Halloway i
Pedestal-app and pedestal-service seem like they have a lot of solid design
behind them and there's quite a few bright people that have put time into
development and documentation. I don't doubt Cognitect's dedication to the
project or their ability to derive productivity from it.
I program in cl
wrote:
> And given your locale, I would highly recommend the #clojure IRC channel.
>
>
> On Sat, Oct 5, 2013 at 8:45 AM, Ryan Waters wrote:
>
>> Is cond-let not part of modular contrib? If it is, where is it? All the
>> github sources I've seen either:
>> a)
Is cond-let not part of modular contrib? If it is, where is it? All the
github sources I've seen either:
a) define it themselves
b) use a non-contrib library
c) grab it from monolithic (old) contrib
clojure.org is no help, nor is dev.clojure.org. clojuredocs.org is out of
date and clojure-doc.o
On Wed, Jan 25, 2012 at 2:40 PM, Brenton wrote:
> We have released a new version of ClojureScript One.
>
> ...
>
> No more scripts! Everything now works through Leiningen. We have added
> support for retrieveing git dependencies via Leiningen.
>
It's nice that leiningen can handle the classpath i
On Wed, Jan 18, 2012 at 1:35 PM, Jeb Beich wrote:
> Any suggestions for a vim man?
>
Jeb -
I'd recommend either vimclojure or emacs + Evil. I recently switched
from the former to the latter and the transition hasn't been too bad.
I wanted the abilities of emacs + slime + swank, leiningen
integr
I ran into an issue with remote development and ClojureScript One and
thought I'd share with others who potentially will run into the same
issue.
If I want to access ClojureScript One on ComputerA from ComputerB then
I have to tunnel or port forward my request to ComputerA's
localhost:8080. That'
On Wed, Jan 11, 2012 at 1:27 PM, Brenton wrote:
> Today we are releasing ClojureScript One. A project to help you get
> started writing single-page applications in ClojureScript.
>
Can we quote Rich as saying "This is Awesome"? This looks so thorough
and well-executed - very exciting. Thank you
On Mon, Jan 9, 2012 at 11:20 PM, jaime wrote:
>
> now it works fine for NON-interactive command such as "dir" or "help",
> but it will hang when I send the shell commands that require user
> input, such as "time". I think the reason is that my code doesn't
> detect any input requirement so the she
I'd like to use clojurescript to set up a gclosure logger
(goog.debug.Logger) similar to the closure demo [1]. The slightly
modified javascript for this is below. How should clojurescript
insulate the programmer from the mutability issues?
1) log level mutates a LogManager object
2) a logconsole
On Fri, Jan 6, 2012 at 2:02 PM, kovas boguta wrote:
> I think what matters is the design. Jquery is an accessible
> implementation target, but if someone wants to retarget the design to
> gclosure, thats fine too (just more work than is need to get started)
>
Chris and Kovas -
By going with jque
Thank you Ken - I should have checked for Exception; not sure why I
didn't. Your other explanations were helpful too.
--
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 n
The following code doesn't catch the exception thrown like I think it
should. Any recommendations appreciated.
https://gist.github.com/793340
Thank you,
Ryan
- - - -
(ns my-ns
(:use [clj-time.core :only [date-time]]))
(defn my-date-time
"same as clj-time.core date-time but returns nil on
Not to veer a hijack, but a 'popular' or common functions group could
be useful for people learning clojure. It could be assembled by taking
the number of occurrences in a set of code or by being hand-picked by
people-who-should-know. Everyone who uses clojure should have an idea
of everything tha
+1 on the side of enhancing clojure's core documentation
On Thu, Oct 28, 2010 at 1:08 PM, Chris Maier
wrote:
> My interest is general improvement of Clojure documentation. At the
> conj, I spoke with Zack Kim about helping to improve the state of the
> documentation. My goal was to contribute
I probably wouldn't be able to show up until 8:00pm but I'd be
interested in getting on the 'list' for said group.
Thanks,
Ryan
On Mon, Oct 18, 2010 at 11:32 AM, Andrew Gwozdziewycz wrote:
> Hey Conj goers,
>
> I'm scheduled to arrive around 6:30, and after I check in am planning
> to spend the
I don't have a website I maintain right now so I thought I'd post this
to the mailing list.
I have a need to scan a list of IP addresses and I wanted the scan
order to be random. Nmap can do this. However, I also want the scan
order to be consistent so I can do handy things like diff output logs
Thank you, Mark. It's awesome when someone has the patience, time and
interest in putting something like this together so others may learn
faster. I know I'll benefit from it.
- Ryan
(irc nick arkh)
On Sat, Jul 24, 2010 at 2:30 AM, Mark McGranaghan wrote:
> Hi All,
>
> I recently posted to my
1.1, you can just
> cop the 1.2 implementation.
>
> On Jul 21, 1:18 pm, Ryan Waters wrote:
>> http://gist.github.com/484747
>>
>> - - -
>>
>> My sad little program has a number of issues and I would welcome
>> suggestions on any aspect of it. I come from
http://gist.github.com/484747
- - -
My sad little program has a number of issues and I would welcome
suggestions on any aspect of it. I come from an imperative
programming background and clojure is my first experience with a
functional or lisp language.
I'd like to take a list of things (really
On Wed, Jul 7, 2010 at 4:32 PM, Meikel Brandmeyer wrote:
> Hi,
>
> Am 07.07.2010 um 23:11 schrieb Ryan Waters:
>
>>> (send a init-function)
>>> (send a f))
>>
>> It's not guaranteed the init-function will complete be
On Wed, Jul 7, 2010 at 3:46 PM, Brian Hurt wrote:
> I'm wondering if the following pattern is safe or not. I'm in a
> transaction, and I want to create an agent and then send it an initializing
> message (the message function isn't transaction-safe, so I don't want to run
> it in the transaction)
n00b question: Why is [1 2 3] idiomatic and not '(1 2 3) ? Is it a
vectors vs. lists thing, notation thing, or something else?
I don't have a lisp background so there's a truckload of lisp reading
I still want to do which may answer questions like these for me. If
there's a particular text on wh
+1
I like it, Justin. I was looking at making something myself but your
efforts are farther along. I'd be happy to help with any aspect of
this.
Ryan
On Fri, Jul 2, 2010 at 2:46 AM, Justin Kramer wrote:
> Partly in response to this issue and partly to get my feet wet with
> Ring and friends,
...). I would welcome corrections and
explanations, even if what I've produced so far is just a simple
example of what could be.
- Ryan Waters
On Tue, Jun 29, 2010 at 9:34 AM, Angel Java Lopez wrote:
> Hi people!
>
> I love PHP documentation
>
> http://www.php.net/manual/e
An excellent post regarding compojure documentation was made by James
Reeves on the compojure group June 26, 2010:
http://groups.google.com/group/compojure/msg/da0de026bbbfbec1
In it, he discusses a strong desire to update the docs and provides
links a person would want to use in the mean time.
After reading your posts and thinking "wouldn't it be nice to just
kick off a thread and not care about the return value" I recall Rich
using/liking [1] the Java Executor framework [2]. I looked at
clojure.lang.Agent and saw it used there, too. It's tricky because I
wouldn't want to lean on Java
On Wed, Jun 16, 2010 at 12:17 AM, Christophe Grand
wrote:
> Hi Ryan,
>
> On Tue, Jun 15, 2010 at 6:01 PM, Ryan Waters wrote:
>> I'm working with the code at the following gist and also pasted below:
>>
>> http://gist.github.com/421550
>>
>> I'd l
Thank you for pointing that out. I notice your style is similar to
Rich's in his ant.clj [1] which seems like the kind of solution that
might be used in other functional and/or lisp languages. Do you know
if that's the case with self-calling functions and agents? However,
isn't there more overhe
On Tue, Jun 15, 2010 at 12:23 PM, Shawn Hoover wrote:
>
> On Tue, Jun 15, 2010 at 12:01 PM, Ryan Waters wrote:
>>
>> I'm working with the code at the following gist and also pasted below:
>>
>> http://gist.github.com/421550
>>
>> I'd like to
I'm working with the code at the following gist and also pasted below:
http://gist.github.com/421550
I'd like to have execution of a separate thread (agent) continue
running until it sees the atom 'running' change to false.
Unfortunately, the program doesn't return from the send-off but
to my un
>From the perspective of a clojure beginner, it was good information
and I grokked almost everything. Specifically, any lack of
comprehension on my part has more to do with the topic and my lack of
clojure expertise than with your presentation. ; )
I wasn't aware of all the resources at the end
43 matches
Mail list logo