Re: An Eiffel to javascript compiler?
Cheng-Chang Wu <chengchangwu-/[email protected]> Thu, 14 Jan 2010 22:57:24 -0800 (PST)
| Newsgroups | gmane.comp.lang.eiffel.gobo.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Paul, I'm inspired by GWT but I haven't used it. I'm not talking about Client-Side Javascript;) At my work I am using SmartEiffel and javascript. Because SmartEiffel is dead, I decide to port my work to gec next year. I'm rethinking the structure of my work, that's why the Eiffel-to-javascript exercise. > 3. It's a good idea to allow users to mix handwritten JavaScript with > the Eiffel source code, Yes, this seems something very desirable. Could you give an example program to explain what you really mean? ----- 原始信件 ---- 寄件者: Paul Cohen <[email protected]> 收件者: [email protected] 寄件日期: 2010/1/14 (四) 6:36:36 PM 主 旨: Re: [gobo-eiffel] An Eiffel to javascript compiler? Hi, At my work we have discussed the idea of an Eiffel-2-JavaScript compiler a few times. I assume you are talking about Client-Side/Browser JavaScript? I also assume you have looked at or used Google's GWT (http://code.google.com/webtoolkit/) and/or Pyjamas (http://pyjs.org)? Here are a few general issues to consider and some suggestions, even though I am aware that your primary goal is to understand GEC! 1. Should you generate JavaScript code that relies on an existing JavaScript library such as jQuery (http://jquery.com) or Dojo (http://www.dojotoolkit.org)? If so you will need to develop Eiffel classes that match the abstractions that exist in those libraries. 2. Should you generate JavaScript that does not rely on any existing JavaScript library, you could look at EiffelVision and possibly see how that could be used as a basis for generating UI widgets etc. 3. It's a good idea to allow users to mix handwritten JavaScript with the Eiffel source code, including support for using other JavaScript frameworks and libraries. Among other things this would allow you concentrate on pure compiler issues, while at the same time enabling users to use fx. jQuery or Dojo UI widgets to write Ajax applications, until you can provide a pure Eiffel based UI widget set! ;-) 4. You should consider the developer environment. How will a developer test and run his/her Eiffel-2-JavaScript code in a IDE-style environment? For example Pyjamas enables you to run your Python programs in an emulated browser environment. I realize that this will come much further along the road in your project but it is worth giving a thought now! 5. You could take a look at EDOM (http://eiffel-edom.sourceforge.net) and see if you can use any of the design or code there. Good luck and keep us posted on your progress! /Paul -- Paul Cohen www.seibostudios.se mobile: +46 730 787 035 e-mail: paul.cohen-qf2BM/[email protected] ------------------------------------ To Post a message, send it to: [email protected] To Unsubscribe, send a blank message to: gobo-eiffel-unsubscribe-B11MqFFcr06IwRZHo2/[email protected]! Groups Links ___________________________________________________ 您的生活即時通 - 溝通、娛樂、生活、工作一次搞定! http://messenger.yahoo.com.tw/ ------------------------------------ To Post a message, send it to: [email protected] To Unsubscribe, send a blank message to: gobo-eiffel-unsubscribe-B11MqFFcr06IwRZHo2/[email protected]! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/gobo-eiffel/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/gobo-eiffel/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/