I haven't really used CPS myself, but I think you should be able to use the
trampoline function to clean up your code.
http://clojuredocs.org/clojure_core/clojure.core/trampoline
Jonathan
On 15 July 2014 09:13, Mark P pierh...@gmail.com wrote:
I'm very new to continuation passing style
Inside the ns form they are the same. Outside the ns form, only (require
'[a.b]) works (with quoting, as Kelker said).
Jonathan
On Fri, Dec 6, 2013 at 10:24 AM, Kelker Ryan theinter...@yandex.com wrote:
I believe one is a directive and the other is a function.
:require doesn't need the
I agree! :)
On Fri, Aug 9, 2013 at 10:10 AM, Mikera mike.r.anderson...@gmail.comwrote:
On Friday, 9 August 2013 05:07:10 UTC+8, Jonathan Fischer Friberg wrote:
I'd suggest avoiding macros until you absolutely know that you need them.
Usually they aren't necessary.
Problem
I'd suggest avoiding macros until you absolutely know that you need them.
Usually they aren't necessary.
Problem with this is that you don't really know when you need them unless
you know what they do.
On Thu, Aug 8, 2013 at 9:58 PM, Jace Bennett jace.benn...@gmail.com wrote:
Thanks, Mike.
That's only obvious if you already know how it works.
Jonathan
On Wed, Aug 7, 2013 at 2:13 PM, Karsten Schmidt toxmeis...@gmail.comwrote:
The fact, that the docs refer to checking if a key is present in the
collection, should make it obvious which types are supported, no? Only
vectors, maps
No, it should be more explicit.
If called with a map...
If called with a vector...
Jonathan
On Wed, Aug 7, 2013 at 8:32 PM, Michael Gardner gardne...@gmail.com wrote:
Wouldn't changing collection to associative collection be enough?
Though maybe a note about its behavior on vectors would
If there was one thing I would deprecate it's that the first element of
the vector is special.
I find the fact that these two:
(ns bob [:require [tawny owl reasoner]])
(ns john [:require [tawny.owl reasoner]])
are totally different, very confusing.
That feature is very important to me. It's
There is syntax to ns. It's not syntax in the traditional way, but it's
essentially the same thing. And Greg is right that it often causes
confusion.
I +1 the second version. The first version's :as-class was too messy.
It could very easily be made backwards-compliant as well. All we have to do
at 8:25 PM, Jonathan Fischer Friberg
odysso...@gmail.com wrote:
There is syntax to ns. It's not syntax in the traditional way, but it's
essentially the same thing. And Greg is right that it often causes
confusion.
I +1 the second version. The first version's :as-class was too messy
, Mark Engelberg mark.engelb...@gmail.comwrote:
On Mon, Aug 5, 2013 at 11:31 AM, Jonathan Fischer Friberg
odysso...@gmail.com wrote:
I think it's java that is at fault here. I think wildcards should never
have been part of java to begin with. The argument here is basically
exactly the same as why
Yes. See this part of his
readmehttps://github.com/odyssomay/paredit#implementation-status where
he says it's missing some important functions. Plus see this
issuehttps://github.com/odyssomay/paredit/issues/16 I
opened for him about other important missing commands.
I'm not ignoring that
My whole previous message appears as trimmed (probably because it starts
with a ), that wasn't meant to happen. :)
If you want to read it please open the trimmed content.
Jonathan
On Sat, Jul 27, 2013 at 9:34 PM, Jonathan Fischer Friberg
odysso...@gmail.com wrote:
Yes. See this part of his
Probably not, editor wars tend to bring out the worst in people.
Jonathan
On Sat, Jul 27, 2013 at 9:38 PM, kovas boguta kovas.bog...@gmail.comwrote:
Guys, is this argument helping answer the OP's question?
On Sat, Jul 27, 2013 at 12:34 PM, Jonathan Fischer Friberg
odysso...@gmail.com
but I don't remember how and can't find that gist where it was explained.
Sorry.
-Steven
On Sat, Jul 27, 2013 at 2:34 PM, Jonathan Fischer Friberg
odysso...@gmail.com wrote:
Yes. See this part of his
readmehttps://github.com/odyssomay/paredit#implementation-status where
he says it's
While I haven't tried libgdx myself, you should be able to do something
like this:
1. Create a global namespace (or similar), which should contain global
variables
and/or functions that should never be reloaded. In this namespace you
essentially
put the things that there can only be one of - the
Hehe, yep. I mean, it's super useful for any library that needs more than
one file. Which is most of them.
Jonathan
On Sat, Jul 20, 2013 at 12:57 AM, JvJ kfjwhee...@gmail.com wrote:
Facades and workarounds for things that are more difficult than they
should be. Very nice.
On Friday, 19
Yes, there is https://github.com/ztellman/potemkin
Jonathan
On Fri, Jul 19, 2013 at 10:06 PM, JvJ kfjwhee...@gmail.com wrote:
I'm creating a library with a lot of available functions in a lot of
different namespaces, and I'd like many of them to be available to users of
the library without
Jay beat me to it. :)
I'll add the documentation for pr-str:
http://clojuredocs.org/clojure_core/clojure.core/pr-str
Jonathan
On Tue, Jul 16, 2013 at 4:39 PM, Jay Fields j...@jayfields.com wrote:
this seems to do what you want: (clojure.string/join , (map pr-str
my-strings))
On Tue, Jul
Hi,
This is a message to announce that sublime-lispindent has recently received
an update. If you don't know what it is, check out the github page:
https://github.com/odyssomay/sublime-lispindent
The updates are:
* Improved string/comment handling. Previously, lispindent tried to guess
whether
Should pasting be part of jline? Am I the only one that finds that really
odd?
In my opinion, pasting should be part of the terminal - and it is. Standard
shortcuts are ctrl+shift+v for gnome-terminal (and I assume other modern
terminals, but I don't really know). The old standard is middle-click
On Fri, Jun 7, 2013 at 11:13 PM, Matt Smith matt.smith...@gmail.com wrote:
(- '([1 2] [3 4] [5])
(partial map first)
flatten
)
Because this becomes
(flatten (partial '([1 2] [3 4] [5]) map first))
I think I understand how you thought; (partial map first) becomes a
function,
Found this: http://www.objecthunter.net/exp4j/
Might be useful.
Jonathan
On Wed, May 29, 2013 at 12:45 AM, SpiderPig spiderpi...@googlemail.comwrote:
You could just write this yourself.
It's easier than it looks.
First start with an evaluator for rpn (reverse polish notation)
expressions.
On Sun, May 19, 2013 at 4:54 PM, Jim - FooBar(); jimpil1...@gmail.comwrote:
ha! you cheated with iterate...
try this which is closer to the example...
(first (filter odd? (map #(do (println realized %) %) [2 4 6 7 8 9])))
realized 2
realized 4
realized 6
realized 7
realized 8
Nice introduction!
Problems/suggestions for lispindent can be reported here:
https://github.com/odyssomay/sublime-lispindent/issues
don't be shy!
In any case, I went ahead and implemented checking for the
syntax of the file. So non-saved files with clojure syntax is now
indented correctly.
This
On Sat, May 11, 2013 at 9:25 PM, Alex Baranosky
alexander.barano...@gmail.com wrote:
Most of the code I see and write at work at Runa uses (not (empty? foo)).
I'll continue to defend the position that it is more obvious code, and
therefore better (imo :) )
Alex
Completely agree. (seq
I agree with Gary, there's normally not really any need to obfuscate the
implementation,
and using the underlying structure can sometimes be useful.
That said, if you really want to, you can create a woobly protocol and
implement it using reify, this will make the underlying implementation
:8080/javascript/edgar.js
Tim
On Tue, May 7, 2013 at 5:26 PM, Jonathan Fischer Friberg
odysso...@gmail.com wrote:
You have to import the google closure library when compiling without
optimisation.
Given your build, probably something like this:
script type=text/javascript
src=public
I haven't used clojurescript in a while, but if I recall correctly, the
only way
to not compile everything into a single file is to leave out the
:optimization flag
completely. If this is the case this should probably be considered a bug. I
might
be wrong though.
Jonathan
On Tue, May 7, 2013 at
groups of them with different lein-cljsbuild groups.
On Tue, May 7, 2013 at 12:24 PM, Jonathan Fischer Friberg
odysso...@gmail.com wrote:
I haven't used clojurescript in a while, but if I recall correctly, the
only way
to not compile everything into a single file is to leave out
abouve. Maybe I just can't do this, but I thought I'd ask around.
Tim
On Tue, May 7, 2013 at 4:03 PM, Jonathan Fischer Friberg
odysso...@gmail.com wrote:
From the sample.project.clj:
; Determines whether the temporary JavaScript files will be left in place
between
; automatic builds
*DON'T DO IT*
I just realised, if the :optimizations missing triggers this
behaviour, it should be possible to set it to nil, and it was!
So try ':optimizations nil' in your build.
Jonathan
On Tue, May 7, 2013 at 10:20 PM, Jonathan Fischer Friberg
odysso...@gmail.com wrote:
I tried
, ['edgar'], ['cljs.core',
'clojure.browser.repl', 'shoreleave.remotes.http_rpc']);
*main.js *
Hmm
Tim
On Tue, May 7, 2013 at 4:37 PM, Jonathan Fischer Friberg
odysso...@gmail.com wrote:
*DON'T DO IT*
I just realised, if the :optimizations missing triggers this
behaviour, it should
That sounds scary. :)
I haven't experienced any of the sort. Tested in both linux 64-bit and
windoze 32-bit.
The problem likely stems from the way jme loads the native libraries. As
far as I know
they do it manually by extracting the libraries and then setting some
sort of path. It
should be
(:import ...) only works in (ns ...). Outside ns, you have to use (import
...) instead (note: no :).
See:
http://blog.8thlight.com/colin-jones/2010/12/05/clojure-libs-and-namespaces-require-use-import-and-ns.html
Jonathan
On Mon, May 6, 2013 at 12:04 AM, Caocoa p.de.bois...@gmail.com wrote:
If you don't need the result, you should use dorun instead of doall.
http://clojuredocs.org/clojure_core/clojure.core/dorun
Jonathan
On Sat, May 4, 2013 at 8:07 PM, Gary Verhaegen gary.verhae...@gmail.comwrote:
Just want to point out that doall seeming more idiomatic in this case
might just
You could try reading about it here:
http://search.cpan.org/~dconway/Acme-Bleach-1.150/lib/Acme/Bleach.pm
I still can't figure out exactly what it does though...
Reading the description, it seems like it removes, for example
whitespace at the end of lines. But from the example it seems
like it
My effort can be found here:
https://github.com/odyssomay/orbit
It's kind of all over the place in that I have started on a lot of
things, but not really
finished any parts. In any case, should be some useful stuff in there.
I haven't really been active on the project lately - there's a bunch of
.
Jonathan
On Wed, May 1, 2013 at 11:20 PM, Jonathan Fischer Friberg
odysso...@gmail.com wrote:
My effort can be found here:
https://github.com/odyssomay/orbit
It's kind of all over the place in that I have started on a lot of
things, but not really
finished any parts. In any case, should
UI example:
https://github.com/odyssomay/orbit/blob/master/test/orbit/test/ui.clj#L45
Sorry for the spam. :)
Jonathan
On Wed, May 1, 2013 at 11:28 PM, Jonathan Fischer Friberg
odysso...@gmail.com wrote:
Some info about the current status:
* Input handling - missing joystick
I think that for today I will stick with the lib folder solution,
proposed by James, but I encourage the knowledgefull people Jonathan and
James to work together to deliver a Clojars or Amazonaws online repository
with more-or-less daily update, since the engine is really well-maintained.
You could always give https://github.com/halgari/clojure-py a spin, might
not be so easy to get everything working though. :)
Jonathan
On Mon, Apr 29, 2013 at 2:48 PM, Lee Spector lspec...@hampshire.edu wrote:
On Apr 29, 2013, at 8:15 AM, Michiel Overtoom wrote:
On Apr 28, 2013, at
If you don't want to set the initial value to nil, set it to ::unbound or
similar. Should be very
hard to accidentally bind the same value.
Jonathan
On Mon, Apr 29, 2013 at 8:04 PM, AtKaaZ atk...@gmail.com wrote:
the pain with that is that it wouldn't work inside a function where a
would be
I'm currently making a library for jmonkeyengine. It's not
ready yet, however, a while back I decided to put jme in a repository.
Url: http://jmonkeyengine.s3-website-eu-west-1.amazonaws.com/;
Add to deps: [jme 2013-04-01]
The biggest problem with it right now is that it contains all test models
On Mon, Apr 29, 2013 at 5:25 PM, Konrad Hinsen
googlegro...@khinsen.fastmail.net wrote:
--On 29 avril 2013 09:09:27 -0400 Lee Spector lspec...@hampshire.edu
wrote:
On Apr 29, 2013, at 9:01 AM, Jonathan Fischer Friberg wrote:
You could always give
https://github.com/halgari/**clojure
don't support better. Everything from concurrency to the GC is
implemented better in the JVM.
Timothy
On Mon, Apr 29, 2013 at 2:41 PM, Jonathan Fischer Friberg
odysso...@gmail.com wrote:
On Mon, Apr 29, 2013 at 5:25 PM, Konrad Hinsen
googlegro...@khinsen.fastmail.net wrote:
--On 29
Did you put / at the beginning of the string to resource? Because you
shouldn't.
You should call it like this: (resource foo.xml).
Jonathan
On Fri, Apr 26, 2013 at 8:47 PM, Jim - FooBar(); jimpil1...@gmail.comwrote:
Hello everyone,
I hope you're all doing well...
Can anyone enlighten my
If that's a problem, you could try https://github.com/hugoduncan/criterium
On Thu, Apr 25, 2013 at 5:38 PM, Phil Hagelberg p...@hagelb.org wrote:
Three repetitions is not nearly enough to get a feel for how hotspot
optimizes functions when it detects they're in a tight loop. I don't know
how
(letfn [(fib [x]
(memoize
#(if (or (zero? %) (= % 1))
1
(+ (fib (- % 1)) (fib (- % 2))]
(time (fib 30))
(time (fib 30))
(time (fib 40))
(time (fib 40)))
Calling fib just creates a new function, no values
are calculated. So
Oops ;)
Of course you are right. The amazing thing is that the times I observed
fitted somehow the situation (the first (fib 30) call taking much more time
than the others, the third call more than the second and fourth) that I was
tricked into believing the calculations were being done and
I think group-by can do what you want (and more);
http://clojuredocs.org/clojure_core/clojure.core/group-by
Jonathan
On Thu, Apr 4, 2013 at 2:16 PM, Christian Romney xmlb...@gmail.com wrote:
Hi all,
I was wondering if something in core (or new contrib) like this exists
already...
(defn
It's because the #() syntax always calls the content as a function.
So #(...) is the same as (fn [] (...)). In your case,
#({:foo_id foo-id (keyword a-keyword) (:BAR_KEY %)})
is the same as:
(fn [%] ({:foo_id foo-id (keyword a-keyword) (:BAR_KEY %)}))
Note the extra () around {}. In other words,
columns
which they use underscore so I gotta go with underscores in order code to
match them :)
Ryan
On Thursday, March 28, 2013 11:24:38 PM UTC+2, Jonathan Fischer Friberg
wrote:
It's because the #() syntax always calls the content as a function.
So #(...) is the same as (fn
that #() executes the content
as a function, very helpful!
Ryan
On Friday, March 29, 2013 12:08:04 AM UTC+2, Jonathan Fischer Friberg
wrote:
It can still be done with the #(), with for example the hash-map function.
It's basically the same as the {} but as a function, like this:
(hash-map :a 3 :b 4
The problem is probably too much nested laziness.
Try:
(reduce (fn [a b] (doall (map + [1 1] a))) [1 1] (range 1500))
Related:
https://groups.google.com/d/msg/clojure/-d8m7ooa4c8/pmaO7QubhosJ
Jonathan
On Wed, Mar 27, 2013 at 8:48 PM, Michael Klishin
michael.s.klis...@gmail.com wrote:
I don't think it's fixed in 1.5.1.
In both 1.5.0 and 1.5.1, (range 1500) is not enough to cause
the overflow for me. However, (range 2000) successfully
overflows in both versions.
Jonathan
On Wed, Mar 27, 2013 at 8:53 PM, Timothy Baldridge tbaldri...@gmail.comwrote:
Holding on to the head
Found some info here:
http://stackoverflow.com/questions/3727662/how-can-you-search-google-programmatically-java-api
Jonathan
On Fri, Mar 22, 2013 at 8:32 AM, Cedric Greevey cgree...@gmail.com wrote:
Change your code to it spoofs a common browser user-agent, change your
DHCP-assigned IP
We recommend all users to upgrade to
1.7.0https://clojars.org/com.novemberain/validateur/versions/1.7.0
.
I'm guessing it should be 1.4.0?
Jonathan
On Tue, Mar 12, 2013 at 8:58 PM, Michael Klishin
michael.s.klis...@gmail.com wrote:
Validateur is a functional validations library inspired by
I think you can simply use 'Fred' instead of 'Fred.class'.
Since, in the repl:
(class Integer)
;= java.lang.Class
I.e. just by using the name, we get a Class object, which should correspond
to .class in java.
In other words, you should be able to run:
(let [f (Factory/createInstance)
- and - are for some reason really hard to grasp for
many when starting out - me included.
On Mon, Mar 11, 2013 at 11:58 AM, edw...@kenworthy.info wrote:
So I understand that:
(- foo bar wibble)
is equivalent to
(wibble (bar (foo)))
Correct, but that misses the point. Thinking about -
I would say using :require :as is in almost all cases better.
However, I think :use is preferred if almost everything done
in the current namespace depends on the used namespace.
Though, no more than one namespace should ever be imported
with :use in the same namespace.
In your case I think it's
My experience:
1. Download lein.bat
2. Run it
Jonathan
On Sat, Mar 9, 2013 at 10:23 AM, BJG145 benmagicf...@gmail.com wrote:
Perhaps this general anti-Windows attitude is what Windows-based newcomers
to Clojure find off-putting...
On Saturday, March 9, 2013 3:55:59 AM UTC, James Ashley
Isn't it possible to solve this with a simple macro?
(case-dialect
:clojure (... clojure code ...)
:clojurescript (... clojurescript code ...))
Then, in jvm clojure, it could be implemented as:
(defmacro case-dialect [ {:keys [clojure]}] clojure)
and in clojurescript:
(defmacro
of things you would want to conditionally compile on for
Clojure/JVM.
Andy
On Thu, Mar 7, 2013 at 5:44 AM, Jonathan Fischer Friberg
odysso...@gmail.com wrote:
Isn't it possible to solve this with a simple macro?
(case-dialect
:clojure (... clojure code ...)
:clojurescript
Function composition similar to that has been explored a lot in the haskell
world. See:
http://www.haskell.org/haskellwiki/Arrow
I also made a small library to implement some of the operators:
https://github.com/odyssomay/clj-arrow
I think the reason arrows are so interesting in haskell is
I don't know why it doesn't work. However, changing defgreeter to the
following seems work.
(defmacro defgreeter [greeter-name]
(let [greeter (make-greeter)]
`(def ~greeter-name ~greeter)))
Might be a clue. :)
Jonathan
On Sun, Dec 16, 2012 at 6:49 PM, juan.facorro
You're welcome :)
On Fri, Dec 7, 2012 at 1:12 AM, Anton Holmberg antonholmber...@gmail.comwrote:
This is so awesome! You are my hero. Been searching for this for a while
now.
Den måndagen den 12:e november 2012 kl. 17:25:38 UTC+1 skrev Jonathan
Fischer Friberg:
Dear clojure mailing list
I usually never care about bringing external libs into the closure system.
Instead, I would do this:
HTML:
script src=three.js/script
Clojurescript:
(def THREE js/THREE)
Of course, this places it outside closure, and wont be compiled with the
closure compiler.
I don't think this matters much
start using it in a clojure file.
Please report if you have any problems!
Jonathan
On Sun, Nov 25, 2012 at 3:31 PM, Jonathan Fischer Friberg
odysso...@gmail.com wrote:
I didn't realize that the install looks completely different on mac. Sorry!
In any case, I have sent a request to include
I didn't realize that the install looks completely different on mac. Sorry!
In any case, I have sent a request to include it into the sublime package
control.
That should make it much easier to install. :)
*Also, will this work with the built in 'reindent' command? If not, will it
work with
I don't think there's a consensus.
You will have to weigh the pros/cons and choose what fits you best.
For example:
closure integrates perfectly with the closure compiler while jquery does
not.
jquery has great documentation while closure does not.
And so on. :)
Jonathan
On Sat, Nov 24, 2012
I recommend simply using jquery(ui).
closure has just been a pain to use for me. Nothing but frustration came
out of it.
jquery on the other hand, is great! :D
I mean, it even has documentation. ;) That's pretty hard to beat.
On Thu, Nov 22, 2012 at 7:10 AM, J Elaych microsc...@gmail.com
Uploaded new version today which ignores strings when indenting and adds
menu entries for changing the settings/key bindings.
Jonathan
On Mon, Nov 12, 2012 at 5:44 PM, Jonathan Fischer Friberg
odysso...@gmail.com wrote:
On a Mac, enter and Cmd+I work as advertised.
Nice! Thank you
When you compare functions, it only checks if it is the same function
object (not if the function behaves the same way).
For example:
(= (fn []) (fn []))
;= false
The reason you get false in your case is because with-meta returns a new
object every time you call it.
We need a new object to keep
process
instead of copying the package to Pristine Packages.
Shantanu
On Friday, 23 November 2012 22:46:14 UTC+5:30, Jonathan Fischer Friberg
wrote:
Uploaded new version today which ignores strings when indenting and adds
menu entries for changing the settings/key bindings.
Jonathan
The exception is because (into-array [0 1 -7 2 -1 -3 4 5 -10])
is not an array of longs, use long-array instead.
In the areduce, we also have to return ret after each computation, like so:
(defn aremove [pred ^longs ns]
(areduce ns i ret (long-array (alength ns))
(let [v (aget ns
Dear clojure mailing list,
As the indenting for clojure (and lisp in general) was very lacking
in sublime, I decided to make a plugin:
https://github.com/odyssomay/sublime-lispindent
I hope someone finds this useful.
By the way, if someone with a mac could try the keyboard shortcuts that
would
On a Mac, enter and Cmd+I work as advertised.
Nice! Thank you for testing. :)
Jonathan
--
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 -
It would be nice if clojure.core/conj had a unary implementation
([coll] coll)
I support this. Reasons:
1. It makes sense, adding nothing to something should give back the
something.
2. It's consistent with disj as mentioned.
3. Supporting edge cases like this can make some algorithms
You could also let every function take a map as input/output.
Then, b could return a map with key :result-b or similar.
This result would then pass through the rest of the functions and be
accessible in e.
Like this:
a ; = {:result-a ...}
b ; = {:result-b ... :result-a ...}
...
d ; = {...
BTW, I created the beginnings of a CDS development tools guide
https://github.com/clojuredocs/cdhttps://github.com/clojuredocs/cds/blob/master/articles/ecosystem/development_tools.md
Example:
You want to find an element with a certain property in a list.
In a imperative language you can do:
function ...
for( ... loop over list)
if( ... current element has the property ...)
return the element
But in clojure we can do:
(first (filter has-the-property?
Just found this: http://www.infoq.com/presentations/Laziness-Good-Bad-Ugly
Jonathan
On Tue, Oct 23, 2012 at 10:09 PM, Brian Craft craft.br...@gmail.com wrote:
Thanks for all the responses! This is great.
b.c.
On Tuesday, October 23, 2012 12:51:11 PM UTC-7, Sean Corfield wrote:
On Tue,
No, that's unfortunate. :(
Jonathan
On Wed, Oct 24, 2012 at 12:27 AM, Brian Craft craft.br...@gmail.com wrote:
hipster presentation is not so great in archive: can't really see what
he's doing.
On Tuesday, October 23, 2012 1:55:08 PM UTC-7, Jonathan Fischer Friberg
wrote:
Just found
Gabriele jmg3...@gmail.com wrote:
On Wednesday, October 17, 2012 7:39:26 PM UTC-4, Jonathan Fischer Friberg
wrote:
The plugin has been updated to support function argument indenting.
It is configurable in the plugin options.
Oooh, this is nice. :) I selected the indent to function arguments
Hi,
As I were unable to find a way to indent lisp code in jEdit, I decided to
write a plugin for this purpose.
It's called LispIndent and can be found here:
https://github.com/odyssomay/LispIndent
Please report if you have any problems!
Jonathan
--
You received this message because you are
, October 17, 2012 10:26:01 AM UTC-4, Jonathan Fischer Friberg
wrote:
Hi,
As I were unable to find a way to indent lisp code in jEdit, I decided to
write a plugin for this purpose.
It's called LispIndent and can be found here:
https://github.com/odyssomay/**LispIndenthttps://github.com
The plugin has been updated to support function argument indenting.
It is configurable in the plugin options.
Next, I think I will implement presets. The idea is that
each preset corresponds to one language. That way, LispIndent
can still be language-independent. Users will also be spared of
I agree with Lee. Everything that works in standard clojure should also
work in an eval.
Jonathan
On Mon, Oct 15, 2012 at 8:11 PM, Lee Spector lspec...@hampshire.edu wrote:
On Oct 15, 2012, at 12:51 PM, Alan Malloy wrote:
Evaluating function literals is not intended to work; that it works
On Thu, Jan 19, 2012 at 8:50 PM, Jeremy Heiler jeremyhei...@gmail.comwrote:
On Tue, Dec 20, 2011 at 2:05 AM, Alan Malloy a...@malloys.org wrote:
I agree, this horrifies me. It isn't even as simple as letting them
be whitespace, because presumably you want (read-string {a: b}) to
result in
(partition 2 1 [a b c d e])
http://clojuredocs.org/clojure_core/clojure.core/partition
On Wed, Oct 10, 2012 at 12:49 AM, Brian Craft craft.br...@gmail.com wrote:
I'm holding a list, say [a b c d e]. I need all the adjacent pairs, like
[[a b] [b c] [c d] [d e]].
It's a bit like reduce, but I
Hi,
In my opinion, cross-compiler projects is way too complicated to pull off.
When they really shouldn't be.
Therefore, I'm proposing the following file ending scheme:
.clj - detected by all compilers. In a cross-compiler project, .clj files
contains code not specific to the compiler.
.cljj -
gen-class supports both static methods and protected vars.
http://kotka.de/blog/2010/02/gen-class_how_it_works_and_how_to_use_it.html
http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/gen-class
(see :exposes in the second for protected access).
Jonathan
On Mon, Aug 13, 2012
clojure.contrib is not supported in clojure versions 1.3+
The reason in this case is that in 1.3+, it is necessary to add ^:dynamic
or ^{:dynamic true} in the def form (i.e. to the metadata)
for the var to be dynamically changed with bindings.
Fixed clojure.contrib.profile:
Looks good! As you said, logging is just too damn complicated in java.
Suggestion: change timbre/config to a function, seems way nicer to call
(timbre/config :current-level :warn)
rather than
(swap! timbre/config assoc :current-level :warn)
Jonathan
On Mon, May 28, 2012 at 1:17 PM, Peter
Hi,
I want to create a (partially static) server with nodejs and express.
I want to be able to write something like the following:
(def app (.createServer express))
(.use app (.static express public))
(.listen app 8080)
The problem here is that clojurescript seems to compile
the name 'static'
reserved words that appear in
property access. Patch welcome.
David
On Tue, Apr 24, 2012 at 3:31 PM, Jonathan Fischer Friberg
odysso...@gmail.com wrote:
Hi,
I want to create a (partially static) server with nodejs and express.
I want to be able to write something
, browser REPL, etc.) ?
David
On Mon, Oct 17, 2011 at 6:41 PM, Jonathan Fischer Friberg
odysso...@gmail.com wrote:
Hi,
As I understand it, clojurescript uses some unicode characters to identify
keywords/symbols.
I guess that's why (str 'a) gives me ï·‘'a
I thought that this was intentional
this at the REPL (say via
script/repljs) ?
David
On Tue, Oct 18, 2011 at 7:22 AM, Jonathan Fischer Friberg
odysso...@gmail.com wrote:
I'm on the master branch.
I compiled the file using 'cljsc file file.js', and run it in the
browser.
On Tue, Oct 18, 2011 at 1:16 AM, David Nolen dnolen.li
, David Nolen dnolen.li...@gmail.comwrote:
Does the same problem occur when trying this at the REPL (say via
script/repljs) ?
David
On Tue, Oct 18, 2011 at 7:22 AM, Jonathan Fischer Friberg
odysso...@gmail.com wrote:
I'm on the master branch.
I compiled the file using 'cljsc file file.js
It works!
Thanks for all the help.
On Tue, Oct 18, 2011 at 5:52 PM, David Nolen dnolen.li...@gmail.com wrote:
I see you're not setting the encoding. Try adding the following to the top
of head
meta charset=UTF-8
David
On Tue, Oct 18, 2011 at 11:43 AM, Jonathan Fischer Friberg
odysso
1 - 100 of 192 matches
Mail list logo