Porting Hapax to Pharo

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

Porting Hapax to Pharo

simondenier
I would like to port Hapax from the SCG store to Pharo (seems like a good candidate tool to perform some analysis here on my current project).

Some bits have already been ported in Moose-Algos, but I don't think that the Hapax engine was ported itself. Unfortunately my VW image seems completely broken (doesn't launch or hand on start up) so I can't perform the initial step of building MC packages.

Does anybody have a working VW image? If yes, can you load Hapax and export it to the squeaksource project Moose-Algos?
http://scg.unibe.ch/wiki/howtos/portingfromvisualworkstosqueak

--
Simon Denier




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Porting Hapax to Pharo

abergel
Yes, that would be cool!
In August I will start my lecture on Software Quality. Students will use Moose and all the tools that work well on it. It would be cool to use Hapax.

Cheers,
Alexandre


On 17 Jun 2011, at 07:26, Simon Denier wrote:

> I would like to port Hapax from the SCG store to Pharo (seems like a good candidate tool to perform some analysis here on my current project).
>
> Some bits have already been ported in Moose-Algos, but I don't think that the Hapax engine was ported itself. Unfortunately my VW image seems completely broken (doesn't launch or hand on start up) so I can't perform the initial step of building MC packages.
>
> Does anybody have a working VW image? If yes, can you load Hapax and export it to the squeaksource project Moose-Algos?
> http://scg.unibe.ch/wiki/howtos/portingfromvisualworkstosqueak
>
> --
> Simon Denier
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Porting Hapax to Pharo

simondenier

Started to take a look at this in VW. I am not sure about what tools/viz are available by default? As well as test coverage, sample, how to launch the tools etc :)

I should have looked before but there is already a port from 2008 (from Romain, Adrian, and Damien P)
Though I don't have the rights to push code in it.

Also there are more recent changes in the SCG Store (I am not sure if they are significant) so my guess is that it's better to start from the latest one.

So
1) any tip about testing the code and using the tool is welcome
2) I need access to the SS repository (I don't want to create another repo for that)



On 17 juin 2011, at 15:36, Alexandre Bergel wrote:

Yes, that would be cool!
In August I will start my lecture on Software Quality. Students will use Moose and all the tools that work well on it. It would be cool to use Hapax.

Cheers,
Alexandre


On 17 Jun 2011, at 07:26, Simon Denier wrote:

I would like to port Hapax from the SCG store to Pharo (seems like a good candidate tool to perform some analysis here on my current project).

Some bits have already been ported in Moose-Algos, but I don't think that the Hapax engine was ported itself. Unfortunately my VW image seems completely broken (doesn't launch or hand on start up) so I can't perform the initial step of building MC packages.

Does anybody have a working VW image? If yes, can you load Hapax and export it to the squeaksource project Moose-Algos?
http://scg.unibe.ch/wiki/howtos/portingfromvisualworkstosqueak

--
Simon Denier




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
Simon Denier




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Porting Hapax to Pharo

simondenier
In reply to this post by simondenier

On 17 juin 2011, at 13:26, Simon Denier wrote:

Does anybody have a working VW image? If yes, can you load Hapax and export it to the squeaksource project Moose-Algos?
http://scg.unibe.ch/wiki/howtos/portingfromvisualworkstosqueak


Can anyone remind me of how to access a package in Visual works?

I need to run the following script, except I don't know how to get the package object in VW
| classPrefix categoryName |
classPrefix := 'XY'.
categoryName := 'Squeak Category Name'.
 PackageName classes do: [ :each |
	each category: categoryName.
	each renameAndFixSourceTo: classPrefix , each name ]



--
Simon Denier




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Porting Hapax to Pharo

simondenier
Best I can come up with for now


| classPrefix categoryName p  classes |
classPrefix := 'Mal'.
categoryName := 'Moose-Algos-LinearAlgebra'.
p := Registry packageNamed: 'LinearAlgebra'.
classes := p allClasses collect: #actual.
classes do: [ :each |
each category: categoryName.
each renameAndFixSourceTo: classPrefix , each name ]



On 23 juin 2011, at 11:30, Simon Denier wrote:


On 17 juin 2011, at 13:26, Simon Denier wrote:

Does anybody have a working VW image? If yes, can you load Hapax and export it to the squeaksource project Moose-Algos?
http://scg.unibe.ch/wiki/howtos/portingfromvisualworkstosqueak


Can anyone remind me of how to access a package in Visual works?

I need to run the following script, except I don't know how to get the package object in VW
| classPrefix categoryName |
classPrefix := 'XY'.
categoryName := 'Squeak Category Name'.
 PackageName classes do: [ :each |
	each category: categoryName.
	each renameAndFixSourceTo: classPrefix , each name ]



--
Simon Denier




--
Simon Denier




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Porting Hapax to Pharo

simondenier

Fix, the previous one was incorrect (also renamed classes which were extended)

| classPrefix categoryName pak  |
classPrefix := 'Mal'.
categoryName := 'Moose-Algos-LinearAlgebra'.
pak := Registry packageNamed: 'LinearAlgebra (more)'.
pak allDefinedClasses do: [ :each |
each category: categoryName.
each renameAndFixSourceTo: classPrefix , each name ]


Now where do I put this stuff?






On 23 juin 2011, at 11:57, Simon Denier wrote:

Best I can come up with for now


| classPrefix categoryName p  classes |
classPrefix := 'Mal'.
categoryName := 'Moose-Algos-LinearAlgebra'.
p := Registry packageNamed: 'LinearAlgebra'.
classes := p allClasses collect: #actual.
classes do: [ :each |
each category: categoryName.
each renameAndFixSourceTo: classPrefix , each name ]



On 23 juin 2011, at 11:30, Simon Denier wrote:


On 17 juin 2011, at 13:26, Simon Denier wrote:

Does anybody have a working VW image? If yes, can you load Hapax and export it to the squeaksource project Moose-Algos?
http://scg.unibe.ch/wiki/howtos/portingfromvisualworkstosqueak


Can anyone remind me of how to access a package in Visual works?

I need to run the following script, except I don't know how to get the package object in VW
| classPrefix categoryName |
classPrefix := 'XY'.
categoryName := 'Squeak Category Name'.
 PackageName classes do: [ :each |
	each category: categoryName.
	each renameAndFixSourceTo: classPrefix , each name ]



--
Simon Denier




--
Simon Denier




--
Simon Denier




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Porting Hapax to Pharo

simondenier

So frustrating: I have to put class extensions by hand in Pharo... (at least it's there, just they don't appear as class extensions)


On 23 juin 2011, at 13:36, Simon Denier wrote:


Fix, the previous one was incorrect (also renamed classes which were extended)

| classPrefix categoryName pak  |
classPrefix := 'Mal'.
categoryName := 'Moose-Algos-LinearAlgebra'.
pak := Registry packageNamed: 'LinearAlgebra (more)'.
pak allDefinedClasses do: [ :each |
each category: categoryName.
each renameAndFixSourceTo: classPrefix , each name ]


Now where do I put this stuff?






On 23 juin 2011, at 11:57, Simon Denier wrote:

Best I can come up with for now


| classPrefix categoryName p  classes |
classPrefix := 'Mal'.
categoryName := 'Moose-Algos-LinearAlgebra'.
p := Registry packageNamed: 'LinearAlgebra'.
classes := p allClasses collect: #actual.
classes do: [ :each |
each category: categoryName.
each renameAndFixSourceTo: classPrefix , each name ]



On 23 juin 2011, at 11:30, Simon Denier wrote:


On 17 juin 2011, at 13:26, Simon Denier wrote:

Does anybody have a working VW image? If yes, can you load Hapax and export it to the squeaksource project Moose-Algos?
http://scg.unibe.ch/wiki/howtos/portingfromvisualworkstosqueak


Can anyone remind me of how to access a package in Visual works?

I need to run the following script, except I don't know how to get the package object in VW
| classPrefix categoryName |
classPrefix := 'XY'.
categoryName := 'Squeak Category Name'.
 PackageName classes do: [ :each |
	each category: categoryName.
	each renameAndFixSourceTo: classPrefix , each name ]



--
Simon Denier




--
Simon Denier




--
Simon Denier




--
Simon Denier




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Porting Hapax to Pharo

abergel
> So frustrating: I have to put class extensions by hand in Pharo... (at least it's there, just they don't appear as class extensions)

:-(

Alexandre


>
>
> On 23 juin 2011, at 13:36, Simon Denier wrote:
>
>>
>> Fix, the previous one was incorrect (also renamed classes which were extended)
>>
>> | classPrefix categoryName pak  |
>> classPrefix := 'Mal'.
>> categoryName := 'Moose-Algos-LinearAlgebra'.
>> pak := Registry packageNamed: 'LinearAlgebra (more)'.
>> pak allDefinedClasses do: [ :each |
>> each category: categoryName.
>> each renameAndFixSourceTo: classPrefix , each name ]
>>
>>
>> Now where do I put this stuff?
>>
>> Here? http://www.moosetechnology.org/tools/vw
>>
>> I can't update http://scg.unibe.ch/wiki/howtos/portingfromvisualworkstosqueak
>>
>>
>>
>>
>> On 23 juin 2011, at 11:57, Simon Denier wrote:
>>
>>> Best I can come up with for now
>>>
>>>
>>> | classPrefix categoryName p  classes |
>>> classPrefix := 'Mal'.
>>> categoryName := 'Moose-Algos-LinearAlgebra'.
>>> p := Registry packageNamed: 'LinearAlgebra'.
>>> classes := p allClasses collect: #actual.
>>> classes do: [ :each |
>>> each category: categoryName.
>>> each renameAndFixSourceTo: classPrefix , each name ]
>>>
>>>
>>>
>>> On 23 juin 2011, at 11:30, Simon Denier wrote:
>>>
>>>>
>>>> On 17 juin 2011, at 13:26, Simon Denier wrote:
>>>>
>>>>> Does anybody have a working VW image? If yes, can you load Hapax and export it to the squeaksource project Moose-Algos?
>>>>> http://scg.unibe.ch/wiki/howtos/portingfromvisualworkstosqueak
>>>>
>>>>
>>>> Can anyone remind me of how to access a package in Visual works?
>>>>
>>>> I need to run the following script, except I don't know how to get the package object in VW
>>>> | classPrefix categoryName |
>>>> classPrefix := 'XY'.
>>>> categoryName := 'Squeak Category Name'.
>>>>  PackageName classes do: [ :each |
>>>> each category: categoryName.
>>>> each renameAndFixSourceTo: classPrefix , each name ]
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Simon Denier
>>>>
>>>>
>>>>
>>>
>>> --
>>> Simon Denier
>>>
>>>
>>>
>>
>> --
>> Simon Denier
>>
>>
>>
>
> --
> Simon Denier
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev