Hi, Mark,
Please tell me where you treated in your Master's thesis the escape analysis part.
I need to understand well the translation of objects from Python to C++. I see that
this translation does the following:
- Python local function constant strings (e.g, "test str Python") are translated into C++
global str objects (has to do, I guess, with the call-by-object semantics of Python). This
does not give any opportunity for using smart pointers;
- Python local function list variables (e.g., l1 = [1, 2]) are declared in C++ as
a local function list which can be used as a smart pointers;
- etc
Is this aspect of the translation described in your MSc thesis?
Best regards,
Alex
On 12/2/2013 1:17 PM, Mark Dufour wrote:
> hi alex,
>
> I'm of course happy to try and answer any questions about the shedskin internals. but I
> also have a bit of personal interest in especially escape analysis. I even did a simple
> implemention early on, and described this in my thesis.. I think though that I tried to
> allocate objects on the stack even, which complicated things too much for my taste at the
> time (since in C you then have to use either '.' or '->' to access members) so I backed
> out again (it also distracted a bit from my 'core business' :P).
>
> in any case, it sounds like using smart pointers in combination with a simple escape
> analysis might be a relatively simple but useful approach. you could perhaps start with a
> simple visitor class to track local variable names, analyze the resulting graph, and
> insert smart pointers where possible..
>
> cheers,
> mark.
>
>
> On Fri, Nov 29, 2013 at 10:06 AM, RCU <
alex....@gmail.com
> <mailto:
alex....@gmail.com>> wrote:
>
> Hi.
> I see there are a few people asking about replacing Boehm's GC in ShedSkin and
> using C++ smart pointers (see emails below).
> I played a bit with Boehm's GC and I played with C++ smart pointers, etc.
>
> Anybody interested in collaborating on such topic?
> You can find here a sketch with ideas on static/hybrid memory management for
> ShedSkin:
https://sites.google.com/site/__alexsusu/shedskin
> <
https://sites.google.com/site/alexsusu/shedskin> . The work is not trivial, and there
> are already a lot of results in research on this topic.
>
> Best regards,
> Alex
>
> On 10/27/2013 9:42 PM, Mark Dufour wrote:
>
> hi stephen,
>
>
> Does shedskin have enough type information so that an accurate gc sytem could
> be used
> instead of boehm or refcounting?
>
>
> theoretically, yes, you could do anything that, say, a Java implementation, does. in
> practice I'm afraid it would mean having to write our own garbage collector. or
> add a Java
> backend.. :-)
>
> thanks,
> mark.
> --
>
http://www.youtube.com/watch?__v=E6LsfnBmdnk
> <
http://www.youtube.com/watch?v=E6LsfnBmdnk>
>
>
>
> On 10/17/2013 8:12 PM, Stephen Kennedy wrote:
> > On Tuesday, 18 September 2012 04:29:25 UTC+1, srepmub wrote:
> >
> > But I guess the main reason for using BoehmGC is that it's ready to work :-)
> >
> >
> > yeah, iirc, it took about an hour to get the boehm gc to "work". I've never really
> > thought about refcounting after that, other than to note that it seems messy
> business.
> >
> >
> > Does shedskin have enough type information so that an accurate gc sytem could be used
> > instead of boehm or refcounting?
> >
> > Stephen.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "shedskin-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> shedskin-discuss+unsubscribe@__
googlegroups.com
> <mailto:
shedskin-discuss%2Bunsu...@googlegroups.com>.
> To post to this group, send email to shedskin-discuss@googlegroups.__com
> <mailto:
shedskin...@googlegroups.com>.
> Visit this group at
http://groups.google.com/__group/shedskin-discuss
> <
http://groups.google.com/group/shedskin-discuss>.
> For more options, visit
https://groups.google.com/__groups/opt_out
> <
https://groups.google.com/groups/opt_out>.
> <mailto:
gearoid....@gmail.com>> wrote:
> >
> > Thanks for the info J�r�mie. Are you familiar with the automated
> reference
> > counting capability of Objective-C:
> >
http://clang.llvm.org/docs/__AutomaticReferenceCounting.__html
> <
http://clang.llvm.org/docs/AutomaticReferenceCounting.html>
> > <
http://clang.llvm.org/docs/__AutomaticReferenceCounting.__html
> <
http://clang.llvm.org/docs/AutomaticReferenceCounting.html>>
> >
> > It's not perfect, in that reference loops are still possible if the
> user
> > does not take care but it bypasses the terrible performance of GC when
> > using lots of objects.
> >
> >
> > not sure but I seem to remember C++ also has this capability (read: can be
> > extended to have it), in the form of "smart" or "shared pointers". but
> again
> > I've never really looked into this stuff . (note these may not be
> compatible
> > with the boehm gc.. :S)
> >
> > thanks,
> > mark.
> > --
> >
http://www.youtube.com/watch?__v=E6LsfnBmdnk
> <
http://www.youtube.com/watch?v=E6LsfnBmdnk>
> > <
http://www.youtube.com/watch?__v=E6LsfnBmdnk
> <mailto:
shedskin...@googlegroups.com>.
> > To unsubscribe from this group, send email to
> shedskin-discu...@__
googlegroups.com <mailto:
shedskin-discu...@googlegroups.com>.
> > For more options, visit this group at
> >
http://groups.google.com/__group/shedskin-discuss?hl=en
> <
http://groups.google.com/group/shedskin-discuss?hl=en>
> > <
http://groups.google.com/__group/shedskin-discuss?hl=en
> shedskin-discuss+unsubscribe@__
googlegroups.com
> <mailto:
shedskin-discuss%2Bunsu...@googlegroups.com>.
> To post to this group, send email to shedskin-discuss@googlegroups.__com
> <mailto:
shedskin...@googlegroups.com>.
> Visit this group at
http://groups.google.com/__group/shedskin-discuss
> <
http://groups.google.com/group/shedskin-discuss>.
> For more options, visit
https://groups.google.com/__groups/opt_out
> <
https://groups.google.com/groups/opt_out>.
>
>
>
>
> --
> To unsubscribe from this group and stop receiving emails from it, send an email to
>
shedskin-discu...@googlegroups.com.