[Hecl-devel] Fw:a very big suggestion for you!
Brought to you by:
davidw
From: j2mecrazy <j2m...@12...> - 2009-08-12 13:10:08
|
hello , i am a j2me developer, i think your Hecl language is a good j2me script language,i am very intreasting in it. i hava dowanload the Hecl sourcecode, and try to read it .i found that your Hecl Interp is not very simple, it has some trashy feature,the Interp is extends Thread, to run a script need to start a Thread,i think this is not a good idea! because it may be bring some synchronization problem ,and it is not very fast if you use two Thead in a MIDlet. on the other hand i think Hecl not hava some feature, for example i write a Lib for my MIDlet, it has a command messagebox.show(String message) if call it ,it will return true if ok button is clike,return false if cancal button is cliked. ok, now the problem is that if command script call messagebox.show the Hecl Interp must to be pasued util the messagebox.show return a bool variable. so i think that Interp must hava to function pasue() and wakeup() .call the pasue() Interp will be pasued call the wakeup() the Interp will wake up. i think Interp need not extends Thread , i think script should not run all the time, beacuse it is slowly. just run the script if MIDlet need. and anytime can pasue the Interp if MIDlet call the function pasue() . i hope you can updata the sourcecode and write less code ,and make it as simplely as possible . thanks you! 没有广告的终身免费邮箱,www.yeah.net |