Comments on: Develop in Pharo, Run on JavaScript http://car.imt-lille-douai.fr/2015/07/develop-in-pharo-run-on-javascript/ with Dynamic Languages Mon, 22 Jan 2018 13:42:57 +0000 hourly 1 http://wordpress.org/?v=3.4.2 By: Harsha Kadekar http://car.imt-lille-douai.fr/2015/07/develop-in-pharo-run-on-javascript/#comment-26099 Harsha Kadekar Fri, 06 Nov 2015 11:31:01 +0000 http://car.mines-douai.fr/?p=1215#comment-26099 Hi, I tried first step - workspace := JbWorkspaceForWeb open. The next sentence is throwing error workspace javaScriptBridge loadClass: JbCounter. It is throwing Message Does not understand exception Could you please help me on this. I am new to pharo and smalltalk. I was able to produce some visualization using Roassal. Now want to convert them into javascript Hi,

I tried first step –
workspace := JbWorkspaceForWeb open.

The next sentence is throwing error
workspace javaScriptBridge loadClass: JbCounter.

It is throwing Message Does not understand exception

Could you please help me on this. I am new to pharo and smalltalk. I was able to produce some visualization using Roassal. Now want to convert them into javascript

]]>
By: noury http://car.imt-lille-douai.fr/2015/07/develop-in-pharo-run-on-javascript/#comment-24746 noury Tue, 14 Jul 2015 13:39:28 +0000 http://car.mines-douai.fr/?p=1215#comment-24746 You need to launch PharoJS workspace. In a plain workspace or GT playground evaluate the following expression: <code> workspace := JbWorkspaceForWeb open. </code> This will open pink workspace, this is the current PharoJS workspace. It also launches a server on Pharo side and opens a web browser that is connected to the server. Now, you can evaluate any Smalltalk expression, and see it performing on the web browser. To load a class defined in Pharo, say the JbCounter example provided with PharoJS, you need to go back to the plain Pharo workspace and evaluate: <code> workspace javaScriptBridge loadClass: JbCounter. </code> You'll see on the web browser that the JbCounter javascript code was generated and loaded. Now, you can play with the JbCoutner in the PharoJS (pink) workspace, and evaluate expressions such as: <code> counter := JbCounter new. counter count. counter increment. </code> I'm making a video showing this and more. It will be soon online :-) You need to launch PharoJS workspace. In a plain workspace or GT playground evaluate the following expression:


workspace := JbWorkspaceForWeb open.

This will open pink workspace, this is the current PharoJS workspace. It also launches a server on Pharo side and opens a web browser that is connected to the server. Now, you can evaluate any Smalltalk expression, and see it performing on the web browser.

To load a class defined in Pharo, say the JbCounter example provided with PharoJS, you need to go back to the plain Pharo workspace and evaluate:


workspace javaScriptBridge loadClass: JbCounter.

You’ll see on the web browser that the JbCounter javascript code was generated and loaded. Now, you can play with the JbCoutner in the PharoJS (pink) workspace, and evaluate expressions such as:


counter := JbCounter new.
counter count.
counter increment.

I’m making a video showing this and more. It will be soon online :-)

]]>
By: AndT Burnett http://car.imt-lille-douai.fr/2015/07/develop-in-pharo-run-on-javascript/#comment-24735 AndT Burnett Sun, 12 Jul 2015 19:28:59 +0000 http://car.mines-douai.fr/?p=1215#comment-24735 this looks very cool indeed. I have downloaded the code, and the web browser shows that the JavaScript functions are loaded when I go to local host:12345. However, evaluating code in the workspace doesn't show anything in the browser console. No errors in either the web browser it pharo 4.0. Where should I start to looking for the problem? this looks very cool indeed.

I have downloaded the code, and the web browser shows that the JavaScript functions are loaded when I go to local host:12345.

However, evaluating code in the workspace doesn’t show anything in the browser console. No errors in either the web browser it pharo 4.0.

Where should I start to looking for the problem?

]]>