--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
it ain't Clojure so this might be irrelevant to you, but some
interesting cross-platform languages are: (a) www.haxe.org which is
mature, and (b) Shen http://preview.tinyurl.com/6hnjpb2 which is still
young.
sincerely.
On Sep 30, 8:35 am, Nicolas <bousque...@gmail.com> wrote:Right, this is machine interop. What about people interop? How can a
> Clojure has native interoperability with JVM & CLR.
Clojure programmer "interoperate" with a Ruby programmer? Can I chuck
some Clojure code into Google translate (http://google.com/translate)
and out comes Ruby code or vice versa? That would be nice.
I think the major obstacle is likely to be the difference in idioms.
Any substantial idiomatic piece of Clojure is going to be almost
impossible to automatically translate to _idiomatic_ code in another
high-level language that uses different idioms. You'd also probably
have to introduce a number of "coding conventions" to constrain your
Clojure code in order to avoid "holes" in the translation.
Some questions:
* How do you translate Clojure functions in namespaces spread across
multiple files into a Java class?
* Would it even be idiomatic Java to always have classes full of only
static methods?
* What about Clojure's vast library of functions (esp. higher-order)?
* What would something like
(map (juxt :id identity) (filter (comp not nil? :data)
some-lazy-data-stream))
look like in Blub, if Blub doesn't have keywords, composition,
higher-order functions, lazy data structures?
* How would code that uses STM translate to a Blub without it?
* How idiomatic would Blub code be when Clojure uses immutable data by default?
I think it's a fascinating problem to try to solve for any given
target Blub but I'm not sure how practical it would be, i.e., how
readable the generated Blub code would be to an "average" Blub
programmer...?
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Railo Technologies, Inc. -- http://www.getrailo.com/
"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)
Oh yes, I know about that book but the question is: how idiomatic is
that code in Java? You can write imperative, stateful code in Clojure
but it wouldn't be idiomatic.
> You weren't going to the Conj by any chance, were you?
Yup. Looking forward to it!
Doesn't that kind of prove my point? :)
And, after all, isn't the Singleton design pattern only a workaround
for the fact that languages like Java don't have a built-in construct
for creating a memoized global variable? :)
See you at the Conj...