gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gm2] ncurses (also: what about swig)


From: Dragiša Durić
Subject: Re: [Gm2] ncurses (also: what about swig)
Date: Fri, 17 Dec 2010 10:04:43 +0100

On Dec 17, 2010, at 9:54 AM, address@hidden wrote:

> Dragiša Durić <address@hidden> writes:
> 
>> ...
> 
> Hi,
> 
> gm2 can produce swig header files (for definition modules using
> fundamental data types).  Currently this gives users the ability to
> write Python/TCL/Perl scripts which call upon a 'module' implemented
> in Modula-2.

I understand that part, gm2 generates what SWIG infrastructure needs to use our 
Modula-2 modules/libraries.

> 
> Transforming swig interfaces into Modula-2 could be done - I guess
> we would need a dynamic loader module which loads up the shared library
> and another module which marshals parameters to the shared library.

SWIG usually creates several files on client side. IMO, it's clumsy probably 
because module paradigm is strange idea to lots of languages, esp.from  C 
family. Once types are mapped I think it's pretty straightforward for Modula-2 
clients.. Complications in approach are possible with languages lke Modula-3 
with elaborate type systems, but surely not with Modula-2.

> 
>> Gtk+ is event driven but nothing like Windows event "driveness". You
>> start main loop, but not to get events from it and put them through
>> giant case statements. Both Gtk+ and Qt are callback based - you
>> create your event handling procedures and decorate widget tree with
>> them. From there on, as long as you follow moderately simple
>> guidelines, it is all automagic. And it's multiplatform, it even
>> works on OSX.
> 
> very interesting - gtk+ sounds very clean.

It is. They are in league with Qt and Cocoa there, being OO and extensible and 
all. If only their basic language is strongly typed...

> 
> regards,
> Gaius

> 
> 
>> 
>> On Dec 17, 2010, at 1:45 AM, rob solomon wrote:
>> 
>>> Has anyone developed modules to use ncurses for output, sort of like 
>>> TextTools has for Ada?
>>> 
>>> I am interested in playing w/ gm2 on ubuntu but I want more than a console 
>>> interface.
>>> 
>>> I have no experience w/ linux programming but have used Stony Brook 
>>> modula-2 for Windows to write my own code.
>>> 
>>> Do I have to structure the code as in Windows by using a windows procedure 
>>> and a message reading loop?
>>> 
>>> Thanks in advance
>>> 
>>> _______________________________________________
>>> gm2 mailing list
>>> address@hidden
>>> http://lists.nongnu.org/mailman/listinfo/gm2
>> 
>> 
>> _______________________________________________
>> gm2 mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/gm2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]