Does the standard Squeak image contain a class for operating on regular expressions?
--- Mark Volkmann
On Sun, 2008-09-28 at 09:16 -0500, Mark Volkmann wrote:
Does the standard Squeak image contain a class for operating on regular expressions?
No, nothing beside String>>matches: But you can load a regex package from squeaksource. You know squeaksource already?
Norbert
And the standard dev image has VBRegex loaded already... Rob
On Sun, Sep 28, 2008 at 10:31 AM, Norbert Hartl norbert@hartl.name wrote:
On Sun, 2008-09-28 at 09:16 -0500, Mark Volkmann wrote:
Does the standard Squeak image contain a class for operating on regular expressions?
No, nothing beside String>>matches: But you can load a regex package from squeaksource. You know squeaksource already?
Norbert
Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
Great! I'm using a "Squeak-Dev" image now and I've tried that out. Works well! What happens though when I distribute my code to someone that isn't using a dev image? Do I have to ask them to install VB-Regex separately?
On Sep 28, 2008, at 9:38 AM, Rob Rothwell wrote:
And the standard dev image has VBRegex loaded already...
Rob
On Sun, Sep 28, 2008 at 10:31 AM, Norbert Hartl norbert@hartl.name wrote: On Sun, 2008-09-28 at 09:16 -0500, Mark Volkmann wrote:
Does the standard Squeak image contain a class for operating on regular expressions?
No, nothing beside String>>matches: But you can load a regex package from squeaksource. You know squeaksource already?
Norbert
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
--- Mark Volkmann
Yes...these are known as, I believe, "dependencies." The Squeak By Example book has a good little section on Monticello, if I recall. You might want to start learning how to package your code. It took me a while to figure it out. But, with a dev image, which has the OBPackageBrowserAdaptor by default, you just need to create a repository with Monticello and assign that to your Package. Then, right from the Browser, you can right-click on your package and "publish." Rob
On Sun, Sep 28, 2008 at 11:26 AM, Mark Volkmann mark@ociweb.com wrote:
Great! I'm using a "Squeak-Dev" image now and I've tried that out. Works well!What happens though when I distribute my code to someone that isn't using a dev image? Do I have to ask them to install VB-Regex separately?
On Sep 28, 2008, at 9:38 AM, Rob Rothwell wrote:
And the standard dev image has VBRegex loaded already... Rob
On Sun, Sep 28, 2008 at 10:31 AM, Norbert Hartl norbert@hartl.namewrote:
On Sun, 2008-09-28 at 09:16 -0500, Mark Volkmann wrote:
Does the standard Squeak image contain a class for operating on regular expressions?
No, nothing beside String>>matches: But you can load a regex package from squeaksource. You know squeaksource already?
Norbert
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
Mark Volkmann
Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
On Sep 28, 2008, at 9:31 AM, Norbert Hartl wrote:
On Sun, 2008-09-28 at 09:16 -0500, Mark Volkmann wrote:
Does the standard Squeak image contain a class for operating on regular expressions?
No, nothing beside String>>matches: But you can load a regex package from squeaksource. You know squeaksource already?
I wonder why that isn't considered to be such a fundamental thing that it is included. It seems to me that most programming languages other than C/C++ include support for regular expressions now.
--- Mark Volkmann
Am 28.09.2008 um 07:52 schrieb Mark Volkmann:
On Sep 28, 2008, at 9:31 AM, Norbert Hartl wrote:
On Sun, 2008-09-28 at 09:16 -0500, Mark Volkmann wrote:
Does the standard Squeak image contain a class for operating on regular expressions?
No, nothing beside String>>matches: But you can load a regex package from squeaksource. You know squeaksource already?
I wonder why that isn't considered to be such a fundamental thing that it is included. It seems to me that most programming languages other than C/C++ include support for regular expressions now.
IMHO because Smalltalk does not come from the unix-centric world of text-file processing, coupled with the expense of moving a package that is rarely used into the image.
- Bert -
On Sep 28, 2008, at 9:31 AM, Norbert Hartl wrote:
On Sun, 2008-09-28 at 09:16 -0500, Mark Volkmann wrote:
Does the standard Squeak image contain a class for operating on regular expressions?
No, nothing beside String>>matches: But you can load a regex package from squeaksource. You know squeaksource already?
No. It sounds like I need to learn about that. Where should I start? Is there a special tool in Squeak that downloads packages from SqueakSource? Is that the main purpose of the Monticello Browser?
--- Mark Volkmann
In the dev image, from the world menu, select "open...", then "Universe Browser (enhanced)" (or basic if you prefer). Make sure up update the list from the network. Now others will have to chime in, because you can also select "open..." and then "Squeak Map Package Loader." Much of the same material is in both places, but they ARE different somehow. I've never been quite clear how.
However, if you take a standard dev image, and execute (in a workspace):
(HTTPSocket httpGet: 'installer.pbwiki.com/f/LPF.st') readStream fileIn. "Bootstrap"
and then
Installer install: 'Packages'.
You will get a pretty nice stable image with nearly every dev image release, at which point you can also load packages by doing things like:
Installer sake addPackage: 'FreeTypePlus'; install. Installer sake addPackage: 'MemoryUsage'; install. MemoryUsage new openInWorld.
(These are just two packages I like to load). Anyway, the nice thing about using the Universe Browser or the Sake package loader is that they take care of the dependencies for you...
I have NO IDEA how it all works--I've just finally figured out how to use it.
Also, with a fresh dev image, try, in the Universe Browser, updating the list, then "select upgrades." Click the "all" button, and scroll through the list. It will show you what packages it selected. You can than update if you want...
Play around a bit, but ask folks if you can't get something to load right. However, it sure seems like things are a lot better than they were a year or so ago when the Foreign Function Interface (FFI) wouldn't load right in many images and caused a lot of problems. Everything seems very smooth now unless the server is having some issues.
Good luck, and don't forget to check out Squeak By Example for the Monticello section...
Rob
On Sun, Sep 28, 2008 at 11:30 AM, Mark Volkmann mark@ociweb.com wrote:
On Sep 28, 2008, at 9:31 AM, Norbert Hartl wrote:
On Sun, 2008-09-28 at 09:16 -0500, Mark Volkmann wrote:
Does the standard Squeak image contain a class for operating on regular expressions?
No, nothing beside String>>matches: But you can load
a regex package from squeaksource. You know squeaksource already?
No. It sounds like I need to learn about that. Where should I start? Is there a special tool in Squeak that downloads packages from SqueakSource? Is that the main purpose of the Monticello Browser?
Mark Volkmann
Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
beginners@lists.squeakfoundation.org