On Fri, Jun 15, 2012 at 1:41 PM, Timothy Baldridge <tbaldri...@gmail.com>wrote:

> But I'd rather collaborate with ClojureScript. Are there any ongoing
> efforts to make this cross platform? The current analyzer contains
> quite a few java calls. For instance, .contains, and .indexOf. Is
> Raphael working on this, or can I take up that torch and implement
> these in pure Clojure?
>

A bootstrappable compiler infrastructure is not a goal at this point as far
as I know. Certainly open to patches that make the analyzer easier to
compile elsewhere.

If somebody wants to make the compiler bootstrappable they need to outline
some kind of plan that allows ClojureScript (JS) development to continue
with minimal disruption. There are many decisions (non-reified vars and
namespaces, compiler macros, etc.) which make a lot of sense for the
JavaScript target that may not make sense for other targets.


> After that, I'd like to rip apart core.cljs and make it also platform
> agnostic. My idea is to standardize the native calls under a pseudo
> namespace called "native". For instance:
>
> (defn alength [array]
>      (native/alength array))
>
> (defn aget [array idx default]
>      (if (and (>= idx 0) (< idx (alength array))
>          (native/aget array idx))
>          default))
>

Not necessary IMO we have compiler macros - each backend brings their own
compiler macros.


> I'm really wanting to collaborate on this, since I plan on basing
> future versions of Clojure-Py completely off this code base. Any
> suggestions on how to go about this? I don't want to re-write anyone
> else's code, but I'm also kind of tired of waiting around for someone
> to hand me this on a silver platter :-).


Make a Confluence page outlining what you think needs to be done so there
can be some discussion.

David

-- 
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.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to