First shoot

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

First shoot

abergel
Hi Again :-)

So, I compiled a fraction of the BBC News JavaScript application. And I started to visualize their JavaScript application.

Here are my two tries:

So, it seems to work well :-) Happy I am :-)

Cheers,
Alexandre

[ NB: I put the moose mailing list in copy since this may have a great interest in the community ]
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
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: First shoot

Tudor Girba-2
Hi,

Very nice.

How was it parsed? Also, is the meta-model available?

Doru

--

"Every thing has its own flow"

On 11 Mar 2015, at 18:24, Alexandre Bergel <[hidden email]> wrote:

Hi Again :-)

So, I compiled a fraction of the BBC News JavaScript application. And I started to visualize their JavaScript application.

Here are my two tries:
<Screen Shot 2015-03-11 at 2.14.44 PM.png><Screen Shot 2015-03-11 at 2.21.40 PM.png>

So, it seems to work well :-) Happy I am :-)

Cheers,
Alexandre

[ NB: I put the moose mailing list in copy since this may have a great interest in the community ]
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



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

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

Re: First shoot

abergel
Yes, this is still early work. My email was more saying ‘Hey! We are working on this’ than ‘We have something cool to share right now’. 

Leonardo use Esprima, a JavaScript parser to get a JSON. We then import it in Moose.

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



On Mar 11, 2015, at 3:38 PM, Tudor Girba <[hidden email]> wrote:

Hi,

Very nice.

How was it parsed? Also, is the meta-model available?

Doru

--

"Every thing has its own flow"

On 11 Mar 2015, at 18:24, Alexandre Bergel <[hidden email]> wrote:

Hi Again :-)

So, I compiled a fraction of the BBC News JavaScript application. And I started to visualize their JavaScript application.

Here are my two tries:
<Screen Shot 2015-03-11 at 2.14.44 PM.png><Screen Shot 2015-03-11 at 2.21.40 PM.png>

So, it seems to work well :-) Happy I am :-)

Cheers,
Alexandre

[ NB: I put the moose mailing list in copy since this may have a great interest in the community ]
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



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


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

Re: First shoot

Tudor Girba-2
Hi,

Great to hear. Indeed this will be a valuable addition.

What about the meta-model? In the screenshot I saw FAMIXJsObject. Where is that packaged?

Cheers,
Doru



On Wed, Mar 11, 2015 at 9:27 PM, Alexandre Bergel <[hidden email]> wrote:
Yes, this is still early work. My email was more saying ‘Hey! We are working on this’ than ‘We have something cool to share right now’. 

Leonardo use Esprima, a JavaScript parser to get a JSON. We then import it in Moose.

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



On Mar 11, 2015, at 3:38 PM, Tudor Girba <[hidden email]> wrote:

Hi,

Very nice.

How was it parsed? Also, is the meta-model available?

Doru

--

"Every thing has its own flow"

On 11 Mar 2015, at 18:24, Alexandre Bergel <[hidden email]> wrote:

Hi Again :-)

So, I compiled a fraction of the BBC News JavaScript application. And I started to visualize their JavaScript application.

Here are my two tries:
<Screen Shot 2015-03-11 at 2.14.44 PM.png><Screen Shot 2015-03-11 at 2.21.40 PM.png>

So, it seems to work well :-) Happy I am :-)

Cheers,
Alexandre

[ NB: I put the moose mailing list in copy since this may have a great interest in the community ]
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



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


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




--

"Every thing has its own flow"

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

Re: First shoot

Nicolas Anquetil
In reply to this post by abergel

you mean these are classes extracted from the JS code?

if so, what are the (few) links?

nicolas

On 11/03/2015 18:24, Alexandre Bergel wrote:
Hi Again :-)

So, I compiled a fraction of the BBC News JavaScript application. And I started to visualize their JavaScript application.

Here are my two tries:

So, it seems to work well :-) Happy I am :-)

Cheers,
Alexandre

[ NB: I put the moose mailing list in copy since this may have a great interest in the community ]
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
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: First shoot

abergel
I was thinking that the strategy to detect classes (Section III.A from the paper) could be implemented in Moose, on the class FAMIXJSObject ?

The link are about the nesting I think using #belongTo

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



On Mar 11, 2015, at 6:42 PM, Nicolas Anquetil <[hidden email]> wrote:


you mean these are classes extracted from the JS code?

if so, what are the (few) links?

nicolas

On 11/03/2015 18:24, Alexandre Bergel wrote:
Hi Again :-)

So, I compiled a fraction of the BBC News JavaScript application. And I started to visualize their JavaScript application.

Here are my two tries:
<Mail Attachment.png><Mail Attachment.png>

So, it seems to work well :-) Happy I am :-)

Cheers,
Alexandre

[ NB: I put the moose mailing list in copy since this may have a great interest in the community ]
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
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: First shoot

Leonardo Silva

On Thu, Mar 12, 2015 at 2:08 PM, Alexandre Bergel <[hidden email]> wrote:
I was thinking that the strategy to detect classes (Section III.A from the paper) could be implemented in Moose, on the class FAMIXJSObject ?

The strategy to detect classes is implemented in Pharo. It reads the FAMIX-JS meta model and creates instances of FAMIXClass, FAMIXInheritance, FAMIXMethod and FAMIXAttributes.

Try this with the "js model" you already have:

js1 := JSClassFinder new.
js1 famixJSModel: (js model).
js1 searchJSClasses.
js1 classModel.


The link are about the nesting I think using #belongTo

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



On Mar 11, 2015, at 6:42 PM, Nicolas Anquetil <[hidden email]> wrote:


you mean these are classes extracted from the JS code?

if so, what are the (few) links?

nicolas

On 11/03/2015 18:24, Alexandre Bergel wrote:
Hi Again :-)

So, I compiled a fraction of the BBC News JavaScript application. And I started to visualize their JavaScript application.

Here are my two tries:
<Mail Attachment.png><Mail Attachment.png>

So, it seems to work well :-) Happy I am :-)

Cheers,
Alexandre

[ NB: I put the moose mailing list in copy since this may have a great interest in the community ]
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
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: First shoot

Tudor Girba-2
Hi,

Could you please let me know where the JS meta-model is defined? I am looking for a Gofer script to get the code :)

Doru

On Fri, Mar 13, 2015 at 10:35 AM, Leonardo Silva <[hidden email]> wrote:

On Thu, Mar 12, 2015 at 2:08 PM, Alexandre Bergel <[hidden email]> wrote:
I was thinking that the strategy to detect classes (Section III.A from the paper) could be implemented in Moose, on the class FAMIXJSObject ?

The strategy to detect classes is implemented in Pharo. It reads the FAMIX-JS meta model and creates instances of FAMIXClass, FAMIXInheritance, FAMIXMethod and FAMIXAttributes.

Try this with the "js model" you already have:

js1 := JSClassFinder new.
js1 famixJSModel: (js model).
js1 searchJSClasses.
js1 classModel.


The link are about the nesting I think using #belongTo

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



On Mar 11, 2015, at 6:42 PM, Nicolas Anquetil <[hidden email]> wrote:


you mean these are classes extracted from the JS code?

if so, what are the (few) links?

nicolas

On 11/03/2015 18:24, Alexandre Bergel wrote:
Hi Again :-)

So, I compiled a fraction of the BBC News JavaScript application. And I started to visualize their JavaScript application.

Here are my two tries:
<Mail Attachment.png><Mail Attachment.png>

So, it seems to work well :-) Happy I am :-)

Cheers,
Alexandre

[ NB: I put the moose mailing list in copy since this may have a great interest in the community ]
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.







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




--

"Every thing has its own flow"

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

Re: First shoot

Leonardo Silva
On Fri, Mar 13, 2015 at 10:43 AM, Tudor Girba <[hidden email]> wrote:
Hi,

Hi
 
Could you please let me know where the JS meta-model is defined? I am looking for a Gofer script to get the code :)

You can find it here:

MCHttpRepository
user: ''
password: ''
 
I am still working on it. It lacks documentation and more tests with JS applications.
But you can try it !

Leonardo


Doru

On Fri, Mar 13, 2015 at 10:35 AM, Leonardo Silva <[hidden email]> wrote:

On Thu, Mar 12, 2015 at 2:08 PM, Alexandre Bergel <[hidden email]> wrote:
I was thinking that the strategy to detect classes (Section III.A from the paper) could be implemented in Moose, on the class FAMIXJSObject ?

The strategy to detect classes is implemented in Pharo. It reads the FAMIX-JS meta model and creates instances of FAMIXClass, FAMIXInheritance, FAMIXMethod and FAMIXAttributes.

Try this with the "js model" you already have:

js1 := JSClassFinder new.
js1 famixJSModel: (js model).
js1 searchJSClasses.
js1 classModel.


The link are about the nesting I think using #belongTo

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



On Mar 11, 2015, at 6:42 PM, Nicolas Anquetil <[hidden email]> wrote:


you mean these are classes extracted from the JS code?

if so, what are the (few) links?

nicolas

On 11/03/2015 18:24, Alexandre Bergel wrote:
Hi Again :-)

So, I compiled a fraction of the BBC News JavaScript application. And I started to visualize their JavaScript application.

Here are my two tries:
<Mail Attachment.png><Mail Attachment.png>

So, it seems to work well :-) Happy I am :-)

Cheers,
Alexandre

[ NB: I put the moose mailing list in copy since this may have a great interest in the community ]
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
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: First shoot

Marco Tulio Valente
Hi Girba,

Leonardo is my PhD student and he is visiting Lille for 6 months.

We really would like to contribute to JavaScript analysis in Moose. So
any comments, suggestions are welcome.

Maybe what we have today is more like a prototype, but Leonardo has
time to work on something more robust.

--
Marco Tulio.


On Fri, Mar 13, 2015 at 6:59 AM, Leonardo Silva
<[hidden email]> wrote:

> On Fri, Mar 13, 2015 at 10:43 AM, Tudor Girba <[hidden email]> wrote:
>>
>> Hi,
>>
> Hi
>
>>
>> Could you please let me know where the JS meta-model is defined? I am
>> looking for a Gofer script to get the code :)
>
>
> You can find it here:
>
> MCHttpRepository
> location: 'http://smalltalkhub.com/mc/LeonardoHumberto/Famix-JS/main'
> user: ''
> password: ''
>
> I am still working on it. It lacks documentation and more tests with JS
> applications.
> But you can try it !
>
> Leonardo
>
>>
>> Doru
>>
>> On Fri, Mar 13, 2015 at 10:35 AM, Leonardo Silva
>> <[hidden email]> wrote:
>>>
>>>
>>> On Thu, Mar 12, 2015 at 2:08 PM, Alexandre Bergel
>>> <[hidden email]> wrote:
>>>>
>>>> I was thinking that the strategy to detect classes (Section III.A from
>>>> the paper) could be implemented in Moose, on the class FAMIXJSObject ?
>>>
>>>
>>> The strategy to detect classes is implemented in Pharo. It reads the
>>> FAMIX-JS meta model and creates instances of FAMIXClass, FAMIXInheritance,
>>> FAMIXMethod and FAMIXAttributes.
>>>
>>> Try this with the "js model" you already have:
>>>
>>> js1 := JSClassFinder new.
>>> js1 famixJSModel: (js model).
>>> js1 searchJSClasses.
>>> js1 classModel.
>>>
>>>>
>>>> The link are about the nesting I think using #belongTo
>>>>
>>>> Alexandre
>>>> --
>>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>>> Alexandre Bergel  http://www.bergel.eu
>>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>>
>>>>
>>>>
>>>> On Mar 11, 2015, at 6:42 PM, Nicolas Anquetil
>>>> <[hidden email]> wrote:
>>>>
>>>>
>>>> you mean these are classes extracted from the JS code?
>>>>
>>>> if so, what are the (few) links?
>>>>
>>>> nicolas
>>>>
>>>> On 11/03/2015 18:24, Alexandre Bergel wrote:
>>>>
>>>> Hi Again :-)
>>>>
>>>> So, I compiled a fraction of the BBC News JavaScript application. And I
>>>> started to visualize their JavaScript application.
>>>>
>>>> Here are my two tries:
>>>> <Mail Attachment.png><Mail Attachment.png>
>>>>
>>>> So, it seems to work well :-) Happy I am :-)
>>>>
>>>> Cheers,
>>>> Alexandre
>>>>
>>>> [ NB: I put the moose mailing list in copy since this may have a great
>>>> interest in the community ]
>>>> --
>>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>>> 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: First shoot

Tudor Girba-2
Hi,

Nice to meet you. Please call me Doru :)

Sounds great. Please keep us posted with the progress so that we can provide feedback.

Cheers,
Doru



On Fri, Mar 13, 2015 at 12:43 PM, Marco Tulio Valente <[hidden email]> wrote:
Hi Girba,

Leonardo is my PhD student and he is visiting Lille for 6 months.

We really would like to contribute to JavaScript analysis in Moose. So
any comments, suggestions are welcome.

Maybe what we have today is more like a prototype, but Leonardo has
time to work on something more robust.

--
Marco Tulio.


On Fri, Mar 13, 2015 at 6:59 AM, Leonardo Silva
<[hidden email]> wrote:
> On Fri, Mar 13, 2015 at 10:43 AM, Tudor Girba <[hidden email]> wrote:
>>
>> Hi,
>>
> Hi
>
>>
>> Could you please let me know where the JS meta-model is defined? I am
>> looking for a Gofer script to get the code :)
>
>
> You can find it here:
>
> MCHttpRepository
> location: 'http://smalltalkhub.com/mc/LeonardoHumberto/Famix-JS/main'
> user: ''
> password: ''
>
> I am still working on it. It lacks documentation and more tests with JS
> applications.
> But you can try it !
>
> Leonardo
>
>>
>> Doru
>>
>> On Fri, Mar 13, 2015 at 10:35 AM, Leonardo Silva
>> <[hidden email]> wrote:
>>>
>>>
>>> On Thu, Mar 12, 2015 at 2:08 PM, Alexandre Bergel
>>> <[hidden email]> wrote:
>>>>
>>>> I was thinking that the strategy to detect classes (Section III.A from
>>>> the paper) could be implemented in Moose, on the class FAMIXJSObject ?
>>>
>>>
>>> The strategy to detect classes is implemented in Pharo. It reads the
>>> FAMIX-JS meta model and creates instances of FAMIXClass, FAMIXInheritance,
>>> FAMIXMethod and FAMIXAttributes.
>>>
>>> Try this with the "js model" you already have:
>>>
>>> js1 := JSClassFinder new.
>>> js1 famixJSModel: (js model).
>>> js1 searchJSClasses.
>>> js1 classModel.
>>>
>>>>
>>>> The link are about the nesting I think using #belongTo
>>>>
>>>> Alexandre
>>>> --
>>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>>> Alexandre Bergel  http://www.bergel.eu
>>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>>
>>>>
>>>>
>>>> On Mar 11, 2015, at 6:42 PM, Nicolas Anquetil
>>>> <[hidden email]> wrote:
>>>>
>>>>
>>>> you mean these are classes extracted from the JS code?
>>>>
>>>> if so, what are the (few) links?
>>>>
>>>> nicolas
>>>>
>>>> On 11/03/2015 18:24, Alexandre Bergel wrote:
>>>>
>>>> Hi Again :-)
>>>>
>>>> So, I compiled a fraction of the BBC News JavaScript application. And I
>>>> started to visualize their JavaScript application.
>>>>
>>>> Here are my two tries:
>>>> <Mail Attachment.png><Mail Attachment.png>
>>>>
>>>> So, it seems to work well :-) Happy I am :-)
>>>>
>>>> Cheers,
>>>> Alexandre
>>>>
>>>> [ NB: I put the moose mailing list in copy since this may have a great
>>>> interest in the community ]
>>>> --
>>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>>> Alexandre Bergel  http://www.bergel.eu
>>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>>
>>>>
>>>>
>>>>
>>>>
>



--

"Every thing has its own flow"

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