[squeak-dev] [ANN] Phobos for Squeak

Pavel Krivanek squeak1 at continentalbrno.cz
Tue Oct 16 09:48:46 UTC 2012


Hi,

this is a problem of Pharo.

-- Pavel

On Mon, Oct 15, 2012 at 10:57 PM, Bob Arning <arning315 at comcast.net> wrote:
> If you are interested in glitches, the app.image includes in Phobos.app has
> this method in CompiledMethod:
>
> putSource: t1 fromParseNode: t2 inFile: t3 withPreamble: t4
>     | t5 t6 |
>     (SourceFiles
>             ifNil: [true]
>             ifNotNil: [(t5 := SourceFiles at: t3) == nil])
>         ifTrue: [^ self
>                 becomeForward: (self copyWithTempsFromMethodNode: t2)].
>     Smalltalk assureStartupStampLogged.
>     t5 setToEnd.
>     t4 value: t5.
>     t6 := RemoteString
>                 newString: t1
>                 onFileNumber: t3
>                 toFile: t5.
>     t5 nextChunkPut: ' '.
>     InMidstOfFileinNotification signal
>         ifFalse: [t5 flush].
>     self setSourcePosition: t6 position inFile: t3
>
> but there are no implementors of #copyWithTempsFromMethodNode:
>
> Cheers,
> Bob
>
>
> On 10/15/12 1:45 PM, Pavel Krivanek wrote:
>>
>> Hi, I use this scripts:
>>
>> ===========
>> without.sh
>> ===========
>> #!/bin/bash
>>
>> which xulrunner >/dev/null 2>&1 || {
>>    [ $(uname) == 'Darwin' ] &&
>> PATH=/Library/Frameworks/XUL.framework/Versions/Current/:${PATH}
>> }
>> xulrunner -app $(cd $(dirname $0); pwd)/application.ini $@
>>
>> ===========
>> withconsole.sh
>> ===========
>> #!/bin/bash
>>
>> $(dirname $0)/without.sh -jsconsole
>>
>>
>> -- Pavel
>>
>> On Mon, Oct 15, 2012 at 6:56 PM, Bob Arning <arning315 at comcast.net> wrote:
>>>
>>> Pavel,
>>>
>>> Looks interesting, but lacking enough unix geekdom, I'm a bit stymied by
>>>
>>> run XULRunner with -jsconsole argument. It shows the JavaScript console
>>>
>>> I tried stuff like this:
>>>
>>> robert-arnings-computer:PhobosDemo.app bob$
>>> Contents/Frameworks/XUL.framework/Versions/16.0/xulrunner --app
>>> /Contents/Resources/application.ini
>>> Error: couldn't parse application.ini.
>>>
>>> and can't seem to find the winning combination. Can you help?
>>>
>>> Thanks,
>>> Bob
>>>
>>>
>>> On 10/13/12 4:29 PM, Pavel Krivanek wrote:
>>>
>>> Hi,
>>>
>>> I created a port of Phobos (framework for creation of native user
>>> interface using XULRunner) to Squeak too.
>>>
>>> http://code.google.com/p/phobos-framework/
>>>
>>> It uses WebClient instead of Zinc. To load Phobos evaluate:
>>>
>>> (Installer repository: 'http://www.squeaksource.com/WebClient')
>>>    addPackage: 'WebClient-Core';
>>>    install.
>>>
>>> (Installer repository: 'http://www.squeaksource.com/Seaside30')
>>>    addPackage: 'Grease-Core';
>>>    addPackage: 'Grease-Pharo-Core';
>>>    addPackage: 'Seaside-Pharo-Continuation';
>>>    install.
>>>
>>> (Installer repository: 'http://www.squeaksource.com/SCouchDB')
>>>    addPackage: 'JSON';
>>>    install.
>>>
>>> (Installer repository:
>>> 'http://smalltalkhub.com/mc/PavelKrivanek/Phobos/main')
>>>    addPackage: 'Phobos-Core';
>>>    addPackage: 'Phobos-XUL';
>>>    addPackage: 'Phobos-HTML';
>>>    addPackage: 'Phobos-Demo';
>>>    addPackage: 'Phobos-WebClient';
>>>    install.
>>>
>>> To start the server evaluate:
>>>
>>> app := PhobosDemo new.
>>> app startOnWebClient.
>>>
>>> ATTENTION: You will need to modify start.st script in the bundle.
>>>
>>> There is one main ugly difference from Pharo, If an error on Smalltalk
>>> side is raised, no debugger is opened. You will get the information
>>> about an error only on the JavaScript side in JSConsole:
>>>
>>> "
>>> Error: The connection to ws://localhost:46528/newSession has
>>> terminated unexpectedly. Some data may have been transferred.
>>> Source File: chrome://myapp/content/main.js
>>> Line: 132
>>> "
>>>
>>> Cheers,
>>> -- Pavel
>>>
>>>
>>>
>>>
>>>
>>>
>>
>
>


More information about the Squeak-dev mailing list