I see, I am reading that "Extending Java Classes using proxy" article.
2010/8/15 Michael Gardner :
> On Aug 14, 2010, at 12:58 AM, Gregg Williams wrote:
>
>> ** Second announcement: GettingClojure.com, a collaborative site for
>> Clojure beginners
>
> gettingclojure.com currently redirects to www.
grep for defn and write out def forms to a file?
Btsai wrote:
Continuing this train of thought...
1. The "declare" macro may be handy for declaring multiple names at
once.
2. Maybe one could use the functions in clojure.repl or clojure-
contrib.ns-utils to write something that automatically fo
On Aug 14, 2010, at 12:58 AM, Gregg Williams wrote:
> ** Second announcement: GettingClojure.com, a collaborative site for
> Clojure beginners
gettingclojure.com currently redirects to www.wikidot.com.
www.gettingclojure.com is fine, though.
--
You received this message because you are subscri
On Aug 13, 11:23 pm, Shantanu Kumar wrote:
>
> As far I understand, transactions belong to the user. The user should
> decide what to execute under which transaction. By beginning
> transaction inside these functions, is it assumed that the user can
> wrap bigger constructs under her own transacti
Great working, thanks! I will participate actively.
On 8月14日, 下午1时58分, Gregg Williams wrote:
> ** First announcement: a tutorial article on how to call Java classes
> from Clojure
>
> Several months ago, I asked a few questions about the use of proxy and
> interoperability with Java. I'm pleased
Excellent. Seems to work quite well.
On Sat, Aug 14, 2010 at 6:19 AM, Steve Purcell wrote:
> Hi all,
>
> A while ago I hooked Slime's completion and documentation features into the
> popular Emacs auto-completion framework "auto-complete" (
> http://www.emacswiki.org/emacs/AutoComplete).
>
> Sin
One example is a contract programming job I did recently, writing
software for identifying radioactive isotopes based on measurements of
their emission spectra. In the end I had 7 Clojure source files (not
including tests). I will show them in such an order that each file
depends only on previous f
Matthew Phillips writes:
> ;; A node has a data attachment and (possibly) children
> (defprotocol Node
> (data [n])
> (children [n]))
>
> (deftype SimpleNode [d]
> Node
> (data [n] d)
> (children [n] []))
>
> ;; In version 2, I add want to add pretty-printing
>
> (defprotocol PrettyPrin
how doesn't it work? the approach of writing your library using
regular functions while protocols provide a simple pluggable lower
bound that users can implement. and when users do implement the simple
protocols they suddenly get all the advanced features of the library
functions, like if you imple
On Sat, Aug 14, 2010 at 5:32 AM, Matthew Phillips wrote:
>
> One idea that I tried was to use extend-type on a protocol, say to
> extend any Node to be a PrettyPrintableNode. Obviously this didn't
> work, and I'm not sure it actually makes semantic sense, but it's
> interesting that was my intuiti
> Adding to Object works, but doesn't feel right: as libraries grow,
> they'll start bloating out the method sets on the global Object type.
No, you have this backwards. The protocol is not on Object, Object is on the
protocol. Protocols live in namespaces. You can have 10,000 different protocols
* Mikhail Kryshen:
> CLR also infringes Oracle's patents and the only reason why Oracle is not
> likely to sue Microsoft is that Microsoft could do the same to Oracle.
Microsoft rescued Sun a couple of years ago with a cash injection
(similar to what they did with Apple), and the companies reache
On Aug 14, 3:22 am, Armando Blancas wrote:
> > A more concrete example: say I've defined a protocol for AST nodes in
> > 1.0 of a library, and later when developing 2.0 I discover it would
> > have been a good idea to have a "pretty-print" method on nodes to show
> > human-readable output. If the
Continuing this train of thought...
1. The "declare" macro may be handy for declaring multiple names at
once.
2. Maybe one could use the functions in clojure.repl or clojure-
contrib.ns-utils to write something that automatically forward
declares everything needed?
On Aug 13, 10:49 pm, Tim Daly
On Aug 14, 9:07 am, Kevin Downey wrote:
> so clients don't directly call the protocol functions they call
> print-ast which then checks to see if PrettyPrintable has been
> extended to the object and falls back to the default if it hasn't
Sure, but I'm talking about publishing protocols that clie
On Aug 14, 12:34 am, Stuart Halloway
wrote:
> > Following Stuart's suggestion, I *could* just add a protocol
> > called "PrettyPrintable" with one method and implement it on some
> > of the new node types, but now I can't just call "pretty-print" on
> > any node: I need to write another function t
Hi all,
A while ago I hooked Slime's completion and documentation features into the
popular Emacs auto-completion framework "auto-complete"
(http://www.emacswiki.org/emacs/AutoComplete).
Since it may be of interest to others, I've released the completion plugin on
github: http://github.com/pur
I have a similar problem with deftype/defecord
If I need to mutually defined types...
(declare new-a)
(deftype B
... (new-a)...))
(deftype A)
(defn new-a [] (A.))
On Sat, Aug 14, 2010 at 8:21 AM, Mark Engelberg
wrote:
> On Fri, Aug 13, 2010 at 9:39 PM, Eric Lavigne wrote:
>> This
On Fri, Aug 13, 2010 at 9:39 PM, Eric Lavigne wrote:
> This is not a rare problem for me. Like Mike Anderson, I work around
> it by putting extra thought into which package-level dependencies I
> will allow, which sometimes necessitates creating more or fewer
> packages than I otherwise would have
19 matches
Mail list logo