Hi Noury,
 
thanks for the feedback. For windows to open a URL one can use:
 
  NBWin32Shell shellOpen: 'http://www.google.de'
 
I adopted the 
 
  startJavaScriptInterpreter
   |url|
    url := 'http://localhost:', self port asString.
    Smalltalk os isWindows ifTrue: [ ^NBWin32Shell shellOpen: url ].
    OSProcess command: 'open ', url
 
and run 

    workspace := JbWorkspaceForWeb open.
 
It basically runs (still throwing some Zinc errors - but I can push some eval scripts to the browser
(Chrome). No time today to look deeper today.
 
Please add me as a contributor so I can provide the fix/fixes or make the repo public (if possible).
 
Thanks
T.
 
 
Gesendet: Mittwoch, 15. Juli 2015 um 12:19 Uhr
Von: "Noury Bouraqadi" <bouraq...@gmail.com>
An: "Torsten Bergmann" <asta...@gmx.de>
Cc: "Pharo users users" <pharo-users@lists.pharo.org>
Betreff: Re: PharoJS
Hi Torsten,
 
Thanks for the feedback. 
I have been pushed to make it public right before ESUG. 
I'm trying my best to make it clean and documented. 
 
If you are using a Mac, the examples I provide on http://car.mines-douai.fr/pharojs/ should work out of the box.
 
For other platforms (Windows & Linux) I need the command line to open a web browser on a specific URL.
Any hint?
 
Regarding the naming PharoJS is more than a bridge. It allows:
-Develop and test apps in Pharo
-Generate a _javascript_ file for a standalone app
 
Noury
 
On 15 Jul 2015, at 11:28, Torsten Bergmann <asta...@gmx.de> wrote:
 
Clément Bera wrote:
 
What is PharoJS ? Are you talking about Pharo on top of the Bert's SqueakJS VM ?
If so, it starts, but some primitives fail making it freeze after a short
while as you describe.
It would be fun to have it running even though most of the Pharo folks went
into the Amber direction for Pharo on _javascript_.

Yes there is SqueakJS from Bert https://bertfreudenberg.github.io/SqueakJS/
and I would have expected "PharoJS" to be the same for Pharo.

At least I would "reserve" the name for the case Pharo images work on it
as well.


Unfortunately Noury Bouraqadi now took this "PharoJS" name for his
Pharo -> _javascript_ compiler

  http://car.mines-douai.fr/2015/07/develop-in-pharo-run-on-_javascript_/

leading a little bit to this confusion.

I would have called the project "Pharo _javascript_Bridge" like the config and the
repo http://smalltalkhub.com/#!/~noury/_javascript_Bridge

I loaded the config from the SmalltalkHub repo and then:

  ConfigurationOfJavaScriptBridge loadBleedingEdge

tried JbClientControllerBridge startOn:80

but were hit by several errors.

In my opinion a minimal HOWTO would be required.

Thanks
Torsten

Reply via email to