Questions tagged [mirah]

Mirah is a statically typed programming language with ruby-like syntax. Mirah code can compile to Java bytecode.

Mirah a is statically typed programming language. The language employs a technique called local type inference. Mirah is a pluggable compiler toolchain, making it possible to write language plugins for Mirah's transformation phase during compiling. Mirah includes a typer/compiler backend for the JVM. Mirah syntax is largely the same as the syntax of Ruby. Charles Nutter, creator of Mirah, is also a lead developer of JRuby. Mirah does not impose a specific type system on users, instead relying on whatever the target backend provides. Because Mirah is statically typed, Mirah code compiled to java bytecode, has performance almost identical to Java code. Mirah has been actively developed since 2008.

Design

  • Pluggable type inference, compilation and checking.
  • No additional runtime library. Maps straight to the JVM runtime.
  • Extensible backend allowing for new output targets; CLR, C, others.

External Links

19 questions
12
votes
1 answer

SL4A vs Ruboto on Android Application Development

I am thinking about creating apps on Android using JRuby (or a suitable variant of Ruby for Android). According to my research there are two current projects that support Ruby development on Android: Ruboto SL4A From the FAQ of the Ruboto wiki on…
Nosh
  • 485
  • 7
  • 24
12
votes
5 answers

What does Mirah offer over JRuby,Groovy and Scala?

What does Mirah language offer over JRuby,Groovy and Scala?
Chiron
  • 20,081
  • 17
  • 81
  • 133
10
votes
2 answers

ruby on android : ruboto vs rhodes?

Has anyone tried developing an Android app using Ruby? If so, which tool would you recommend? What are the advantages and disadvantages, comparing (between) both? Any sharing of experience, insight, etc., would be much appreciated.
mhd
  • 4,561
  • 10
  • 37
  • 53
8
votes
2 answers

JVM based language without language runtime

Does anyone know of some alternative JVM language, however obscure it might be, which can compile to plain old java bytecode, without the need of a language runtime. I need this in order to try to develop android applications without startup or size…
Marko
  • 30,263
  • 18
  • 74
  • 108
7
votes
2 answers

How can I learn Mirah?

With Mirah, I am refering to the JVM language: http://www.mirah.org/ The only useful documentation available online are the examples. I understand it says it has a ruby-like syntax, but I do believe there are Mirah-specific quirks to it. How would I…
nubela
  • 1
  • 24
  • 75
  • 123
4
votes
3 answers

Python like __getattr__ for Ruby / JRuby

Is there something like Python __getattr__ for Ruby? In Python, obj.__getattr__ is called when an undefined attribute (method or property) is referenced. I found method_missing in Ruby but it doesn't work for properties. My use case is: I'm testing…
PabloG
  • 25,761
  • 10
  • 46
  • 59
3
votes
2 answers

Using mixed Java/Ruby code in an Android app?

Is it possible to write part of the Android app in Ruby and then, using JRuby and Android Tools, compile the code to run on Dalvik VM? I don't need any run-time support for interpreting Ruby code, just to run one Ruby module. It would be nice if the…
Piotr Turek
  • 346
  • 1
  • 2
  • 11
2
votes
1 answer

What metaprogramming functionality does Mirah offer?

The Mirah home page says Mirah supports various mechanisms for compile-time metaprogramming and macros. Much of the “open class” feel of dynamic languages is possible in Mirah. But I'm unable to find any specifics. Does anyone have further…
Adam Rabung
  • 5,232
  • 2
  • 27
  • 42
2
votes
0 answers

Macros dont working with POJOs (CLOSED)

i don't know what or if i'm doing it wrong, but the conversion from json to my POJOs just don't work. I'm with the dependencies updated. When i called the method "readJSONFromURL" my return always is the object with yours attributes with value NULL.…
2
votes
1 answer

Mirah Android Cast HowTo?

Hello I was wondering how to do the following: CheckBoxPreference mCheckBox = (CheckBoxPreference) findPreference("key"); except in…
camelCaseD
  • 2,483
  • 5
  • 29
  • 44
1
vote
1 answer

Maven android compiling multiple source directories

I have created a maven android project using this archetype. I want to integrate mirah source files inside my project. So I added the plugin mentioned here to my pom.xml. I setup the configuration section for the plugin to point the source directory…
arunkumar
  • 32,803
  • 4
  • 32
  • 47
1
vote
1 answer

Deserializing List of Objects with Mirah for Codename One

I am trying to use mirah for JSON to POJO mapping in an codenameone application. It works finde when i want to map a Simple JSON like {"id":"1","name":"foo","classification":"10"} With this class: public class Brand { private String id; …
chris
  • 13
  • 3
1
vote
1 answer

Gradle task is never up-to-date

In the configuration phase of the task I register some dir as builtBy: thisTask. I expect gradle to automatically detect if sources were changed, but the task always being executed. Here is the task: subprojects { def srcMainMirah =…
guai
  • 780
  • 1
  • 12
  • 29
1
vote
1 answer

Mirah 'Unrecognized flag: --java'

mirah --version: Mirah v0.1.3 jruby --version: jruby 1.7.13 (1.9.3p392) 2014-06-24 43f133c on Java HotSpot(TM) 64-Bit Serve r VM 1.7.0_67-b01 [Windows 8.1-amd64] From Mirah.org, on the howto page, I should be able to use mirahc --java
user2421167
1
vote
3 answers

OnActivityResult not triggered on finish

The following application works as expected: import android.app.Activity import android.content.Intent import android.graphics.BitmapFactory import android.app.WallpaperManager class ChwallActivity < Activity def onCreate(state) super …
artagnon
  • 3,609
  • 3
  • 23
  • 26
1
2