And yep, Kevin's change works. Looking into reducers + I/O sounds
interesting, I'll definitely check it out, thanks!
On Mon, May 27, 2013 at 11:21 PM, Sean Corfield wrote:
> On Mon, May 27, 2013 at 9:50 PM, Kevin Downey wrote:
> > doall doesn't recurse, so you are not realizing the lazy-seq, y
On Mon, May 27, 2013 at 9:50 PM, Kevin Downey wrote:
> doall doesn't recurse, so you are not realizing the lazy-seq, you want
> something like [msg (doall sig-strs)]
Thank you Kevin! When Elango said my suggestion didn't work, I was
puzzled. Now it makes sense!
--
Sean A Corfield -- (904) 302-SEA
I'm not sure what your point is.
I rely quite a bit on randomly generated tests, and of course, any
multithreaded app has nondeterministic elements that can be hard to
replicate.
For that matter, if you are simply experimenting with new code at the REPL,
it might not always be clear what sequence
You have production code going *boom* that doesn't have any failing tests?
Or you have nondeterministic tests? :)
On Tue, May 28, 2013 at 1:49 AM, Mark Engelberg wrote:
> On Mon, May 27, 2013 at 10:25 PM, Cedric Greevey wrote:
>
>> What about add-watch? Can be used with any of Clojure's mutable-
On Mon, May 27, 2013 at 10:25 PM, Cedric Greevey wrote:
> What about add-watch? Can be used with any of Clojure's mutable-value
> containers -- atoms, refs, agents, vars. If one is getting set to an
> inappropriate value, or you suspect it is, you can attach a watcher to it
> that will emit a log
On Mon, May 27, 2013 at 5:39 PM, u1204 wrote:
> The REPL is your best friend. You can "hand execute" small pieces of
> code to test your assumptions.
>
> Common Lisp systems have wonderfully powerful trace functions allowing
> arbitrary conditions and actions.
>
> I haven't seen anything like tha
doall doesn't recurse, so you are not realizing the lazy-seq, you want
something like [msg (doall sig-strs)]
if you are looking to play around with io stuff, I recommend looking in to
using reducers for io, they allow you to sort of invert control, keeping
the nice property of with-open always cle
So, inspired by this post on SO:
http://stackoverflow.com/questions/10942607/clojure-multi-maps
I've been trying to write some multimap functions, in a transient
version:
https://gist.github.com/anonymous/5660467
This was my first experience with transients, and it's been
problematic. First pr
Hi all,
I've spent several months working on Krishnan's Clojurejs and added a lot
of things I could to make it more practical. I named the fork ChlorineJs
and lots about it can be found here:
https://github.com/chlorinejs/chlorine/wiki
Compared to wisp, ChlorineJS is a bit "ahead", especially wit
On Monday, May 27, 2013 12:48:24 PM UTC-5, stuart@gmail.com wrote:
>
> I thought I wanted some of the affordances, but not the nrepl connection
> (e.g. get to reply's standalone eval mode).
>
> But it turns out that for my use case, I don't need any of that, so
> calling clojure.main directly
On Monday, May 27, 2013 12:40:34 AM UTC-7, Phillip Lord wrote:
>
> Patrick Logan > writes:
> > OWL has several levels of increasingly expressive but general
> inferences.
> > Much of the domain could be represented in OWL (classes (i.e. sets),
> > instances (i.e. set membership), relationship
Hi all,
I will be doing Clojure and Datomic workshops, as well as a few talks. at
NDC Oslo in a few weeks, see http://ndcoslo.oktaset.com/Agenda for details.
Hope to see some of you there!
Stu
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To
If you haven't tried out Light Table, it shows you the values of local
variables. It is a pretty nice feature.
On Monday, May 27, 2013 5:53:16 PM UTC-4, puzzler wrote:
>
> I would be a lot happier with the state of Clojure debugging if, in
> addition to a stacktrace, I could easily explore the
On May 27, 2013, at 9:54 PM, Softaddicts wrote:
> Lets take a real life example, [etc.]
>
> Debugging was not a viable option. [etc.]
>
> This project was extreme in this regard but it prove to me that reviewing
> code offline
> and thinking about how to improve it gives much more payback than
Lets take a real life example, I had to design a backup system to take
over when a master quote feed made of several individual feeds failed.
My backup system had access to same raw feeds as the master system using
serial lines but there were no guarantee that both systems would receive the
raw f
Congrats and good luck!
Ambrose
On Tue, May 28, 2013 at 9:06 AM, Rich Morin wrote:
> I am delighted to report that my notion of a GSoC project on Codeq was (a)
> taken up by Navgeet Agrawal and (b) accepted by Google. Paul deGrandis,
> Tom Faulhaber, and I will be Navgeet's "official" mentors
For Vim users, I ported the debug repl. This is a tool that allows you to
create a REPL in the middle of the call stack, which allows you to suspend
the evaluation of functions, lazy seqs, etc, and then inspect the locals
and globals at that location. If you've already installed Fireplace, then
On May 27, 2013, at 5:53 PM, Mark Engelberg wrote:
> I would be a lot happier with the state of Clojure debugging if, in addition
> to a stacktrace, I could easily explore the local variables in play when an
> error was triggered. It was possible to do this in earlier Clojure
> environments,
I can't watch videos at the moment, so would you mind writing a short summary? 28.05.2013, 10:12, "atkaaz" :I find this might be helpful in this situation:Google I/O 2009 - The Myth of the Genius Programmerhttps://www.youtube.com/watch?v=0SARbwvhupQOn Tue, May 28, 2013 at 4:02 AM, Kelker Ryan
I find this might be helpful in this situation:
Google I/O 2009 - The Myth of the Genius Programmer
https://www.youtube.com/watch?v=0SARbwvhupQ
On Tue, May 28, 2013 at 4:02 AM, Kelker Ryan wrote:
> I wrote it for fun and deleted after no one took interest. There was no
> real purpose other than
Much simpler, although I'm still seeing the following exception, unless I
keep the form (str [msg sig-strs]):
IOException Stream closed java.io.BufferedReader.ensureOpen
(BufferedReader.java:115)
Any ideas why?
On Mon, May 27, 2013 at 5:44 PM, Sean Corfield wrote:
> Just use doall:
>
> (doall
I am delighted to report that my notion of a GSoC project on Codeq was (a)
taken up by Navgeet Agrawal and (b) accepted by Google. Paul deGrandis,
Tom Faulhaber, and I will be Navgeet's "official" mentors for the project,
but everyone is welcome to help:
Program analysis suite, based on Rich Hi
I wrote it for fun and deleted after no one took interest. There was no real purpose other than to see if it could be done. 28.05.2013, 08:33, "Plínio Balduino" :404?On May 10, 2013 8:04 AM, "Kelker Ryan" wrote:I would like to share a library that allows for bodies of code
Just use doall:
(doall [msg sig-strs])
No need for the let / result / promise / deliver.
On Mon, May 27, 2013 at 5:32 PM, Elango Cheran wrote:
> Hi everyone,
> I had a function that reads the contents of a file (in this case, it
> represents a license) and then verifies the contents.
>
> As I s
Hi everyone,
I had a function that reads the contents of a file (in this case, it
represents a license) and then verifies the contents.
As I started to expand the code for verifying, it made sense to break the
function up into a function for file parsing and a function for
verification. The follo
Coming from Visual Studio all those years ago, I deeply missed my debugger.
These days, I miss my debugger extremely rarely. And when I do use a
debugger, I much prefer a non-visual one: Either something like dgb, or
something like a hypothetical open-repl-here function, where I can ask
specifi
404?
On May 10, 2013 8:04 AM, "Kelker Ryan" wrote:
> I would like to share a library that allows for bodies of code to loop run
> until a Clojure Agent send-off is complete.
> https://github.com/runexec/hollywood#how
>
>
> --
> --
> You received this message because you are subscribed to the Goog
On May 27, 2013, at 1:38 PM, Armando Blancas wrote:
>> It's fun to make use of esoterica like `seq`'s behavior with an empty list.
>> Back in the early days, it was necessary. [2 examples]
>>
>> But, for the rest of us, the necessity has drained out of that kind of
>> esoterica.
>
> I don't
I use Eclipse and rarely use the debugger.
When I use the debugger it's mainly in some interop situations where I need
to look at both sides of the fence, Java and Clojure at the same time. Most of
the
time it's a misuse of the API that triggers exceptions.
These first four strategies are both
Yes and no. nrepl ritz lags behind slime, especially in areas such as
breakpoints and inspection.
On Mon, May 27, 2013 at 3:22 PM, David Nolen wrote:
> Doesn't ritz support nrepl? http://github.com/pallet/ritz
>
>
> On Mon, May 27, 2013 at 5:53 PM, Mark Engelberg
> wrote:
>
>> I would be a lot
Doesn't ritz support nrepl? http://github.com/pallet/ritz
On Mon, May 27, 2013 at 5:53 PM, Mark Engelberg wrote:
> I would be a lot happier with the state of Clojure debugging if, in
> addition to a stacktrace, I could easily explore the local variables in
> play when an error was triggered. It
I would be a lot happier with the state of Clojure debugging if, in
addition to a stacktrace, I could easily explore the local variables in
play when an error was triggered. It was possible to do this in earlier
Clojure environments, but the capability seems to have been lost in the
transition to
>Stuart Halloway said in his video Clojure in the Field (
>http://www.infoq.com/presentations/Clojure-tips) from March 1, 2013 (I
>think): "I don't feel the absence of a debugger because I've learnt enough
>that I don't ever need a debugger." I am very intrigued by that statement.
>What does he
I just watched that video and interpreted it to mean that of the many
strategies available to understand problematic behavior in a live app:
* reading the code offline + sufficient hammock time
* reproducing the problem offline using test cases in an appropriate
simulation environment
* appropriat
Thanks for permission.
Also... as far as the state monad goes, it's just a half-formed idea. I'll
try to throw something together in the next week or so.
On Monday, 27 May 2013 06:26:30 UTC-4, Stephen Kockentiedt wrote:
>
> Sorry for answering a little late. You are welcome to do whatever you w
Wowwee zowee that's a lot of code. Thanks.
On Saturday, 25 May 2013 22:02:07 UTC-4, JvJ wrote:
>
> I am more or less terrible at Maven, but I'm OK with Leiningen. Given
> that I have some information about a Maven repository (
> https://code.google.com/p/libgdx/wiki/MavenProjectSetup#Maven_Arch
Thank you very much, Michael and Andy!
понедельник, 27 мая 2013 г., 20:09:12 UTC+4 пользователь ru написал:
>
> Dear clojure-users,
>
> What does this error message means:
>
> Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError:
> clojure.lang.RT.mapUniqueKeys([Ljava/lang/Object;)L
What are the recommended Java/Clojure SPDY clients?
I'm interested in using it for backend RPC.
Ilya Grigorik discusses this in his AirBnB TechTalk on SPDY. At the end he
makes the case for using it for modern backend RPC instead of stuff like
Thrift, etc. See...
"Building a Modern Web Stack"
>
> There is no one who understands `(if (seq thing)` who wouldn't understand
> `(if (not (empty? thing))` or, better, `(if (not-empty? thing)`. The
> converse is not true. That suggests that the latter should be the idiom
No, it doesn't. That simply illustrates that idioms must be learned, as
Stuart Halloway said in his video Clojure in the Field (
http://www.infoq.com/presentations/Clojure-tips) from March 1, 2013 (I
think): "I don't feel the absence of a debugger because I've learnt enough
that I don't ever need a debugger." I am very intrigued by that statement.
What does he (or y
The project.clj files in pedestal contain an alias definition:
:aliases {"dumbrepl" ["trampoline" "run" "-m" "clojure.main/main"]}
You could try something like that.
--
Dave
On Mon, May 27, 2013 at 6:48 PM, Stuart Halloway
wrote:
> I thought I wanted some of the affordances, but not the nrepl
Hi,
I'm dealing with a problem where numerical data needs to be read through a
serial port, then rendered to a chart and displayed to the user. The user
has to be able to export the chart, and control whether or not reading is
actually being done. In addition to this, the chart needs to reflect
I thought I wanted some of the affordances, but not the nrepl connection
(e.g. get to reply's standalone eval mode).
But it turns out that for my use case, I don't need any of that, so calling
clojure.main directly is the right thing.
Thanks,
Stu
On Mon, May 27, 2013 at 11:27 AM, Laurent PETIT
clojure.lang.RT.mapUniqueKeys was added to Clojure 1.5, and did not appear
in 1.4 or earlier. It was added to Clojure 1.5 as part of this change:
https://github.com/clojure/clojure/blob/master/changes.md#210-set-and-map-constructor-functions-allow-duplicates
But yes, as Michael said, it means t
Those are both object/relational mapping libs, so the paradigm is a little
different, but Korma is probably what you're looking for:
http://sqlkorma.com
Jason
On May 27, 2013 12:18 PM, "sdegutis" wrote:
>
> Does Clojure have anything like Ruby's Datamapper or ActiveRecord
(besides clj-record)?
>
I really liked your take on this *Brian*. You kinda convinced me to use (if
(not-empty? foo)) from now on :)
Alexander
On Monday, May 27, 2013 2:58:38 AM UTC+3, Brian Marick wrote:
>
>
> On May 26, 2013, at 5:47 AM, "Alex L." >
> wrote:
> > First, the use of seq as a
> > terminating condition
*Dear Associate,*
*Please check the below requirement and advise us the right consultant’s
along with Rate, Availability, Contact Details, Current Location & Visa
Status.*
*It’s an immediate requirement please sent me the suitable resumes ASAP.
Please make sure the candidate has all the required sk
On May 26, 2013, at 5:47 AM, "Alex L." wrote:
> First, the use of seq as a
> terminating condition is the idiomatic way to test whether a sequence is
> empty.
In natural languages, idioms change. Sometimes it's to the despair of purists:
for example, I've had to accept that "hopefully" at the
Does Clojure have anything like Ruby's Datamapper or ActiveRecord (besides
clj-record)?
--
--
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 -
2013/5/27 ru
> Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError:
> clojure.lang.RT.mapUniqueKeys([Ljava/lang/Object;)Lclojure/lang/IPersistentMap;
>
You have code compiled against 1.4 (or later) that's running against
Clojure 1.3.
--
MK
http://github.com/michaelklishin
http:/
Dear clojure-users,
What does this error message means:
Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError:
clojure.lang.RT.mapUniqueKeys([Ljava/lang/Object;)Lclojure/lang/IPersistentMap;
Thanks in advance.
Sincerely,
Ru
--
--
You received this message because you are subsc
Hello,
What about
lein run -m clojure.main
?
2013/5/27 Stuart Halloway :
> As opposed to tools.nrepl?
>
> Thanks,
> Stu
>
> --
> --
> 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
> N
Sqlite is worth a look. Never used it with the JVM, but I assume there is a
JDBC driver for it.
On Mon, May 27, 2013 at 1:01 AM, Zack Maril wrote:
> Use postgres. If it makes sense later on, then try a nosql solution. Until
> then, postgres will probably do 95% of what you want out of the box.
As opposed to tools.nrepl?
Thanks,
Stu
--
--
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 unsu
Oops. That is what I meant, but I don't know why I thought pre- and
post-conditions get stored in metadata. It would be handy for :pre. Thanks,
Ambrose.
To the OP, I would still recommend using metadata to store the
applicability test and also making it a precondition of the fn in a partial
functi
Hi John,
By :pre, do you mean function preconditions? eg. (fn [] {:pre [..]}) ?
How is :pre related to metadata and dispatch? AFAICT it's purely for
macroexpansion and
there is no metadata available on the precondition post-macroexpansion.
Thanks,
Ambrose
On Mon, May 27, 2013 at 9:00 PM, John D
On May 26, 2013 8:53 PM, "Mark Engelberg" wrote:
>
> Another possible design choice is to store a domain-testing predicate in
the function's metadata.
Using metadata would be a much more idiomatic choice than using arity.
Multiple arities are idiomatically used (like method overloading) to
defaul
or maybe this (Subtext2):
http://www.subtextual.org/subtext2.html
or this (Conception):
https://www.youtube.com/watch?v=DNJ7HqlV55k
maybe someone could get some ideas and adapt them to clojure or something
On Mon, May 27, 2013 at 10:42 AM, atkaaz wrote:
> I kinda found the haskell equivalent
You just have to include the following item under :dependencies in your
project.clj:
[com.badlogic.gdx/gdx "0.9.9-SNAPSHOT"]
[com.badlogic.gdx/gdx-backend-lwjgl "0.9.9-SNAPSHOT"]
If you want to use another backend, you have to change the second entry
accordingly. The following code is the main
Sorry for answering a little late. You are welcome to do whatever you want
with the code. Therefore, I licensed it under CC0. And you are welcome to
do pull requests.
Regarding the state monad, I'm not fully sure what you mean. Do you have
any suggestions? You can of course use the -> macro:
(
I've played around with it a fair bit and it's got promise. Despite
appearances, it's not really a Clojure - as David says it's missing a lot
of features that make Clojure more than Just Another Lisp. It's probably
best to think of it as its own Lisp that's adopted Clojure's modernised
syntax.
I kinda found the haskell equivalent of the editor I mentioned above(well,
at least conceptually) and it's a work in progress but looks great so far,
it's written in haskell & it's in 3D
https://github.com/Peaker/lamdu
On Mon, May 20, 2013 at 8:17 PM, atkaaz wrote:
> Hi guys. I just stumbled
Patrick Logan writes:
> OWL has several levels of increasingly expressive but general inferences.
> Much of the domain could be represented in OWL (classes (i.e. sets),
> instances (i.e. set membership), relationships with domains and ranges,
> etc.), but there would still be a need for the dom
63 matches
Mail list logo