[Ecls-list] compatible gui libraries

Alessandro Serra gas.hale at gmail.com
Tue Feb 22 17:19:34 UTC 2011


Hi,
I successfully compile cl-gtk2 using ecl. A few problems arise:
* compiling cl-gtk2 takes a lot of time (half day). It spends a lot of
time to compile the foreign funcall such as:
       /*	Compiler: ECL 11.1.1                                          */
       /*	Date: 2011/2/22 17:58 (yyyy/mm/dd)                            */
       /*	Machine: Linux 2.6.32-28-generic i686                         */
      /*	Source: (LAMBDA (OBJECT NEW-VALUE) (FOREIGN-FUNCALL
       gtk_container_set_focus_child
       G-OBJECT OBJECT G-OBJECT NEW-VALUE VOID)) */
and the classes with  gobject-class as metaclass.
* runtime, it is really slow. It takes several seconds to response to a click.

The same code, perfectly compile and run  with sbcl.
Do you have any idea where could be the problem? weak pointer? metaclasses?

Thanks,
Alessandro


On Wed, Feb 2, 2011 at 7:31 PM, Juan Jose Garcia-Ripoll
<juanjose.garciaripoll at googlemail.com> wrote:
> 2011/2/2 crox <linux.hacker at yandex.ru>
>>
>> 02.02.2011, 19:13, "Juan Jose Garcia-Ripoll"
>> <juanjose.garciaripoll at googlemail.com>:
>> > ECL does have weak pointers and that could be used to implement weak
>> > hash tables, but it has not been done.
>> Sounds solvable... As far as I can see weak pointers are not documented
>> yet?
>
> No, no documentation, but it is close to trivial.
>
> (ext:make-weak-pointer o) => wp
>
> (ext:weak-pointer-value wp) => o or NIL
>
>>
>> > However, in many cases those dependencies can be worked around by
>> > library developers. In particular I doubt that trivial-garbage needs weak
>> > hash tables at all  given that ECL has finalization.
>> Does it concerns weak hash tables? I think that it is better to implement
>> them, rather than patching cl-gtk2. At least they will be helpful in porting
>> some other packages, that depend on them.
>
> It would be easier to fix trivial-garbage instead, which is the one
> "supplying" weak hash tables to other systems.
>
> Juanjo
>
> --
> Instituto de Física Fundamental, CSIC
> c/ Serrano, 113b, Madrid 28006 (Spain)
> http://juanjose.garciaripoll.googlepages.com
>
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> Ecls-list mailing list
> Ecls-list at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ecls-list
>
>



-- 
The basic tool for the manipulation of reality is the manipulation of
words. If you can control the meaning of words, you can control the
people who must use the words.
                   How To Build A Universe That Doesn't Fall Apart Two
Days Later
                   Philip K. Dick




More information about the ecl-devel mailing list