Actually... what I *really* want is your clj-native library :D

Is this it? http://github.com/bagucode/clj-native

On Wed, Oct 6, 2010 at 07:21, mac <[email protected]> wrote:
> There is always clojure.asm if you don't mind getting your hands dirty
> with bytecode generation. That's what I did when I needed exactly what
> you describe for clj-native. It wasn't that much work, the JVM
> bytecode is uncomplicated to begin with and since JNI method stubs
> require no code all you have to do is generate class skeletons.
> You might have trouble with AOT compilation though, if you want to
> support that you need to detect when it's happening (*compile-files*)
> and save your class to a class file instead of loading it directly.
>
> Would be nice with core support for native (JNI) methods though,
> perhaps something similar to :static?
>
> /Markus
>
> On Oct 5, 6:18 pm, nickikt <[email protected]> wrote:
>> deftype?
>>
>> On 5 Okt., 17:42, Christian Vest Hansen <[email protected]> wrote:
>>
>>
>>
>> > I suppose there's no better way to generate classes with custom static
>> > initializers and methods with the "native" keyword, other than
>> > perusing the innards of gen-class?
>>
>> > --
>> > Venlig hilsen / Kind regards,
>> > Christian Vest Hansen.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en



-- 
Venlig hilsen / Kind regards,
Christian Vest Hansen.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to