Re: rtl metadata musings

2013-05-20 Thread Andy Wingo
Hi, On Sun 19 May 2013 23:52, l...@gnu.org (Ludovic Courtès) writes: > I guess literal strings would go out as per ‘SCM_IMMUTABLE_STRING’ > (which needs relocation), right? Yep. Right now the stringbuf goes into read-only memory, but the string itself goes in writable memory as it needs its lin

Re: The Road to 2.2

2013-05-20 Thread Andy Wingo
Hi, On Mon 20 May 2013 00:06, l...@gnu.org (Ludovic Courtès) writes: >> Once the RTL branch is all merged in, we can start doing the same with >> Noah's wip-rtl-cps branch. > > I’m unclear on what the safest or easiest approach is. My natural > tendency would have led me to start by “just” rewri

un-determined behavior of asyncs

2013-05-20 Thread Chaos Eternal
hi gurus, I wrote a short code to inspect the behavior of asyncs, and find that neither the running time nor the order of execution is determined, in fact , i find that the execution order of asyncs are random. I just want to understand whether this random execution order of asyncs is designed or

Re: rtl metadata musings

2013-05-20 Thread Ludovic Courtès
Andy Wingo skribis: > On Sun 19 May 2013 23:52, l...@gnu.org (Ludovic Courtès) writes: > >> I guess literal strings would go out as per ‘SCM_IMMUTABLE_STRING’ >> (which needs relocation), right? > > Yep. Right now the stringbuf goes into read-only memory, but the string > itself goes in writable

Re: rtl metadata musings

2013-05-20 Thread Mike Gran
> UTF-8-encoded ELF symbols may be more of a problem.  How could NULs in > symbols be handled? You could re-map NUL to one of the PUA characters, perhaps.  It seems unlikely that ELF symbols should ever contain private use characters. -Mike

Re: rtl metadata musings

2013-05-20 Thread Andy Wingo
On Mon 20 May 2013 18:37, l...@gnu.org (Ludovic Courtès) writes: > Andy Wingo skribis: > >> On Sun 19 May 2013 23:52, l...@gnu.org (Ludovic Courtès) writes: >> >>> I guess literal strings would go out as per ‘SCM_IMMUTABLE_STRING’ >>> (which needs relocation), right? >> >> Yep. Right now the str

Re: Manual section on compilation doesn't mention (system base compile)

2013-05-20 Thread Andy Wingo
On Mon 13 May 2013 00:47, taylanbayi...@gmail.com (Taylan Ulrich B.) writes: > The manual section 6.17.5, (info "(guile) Compilation"), doesn't say > in which module the functions it mentions reside. Here is a patch for > doc/ref/api-evaluation.texi: Can you send this along with a commit message

Re: Manual section on compilation doesn't mention (system base compile)

2013-05-20 Thread Andy Wingo
On Mon 13 May 2013 00:47, taylanbayi...@gmail.com (Taylan Ulrich B.) writes: > The compiler can also be invoked directly by Scheme code using the procedures > -below: > +below, which are found in the module (system base compile): Also here you want @code{} around (system base compile). -- http

Re: un-determined behavior of asyncs

2013-05-20 Thread Andy Wingo
On Mon 20 May 2013 16:44, Chaos Eternal writes: > I just want to understand whether this random execution order of > asyncs is designed or desired or not-specified ? Your program has no synchronization so I am not sure what you expect it to do. There's not even any guarantee that the thread is

Re: rtl metadata musings

2013-05-20 Thread Ludovic Courtès
Andy Wingo skribis: > On Mon 20 May 2013 18:37, l...@gnu.org (Ludovic Courtès) writes: > >> Andy Wingo skribis: >> >>> On Sun 19 May 2013 23:52, l...@gnu.org (Ludovic Courtès) writes: >>> I guess literal strings would go out as per ‘SCM_IMMUTABLE_STRING’ (which needs relocation), right

CPS thoughts

2013-05-20 Thread Andy Wingo
Some first thoughts on the CPS language, just after having looked at (language cps): * Overall looking really good. * License blocks are missing. * Toplevel comments should be prefixed by ";;; " (three semicolons). * Overview could go in the module commentary section. * Missing distinctio

Re: rtl metadata musings

2013-05-20 Thread Andy Wingo
On Mon 20 May 2013 21:28, l...@gnu.org (Ludovic Courtès) writes: > I meant, there are things Guile’s loader could remap read-only once > the relocations are done, as glibc’s loader does for PT_GNU_RELRO. Yes, the ELF toolchain on GNU systems has a lot of stuff to teach us! Andy -- http://wingol

Re: Manual section on compilation doesn't mention (system base compile)

2013-05-20 Thread Taylan Ulrich B.
Andy Wingo writes: > On Mon 13 May 2013 00:47, taylanbayi...@gmail.com (Taylan Ulrich B.) writes: > >> The manual section 6.17.5, (info "(guile) Compilation"), doesn't say >> in which module the functions it mentions reside. Here is a patch for >> doc/ref/api-evaluation.texi: > > Can you send th

Re: CPS thoughts

2013-05-20 Thread Noah Lavine
Hello, Thanks for the review. On Mon, May 20, 2013 at 4:19 PM, Andy Wingo wrote: > Some first thoughts on the CPS language, just after having looked at > (language cps): > > * Overall looking really good. > Thanks! You may choose to retract that after you see the other files, of course. :-)