From: John L. <jla...@gm...> - 2006-04-11 21:17:58
|
I have fixed the printing and in general calling derived functions like the ones in wxLuaPrintout. I think that after I add the wxLuaFreeze program that works in Linux using gcc (at least) I think we can make the 2.6.3.1 release! ----- The wxLuaFreeze I wrote consists of a lua script that appends a wxLua program to the wxLuaFreeze.exe executable which when started looks at the end of itself for a special tag that tells it how big the script at the end is and then loads and runs it. I still don't have a good idea how to really get freeze to work for multiple files and modules, but it's a start and at least it shows how to make a very minimal wxLua program that simply runs a script. I think we'd have to rewrite the lua module loading to use some sort of fake file system, for example reading from a wxZipFilestream. However we can't just replace the io.open functions since the wxLua program may want to actually use them to read/write files that are really on the disk. Regards, John Labenski |
From: John L. <jla...@gm...> - 2006-04-12 05:10:28
|
Francesco, can you rebake the build files? I've added wxluafreeze by copying every instance where I saw wxluacan. I hope I got it right. Thanks, John Labenski On 4/11/06, John Labenski <jla...@gm...> wrote: > I have fixed the printing and in general calling derived functions > like the ones in wxLuaPrintout. > > I think that after I add the wxLuaFreeze program that works in Linux > using gcc (at least) I think we can make the 2.6.3.1 release! > > ----- > > The wxLuaFreeze I wrote consists of a lua script that appends a wxLua > program to the wxLuaFreeze.exe executable which when started looks at > the end of itself for a special tag that tells it how big the script > at the end is and then loads and runs it. > > I still don't have a good idea how to really get freeze to work for > multiple files and modules, but it's a start and at least it shows how > to make a very minimal wxLua program that simply runs a script. I > think we'd have to rewrite the lua module loading to use some sort of > fake file system, for example reading from a wxZipFilestream. However > we can't just replace the io.open functions since the wxLua program > may want to actually use them to read/write files that are really on > the disk. > > Regards, > John Labenski > |
From: Francesco M. <f18...@ya...> - 2006-04-12 18:30:27
|
John Labenski ha scritto: > Francesco, can you rebake the build files? I've added wxluafreeze by > copying every instance where I saw wxluacan. I hope I got it right. yes, everything was perfect in bakefiles. I just added a new option to configure.ac. A minor thing: wxLuaFreeze had a dependency from wxSTC because of an unnecessary call to wxLuaBinding_wxstc_init();... I've removed it... >> I have fixed the printing and in general calling derived functions >> like the ones in wxLuaPrintout. Very good ! >> >> I think that after I add the wxLuaFreeze program that works in Linux >> using gcc (at least) I think we can make the 2.6.3.1 release! Sure. Can we fix a date for it ? Until 19 April I'll be in (semi) holidays... ;) >> The wxLuaFreeze I wrote consists of a lua script that appends a wxLua >> program to the wxLuaFreeze.exe executable which when started looks at >> the end of itself for a special tag that tells it how big the script >> at the end is and then loads and runs it. I looked how it's implemented and it looks a short & elegant solution ;) >> >> I still don't have a good idea how to really get freeze to work for >> multiple files and modules, but it's a start and at least it shows how >> to make a very minimal wxLua program that simply runs a script. I >> think we'd have to rewrite the lua module loading to use some sort of >> fake file system, for example reading from a wxZipFilestream. However >> we can't just replace the io.open functions since the wxLua program >> may want to actually use them to read/write files that are really on >> the disk. I think you're right: an additional abstraction level is necessary to hide to the scripts the facts that the scripts themselves have been embedded in a single exe... but as you say that's a good start. An important thing before making 2.6.3.1 is also to update the ChangeLog... Francesco |
From: John L. <jla...@gm...> - 2006-04-12 20:52:33
|
On 4/12/06, Francesco Montorsi <f18...@ya...> wrote: > John Labenski ha scritto: > > Francesco, can you rebake the build files? I've added wxluafreeze by > > copying every instance where I saw wxluacan. I hope I got it right. > yes, everything was perfect in bakefiles. > I just added a new option to configure.ac. > > A minor thing: wxLuaFreeze had a dependency from wxSTC because of an > unnecessary call to wxLuaBinding_wxstc_init();... I've removed it... Well, ok. This was added so that you can freeze wxLua programs that use wxSTC right out of the box. > >> I think that after I add the wxLuaFreeze program that works in Linux > >> using gcc (at least) I think we can make the 2.6.3.1 release! > Sure. Can we fix a date for it ? > Until 19 April I'll be in (semi) holidays... ;) Ok, so then maybe at the end of next week, the 21st or so? That'll give me some more time to try to iron out the bindings and remove all the deprecated warnings for 2.6. I'll also try to find some time later this week or weekend to write some more docs about the internals of wxLua. > An important thing before making 2.6.3.1 is also to update the ChangeLog.= .. Heh. Yes that would be a good idea. Sorry, I keep forgetting, I'll look through it later tonight. Thanks, John Labenski |
From: Francesco M. <f18...@ya...> - 2006-04-12 22:20:13
|
John Labenski ha scritto: > On 4/12/06, Francesco Montorsi <f18...@ya...> wrote: >> John Labenski ha scritto: >>> Francesco, can you rebake the build files? I've added wxluafreeze by >>> copying every instance where I saw wxluacan. I hope I got it right. >> yes, everything was perfect in bakefiles. >> I just added a new option to configure.ac. >> >> A minor thing: wxLuaFreeze had a dependency from wxSTC because of an >> unnecessary call to wxLuaBinding_wxstc_init();... I've removed it... > > Well, ok. This was added so that you can freeze wxLua programs that > use wxSTC right out of the box. ops; I thought it was just a copy&paste which passed through... if you want to re-enable it, it can be done easily adding the USE_WXBINDSTC=='1' option to wxLuaFreeze target... >>>> I think that after I add the wxLuaFreeze program that works in Linux >>>> using gcc (at least) I think we can make the 2.6.3.1 release! >> Sure. Can we fix a date for it ? >> Until 19 April I'll be in (semi) holidays... ;) > > Ok, so then maybe at the end of next week, the 21st or so? Ok, 21 april afternoon I'll be there (I'm UTC+1) > That'll > give me some more time to try to iron out the bindings and remove all > the deprecated warnings for 2.6. I'll also try to find some time later > this week or weekend to write some more docs about the internals of > wxLua. ok, sure > >> An important thing before making 2.6.3.1 is also to update the ChangeLog... > > Heh. Yes that would be a good idea. Sorry, I keep forgetting, I'll > look through it later tonight. ;) Francesco |