Thanks for the advice. However, I'll need your feedback once more. The pay
for making it in python it's a drastical change in the syntax:
from:

Window "myWindow" {
    title = "Hello World";
    Button "myButton" {
        label = "Hello World"
    }
}
In this version you can use both ';' and ','

To something like:
myWindow = Window (
    title = "Hello World",
    myButton = Button(
        title = "Hello World"
    )
)

I don't really mind the 'myWindow = Window' part, it may look less
elegant/beautiful but it does tell the user 'Hi I'm a dictionary and I can
be used as such', however I really mind the parenthesis part, since it may
look very cumbersome to use when mixed with functions.

There's another posibility which is to read from files and make python
interpret some chunks while other are interpreted by the app, but that
would be difficult.

Sergio.


2014/1/19 Martin Decky <[email protected]>

> Hi Sergio,
>
>
>  I'm
>> deciding whether to rewrite or not guilang in Python since everyone
>> seems to like it much more than Lua and also have some gains (mainly in
>> syntax and the standard library). So ,what I wanted to know is how much
>> nice would play Python in embedded devices?
>>
>
> Well, my personal preference is definitively on the Python side. In my
> opinion, Lua is really an ugly and strangely primitive language. It is fine
> for being embedded into closed-source games and other software for
> scripting purposes (i.e. for extending and tweaking some existing solid
> piece of code), but I would not choose it as an infrastructure language
> (for writing code that should form a solid foundation for a framework
> itself).
>
> Python, on the other hard, can be used in a lightweight manner, but its
> syntax and semantics is much richer.
>
> Python should play nicely with embedded devices, especially with the class
> of embedded devices that HelenOS also targets (e.g. Raspberry Pi,
> BeagleBone, etc.).
>
> If you have even smaller and more resource-constrained devices on your
> mind, they should not pose a major problem either. Many of
> resource-constrained devices are even able to run specialized variants of
> JVM, thus there is no reason to not support specialized variants of Python
> (e.g. [1], [2]).
>
> [1] http://www.tinypy.org/
> [2] http://code.google.com/p/python-on-a-chip/
>
>
> M.D.
>
> _______________________________________________
> HelenOS-devel mailing list
> [email protected]
> http://lists.modry.cz/listinfo/helenos-devel
>
_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/listinfo/helenos-devel

Reply via email to