<div dir="ltr"><br><br><div class="gmail_quote">2008/9/1 Arne Babenhauserheide <span dir="ltr"><<a href="mailto:arne_bab@web.de">arne_bab@web.de</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Am Mittwoch 27 August 2008 18:38:05 schrieb Aaron J. Seigo:<br>
<div class="Ih2E3d">> this is a feature also provided by ECMA Script. the question is "why $LANG"<br>
> instead of just stickign to ECMA Script.<br>
><br>
> the reasons i see are:<br>
><br>
> * you know $LANG, or the project your are integrating with is written in<br>
> $LANG<br>
><br>
> * in the cases you need access to more system libraries, but don't want to<br>
> write in C++ (Ruby/Python have bindings for pretty much everything)<br>
<br>
</div>* in the cases where the languages are just better suited to the task. For<br>
example String operations, using anything from the standard library (if "it<br>
does the task for you" counts as being better suited :) ) or glueing things<br>
together in Python.<br>
<br>
<br>
How about using Kross to enable Plasmoids scripted in any language?<br>
- <a href="http://kross.dipe.org/" target="_blank">http://kross.dipe.org/</a><br>
- <a href="http://techbase.kde.org/Development/Tutorials/Kross/Introduction" target="_blank">http://techbase.kde.org/Development/Tutorials/Kross/Introduction</a><br>
<br>
A possible first step could be a Plasmoid which takes its data from a Kross<br>
script.</blockquote>That is what the script engine DataEngine api is for, and we have language bindings for that. <br><br>Note that Kross is intended for scripting existing applications, it isn't a language independent library for implementing language bindings. We have a system for doing that called 'Smoke', which is used currently for the Ruby and C# bindings. <br>
<br>If plasma applets actually need scripting support (I'm not convinced they do personally), then from what Aaron has been saying about minimizing dependencies, maybe the core applets should standardize on QScript. If you write a non-core applet in Ruby or Python, I'm not sure if having a scripting api makes sense anyway.<br>
<br>-- Richard<br></div><br></div>