Hi,
since IFn is a Java interface and not a protocol, I'm afraid there is no
better way to define this. However I would write the macro slightly
differently. I find this more approachable. YMMV.
(def max-arities 20)
(defmacro definvokable
[type fields & deftype-tail]
(let [f(fields
Hi,
just to be sure: are you are aware of Marginalia?
https://github.com/fogus/marginalia
Regards,
Stefan
--
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
Maybe COBOL already solves the problem which Literate Programming want to
solve?
--
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
Can you give examples of usage for each position?
--
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.
T
On Thu, Oct 27, 2011 at 11:52 PM, daly wrote:
>
> Any means of publication can be the medium for literate programming.
> As I rule I prefer Latex but anything will do.
>
> All you need is a distinguished means of quoting and naming the
> chunks. In html this could be as simple as:
>
> you
Fogus,
Please add me to the core.logic, Heroku drinkup and Jamming with
Overtone.
Arnoldo
On Oct 25, 6:11 pm, Fogus wrote:
> All,
>
> We talked about the possibility of getting some ideas about
> extracurricular activities during the Conj days (and possibly training
> days). I've created a spr
Hi Tim,
while I agree that good documentation is important for maintaining and
developing further a given code base, I always wonder how literate
programming deals with refactoring and larger restructuring. I mean, in
basically all software projects I'm involved in, developers have a hard
time in
One clarification that might help is that traditionally the list has
been the only structure in lisps, and other data representations were
faked with lists. Clojure added other modern data structures to that
traditional model (those are what are generally used for "data"
purposes) and left the lis
Eh, I was afraid the interface would be a problem. So there isn't a
good way to reuse interface implementations for interacting w/ legacy
Java quite yet.
I do like your approach to the macro better. As usual you deliver,
Meikel :)
Sean
On Oct 28, 3:11 am, "Meikel Brandmeyer (kotarak)"
wrote:
Thanks Luc!
I will give that a shot.
On Oct 27, 7:55 pm, Luc Prefontaine
wrote:
> I run cljs_watch in a terminal window at the top of the project
> and I defined .cljs files to use the CCW editor. cljs_watch spots the changed
> .cljs files
> through Eclipse and recompiles on the fly. Then I ref
Not really. ClojureScript only supports AOT compiling. So you would
have to compile the ClojureScript code into javascript on the server
and send that over the wire.
On Oct 27, 1:27 am, Guofeng Zhang wrote:
> Hi,
>
> Suppose there is a ajax request comes to the server. The server code process
I should be more specific. I see the exception only with trampoline.
Exception in thread "main" java.lang.IllegalArgumentException: No
implementation of method: :make-writer of protocol: #'
clojure.java.io/IOFactory found for class: nil (NO_SOURCE_FILE:0)
--
You received this message because yo
You can use `read-string` as a general-purpose String-to-Number conversion.
-S
--
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 pa
Yes, read-string is awesome, but that doesn't work as a number
protocol.
Python's int works on numbers and strings, and returns an int. A set
of Clojure protocols that do the same would be very, very handy.
Sean
On Oct 28, 10:22 am, Stuart Sierra
wrote:
> You can use `read-string` as a general
The documentation has been updated to account for the changes:
https://github.com/clojure/core.match
On Fri, Oct 28, 2011 at 5:40 AM, Michael Jaaka wrote:
> Can you give examples of usage for each position?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Cl
Please add me for core.logic, Heroku Drinkup, and Jamming with Overtone.
--
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 w
Thank you for sharing the link, I will have to go through installing Oracle
Java once I upgrade to 11.10.
cheers
Paul
On Thu, Oct 27, 2011 at 18:56, Thorsten Wilms wrote:
> On 10/27/2011 02:45 PM, Paul Koerbitz wrote:
>
> are you sure you used OpenJDK before the upgrade? I remember having
>> p
On Fri, 2011-10-28 at 11:59 +0200, Tassilo Horn wrote:
> Hi Tim,
>
> while I agree that good documentation is important for maintaining and
> developing further a given code base, I always wonder how literate
> programming deals with refactoring and larger restructuring. I mean, in
> basically al
On Fri, Oct 28, 2011 at 6:54 AM, Andrew wrote:
> I should be more specific. I see the exception only with trampoline.
>
> Exception in thread "main" java.lang.IllegalArgumentException: No
> implementation of method: :make-writer of protocol:
> #'clojure.java.io/IOFactory found for class: nil (NO_S
On Thu, Oct 27, 2011 at 10:58 AM, daly wrote:
>> Have there been any new developments on the literate programming /
>> Clojure front, in terms of tools that leverage existing build tools,
>> test suites, generating meaningful line numbers for stack traces and
>> debugging?
>>
>
> The question is i
It looks like this would be relevant to Clojure, seeing as we use final
fields all over the place, anyone have any ideas about it?
http://www.azulsystems.com/blog/cliff/2011-10-27-final-fields-part-2
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
T
I am setting up tests with clojure.test that are driven by a CSV where
each line represents one test case. Right now, there is a single
deftest function that runs all the assertions. That's ok but creates
reporting like 1 test was run with 1000s of assertions. Clojure being
so dynamic, is it possib
How can lazytest describe blocks be run from the repl?
--
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 po
Hi all,
There will be an informal gathering of pallet users during the conj. Come
and talk with us, whether your just wondering what pallet can do, want to
hear how others are using pallet, if you have feedback and comments for
improving pallet, or you just want to say hello!
RSVP here: http://w
I'm hitting a bit of frustration with (defprotocol) and friends and
I'm hoping someone can enlighten me:
Context: this is part of the Cascade layer I'm building on top of
Compojure. It's all about rendering markup, borrowing ideas from
Tapestry.
I have a protocol that represents Assets: any kind
Each `describe` block creates a Var with a gensym'd name. By examining Var
metadata, you could find them.
But they're not callable functions like clojure.test.
-S
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to
On Fri, Oct 28, 2011 at 6:46 PM, Howard Lewis Ship wrote:
>From my perspective, defprotocol appears to create a name (in the
> current namespace) as well as a Java interface (the real type). It
> feels to me like I should be able to pass either the interface or the
> protocol into extend-type and
On Oct 27, 5:41 pm, Daniel Solano Gomez wrote:
>
> I'd like to propose a new activity: Android. It'd be more of a hack and
> chat about doing Android development in Clojure. Some things to talk
> about could include creating Clojure-friendly tools for Android
> development and perhaps the poss
Please add me to:
clojurescript
core.logic
the web and clojure
--
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
On Fri, 2011-10-28 at 09:54 -0700, Mark Engelberg wrote:
> On Thu, Oct 27, 2011 at 10:58 AM, daly wrote:
> >> Have there been any new developments on the literate programming /
> >> Clojure front, in terms of tools that leverage existing build tools,
> >> test suites, generating meaningful line nu
Howard, I didn't read all of your post because frankly, I'm lazy, but
David is correct that you will run into difficulties with hot protocol
on protocol action. However, I personally think there are excellent
reasons for wanting to extend protocols on protocols and fellow
Revelytix-ian David McNei
Pleas add me to
Clojurescript
Heroku drinkup
On Fri, Oct 28, 2011 at 6:06 PM, Gary Trakhman wrote:
> Please add me to:
>
> clojurescript
> core.logic
> the web and clojure
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this grou
This is how the browser repl works, though I don't know if it's something
to be used in production. Check out:
https://github.com/clojure/clojurescript/tree/master/samples/repl
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group,
I'm struggling at getting started in ClojureScript.
One problem I have:
I don't have to look far in Closure before I find an API like this:
http://closure-library.googlecode.com/svn/docs/class_goog_dom_DomHelper.html#goog.dom.DomHelper.prototype.createDom
that takes a JavaScript name/value obje
There's a ticket, http://dev.clojure.org/jira/browse/CLJS-37
However things get fixed faster if you submit a patch ;) If you're excited
about ClojureScript, then consider submitting a CA and helping out.
David
On Fri, Oct 28, 2011 at 6:58 PM, David Powell wrote:
>
> I'm struggling at getting s
I will be at the tooling and heroku discussions, packing heat
On Oct 28, 3:07 pm, Federico Brubacher wrote:
> Pleas add me to
>
> Clojurescript
> Heroku drinkup
>
> On Fri, Oct 28, 2011 at 6:06 PM, Gary Trakhman wrote:
>
>
>
>
>
>
>
>
>
> > Please add me to:
>
> > clojurescript
> > core.logic
> >
I added the compiler macros to make this work in a branch:
https://github.com/clojure/clojurescript/compare/37-support-for-js-literals
Feedback appreciated.
David
On Fri, Oct 28, 2011 at 7:04 PM, David Nolen wrote:
> There's a ticket, http://dev.clojure.org/jira/browse/CLJS-37
>
> However thin
Hi !
For clojure, a type or a record, represent data. A protocol represent
a set of linked polymorph functions. But protocol themselves are not
types. Just grouped functions. The types is what they apply on. Not
what they are themselves.
You can view each method of a protocol like a big swich fun
Clojure moved off the local optimum of common lisp
>
I can't help, but I really like that quote. Nice meme :-)
Stefan
--
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 f
On Oct 28, 12:46 pm, Howard Lewis Ship wrote:
> (extend-type Asset
> ToAttributeValueString
> (to-attribute-value-string [asset] (:client-url asset)))
As Alex mentioned we have an "adapt-protocol" macro [1] [2] that I
think will do what you want. It would be invoked as:
(adapt-protocol Ass
Put me down for:
ClojureScript
core.logic
Thanks!
Frank Failla
On Oct 25, 12:11 pm, Fogus wrote:
> All,
>
> We talked about the possibility of getting some ideas about
> extracurricular activities during the Conj days (and possibly training
> days). I've created a spreadsheet at the link belo
41 matches
Mail list logo