Friday, 15 February 2013

haskell - How to run Frege programs on Android? -


I am interested in programming in functional languages ​​in programming, preferably close to Haskel seems to be a good option I found that anyone Has already done this, but I could not find the source or something similar.

So my question is, how to run freeze programs on Android, how difficult it is and what is the obstacles?

I see that the main obstacle is that it is not currently possible to compile a freeze source Java class that enforces some interface or spreads to another category.

Instead, the Java class generated from a freeze module is just a static method and a namespace for the other stuff you define.

Therefore, to make more than the trivial Android project, it will not be enough to call frege from Java, which is quite easy, but also to call freeze from Java. In other words, you will need a complete * difference * in the literal sense.

Of course, it is possible to do this, but it should be said that the code generation was not easily designed for easy use from Java.

I have not done an Android project yet, so I'm not sure how much glue code will be required.

A final warning: The previous work by Gabriel Reba was done with the first version of compiler, there is also a link to freeze distribution supporting JDK 6 - please do not use that one, Is not compatible with the versions of.

If you are ready to take it, then you will get all possible support through the mentioned Google Group above. It would be great if somebody created and documented some "canonical" method of achieving it.

No comments:

Post a Comment