Should I send a pull request to the orientdb-studio repository? (The code-mirror editor behaves a bit strange - it only starts showing the existing code after I type one charecter - , but I don't have too much experience with that) Apart from that it pretty much works. Maybe someone should check out my github repository (mrft) and look at it before we merge it into the master studio repository?
Anyway the concept is that an extra property gets added called icedcoffeescript or livescript, and when that property is present it gets compiled and saved along with the OFunction document. That's basically it. The nice thing is that when a compile error occurs, the javascript function will contain return "[Compiler error] ..."; in the javascript function body, so the other functions will still work, so you can continue working on a new unfinished function without impacting all the other functions. 2014-06-16 11:33 GMT+02:00 Enrico Risa <[email protected]>: > Cool > we could leave the compilation on the client-side without bothering the > server. :D > > > 2014-06-16 11:28 GMT+02:00 Frederik Tilkin <[email protected]>: > > MIT License for both. >> >> >> >> 2014-06-16 11:14 GMT+02:00 Luca Garulli <[email protected]>: >> >>> So do you mean you convert them to plain JS at client side? This would >>> be easier to integrate. What license have the modules you used? >>> >>> Lvc@ >>> >>> >>> >>> On 16 June 2014 11:07, MrFT <[email protected]> wrote: >>> >>>> >>>> I don't know what exactly you want me to turn into a plugin... >>>> >>>> Do you mean I can turn the hook into a plugin, so there is a >>>> zero-configuration way of adding this functionality? Or do you mean >>>> something else? >>>> >>>> Also, since I added the compiler to the studio, you don't even need the >>>> hook anymore, provided you only use the studio to make changes to your >>>> functions. >>>> >>>> >>>> >>>> Op donderdag 12 juni 2014 19:15:14 UTC+2 schreef Lvc@: >>>>> >>>>> Hey, >>>>> This is cool. I think you should do a plugin, so users can just copy >>>>> under "plugins" folder and works. Take a look at Studio how is done, or >>>>> ask >>>>> here if needed. >>>>> >>>>> About supported Scripting languages, maybe we'd need a new command in >>>>> HTTP to retrieve all of registered ones, so Studio can just call it to >>>>> avoid changing Studio every time. WDYT? >>>>> >>>>> Lvc@ >>>>> >>>>> >>>>> On 12 June 2014 18:50, MrFT <[email protected]> wrote: >>>>> >>>>>> New versions. >>>>>> >>>>>> Fixed a bug in the hook where LiveScript would be compiled using >>>>>> coffeescript compiler. >>>>>> >>>>>> Added compile support IN the studio, so you don't need the hook >>>>>> anymore. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Op woensdag 11 juni 2014 15:07:07 UTC+2 schreef Enrico Risa: >>>>>>> >>>>>>> Cool MrFt >>>>>>> >>>>>>> i will try it :D >>>>>>> >>>>>>> >>>>>>> 2014-06-11 14:32 GMT+02:00 MrFT <[email protected]>: >>>>>>> >>>>>>>> Hello, >>>>>>>> >>>>>>>> If you are interested in these compile-to-javascript scripting >>>>>>>> langages, please let me know what you think about the following... >>>>>>>> >>>>>>>> >>>>>>>> I implemented a OrientDB hook that supports LiveScript and >>>>>>>> CoffeeScript here: >>>>>>>> https://github.com/mrft/OrientDBLanguagesCompiledToJavascriptHook >>>>>>>> >>>>>>>> And I also added some basic support to the orient-db studio here. >>>>>>>> https://github.com/mrft/orientdb-studio >>>>>>>> >>>>>>>> I added the jar file and the studio.zip to this message, so you >>>>>>>> can give it a try. Just rename your studio.zip under /plugins to >>>>>>>> studio.zip.bak, and save this one to the same folder. >>>>>>>> >>>>>>>> Then you need to add the hook, by saving the jar file to /lib and >>>>>>>> by updating the *orientdb-server-config.xml* file. You need to add >>>>>>>> <hooks> like in the example below. >>>>>>>> >>>>>>>> <orient-server> >>>>>>>> ... >>>>>>>> <hooks> >>>>>>>> <hook class="be.vsko.orientdb.IcedCoffeeScriptHook" >>>>>>>> position="REGULAR"/> >>>>>>>> </hooks> >>>>>>>> </orient-server> >>>>>>>> >>>>>>>> Don't forget to restart OrientDB. >>>>>>>> >>>>>>>> Currently the studio depends on the hook being active, but it would >>>>>>>> be quite easy to make sure that the studio doesn't need this hook, >>>>>>>> because >>>>>>>> the compilation could also be done in the browser. >>>>>>>> That would mean that creating or updating functions in such a >>>>>>>> language could only be done from the studio, but maybe that is good >>>>>>>> enough? >>>>>>>> >>>>>>>> What do you think? >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> >>>>>>>> --- >>>>>>>> You received this message because you are subscribed to the Google >>>>>>>> Groups "OrientDB" group. >>>>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>>>> send an email to [email protected]. >>>>>>>> >>>>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>>>> >>>>>>> >>>>>>> -- >>>>>> >>>>>> --- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "OrientDB" group. >>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to [email protected]. >>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>> >>>>> -- >>>> >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "OrientDB" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >>> >>> --- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "OrientDB" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/orient-database/SXj2PlJGrzY/unsubscribe >>> . >>> To unsubscribe from this group and all its topics, send an email to >>> [email protected]. >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Frederik Tilkin >> VSKO Dienst Informatica >> t: +32 2 509 18 80 >> >> [Overigens ben ik van mening dat de NAVO afgeschaft moet worden.] >> <http://www.vredesactie.be/overigens/> >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "OrientDB" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > > --- > You received this message because you are subscribed to a topic in the > Google Groups "OrientDB" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/orient-database/SXj2PlJGrzY/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Frederik Tilkin VSKO Dienst Informatica t: +32 2 509 18 80 [Overigens ben ik van mening dat de NAVO afgeschaft moet worden.] <http://www.vredesactie.be/overigens/> -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
