I have branch with final and synchronized (with a few limitations),
The source compiler currently has two issues [1], it's broken and the
generated code is far from being "pretty printed."
If you're willing to potentially manually edit every generated file and
deal with bazaar Java code, then it's possible [2]. Once the issues I
mentioned are fixed, then the source compiler work flow will be much
less painful.
[1]
http://groups.google.com/group/mirah/browse_thread/thread/f06833c4a28b6407/b19756177cab5458
It's still not working on the latest code from github. The test case in
the bug report fails.
|status|
thanks for the reply. i hope some one can answer the other question
though, i've re written this code 30 or 40 times from various examples
and just can't get it to work. the code i attached was inspired from the
talker class included in the assets folder of ruboto.
Hi all, i'm blind and love the format of mirah, I have been trying for over a week now to get the android tts to work in mirah. i'm haveing all sorts of errors, one i noticed you have mentioned here on the list is my mirah-0.0.8 does not show all the parse errors, how do i add the patch to fix this? the other thing is one of my files imports android.speech.tts.TextToSpeech and i can access a constant TestToSpeech::SUCCESS at the top but near the bottom of my code another constant fails saying it can't be found TextToSpeech::QUEUE_FLUSH.
Thanks for your email, and I'm glad you find Mirah a nice language to use.
Roger is right, there should be no "significant whitespace" in Mirah.
If you''re having a problem please file a bug on Github and we'll look
into it.
> thanks for the reply. i hope some one can answer the other question though,
> i've re written this code 30 or 40 times from various examples and just
> can't get it to work. the code i attached was inspired from the talker class
> included in the assets folder of ruboto.
Can you formulate an example that doesn't depend on any Android libs?
- Charlie
I'd love to see someone incorporate a small Java pretty-printer into
the -j output. It wouldn't be hard, and you'd get code out that almost
looks hand-written.
- Charlie
i'd have to find something in the java libraries that requires a
callback like the listneres do in android, as i'm pretty sure thats
were the code is messing up even though i can't prove it yet :)
I mean, if i take out everthing but the basic activity it compiles and runs.
I know Ruby very well and I know the JVM very well, but I'm not a Java
guy, and I despise the "Java workflow". Ant/Maven are a bad joke, and
the xunit testing style makes me want to vomit.
The "Java workflow" has consistently sucked for more than a decade
now, and while I like Mirah, life is too short to "go Java" to use it.
I'll toss code at you, but I'm never going to write xunit tests. And
if I ever have to write some ant/maven xml syntax to do something I
need with Mirah, then I will move on.
Java doesn't just suck because the language is bad. It mostly sucks
because everything built in, for, or around it is "enterprise" crap.
Justin
Do you consider RSpec an improvement?
I haven't had the time to look at your code to figure out what may be
going wrong. I thought I point you to something I wrote some time ago
which may or may not help you:
All of the AtomicBoolean, handler, sayLater code, if I recall correctly,
is because the TTS initialisation has to occur on the UI thread, so any
attempt to use it before it is initialised will fail, block, or do
something else terribly wrong.
Sincerely,
Daniel Solano Gómez
Yes. RSpec has its own issues, but it is an improvement.
wow, looks like i was close but you do something neat here i m miessed,
you implemnt on the same class as the other code, where i have two
different classes. I already had your code downloaded by the way, just
didn't know this was in there, it looks like the talker fomr rubto as
well. I might have mine working if i can figure out one thing, i have
two classes.
class TalkerInitListener
in this class i do
Talker.ready = 1
class Talker
i've tried
def ready=(value:int)
and
def ready_set(value:int)
and i always get and error on the TalkerInitListener sayind it can not
find Talker.ready_set(int) on the talker class
While i'm talking about this, does mirah not support the attr_accessor?
and if not what does method= map to on the other class?
ps: anyone reading the space issue i talked aobut previously is only a
warning it says something like line: 9 end block at line 5: mis aligned
warning. but the code seems to still compile ok.
thanks much all :)