Squeak as script and/or single window app

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

Squeak as script and/or single window app

Peter Fitzgibbons
Hello All,
Could someone point me to resources on these two topics:
1.  How to use squeak as a cli?  ( thistle is not “how to invoke system scripts within squeak” )

2.  How to invoke squeak as a single window app.  

Thanks in advance all

Kindest Regards,
Peter Fitzgibbons
--
Peter Fitzgibbons
(224) 307-9689


Reply | Threaded
Open this post in threaded view
|

Re: Squeak as script and/or single window app

Craig Latta

Hi Peter--

> Could someone point me to resources on these two topics:
> 1.  How to use squeak as a cli?  ( this is not “how to invoke
> system scripts within squeak” )

     I use NodeJS as an intermediary between Squeak and my shell and web
browser. From the shell I can make an SSH connection to NodeJS, to which
I have connected Squeak. NodeJS handles all the authentication and
terminal interaction stuff. Certificates are set up with LetsEncrypt.
Squeak controls how commands are processed and what is output back to
the shell. For example, I adapted my Quoth natural language processing
framework to it[1]. I do something similar to proxy HTTPS requests for
Squeak. The original motivation was to enable Squeak to act as a server
while running in a web browser, where normal TCP serving facilities
aren't available.

     The NodeJS part is called "node-caffeine" and is on GitHub[2].

> 2.  How to invoke squeak as a single window app.

     I would run Caffeine[3] in a web browser. It's built upon
SqueakJS[4] with its JavaScript bridge, and has support for a bunch of
DOM elements. It would be good to add support for React or some other
SPA JS framework.


     hope this helps,

-C

[1] http://netjam.org/quoth
[2] https://github.com/ccrraaiigg/node-caffeine
[3] https://caffeine.js.org
[4] https://squeak.js.org

--
Craig Latta
Black Page Digital
Amsterdam :: San Francisco
[hidden email]
+31   6 2757 7177 (SMS ok)
+ 1 415  287 3547 (no SMS)


Reply | Threaded
Open this post in threaded view
|

Re: Squeak as script and/or single window app

keithy
In reply to this post by Peter Fitzgibbons

ST/X has this facility

http://live.exept.de/doc/online/english/getstart/TOP.html#SCRIPTING_EXAMPLES

Pharo has some command line handling

http://get.pharo.org

There is/was coral

https://www.youtube.com/watch?v=HLb_rMcNN6k

Bash replacements are trendy now, what with fish and zsh, how about smash!

I think that we ought to be able to invoke like php, ruby and python to play equally in their world, and this should be part of every small talkers toolkit, irrespective of personal allegiance.

Definitely a candidate for some standardisation

Keith

On 3 Aug 2018, at 5:35, Peter Fitzgibbons wrote:

Hello All,
Could someone point me to resources on these two topics:
1. How to use squeak as a cli? ( thistle is not “how to invoke system
scripts within squeak” )

2. How to invoke squeak as a single window app.

Thanks in advance all

Kindest Regards,
Peter Fitzgibbons
--
Peter Fitzgibbons
(224) 307-9689