smalltalk program execution

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

smalltalk program execution

Erlis Vidal
Hi guys,

I have a some questions about program execution:

If I have a text file with some smalltalk code, is it possible to execute that code from the outside of the VM graphical interface?

I'm looking a java like execution. Java as smalltalk use a VM to execute the code, but the way java execute the program, some people don't even know this. Due to the nature of smalltalk I don't know if what I'm asking is possible.

-- these are other questions I have ---

How are applications deployed in smalltalk?

Once I have the image I can see how things are implemented. How do you do hide implementation that probably don't want other to see? Is there something written about this that you can suggest? I'm just looking to decrease my smalltalk ignorance.

I really like this language, and I'm wondering day after day, what cause its extinction, I've read about what java did and that stuff, but I think there should be more than marketing stuff. The questions I'm asking are some the reasons I see that prevent me to use smalltalk on my day to day job, are these reason the cause that this great language(system) is not being used more widely?

Thanks,
Erlis

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: smalltalk program execution

Garret Raziel
I don't know whether can Squeak do it, but in GNU Smalltalk this is the standard model of execution of programs (GNU Smalltalk doesn't have GUI, it is Ruby- or Python-like interpreter, but with Smalltalk VM).

Jan

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: smalltalk program execution

Herbert König
In reply to this post by Erlis Vidal
Hi Erlis,

EV> I have a some questions about program execution:

Not knowing your platform my reply is a bit unspecific, I can be more
specific on Windows.

EV> If I have a text file with some smalltalk code, is it possible to execute
EV> that code from the outside of the VM graphical interface?

If you specify a .st file in the command line to Squeak, it will be
executed. If you end the script with

SmalltalkImage current snapshot: false andQuit: true

Squeak will close after execution. In a recent image it may be
Smalltalk instead of SmalltalkImage current. I have no 4.2 handy.

EV> I'm looking a java like execution. Java as smalltalk use a VM to execute the
EV> code, but the way java execute the program, some people don't even know
EV> this. Due to the nature of smalltalk I don't know if what I'm asking is
EV> possible.

Googling Squeak headless will help you to make squeak run without any
visible UI. Assuming this was your question :-)

EV> -- these are other questions I have ---

One mail each topic helps that people with little time see that a
question is still unanswered.

EV> How are applications deployed in smalltalk?

Again only a rough sketch:

Smalltalk addToStartupList: MyClass will run
MyClass class side startUp: on startup.

At minimum you should disable the preferences to warn if no changes
file and to warn if no sources file. You can completely disable the
programmers facilities of Squeak, but then you can't debug into a
faulty image.

Use any installer builder (NSIS seems to be preferred by Windows
Squeakers, I used Inno Setup), to unzip your folder and create a
desktop or menu shortcut.

You can search Squeak dev or Squeak beginners on deploy, it's a FAQ.

EV> Once I have the image I can see how things are implemented. How do you do
EV> hide implementation that probably don't want other to see?

Disable Programmer facilities as described before. See my post here on
Jan 1st 2011 on "image not locking down" for details.

In theory you can debug any image file from another running image,
don't know if the tools readily exist. But then for dotNet assemblies
these tools seem to exist.


--
Cheers,

Herbert  

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: smalltalk program execution

Erlis Vidal
Hi Herbert,

Thanks a lot for your reply! You have addressed all my concerns.

Erlis

2011/4/19 Herbert König <[hidden email]>
Hi Erlis,

EV> I have a some questions about program execution:

Not knowing your platform my reply is a bit unspecific, I can be more
specific on Windows.

EV> If I have a text file with some smalltalk code, is it possible to execute
EV> that code from the outside of the VM graphical interface?

If you specify a .st file in the command line to Squeak, it will be
executed. If you end the script with

SmalltalkImage current snapshot: false andQuit: true

Squeak will close after execution. In a recent image it may be
Smalltalk instead of SmalltalkImage current. I have no 4.2 handy.

EV> I'm looking a java like execution. Java as smalltalk use a VM to execute the
EV> code, but the way java execute the program, some people don't even know
EV> this. Due to the nature of smalltalk I don't know if what I'm asking is
EV> possible.

Googling Squeak headless will help you to make squeak run without any
visible UI. Assuming this was your question :-)

EV> -- these are other questions I have ---

One mail each topic helps that people with little time see that a
question is still unanswered.

EV> How are applications deployed in smalltalk?

Again only a rough sketch:

Smalltalk addToStartupList: MyClass will run
MyClass class side startUp: on startup.

At minimum you should disable the preferences to warn if no changes
file and to warn if no sources file. You can completely disable the
programmers facilities of Squeak, but then you can't debug into a
faulty image.

Use any installer builder (NSIS seems to be preferred by Windows
Squeakers, I used Inno Setup), to unzip your folder and create a
desktop or menu shortcut.

You can search Squeak dev or Squeak beginners on deploy, it's a FAQ.

EV> Once I have the image I can see how things are implemented. How do you do
EV> hide implementation that probably don't want other to see?

Disable Programmer facilities as described before. See my post here on
Jan 1st 2011 on "image not locking down" for details.

In theory you can debug any image file from another running image,
don't know if the tools readily exist. But then for dotNet assemblies
these tools seem to exist.


--
Cheers,

Herbert

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners


_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners