[Newbies] Re: self executable with squeak
Hi Benjamin, on Wed, 07 Jun 2006 07:48:52 +0200, you wrote: hello, I apologize if this question has already been posted, but i did not find it. i wanted to know if it is possible to make a self executable file with a squeak package or more packages. Just so that someone can use it without using squeak or even without having it. I heard about stripers what is it and how does it work? Have a look at http://www.amazon.de/exec/obidos/ASIN/3898353664 (sorry, only in German). This is a Squeak application which runs out of the box. Is this what you mean? /Klaus thanks for the time you'll take. benjamin ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
Fwd: Re: [Newbies] self executable with squeak
Sorry this went directly to Benjamin instead of the list This is a forwarded message From: Herbert König [EMAIL PROTECTED] To: Benjamin SALLAS [EMAIL PROTECTED] Date: Wednesday, June 7, 2006, 10:35:48 AM Subject: [Newbies] self executable with squeak ===8==Original message text=== Hello Benjamin, BS I apologize if this question has already been posted, but i did not find it. This is what we are here for! BS i wanted to know if it is possible to make a self executable BS file with a squeak package or more packages. Just so that someone Basic steps: Deliver a package containing the VM (under an arbitrary name) and an image as well as a Startup which starts the VM with the image. This package is created by abandoning the changes file, disabling programmer facilities and either having the image in a state you like your application to start or adding your application to squeaks autostart. You can find a bit more in my reply here re:Starting of 3.6.2006 and re:What kind of application for Squeak of 22.5.06 where I attached some files how I do it. Sorry I'm offline so I can't post links. Feel free to ask for details, I did it just once and will look up how I did it if the above mentioned doesn't help. BS can use it without using squeak or even without having it. I heard BS about stripers what is it and how does it work? When strippers are mentioned on Squeak dev usually the goal is to get a smaller image for development, the focus is different but one could remove the programmers facility this way too. What you want to look for is deploy or deployment instead of shrinking or stripping. The product Klaus mentioned in his reply is IMHO from Impara, they are around here too and may have done it a different way. From habit I would use InnoSetup (for Delphi) to create the setup. I faintly seem to remember rumors on Squeakdev about more smalltalkish ways for setups. VW has built in tools for that. This is all for Windows. BS thanks for the time you'll take. You're welcome! Cheers, Herbertmailto:[EMAIL PROTECTED] ===8===End of original message text=== ---BeginMessage--- Hello Benjamin, BS I apologize if this question has already been posted, but i did not find it. This is what we are here for! BS i wanted to know if it is possible to make a self executable BS file with a squeak package or more packages. Just so that someone Basic steps: Deliver a package containing the VM (under an arbitrary name) and an image as well as a Startup which starts the VM with the image. This package is created by abandoning the changes file, disabling programmer facilities and either having the image in a state you like your application to start or adding your application to squeaks autostart. You can find a bit more in my reply here re:Starting of 3.6.2006 and re:What kind of application for Squeak of 22.5.06 where I attached some files how I do it. Sorry I'm offline so I can't post links. Feel free to ask for details, I did it just once and will look up how I did it if the above mentioned doesn't help. BS can use it without using squeak or even without having it. I heard BS about stripers what is it and how does it work? When strippers are mentioned on Squeak dev usually the goal is to get a smaller image for development, the focus is different but one could remove the programmers facility this way too. What you want to look for is deploy or deployment instead of shrinking or stripping. The product Klaus mentioned in his reply is IMHO from Impara, they are around here too and may have done it a different way. From habit I would use InnoSetup (for Delphi) to create the setup. I faintly seem to remember rumors on Squeakdev about more smalltalkish ways for setups. VW has built in tools for that. This is all for Windows. BS thanks for the time you'll take. You're welcome! Cheers, Herbertmailto:[EMAIL PROTECTED]---End Message--- ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
Re: [Newbies] Re: self executable with squeak
Klaus D. Witzel wrote: Hi Benjamin, on Wed, 07 Jun 2006 07:48:52 +0200, you wrote: hello, I apologize if this question has already been posted, but i did not find it. i wanted to know if it is possible to make a self executable file with a squeak package or more packages. Just so that someone can use it without using squeak or even without having it. I heard about stripers what is it and how does it work? Have a look at http://www.amazon.de/exec/obidos/ASIN/3898353664 (sorry, only in German). This is a Squeak application which runs out of the box. Interesting. May I ask you, how did you make that program? Elod ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
Re-2: [Newbies] Re: self executable with squeak
Hi Elod, Planet Plopp was made by impara (http://www.impara.de). Bert was one of the developers. I saw a little bit from the production of this program. Very impressive how these guys working with squeak. Cheers, Frank Original Message Subject: Re: [Newbies] Re: self executable with squeak (07-Jun-2006 10:55) From:Elod Kironsky [EMAIL PROTECTED] To: [EMAIL PROTECTED] Klaus D. Witzel wrote: Hi Benjamin, on Wed, 07 Jun 2006 07:48:52 +0200, you wrote: hello, I apologize if this question has already been posted, but i did not find it. i wanted to know if it is possible to make a self executable file with a squeak package or more packages. Just so that someone can use it without using squeak or even without having it. I heard about stripers what is it and how does it work? Have a look at http://www.amazon.de/exec/obidos/ASIN/3898353664 (sorry, only in German). This is a Squeak application which runs out of the box. Interesting. May I ask you, how did you make that program? Elod ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
Re: [Newbies] Chess Object problem
I recall the same problem with Chess in the 3.8 image for OS X downloaded from squeak.org. In the image downloaded from squeakland.org though, it works fine - even lets me win from time to time. :) Cheers, Randy On 6/7/06, Kevin Kingdon [EMAIL PROTECTED] wrote: I just downloaded the latest stable (3.8) version of squeak for Linux and for Windows. After a little exploration, I found the chess object. I dragged it to the desktop, but the first time I touched a piece, it threw an exception (smallIntegerasciiValue not understood). A couple of days later, after (re-)learning some Smalltalk, I found where a byte array was being passed to a String method that expected a String parameter. A small fix later (sending asString to the byte array) and the chess program seemed to be working. A few of questions: 1) If this is a known problem with a known fix, how could I have discovered that? 2) Is there a way to save/update code from the debugger? (I made the change in the class browser.) 3) If this is not a known problem, where/how do I make my fix available for everyone? Thanks, Kevin W. Kingdon ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
RE: [Newbies] Chess Object problem
Hi Kevin, I'm really glad you asked this question. Because I didn't and here is the response I got! The fix which is referenced above is actually the worst one of all of them (sorry to say that Ron ;-) since it not only uses the non-primitive version (bad for speed) but also adds to the allocation overhead by converting the byte array to a string. And unless I'm mistaken this alone will slow down the chess game by a factor of two (because this code is s heavily used in the game). I have actually sped up the whole game by a factor of four (no kidding!) by carefully avoiding allocations in the move generator. http://bugs.impara.de/view.php?id=1879 See the bug for the patch or the chess game is working fine in 3.9b. Now to your questions: 1) If this is a known problem with a known fix, how could I have discovered that? Go to www.squeak.org and look at the right side bar at the bottom. You will notice a Bug Reporting link. Go ahead and sign up to Mantis, you should also consider signing up at squeakPeople, and squeakSource. Once there you can query for bugs to see if the issues have been solved. If you are really looking for a solved issue then remember to clear the filter that filters out closed bugs. By querying for Chess on closed bugs you will find the one I reported. As you also found out asking on the squeak-dev or even here is a good way to know. For most of the current development you will find someone that knows. 2) Is there a way to save/update code from the debugger? (I made the change in the class browser.) Yes and you have to pause for a second to think about what a wonderful thing it is that changes can be made to a running system. **Pausing to reflect** Ok to change a method in the debugger right click and accept just like anywhere else. Amazing !! 3) If this is not a known problem, where/how do I make my fix available for everyone? The best thing to do is attach a change set or Monticello file, fileout or even just paste the code to the bug report and let who ever is the package maintainer look at your fix and decide if it's a good one. Ken will usually come along and assign the bug to someone. The package maintainer will work with someone to harvest the fix into the dev release. That all works in theory unless you mention this on Squeak-Dev. Then what you get is argument about who maintains what, is it an efficient system, why is there only one group responsible for harvesting, and we need more help doing the harvesting. Still that's my recommendation. Hope that helps and Great question, Happy coding, Ron Teitelbaum President / Principal Software Engineer US Medical Record Specialists [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:beginners- [EMAIL PROTECTED] On Behalf Of Kevin Kingdon Sent: Wednesday, June 07, 2006 3:14 PM To: beginners@lists.squeakfoundation.org Subject: [Newbies] Chess Object problem I just downloaded the latest stable (3.8) version of squeak for Linux and for Windows. After a little exploration, I found the chess object. I dragged it to the desktop, but the first time I touched a piece, it threw an exception (smallIntegerasciiValue not understood). A couple of days later, after (re-)learning some Smalltalk, I found where a byte array was being passed to a String method that expected a String parameter. A small fix later (sending asString to the byte array) and the chess program seemed to be working. A few of questions: 1) If this is a known problem with a known fix, how could I have discovered that? 2) Is there a way to save/update code from the debugger? (I made the change in the class browser.) 3) If this is not a known problem, where/how do I make my fix available for everyone? Thanks, Kevin W. Kingdon ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
Re: [Newbies] self executable with squeak -- pause on startup
Am 07.06.2006 um 21:05 schrieb Алексей: Hello First week with squeak :) I have one (really not one:) question. When I start squeak by clicking on squeak.exe, I get pause about 15 sec. Then if in folder only one image file squeak starts with it. If I use somthing like 'Squeak.exe my.image' squeak startups immediatly. I must always use '.bat' files for applications? Or exist way to do this with more style? Where is problem? I don't think it is so expensive for VM to find image file(s). IIRC it takes that long for the VM to figure out if it is being run as a service or not. One can recompile the VM without the service capability to make startup go faster. - Bert - ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners