. .

st4u

ST 4U 303: Using the VA Smalltalk Benchmark Tool

October 31, 2012 10:04:42.448

Today's Smalltalk 4 You takes an overview of the benchmarking tools in VA Smalltalk. If you don't know what to load, get started here. If you have trouble viewing it here in the browser, you can also navigate directly to YouTube. To watch now, click on the image below:

Benchmarking.

If you have trouble viewing that directly, you can click here to download the video directly. If you need the video in a Windows Media format, then download that here.

You can also watch it on YouTube:


Today we'll run the benchmarking tools in VA Smalltalk and see what they do. If you don't know what to load, get started here.

Following on from last time, create a small benchmark test, and then click the "run" button in the tool:

benchmark

You should see something like what's above. There are a number of view/benchmark options to explore - we'll get to those next time

Need more help? There's a screencast for other topics like this which you may want to watch. Questions? Try the "Chat with James" Google gadget over in the sidebar.

Enclosures:
[st4u303-iPhone.m4v ( Size: 3129632 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 302: Adding To the Pharo Help System

October 29, 2012 10:19:10.243

Today's Smalltalk 4 You looks a little deeper at the help system in Pharo - you can extend it easily to include your own help for your own projects. If you have trouble viewing it here in the browser, you can also navigate directly to YouTube. To watch now, click on the image below:

Help

If you have trouble viewing that directly, you can click here to download the video directly. If you need the video in a Windows Media format, then download that here.

You can also watch it on YouTube:

Technorati Tags: , ,

Enclosures:
[st4u302-iPhone.m4v ( Size: 2561923 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 301: Benchmarking Tools in VA Smalltalk

October 26, 2012 13:17:24.972

Today's Smalltalk 4 You starts looking at the benchmarking tools available in VA Smalltalk. If you have trouble viewing it here in the browser, you can also navigate directly to YouTube. To watch now, click on the image below:

Benchmarking.

If you have trouble viewing that directly, you can click here to download the video directly. If you need the video in a Windows Media format, then download that here.

You can also watch it on YouTube:


Today we'll start taking a look at the benchmarking tools available in VA Smalltalk. First, we'll need to load the relevant feature:

Load

Next, we'll go to the "Tools" menu in the launcher, and pick "Open Benchmark Workshop".

Benchmarking

THe tool has a code pane on the left, used to enter the code you want to benchmark. However, that doesn't operate the way you might expect - First, enter the code you want into the text area:

Benchmarking

Now, right click and select the "Save" option in the menu. You'll be warned about creating a scratch edition of an application; just ignore that:

Save

Once you've done that, the new benchmark is available from the drop down list at the top of the tool:

Benchmarking

At this point, we can run any of the saved tests. We'll get to that in the next screencast.

Need more help? There's a screencast for other topics like this which you may want to watch. Questions? Try the "Chat with James" Google gadget over in the sidebar.

Technorati Tags: , ,

Enclosures:
[st4u301-iPhone.m4v ( Size: 3636801 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 300: Recently Visited in VA Smalltalk

October 24, 2012 10:54:27.301

Today's Smalltalk 4 You looks at the standard development process using VA Smalltalk and ENVY. If you have trouble viewing it here in the browser, you can also navigate directly to YouTube. To watch now, click on the image below:

Recently Visited.

If you have trouble viewing that directly, you can click here to download the video directly. If you need the video in a Windows Media format, then download that here.

You can also watch it on YouTube:


There's a nice little feature in VA stashed away on the "Options" menu of the launcher - recently visited methods. This is something that I'd really like to see in the tools I use in my day to day consulting work, because I keep going back to the same code, but I often can't quite remember what it is that I'm looking for - this feature helps a lot with that problem.

Recently Visited

As you can see below, the last few classes and methods I visited had to do with the screencasts I did on file handling in VA - and here they are, listed right where we can easily find them:

Recently Visited

Need more help? There's a screencast for other topics like this which you may want to watch. Questions? Try the "Chat with James" Google gadget over in the sidebar.

Enclosures:
[st4u300-iPhone.m4v ( Size: 1715925 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 299: Help in Pharo

October 22, 2012 13:11:37.026

Today's Smalltalk 4 You looks at the help system that is included in Pharo. If you have trouble viewing it here in the browser, you can also navigate directly to YouTube. To watch now, click on the image below:

Pharo help

If you have trouble viewing that directly, you can click here to download the video directly. If you need the video in a Windows Media format, then download that here.

You can also watch it on YouTube:

Technorati Tags: , ,

Enclosures:
[st4u299-iPhone.m4v ( Size: 1485550 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 298: Backing up Your Envy Repository

October 19, 2012 13:30:29.643

Today's Smalltalk 4 You looks at creating a clone of your existing ENVY repository. Since all of your code resides in that repositry, backing up a copy periodically is a really good idea. If you have trouble viewing it here in the browser, you can also navigate directly to YouTube. To watch now, click on the image below:

Clone the Repository.

If you have trouble viewing that directly, you can click here to download the video directly. If you need the video in a Windows Media format, then download that here.

You can also watch it on YouTube:


The good thing about ENVY Development in VA Smalltalk is that ENVY tracks everything - you really can't lose code that you develop, even when you don't formally release it. On the other hand, you do have a single point of failure - the repository itself. Fortunately, it's easy to back up, both within VA and without. Outside, just backup the file (typically manager.dat in the "manager" directory under your VA installation). Within VA, go to the Tools menu:

clone

What that option does is create a new library and reconnect your image to the new library - after which you can archive the original. The cloning can take awhile (especially if the file is large). When it's finished, you'll get promoted for the new repository size. Always select 16 GB:

New repository size

Finally, VA connects to the new library and you're ready to get back to work:

Reconnected

Need more help? There's a screencast for other topics like this which you may want to watch. Questions? Try the "Chat with James" Google gadget over in the sidebar.

Technorati Tags: , ,

Enclosures:
[st4u298-iPhone.m4v ( Size: 2889710 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 297: Inspecting any Object in VA Smalltalk

October 17, 2012 7:27:46.946

Today's Smalltalk 4 You looks at a nifty little feature of VA Smalltalk - the menu options that make it easy to inspect arbitrary objects in VA. If you have trouble viewing it here in the browser, you can also navigate directly to YouTube. To watch now, click on the image below:

Inspecting in VA.

If you have trouble viewing that directly, you can click here to download the video directly. If you need the video in a Windows Media format, then download that here.

You can also watch it on YouTube:


During Smalltalk development, it's quite common to want to inspect arbitrary objects - and sometimes, it's not that easy to "dig into" the right level of the application for that. Fortunately, tools to deal with that are right in the VA environment. Take a look at the "Options" menu in the launcher:

Inspect

Notice the "Delay" option - if you want to inspect a widget (one of the options), you can set a countdown to give yourself time to get the cursor to it. Try that, and move the mouse to the toolbar for the launcher:

Inspect

This is a really useful thing - where I work, using VisualWorks, we've built similar tools into the environment. In VA, they are already there.

Need more help? There's a screencast for other topics like this which you may want to watch. Questions? Try the "Chat with James" Google gadget over in the sidebar.

Technorati Tags: , ,

Enclosures:
[st4u297-iPhone.m4v ( Size: 2278517 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 296: ObjectStudio 8 Tools Overview

October 15, 2012 8:54:03.056

Today's Smalltalk 4 You looks at some the basic tools in ObjectStudio. Since OS is built on top of VisualWorks, some of those tools are VW tools, and someof them are unique to OS. If you have trouble viewing it here in the browser, you can also navigate directly to YouTube. To watch now, click on the image below:

ObjectStudio Tools

If you have trouble viewing that directly, you can click here to download the video directly. If you need the video in a Windows Media format, then download that here.

You can also watch it on YouTube:

Technorati Tags: ,

Enclosures:
[st4u296-iPhone.m4v ( Size: 3806664 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 295: Large and Small Integers in Smalltalk

October 12, 2012 11:30:43.184

Today's Smalltalk 4 You looks at integer math in Smalltalk - noting that you don't ever need to worry (outside of database issues, of course) about the small/large integer divide. If you have trouble viewing it here in the browser, you can also navigate directly to YouTube. To watch now, click on the image below:

Integer Math.

If you have trouble viewing that directly, you can click here to download the video directly. If you need the video in a Windows Media format, then download that here.

You can also watch it on YouTube:


Today we'll look at how integer math works in Smalltalk - specifically, the fact that you don't ever need to worry about "big ints". As a simple example, let's calculate a small factorial 10.

Small Integer

Now let's try something big, and add a small number to it:


1000 factorial + 1

Display the result gives you a LargeInteger object - demonstrating that you simply do not need to worry about this level of "type" information in Smalltalk - it's handled for you:

LargeInteger

Need more help? There's a screencast for other topics like this which you may want to watch. Questions? Try the "Chat with James" Google gadget over in the sidebar.

Technorati Tags: , ,

Enclosures:
[st4u295-iPhone.m4v ( Size: 2095904 )]

posted by James Robertson

 Share Tweet This

st4u

ST 4U 294: Custom Seeds for Random Numbers in VA Smalltalk

October 10, 2012 10:10:58.628

Today's Smalltalk 4 You looks at customizing the seeds used in random number generation in VA Smalltalk. If you have trouble viewing it here in the browser, you can also navigate directly to YouTube. To watch now, click on the image below:

Seeds.

If you have trouble viewing that directly, you can click here to download the video directly. If you need the video in a Windows Media format, then download that here.

You can also watch it on YouTube:


Today we'll look at customizing the seeds used in random number generation by class EsRandom in VA Smalltalk. First, have a look at the #new method:


new

	"Use linear congruential generator, with a shuffling array.

	 Reference: Numerical Recipes in C, The Art of Scientific Computing
				Press et al., Cambridge University Press 1990, pp. 211, 212"

	| randomStream |
	randomStream := super new.
	randomStream
		seed2: Time millisecondClockValue asFloat;
		basicNext;
		shuffleArray: (Array new: randomStream shuffleSize).
	1 to: randomStream shuffleSize do: [ :index |
		randomStream shuffleArray at: index put: randomStream basicNext].

	randomStream seed1: randomStream seed2.

	^randomStream

Notice how the seeds are set? That's likely good enough for most uses, but if you wanted to customize, all you need to do is replace those seeds - maybe like the following:


	| randomStream |
	randomStream := EsRandom new.
	randomStream
		seed2: AbtTimestamp now asMicroseconds asFloat;
		basicNext;
		shuffleArray: (Array new: randomStream shuffleSize).
	1 to: randomStream shuffleSize do: [ :index |
		randomStream shuffleArray at: index put: randomStream basicNext].

	randomStream seed1: randomStream seed2.

	Transcript show: (randomStream nextInt: 100) printString.
	Transcript cr.
	Transcript show: (randomStream nextInt: 10) printString.
	Transcript cr

That will work fine - try it out for yourself. That's really all there is to it!

Need more help? There's a screencast for other topics like this which you may want to watch. Questions? Try the "Chat with James" Google gadget over in the sidebar.

Technorati Tags: , ,

Enclosures:
[st4u294-iPhone.m4v ( Size: 1906635 )]

posted by James Robertson

 Share Tweet This

Previous Next (554 total)