rer/commit/1153b5d4db898d042de6e3aa0ab9d77e65c6e3cc
On Saturday, October 6, 2018 at 5:41:27 PM UTC-4, Eric Lavigne wrote:
>
> *Summary*
>
> I am writing tests involving multiple metrics with tradeoffs. When I make
> a software change, the tests should show check for changes across an
*Summary*
I am writing tests involving multiple metrics with tradeoffs. When I make a
software change, the tests should show check for changes across any of
these metrics and show me that I was able to improve along one metric, but
at the expense of another metric. If I decide that these change
I would not use keyword namespaces in this situation. Users of the "fetch"
function will likely type :timeout, :status, and :body when using this
function. Keyword namespaces would just force users to type longer names
for these.
On Sunday, September 30, 2018 at 9:45:56 PM UTC-4, Michael Gardn
After graduating Udacity’s self-driving car engineer nanodegree (highly
recommended!) I was eager to apply the same techniques in Clojure. Hopefully
other Clojure programmers will find this field interesting as well.
Figurer: planning library
https://github.com/ericlavigne/figurer
Figurer handl
> While trying out clj-webdriver (for testing web pages), I got the impulse to
> reduce some of my boilerplate. I'd like your advice on best practices.
I would start with the main test macro, web-test. I would replace your
local variable b with a dynamically bound var *browser* that web-test
is re
You have discovered a very recent change. The idea is to automatically
switch to longs for performance when it is clear that overflow will
not occur.
https://github.com/clojure/clojure/commit/684fca15040e1ec8753429909b2d463e99d857e7
There are still some problems with this optimization, whic
> i started with a tic tac toe implementation, but i'm stuck:
I used the same example problem last year to teach Clojure to two
people that were new to programming. Hopefully you'll find their code
helpful.
https://github.com/algarete13/tic-tac-toe
--
You received this message because you
> Is there any project on github which goal is to implement all code
> from On Lisp book in Clojure?
Michael Fogus and Stuart Halloway have both ported parts of On Lisp to Clojure.
Michael
http://blog.fogus.me/tag/onlisp/
Stuart
http://thinkrelevance.com/blog/2008/12/12/on-lisp-clojure.html
http
Firebug says goog.fx.Dragger is not a constructor.
Firebug's error message doesn't match my understanding of the
goog.fx.Dragger documentation, but yes, that line did stop the script.
http://closure-library.googlecode.com/svn/docs/class_goog_fx_Dragger.html
On Mon, Aug 29, 2011 at 6:50 PM,
> I wanted to give a try to ClojureScript but from Windows XP.
> Now I was doing all what is written on github but had to remove -server to
> obey "missing jvm.dll" problem (even after coping server path there was
> still a problem about loading some routine)
After copying the server path, you fou
>
>
> > The pprint function in the Clojure standard library indents Clojure
> source
> > code.
> > http://richhickey.github.com/clojure/clojure.pprint-api.html
>
> Er, won't you lose all comments and have reader macros expanded if you
> use read/pprint to do the transformation?
>
Oops. I thin
The pprint function in the Clojure standard library indents Clojure source
code.
http://richhickey.github.com/clojure/clojure.pprint-api.html
To get the result you are looking for, a tool would need to walk through all
the *.clj files in your source directory and, for each file, read in the
I like that both its packing and unpacking functions work on either files or
streams. I can imagine building a collection of output documents in memory,
using this library to pack those documents into one in-memory zip archive,
and streaming the result over HTTP without ever touching the file syste
Baishampayan Ghose posted this download link in another thread.
http://blip.tv/file/get/Richhickey-RichHickeyUnveilsClojureScript918.avi
On Tue, Jul 26, 2011 at 4:47 AM, Michel Alexandre Salim <
michael.silva...@gmail.com> wrote:
> Speaking of video hosting, could the videos also be uploaded to
>
>
> Also, with respect to the lack of ability to interact with the browser
> directly through the REPL or editor like with emacs-swank-slime, is it fair
> to assume that this is just due to the current implementation being
> Rhino-based? Also ClojureScript doesn't support eval, I'm assuming
> Jav
>
>
> Although I did get a REPL, it was totally disconnected from the browser, so
> I wasn't able to test any GUI stuff with it and if I modified the code I had
> to wait quite a long time for the js to compile before I saw the changes in
> the browser.
>
>
As mentioned in Rich's presentation video
>> For $1, they will convert an email or PDF into an old fashioned letter
>> and put it in the mail for you.
>>
> If a snail-mail generated that way would be acceptable for submitting
> a CA, I can't fathom why a fax or an e-mail direct to Hickey (bearing
> a scanned signed written document) wouldn
> Same here. In my case, snail-mail would mean a 2.5km hike through a
> freezing winter wonderland to the nearest mailbox that's used to send
> rather than being receive-only. So, 5 km there and back. It could
> easily take over two hours and might even be dangerous depending on
> the weather.
Thi
> Back to the git pull request question - nobody seems to know anything
> about it, but that issue should not be related to legal issues, if
> clojure maintainers pull only stuff from CA signers, right?
Be careful about applying the word "should" to legal issues. I'm
inclined to just trust Rich an
>> Which is of course what the quote is supposed to do. But is there any
>> way to get that macro to expand to using the value of asdf, rather
>> than the symbol itself? Or can only changing the macro fix this? I
>> fear the latter, which would imply that using quotes like that in a
>> macro should
I've been studying network analysis recently, in an attempt to
automatically infer relationships between various Clojure projects. If
a program can determine which similar libraries are good replacements
for eachother, and which libraries tend to work well together, I can
build a browseable directo
> I'll check out Enliven. I'm currently writing an app using Compojure,
> Ring and Hiccup, so it would fit nicely with that too by the sound of
> it.
I was in a small Enlive vs Hiccup discussion at the conj. Enlive was
preferred by developers who worked with designers, because it allows
designers
> So I am converting some Ruby code I have into CLojure for practice/fun and I
> am having trouble finding info via Google.
Clojure uses the same regex style as Java, so you'll need to search
for information on Java regexes rather than Clojure regexes.
--
You received this message because you ar
FlightCaster and Backtype are two startups that have used Clojure for
distributed computing. If I were going to do some distributed
computing in Clojure, I would start by looking at the tools they use.
http://www.datawrangling.com/how-flightcaster-squeezes-predictions-from-flight-data
Hi, Nicholas.
I would need to see more detail in order to know what is going wrong
in your case. I created a new project myself so that you can see an
example that does work.
First I typed this:
lein new hello
That created a project in the hello directory. I changed in that
directory and ed
> I am a physicist. I have been using Clojure full time for the last
> year and a half. The reasons that Rich (and most other Clojure
> evangelists) give for using Clojure, are all nice and good, but they
> point to what computer scientists think about. If you want scientists
> and engineers to
>> try
>> (def x #(iterate inc 1))
>> (take 1 (drop 10 (x))
>>
>> if you do not want to blow up the memory.
>
> I wonder if an uncached lazy seq variant that cannot hold onto its
> head would be useful to have in core?
I would argue that such a feature wouldn't be very useful. Let's
consid
There are four separate methods called Math/abs, to handle the
following types: int, long, float, double. So when you use Math/abs on
a different Number type, it is not clear which of those methods it
should use.
The other examples you gave can only accept double. Maybe in that case
Clojure is aut
The use of "partial" is unnecessary because "apply" takes any number
of arguments and expands its last argument.
(apply map vector [[1 2 3] [4 5 6] [7 8 9]])
is equivalent to
(map vector [1 2 3] [4 5 6] [7 8 9])
and results in
([1 4 7] [2 5 8] [3 6 9])
On Sun, Nov 14, 2010 at 8:30 AM, Moritz
> Also - I'm a bit worried as the message suggests that Clojure won't
> support int and float primitives for some purposes - which are pretty
> essential for Java interop - surely that can't be true? Or is this
> just a temporary thing during the Alpha development?
longs and doubles will be the de
Pete,
Would you feel comfortable working on the jquery-console upgrade?
That's entirely a Javascript issue, and I'd be happy to find another
piece to work on. I actually prefer working in Clojure, and only took
on the jquery-console upgrade task because it seemed important.
Let me know if you're
Last time I introduced someone to Clojure via try-clojure.org, he came
back later and said that the console ignored him after a while, and he
wasn't sure what he did wrong. We tried it together, and after a
couple minutes it stopped evaluating expressions. Does this bug sound
familiar? Unfortunatel
This application was created as a teaching example for the Pragmatic
Studio Clojure workshops, taught by Stuart Halloway and Rich Hickey.
It includes examples of all the issues you are talking about.
http://github.com/relevance/labrepl
As far as real applications go, this is a small applicat
The short answer is that it's okay to use Clojure directly. You don't
need Leiningen.
If you are familiar with C programming, the difference between the
Clojure compiler and Leiningen is like the difference between GCC and
Make. Using the compiler directly is fine when you have only one file
of so
I use Leiningen to compile and run my Clojure projects. I create a new
project with Leiningen, use Clojure Box to edit code and try out one
line at a time, then switch back to Leiningen for downloading
libraries or for compiling my own project into a library or program.
http://github.com/technoman
> What's this about an after party?
I received an email today at 1:22pm with the following link, but when
I tried to register at ~4pm it said sold out. More recently, tickets
became available again and I have one printed out on my desk.
Hopefully there's one left for you, too. :-)
http://conjafte
more Clojurians than I imagined? :-)
Looking forward to meeting everyone in a few days!
Eric Lavigne
352-871-7829
http://twitter.com/ericlavigne
lavigne.e...@gmail.com
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this grou
> I think I read somewhere that max-key applies f more times than is
> necessary, so should not be pass any f that takes significant time to
> compute.
Yes, max-key calls f more times than necessary.
http://code.google.com/p/clojure/issues/detail?id=95
We ran into this problem yesterday on a tic
CodeBuilders is a small programming club in Gainesville, Florida, that
meets about twice per week to work on programming projects (mostly in
Clojure). The other two members are very new to programming, but
learning fast as we build a Tic Tac Toe game together.
http://github.com/algarete13/tic-t
> It would be great if something like this was built into the standard
> libraries... or am I in a minority of users with such requirements?
>
> At least it gives me some pointers on how to implement timed caches...
>
It has been built into a library, so you won't need to implement it.
http://git
There is such a list.
http://clojure.org/libraries
On the other hand, that list is both very long and not very complete.
I looked for some of the libraries I am interested in right now. Ring
and compojure are there, but not clout, sandbar, or carte.
You can find a more complete list here, bu
at 1:37 AM, Wilson MacGyver wrote:
> I realize that. I was pondering why I don't run into the the 2nd problem.
>
> In your code, how many files/name spaces are you creating?
> And how many lines of code are in each file? I'm curious how you
> organize your code.
>
>
zvdr4xyxx53hwr#query:+page:1+mid:tzsd3k6tvvc4ahoq+state:results
>
> On Fri, Aug 13, 2010 at 11:49 PM, Eric Lavigne wrote:
>> Suppose I have two functions in the same file, and one depends on the other:
>>
>> (defn foo [x] (+ 1 x))
>> (defn bar [x] (* 2 (foo x)))
&g
>> 3. I think it would be great to have better support for circular
>> references - perhaps a two-pass compile? The reason this is
>> particularly acute in game development is that different subsystems
>> have quite a lot of inter-dependencies. AI evaluation system needs to
>> understand game state
> Currently we have two possible designs:
>
> Design 1:
> The session is stored as an mutable atom map in (request :session). To
> update the session, use the standard Clojure swap! function, e.g.
>
> Design 2:
> The session is an immutable map in (request :session). To update the
> session, add th
> I was wondering if anyone has tried somehow calling Jython functions
> from within Clojure, and how you went about doing this if so. I have
> not used Jython, but I would imagine the Jython interpreter can be
> invoked in the same way as any other java code, and Python programs
> can be run with
>> Is Leiningen a Linux-only tool?
>
> No, but Linux is much better supported than Windows right now. See this page:
>
> http://github.com/technomancy/leiningen
>
> The last question in the FAQ on that page is:
>
> Q: What about Windows?
> A: Try the bin/lein.bat script. Note that Windo
> Is Leiningen a Linux-only tool?
No, but Linux is much better supported than Windows right now. See this page:
http://github.com/technomancy/leiningen
The last question in the FAQ on that page is:
Q: What about Windows?
A: Try the bin/lein.bat script. Note that Windows support i
If you're looking for fun and practice, you could fork this wari game
and try adding a computer player.
http://ericlavigne.net:8054/
http://github.com/ericlavigne/island-wari
On Sat, Jan 16, 2010 at 11:02 PM, Tchalvak wrote:
> Anyone have some suggestions for active clojure projects to watch/ge
>> The issue that is
>> particularly interesting to me to explore is how alien Clojure is to
>> Java programmers, what are subjective and objective causes, and how
>> hard is to overcome each of the identified issues.
>
> This sounds very interesting. I try to explain the point of lisp to
> java pr
Since you are using Windows, you may find Clojure Box easier to install.
http://clojure.bighugh.com/
I followed the riddell.us/.../slime_swank.html tutorial yesterday, and
can confirm that it works well for Ubuntu.
On Sun, Jan 10, 2010 at 5:58 AM, brian wrote:
>
> Hi,
>
> I'm trying to follow
I was still using 1.0. This is a good incentive to upgrade :-)
On Fri, Dec 18, 2009 at 12:22 AM, Sean Devlin wrote:
> It's new in 1.1. Go here:
>
> http://clojure.org/special_forms#toc7
>
> And read the "Since 1.1" section.
>
> On Dec 17, 11:58 pm, Eric Lav
> Given that list of languages, I'd suggest taking a look at Eiffel.
> ...
> It's the source of the function pre/post condition facilities that Clojure
> has.
I did not know that Clojure functions supported Eiffel-style pre/post
conditions. Where can I read more about this?
--
You received this
>
>
> Why can't I use ensure inside of a dosync block? Is there another way to
>> perform a transaction?
>>
>
> You can, but "map" is lazy. It's not being evaluated within the dosync. One
> way to fix the code is to force map to evaluate within the dosync using
> "dorun":
>
>(dosync (dorun
The way I understand it, "transaction running" means that the code is
executing inside a dosync block. So this should work:
(def account1 (ref 1000))
(def account2 (ref 2000))
(dosync (map ensure [account1 account2]))
However, I get the following error:
java.lang.IllegalStateException: No tra
>
>
> The technique was first described by Craig Reynolds in the 1980s and has
> since then made it's way into many contemporary games. The algorithm is
> interesting in that it's fairly computationally intensive. Each boid's
> motion is determined by calculating it's distance from every other bo
>
>
> Hi!
> I've had no experience in Lisp or clojure before. I've only worked
> with Java and Ruby, so this question may seem stupid. Is there any way
> to run a clojure app without REPL?
>
> For example something like: clojure my_app.clj
>
Something like this:
java-cpclojure.jar:my_app_
>
>
> > There's also the (in)famous language benchmark
> > site:http://shootout.alioth.debian.org/
>
> This is primarily what I was going on. I realize no
> benchmarking approach is going to be perfect, but
> this attempt doesn't seem too bad. Is there any
> reason to be particularly sceptical ab
>
>
> Incidentally, if you want a language with an editor built in, why not
> look at Smalltalk? I vaguely recall that was a big part of the
> original language concept. I haven't ever played with it myself, but
> the most popular current flavour seems to be Squeak:
> http://www.squeak.org/
>
Sm
>
> i see that "my-list (rest (rest my-list))" is in a let section. That
> seems like the scope would mean we are talking about a different my-
> list.
>
Yes, it is a new my-list with a smaller scope. I didn't search for the
expression (rest (rest my-list)) before my earlier response.
--~--~---
>
>
> This gets to my question perfectly. Why is your code "my-list
> (rest (rest my-list)) " legal?
> I wouldn't have even thought to try that because, in essence, you are
> changing my-list. I mean, I know how persistence works. You are just
> reassigning what you think of as the start of my-l
>
>
> this seemed like a clean, nice way to merge to sorted lists into one
> sorted list. I'm not getting clojure syntax, it seems:
>
>
> (defn listmerge [l1 l2]
> (let [l1first (first l1) l2first (first l2)]
>(if (= l1first nil) l2)
>(if (= l2first nil) l1)
>(if (< l1first l2first)
>
ing with the flow, but
the language is flexible enough to work the way you want. Just define the
operations that you like to use. Also, you have access to Java libraries,
which have mutable collections.
>
>
> On Jan 11, 1:27 am, "Eric Lavigne" wrote:
> > > I have no i
>
>
> I have no idea how to iteratively mess with it since everything is
> persistent. Ok, like, say it's a list of lists and I am going to be
> merging the lists, like Tarjan's mergesort from some book from
> college.
>
Sorting is done much more easily with recursion than with iteration.
However
>
>
> Concretely, this would mean following the "Getting Started"
> instructions on clojure.org. Then seeing what there is to see . . . I
> assume some sort of command line for doing "REPL" will come up as it
> says?
>
Yes, "Getting Started" will show you how to start the REPL. I think that's
nea
At http://clojure.org/macros, condp is listed as one of the branching
macros, but its link is broken.
--
Education is what survives when what has been learned has been forgotten.
- B. F. Skinner
--~--~-~--~~~---~--~~
You received this message
>> I host my blog on Dreamhost, and it works great for static files, though
>> if you're looking to host actual clojure apps DH won't cut it.
>
> Yeah, Java hosting seems like rather tricky business, since you
> basically need dedicated RAM. I've heard slicehost is very good and
> reasonably pric
67 matches
Mail list logo