Re: Embedded systems and transpiling Clojure to Nim

2015-05-11 Thread Tyler Anderson
I really like nim from just tinkering here and there. If i was looking to do what you are i'd go with nim or ocaml. Since i'm not exactly the most helpful person here i'd suggest you contact Dennis Felsing his blog is http://hookrace.net/ and his github is https://github.com/def- he'd be

Re: Embedded systems and transpiling Clojure to Nim

2015-05-11 Thread John Gabriele
Alan, there was an attempt at compiling Clojure to C, https://github.com/schani/clojurec , but it hasn't been updated in a while. On Thursday, April 30, 2015 at 11:00:02 PM UTC-4, Alan Moore wrote: All, I just ran across Nim (previously Nimrod) which is a garbage collected systems

Re: Embedded systems and transpiling Clojure to Nim

2015-05-11 Thread Paul deGrandis
Hi Alan, Yep, you can cross compile the output from Terra - you can even set it up to output compilations dynamically for any platform you want. Replacing LuaJIT with Lua would just be a matter of changing the library that you link when building Terra itself. As Timothy pointed out, Pixie is

Re: Embedded systems and transpiling Clojure to Nim

2015-05-06 Thread Alan Moore
Paul, I'm quite impressed with what you and Timothy have done. I'm taking a third look at Pixie and cljs-terra. Is there any chance that cljs-terra could run on generic lua instead of terra/luajit? The main problem I'm having is that anything that isn't interpreted (or that generates C/C++ I

Re: Embedded systems and transpiling Clojure to Nim

2015-05-05 Thread Paul deGrandis
I'm just going to echo a few things - Timothy and I have talked at length about Clojure-like languages on other platforms. His ideas and general approach have led to some very promising work (Pixie), and I can personally vouch for RPython as a platform. My ideas led me to Terra (

Re: Embedded systems and transpiling Clojure to Nim

2015-05-04 Thread adrians
Alan, have you looked at Clasp? I'm not sure if CL is something you like, but maybe it has potential for your application. https://github.com/drmeister/clasp -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Re: Embedded systems and transpiling Clojure to Nim

2015-05-04 Thread Christopher Small
Using clj-bots/chat is fine with me. If there ends up being much noise with respect to this specific native compilation thread vs the project as a whole, we can set up another gitter channel. Cheers On Mon, May 4, 2015 at 5:04 PM, Alan Moore kahunamo...@coopsource.org wrote: All, Looks like

Re: Embedded systems and transpiling Clojure to Nim

2015-05-04 Thread Herwig Hochleitner
2015-05-05 2:04 GMT+02:00 Alan Moore kahunamo...@coopsource.org: Herwig - I like your suggestion re: rclojure. That seems like a harder but more fruitful approach than other porting options. Do you have any references to this kind of approach in other languages? It could be argued, that

Re: Embedded systems and transpiling Clojure to Nim

2015-05-04 Thread Alan Moore
All, Looks like I have some more research to do... A year or so ago I looked into going the Python/PyPy route but it's PPC support had previously stalled. I was intrigued by it's interpreter/tracing JIT structure. It seems to me that there would be a huge win, similar to the Clojure/JVM,

Re: Embedded systems and transpiling Clojure to Nim

2015-05-03 Thread Herwig Hochleitner
Tim, I agree that porting enough of rpython to run pixie seems like the best way to get started on a given bare-metal platform. Not least because pypy's contributors would certainly be sympathetic to that effort. Still, a piece that I'd really love to see is, what I call rclojure: That is, tools

Re: Embedded systems and transpiling Clojure to Nim

2015-05-02 Thread Fergal Byrne
Hi Alan, Don't be deterred - it's a great question... Some people are just having a separate conversation in the one thread ;) I think there is a threshold in your domain, which gives a different answer on each side. The easy side is for something RaspberryPi or Arduino-sized (or bigger), where

Re: Embedded systems and transpiling Clojure to Nim

2015-05-02 Thread Kimmo Koskinen
Hi, Wanted to mention two more languages, that might be interesting: Hy: http://docs.hylang.org/en/latest/ (Lisp that targets Python's AST, has Clojure flavoured syntax) newLISP: http://www.newlisp.org/ (at least FFI seems simple: http://www.newlisp.org/newlisp_manual.html#import) - Kimmo --

Re: Embedded systems and transpiling Clojure to Nim

2015-05-01 Thread Alan Moore
In my world the JVM is a non-starter. I don't care if it fits in a ring ( http://www.javaworld.com/article/2076641/learn-java/an-introduction-to-the-java-ring.html), culturally it just won't fly. Even Forth has a better chance of making it than the JVM. Re: Zulu embedded - Intel/AMD x86. Please

Re: Embedded systems and transpiling Clojure to Nim

2015-05-01 Thread gvim
I've looked around intermittently for something Clojure-esque to fill the scripting/sysadmin void and Pixie is the only thing I've come across which inspires hope. The only remaining issue for me is whether it can tap into existing (Python) libraries as that's what tends to swing the vote for

Re: Embedded systems and transpiling Clojure to Nim

2015-05-01 Thread Alan Moore
Chris, I'll watch the video and then head on over - talk to you soon. Alan -- 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

Re: Embedded systems and transpiling Clojure to Nim

2015-05-01 Thread Fluid Dynamics
On Friday, May 1, 2015 at 4:58:37 PM UTC-4, raould wrote: Another possibility is https://github.com/takeoutweight/clojure-scheme. It compiles Clojure to Gambit Scheme to C to metal. another possibility is to stab oneself in the eye with a sharp stick. just sayin'. :-) Hear,

Re: Embedded systems and transpiling Clojure to Nim

2015-05-01 Thread Gary Trakhman
Have you guys seen pixie yet? It seems like there's overlap for the requirements here. https://github.com/pixie-lang/pixie On Fri, May 1, 2015 at 5:46 AM, Herwig Hochleitner hhochleit...@gmail.com wrote: I think Nim is pretty cool (conceptionally, haven't used it yet) and full of wonderous

Re: Embedded systems and transpiling Clojure to Nim

2015-05-01 Thread Herwig Hochleitner
I have seen it. PyPy (the platform for pixie) hasn't the reach of even LLVM, let alone plain C, so while there might be overlap in other areas, pixie is a no-starter for non-mainstream hardware. -- You received this message because you are subscribed to the Google Groups Clojure group. To post

Re: Embedded systems and transpiling Clojure to Nim

2015-05-01 Thread Alan Moore
You have clearly looked into this more in depth than I have... Thanks for sharing your thoughts. I missed the part about the wonky case insensitivity (truly bizarre and hazard prone IMHO) and have not looked into the type system/inference so I can't comment just yet. I'm not partial to Nim in

Re: Embedded systems and transpiling Clojure to Nim

2015-05-01 Thread Timothy Baldridge
Well RPython (what pixie is built on) is C...so you get quite a bit of reach there. And I'd be tempted to say that it would be easier to adapt the existing RPython PPC backend to Freescale PPC than it would be to get Nim to play nice with Clojure semantics. And let's not forget, RPython can be

Re: Embedded systems and transpiling Clojure to Nim

2015-05-01 Thread Herwig Hochleitner
Tim, I went with what I saw on http://pypy.org/features.html ... runs on Intel x86 (IA-32) , x86_64 and ARM platforms, with PPC being stalled Not sure if that's just for the JIT, but if it were, they would list non-JIT platforms separately, no? I'm aware, that you use RPython directly, but

Re: Embedded systems and transpiling Clojure to Nim

2015-05-01 Thread Timothy Baldridge
Yes, I when we finally get around to doing binary releases I plan on shipping x86_64, x86 and ARM7 binaries, as those are the platforms I have access to. The other thing that would hinder adoption to other platforms is most likely the stacklet library (lightweight threads), Pixie uses this fairly

Re: Embedded systems and transpiling Clojure to Nim

2015-05-01 Thread Alan Moore
Agreed re: PyPy, Pixie. I got excited when I first saw that project... As an alternative to straight C I've thought about targeting Lua but also wonder how much that buys you... TBD. I thought I remember reading someone going down that route - anyone? Alan -- You received this message

Re: Embedded systems and transpiling Clojure to Nim

2015-05-01 Thread Herwig Hochleitner
I think Nim is pretty cool (conceptionally, haven't used it yet) and full of wonderous features: From the hands down awesome, like the a la carte GC, its AST - based macros and optimizations and effect system to positively weird stuff like its partial case-insensitivity (foo-bar == fooBar ==

Re: Embedded systems and transpiling Clojure to Nim

2015-05-01 Thread Raoul Duke
Another possibility is https://github.com/takeoutweight/clojure-scheme. It compiles Clojure to Gambit Scheme to C to metal. another possibility is to stab oneself in the eye with a sharp stick. just sayin'. :-) -- You received this message because you are subscribed to the Google Groups

Re: Embedded systems and transpiling Clojure to Nim

2015-05-01 Thread Christopher Small
Hah; I have no experience with it. Is it that bad? At least there's another Lisp in there. Lisps all the way down! On Fri, May 1, 2015 at 1:58 PM, Raoul Duke rao...@gmail.com wrote: Another possibility is https://github.com/takeoutweight/clojure-scheme. It compiles Clojure to Gambit Scheme

Re: Embedded systems and transpiling Clojure to Nim

2015-05-01 Thread Raoul Duke
I just would guess that anything other than an embedded JVM would be... poor r.o.i., to be polite. -- 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

Re: Embedded systems and transpiling Clojure to Nim

2015-05-01 Thread Christopher Small
Well... Correct me if I'm wrong, but this entire thread is about compiling Clojure to native targets. Are folks here really talking about embedding a JVM? Has cljs been poor roi? :-) Chris On Friday, May 1, 2015 at 2:25:27 PM UTC-7, raould wrote: I just would guess that anything other than

Re: Embedded systems and transpiling Clojure to Nim

2015-05-01 Thread Raoul Duke
all i'm trying to say is that the more layers of indirection you add, the more i won't give you any money on kickstarter. -- 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

Re: Embedded systems and transpiling Clojure to Nim

2015-05-01 Thread Christopher Small
Another possibility is https://github.com/takeoutweight/clojure-scheme. It compiles Clojure to Gambit Scheme to C to metal. It's been a couple of years since there was any activity on that project, but it's possible some attention there could get it where you need it. Nim seems interesting

Re: Embedded systems and transpiling Clojure to Nim

2015-05-01 Thread Christopher Small
Both Nim and Pixie ultimately compile to C, and would have just as many layers of indirection. On Fri, May 1, 2015 at 2:37 PM, Raoul Duke rao...@gmail.com wrote: all i'm trying to say is that the more layers of indirection you add, the more i won't give you any money on kickstarter. -- You

Re: Embedded systems and transpiling Clojure to Nim

2015-05-01 Thread Ben Wolfson
I'd assumed that pixie, like other projects using the RPython toolchain, was itself compiled, but ran as an interpreter. Is that not the case? On Fri, May 1, 2015 at 2:43 PM, Christopher Small metasoar...@gmail.com wrote: Both Nim and Pixie ultimately compile to C, and would have just as many

Re: Embedded systems and transpiling Clojure to Nim

2015-05-01 Thread Alan Moore
On Fri, May 1, 2015 at 1:58 PM, Raoul Duke rao...@gmail.com wrote: Another possibility is https://github.com/takeoutweight/clojure-scheme. It compiles Clojure to Gambit Scheme to C to metal. another possibility is to stab oneself in the eye with a sharp stick. Yeah... well, I do that on

Re: Embedded systems and transpiling Clojure to Nim

2015-05-01 Thread Raoul Duke
Both Nim and Pixie ultimately compile to C, and would have just as many layers of indirection. aand they are all insane for anything other than learning themselves at this point, i'd hazard to guess. but i'm a realist, who knows. i'd rather go for a real jvm e.g. azul's embedded stuff, or

Re: Embedded systems and transpiling Clojure to Nim

2015-05-01 Thread Raoul Duke
My goodness, there are other things than Clojure in the universe. People have been making native software with real languages for ages. There's probably even some that are fpish or heck go get an actual lisp that's been used for ever (franz, allegro, ecl, gambit, chicken, clozure, tinyscheme,

Re: Embedded systems and transpiling Clojure to Nim

2015-05-01 Thread Christopher Small
I hear you Alan. I'm just a hardware hobbyist, but I've been working on a Clojure library for abstracting away some of the differences between different boards (Raspberry Pi, BeagleBone Black, etc): https://github.com/clj-bots/pin-ctrl. Currently, my best bet for Arduino is to use Firmata, but I

Embedded systems and transpiling Clojure to Nim

2015-04-30 Thread Alan Moore
All, I just ran across Nim (previously Nimrod) which is a garbage collected systems programming language that looks like a suitable target for transpiling Clojure. See: http://nim-lang.org/ My goal in looking at this is to have Clojure available in native code on real-time embedded systems