Athens for Amber

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

Athens for Amber

horrido
Sorry for the newbie question, but how would I go about installing/integrating the Athens library? I never know what to do with Github.

https://github.com/matthias-springer/amber-athens-library

This thing hasn't been updated for over 2 years!

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Athens for Amber

matthias.springer
Hi there,

I have not been working on this for a while, but the latest version is here: https://github.com/matthias-springer/amber-athens. For an Athens tutorial see here: http://m-sp.org/amber-athens/ (mostly copied over from the Pharo implementation 2 years ago).

Besides adding all the Athens-* packages to your project, you also have to wrap some classes in boot.js (that what I did 2 years ago, maybe there is a better way to do this now).

smalltalk.wrapClassName("Image", "Athens-Amber", Image, smalltalk.Object);
smalltalk.wrapClassName("CanvasContext2D", "Athens-Amber", CanvasRenderingContext2D, smalltalk.Object);
smalltalk.wrapClassName("CanvasGradient", "Athens-Amber", CanvasGradient, smalltalk.Object);



On Fri, Jun 19, 2015 at 3:47 PM, Richard Eng <[hidden email]> wrote:
Sorry for the newbie question, but how would I go about installing/integrating the Athens library? I never know what to do with Github.


This thing hasn't been updated for over 2 years!

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
Best regards,
Matthias Springer

Student M.Sc. IT Systems Engineering (Hasso Plattner Institute)
[hidden email] * Stahnsdorfer Straße 144b, 14482 Potsdam, Germany

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Athens for Amber

horrido
Okay, so if I understand your repository correctly, I can ignore everything but the Athens files. I grab the Athens*.st files from the 'st' directory (the corresponding .js files in the 'js' directory are presumably auto-generated). I load these Athens packages into my existing Amber installation. Then I fiddle with boot.js and I'm good to go?


On Friday, 19 June 2015 10:00:36 UTC-4, Matthias Springer wrote:
Hi there,

I have not been working on this for a while, but the latest version is here: <a href="https://github.com/matthias-springer/amber-athens" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fmatthias-springer%2Famber-athens\46sa\75D\46sntz\0751\46usg\75AFQjCNH6QWPlimJxaYWskWfKvBkAviqHpg';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fmatthias-springer%2Famber-athens\46sa\75D\46sntz\0751\46usg\75AFQjCNH6QWPlimJxaYWskWfKvBkAviqHpg';return true;">https://github.com/matthias-springer/amber-athens. For an Athens tutorial see here: <a href="http://m-sp.org/amber-athens/" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fm-sp.org%2Famber-athens%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNGlmTorb1Oj1dccR-7W5T5SP9Cc6A';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fm-sp.org%2Famber-athens%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNGlmTorb1Oj1dccR-7W5T5SP9Cc6A';return true;">http://m-sp.org/amber-athens/ (mostly copied over from the Pharo implementation 2 years ago).

Besides adding all the Athens-* packages to your project, you also have to wrap some classes in boot.js (that what I did 2 years ago, maybe there is a better way to do this now).

smalltalk.wrapClassName("Image", "Athens-Amber", Image, smalltalk.Object);
smalltalk.wrapClassName("CanvasContext2D", "Athens-Amber", CanvasRenderingContext2D, smalltalk.Object);
smalltalk.wrapClassName("CanvasGradient", "Athens-Amber", CanvasGradient, smalltalk.Object);



On Fri, Jun 19, 2015 at 3:47 PM, Richard Eng <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="f40cIbDs4bIJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">horrido...@...> wrote:
Sorry for the newbie question, but how would I go about installing/integrating the Athens library? I never know what to do with Github.

<a href="https://github.com/matthias-springer/amber-athens-library" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fmatthias-springer%2Famber-athens-library\46sa\75D\46sntz\0751\46usg\75AFQjCNErvT9D_7NlWMFgUsR7MXZ5QBjnXw';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fmatthias-springer%2Famber-athens-library\46sa\75D\46sntz\0751\46usg\75AFQjCNErvT9D_7NlWMFgUsR7MXZ5QBjnXw';return true;">https://github.com/matthias-springer/amber-athens-library

This thing hasn't been updated for over 2 years!

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="f40cIbDs4bIJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">amber-lang+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.



--
Best regards,
Matthias Springer

Student M.Sc. IT Systems Engineering (Hasso Plattner Institute)
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="f40cIbDs4bIJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">m...@... * Stahnsdorfer Straße 144b, 14482 Potsdam, Germany

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Athens for Amber

matthias.springer
Exactly, that should work. If something is not working as expected let me know.

On Friday, June 19, 2015, Richard Eng <[hidden email]> wrote:
Okay, so if I understand your repository correctly, I can ignore everything but the Athens files. I grab the Athens*.st files from the 'st' directory (the corresponding .js files in the 'js' directory are presumably auto-generated). I load these Athens packages into my existing Amber installation. Then I fiddle with boot.js and I'm good to go?


On Friday, 19 June 2015 10:00:36 UTC-4, Matthias Springer wrote:
Hi there,

I have not been working on this for a while, but the latest version is here: https://github.com/matthias-springer/amber-athens. For an Athens tutorial see here: http://m-sp.org/amber-athens/ (mostly copied over from the Pharo implementation 2 years ago).

Besides adding all the Athens-* packages to your project, you also have to wrap some classes in boot.js (that what I did 2 years ago, maybe there is a better way to do this now).

smalltalk.wrapClassName("Image", "Athens-Amber", Image, smalltalk.Object);
smalltalk.wrapClassName("CanvasContext2D", "Athens-Amber", CanvasRenderingContext2D, smalltalk.Object);
smalltalk.wrapClassName("CanvasGradient", "Athens-Amber", CanvasGradient, smalltalk.Object);



On Fri, Jun 19, 2015 at 3:47 PM, Richard Eng <[hidden email]> wrote:
Sorry for the newbie question, but how would I go about installing/integrating the Athens library? I never know what to do with Github.


This thing hasn't been updated for over 2 years!

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
Best regards,
Matthias Springer

Student M.Sc. IT Systems Engineering (Hasso Plattner Institute)
[hidden email] * Stahnsdorfer Straße 144b, 14482 Potsdam, Germany

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;amber-lang%2Bunsubscribe@googlegroups.com&#39;);" target="_blank">amber-lang+unsubscribe@....
For more options, visit https://groups.google.com/d/optout.


--
Best regards,
Matthias Springer

Student M.Sc. IT Systems Engineering (Hasso Plattner Institute)
[hidden email] * Stahnsdorfer Straße 144b, 14482 Potsdam, Germany

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Athens for Amber

Herby Vojčík
In reply to this post by horrido


Richard Eng wrote:
> Okay, so if I understand your repository correctly, I can ignore
> everything but the Athens files. I grab the Athens*.st files from the
> 'st' directory (the corresponding .js files in the 'js' directory are
> presumably auto-generated). I load these Athens packages into *my
> existing Amber installation*. Then I fiddle with boot.js and I'm good to go?

Except that "fiddle with boot.js" part. That should not happen - it
_must_ be done externally. Telling anyone to "fiddle with boot.js" is
the path to hell.

Unfortunately, there's still no API that publishes class wrapping to
Smalltalk part, but if there's a need to wrap classes, it just must be
added.

> On Friday, 19 June 2015 10:00:36 UTC-4, Matthias Springer wrote:
>
>     Hi there,
>
>     I have not been working on this for a while, but the latest version
>     is here: https://github.com/matthias-springer/amber-athens
>     <https://github.com/matthias-springer/amber-athens>. For an Athens
>     tutorial see here: http://m-sp.org/amber-athens/
>     <http://m-sp.org/amber-athens/> (mostly copied over from the Pharo
>     implementation 2 years ago).
>
>     Besides adding all the Athens-* packages to your project, you also
>     have to wrap some classes in boot.js (that what I did 2 years ago,
>     maybe there is a better way to do this now).
>
>     smalltalk.wrapClassName("Image", "Athens-Amber", Image,
>     smalltalk.Object);
>     smalltalk.wrapClassName("CanvasContext2D", "Athens-Amber",
>     CanvasRenderingContext2D, smalltalk.Object);
>     smalltalk.wrapClassName("CanvasGradient", "Athens-Amber",
>     CanvasGradient, smalltalk.Object);
>
>
>
>     On Fri, Jun 19, 2015 at 3:47 PM, Richard Eng <[hidden email]
>     <javascript:>> wrote:
>
>         Sorry for the newbie question, but how would I go about
>         installing/integrating the Athens library? I never know what to
>         do with Github.
>
>         https://github.com/matthias-springer/amber-athens-library
>         <https://github.com/matthias-springer/amber-athens-library>
>
>         This thing hasn't been updated for over 2 years!
>
>         --
>         You received this message because you are subscribed to the
>         Google Groups "amber-lang" group.
>         To unsubscribe from this group and stop receiving emails from
>         it, send an email to [hidden email] <javascript:>.
>         For more options, visit https://groups.google.com/d/optout
>         <https://groups.google.com/d/optout>.
>
>
>
>
>     --
>     Best regards,
>     Matthias Springer
>
>     Student M.Sc. IT Systems Engineering (Hasso Plattner Institute)
>     [hidden email] <javascript:> * Stahnsdorfer Straße 144b, 14482
>     Potsdam, Germany
>
> --
> You received this message because you are subscribed to the Google
> Groups "amber-lang" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [hidden email]
> <mailto:[hidden email]>.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Athens for Amber

matthias.springer


On Fri, Jun 19, 2015 at 9:56 PM, Herby Vojčík <[hidden email]> wrote:


Except that "fiddle with boot.js" part. That should not happen - it _must_ be done externally. Telling anyone to "fiddle with boot.js" is the path to hell.

Unfortunately, there's still no API that publishes class wrapping to Smalltalk part, but if there's a need to wrap classes, it just must be added.

Yes. And this could also be useful for other applications. There are many more predefined types (https://developer.mozilla.org/en-US/docs/Web/API).
 

--
Best regards,
Matthias Springer

Student M.Sc. IT Systems Engineering (Hasso Plattner Institute)
[hidden email] * Stahnsdorfer Straße 144b, 14482 Potsdam, Germany

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Athens for Amber

horrido
Is there an OpenGL backend yet? Talk about  this backend goes back 3 years...


On Friday, 19 June 2015 16:05:30 UTC-4, Matthias Springer wrote:


On Fri, Jun 19, 2015 at 9:56 PM, Herby Vojčík <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="DOoeA7HzassJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">he...@...> wrote:


Except that "fiddle with boot.js" part. That should not happen - it _must_ be done externally. Telling anyone to "fiddle with boot.js" is the path to hell.

Unfortunately, there's still no API that publishes class wrapping to Smalltalk part, but if there's a need to wrap classes, it just must be added.

Yes. And this could also be useful for other applications. There are many more predefined types (<a href="https://developer.mozilla.org/en-US/docs/Web/API" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FAPI\46sa\75D\46sntz\0751\46usg\75AFQjCNFDj_dWu3H9hUQTDE3dqrNgocrxuw';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FAPI\46sa\75D\46sntz\0751\46usg\75AFQjCNFDj_dWu3H9hUQTDE3dqrNgocrxuw';return true;">https://developer.mozilla.org/en-US/docs/Web/API).
 

--
Best regards,
Matthias Springer

Student M.Sc. IT Systems Engineering (Hasso Plattner Institute)
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="DOoeA7HzassJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">m...@... * Stahnsdorfer Straße 144b, 14482 Potsdam, Germany

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Athens for Amber

matthias.springer
No, this is just using HTML Canvas right now.

On Fri, Jun 19, 2015 at 10:39 PM, Richard Eng <[hidden email]> wrote:
Is there an OpenGL backend yet? Talk about  this backend goes back 3 years...


On Friday, 19 June 2015 16:05:30 UTC-4, Matthias Springer wrote:


On Fri, Jun 19, 2015 at 9:56 PM, Herby Vojčík <[hidden email]> wrote:


Except that "fiddle with boot.js" part. That should not happen - it _must_ be done externally. Telling anyone to "fiddle with boot.js" is the path to hell.

Unfortunately, there's still no API that publishes class wrapping to Smalltalk part, but if there's a need to wrap classes, it just must be added.

Yes. And this could also be useful for other applications. There are many more predefined types (https://developer.mozilla.org/en-US/docs/Web/API).
 

--
Best regards,
Matthias Springer

Student M.Sc. IT Systems Engineering (Hasso Plattner Institute)
[hidden email] * Stahnsdorfer Straße 144b, 14482 Potsdam, Germany

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
Best regards,
Matthias Springer

Student M.Sc. IT Systems Engineering (Hasso Plattner Institute)
[hidden email] * Stahnsdorfer Straße 144b, 14482 Potsdam, Germany

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Athens for Amber

horrido
In reply to this post by Herby Vojčík
Well, of course, I'm still a novice; I don't know how to write these wrappers. Can anyone give me some tips or guidance?


On Friday, 19 June 2015 15:56:25 UTC-4, Herby wrote:


Richard Eng wrote:
> Okay, so if I understand your repository correctly, I can ignore
> everything but the Athens files. I grab the Athens*.st files from the
> 'st' directory (the corresponding .js files in the 'js' directory are
> presumably auto-generated). I load these Athens packages into *my
> existing Amber installation*. Then I fiddle with boot.js and I'm good to go?

Except that "fiddle with boot.js" part. That should not happen - it
_must_ be done externally. Telling anyone to "fiddle with boot.js" is
the path to hell.

Unfortunately, there's still no API that publishes class wrapping to
Smalltalk part, but if there's a need to wrap classes, it just must be
added.

> On Friday, 19 June 2015 10:00:36 UTC-4, Matthias Springer wrote:
>
>     Hi there,
>
>     I have not been working on this for a while, but the latest version
>     is here: <a href="https://github.com/matthias-springer/amber-athens" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fmatthias-springer%2Famber-athens\46sa\75D\46sntz\0751\46usg\75AFQjCNH6QWPlimJxaYWskWfKvBkAviqHpg';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fmatthias-springer%2Famber-athens\46sa\75D\46sntz\0751\46usg\75AFQjCNH6QWPlimJxaYWskWfKvBkAviqHpg';return true;">https://github.com/matthias-springer/amber-athens
>     <<a href="https://github.com/matthias-springer/amber-athens" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fmatthias-springer%2Famber-athens\46sa\75D\46sntz\0751\46usg\75AFQjCNH6QWPlimJxaYWskWfKvBkAviqHpg';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fmatthias-springer%2Famber-athens\46sa\75D\46sntz\0751\46usg\75AFQjCNH6QWPlimJxaYWskWfKvBkAviqHpg';return true;">https://github.com/matthias-springer/amber-athens>. For an Athens
>     tutorial see here: <a href="http://m-sp.org/amber-athens/" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fm-sp.org%2Famber-athens%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNGlmTorb1Oj1dccR-7W5T5SP9Cc6A';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fm-sp.org%2Famber-athens%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNGlmTorb1Oj1dccR-7W5T5SP9Cc6A';return true;">http://m-sp.org/amber-athens/
>     <<a href="http://m-sp.org/amber-athens/" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fm-sp.org%2Famber-athens%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNGlmTorb1Oj1dccR-7W5T5SP9Cc6A';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fm-sp.org%2Famber-athens%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNGlmTorb1Oj1dccR-7W5T5SP9Cc6A';return true;">http://m-sp.org/amber-athens/> (mostly copied over from the Pharo
>     implementation 2 years ago).
>
>     Besides adding all the Athens-* packages to your project, you also
>     have to wrap some classes in boot.js (that what I did 2 years ago,
>     maybe there is a better way to do this now).
>
>     smalltalk.wrapClassName("Image", "Athens-Amber", Image,
>     smalltalk.Object);
>     smalltalk.wrapClassName("CanvasContext2D", "Athens-Amber",
>     CanvasRenderingContext2D, smalltalk.Object);
>     smalltalk.wrapClassName("CanvasGradient", "Athens-Amber",
>     CanvasGradient, smalltalk.Object);
>
>
>
>     On Fri, Jun 19, 2015 at 3:47 PM, Richard Eng <[hidden email]
>     <javascript:>> wrote:
>
>         Sorry for the newbie question, but how would I go about
>         installing/integrating the Athens library? I never know what to
>         do with Github.
>
>         <a href="https://github.com/matthias-springer/amber-athens-library" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fmatthias-springer%2Famber-athens-library\46sa\75D\46sntz\0751\46usg\75AFQjCNErvT9D_7NlWMFgUsR7MXZ5QBjnXw';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fmatthias-springer%2Famber-athens-library\46sa\75D\46sntz\0751\46usg\75AFQjCNErvT9D_7NlWMFgUsR7MXZ5QBjnXw';return true;">https://github.com/matthias-springer/amber-athens-library
>         <<a href="https://github.com/matthias-springer/amber-athens-library" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fmatthias-springer%2Famber-athens-library\46sa\75D\46sntz\0751\46usg\75AFQjCNErvT9D_7NlWMFgUsR7MXZ5QBjnXw';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fmatthias-springer%2Famber-athens-library\46sa\75D\46sntz\0751\46usg\75AFQjCNErvT9D_7NlWMFgUsR7MXZ5QBjnXw';return true;">https://github.com/matthias-springer/amber-athens-library>
>
>         This thing hasn't been updated for over 2 years!
>
>         --
>         You received this message because you are subscribed to the
>         Google Groups "amber-lang" group.
>         To unsubscribe from this group and stop receiving emails from
>         it, send an email to amber-lang+...@googlegroups.com <javascript:>.
>         For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout
>         <<a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout>.
>
>
>
>
>     --
>     Best regards,
>     Matthias Springer
>
>     Student M.Sc. IT Systems Engineering (Hasso Plattner Institute)
>     [hidden email] <javascript:> * Stahnsdorfer Straße 144b, 14482
>     Potsdam, Germany
>
> --
> You received this message because you are subscribed to the Google
> Groups "amber-lang" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="8dCQZA4ts2wJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">amber-lang+...@googlegroups.com
> <mailto:<a href="javascript:" target="_blank" gdf-obfuscated-mailto="8dCQZA4ts2wJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">amber-lang+unsubscribe@...>.
> For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Athens for Amber

Herby Vojčík


Richard Eng wrote:
> Well, of course, I'm still a novice; I don't know how to write these
> wrappers. Can anyone give me some tips or guidance?

That's very deep knowledge of boot.js mechanisms. I think I (or someone knowing these areas) must just write some API and release new Amber version asap (for your personal experimenting, just pasting those lines into boot.js somewhere where some other .wrapClassName calls already are can be sufficient).

> On Friday, 19 June 2015 15:56:25 UTC-4, Herby wrote:
>
>
>
>     Richard Eng wrote:
>     > Okay, so if I understand your repository correctly, I can ignore
>     > everything but the Athens files. I grab the Athens*.st files
>     from the
>     > 'st' directory (the corresponding .js files in the 'js'
>     directory are
>     > presumably auto-generated). I load these Athens packages into *my
>     > existing Amber installation*. Then I fiddle with boot.js and I'm
>     good to go?
>
>     Except that "fiddle with boot.js" pa
rt. That should not happen - it

>     _must_ be done externally. Telling anyone to "fiddle with boot.js" is
>     the path to hell.
>
>     Unfortunately, there's still no API that publishes class wrapping to
>     Smalltalk part, but if there's a need to wrap classes, it just
>     must be
>     added.
>
>     > On Friday, 19 June 2015 10:00:36 UTC-4, Matthias Springer wrote:
>     >
>     > Hi there,
>     >
>     > I have not been working on this for a while, but the latest version
>     > is here: https://github.com/matthias-springer/amber-athens
>     <https://github.com/matthias-springer/amber-athens>
>     > <https://github.com/matthias-springer/amber-athens
>     <https://github.com/matthias-springer/amber-athens>>. For an Athens
>     > tutorial see here: http://m-sp.org/amber-athens/
>     > <http://m-sp.org/amber-athens/> (mostly copied over from the Pharo
>     > implementation 2 years ago).
>     >
>     > Besides adding all the Athens-* packages to your project,
 you also

>     > have to wrap some classes in boot.js (that what I did 2 years ago,
>     > maybe there is a better way to do this now).
>     >
>     > smalltalk.wrapClassName("Image", "Athens-Amber", Image,
>     > smalltalk.Object);
>     > smalltalk.wrapClassName("CanvasContext2D", "Athens-Amber",
>     > CanvasRenderingContext2D, smalltalk.Object);
>     > smalltalk.wrapClassName("CanvasGradient", "Athens-Amber",
>     > CanvasGradient, smalltalk.Object);
>     >
>     >
>     >
>     > On Fri, Jun 19, 2015 at 3:47 PM, Richard Eng <[hidden email]
>     > <javascript:>> wrote:
>     >
>     > Sorry for the newbie question, but how would I go about
>     > installing/integrating the Athens library? I never know what to
>     > do with Github.
>     >
>     > https://github.com/matthias-springer/amber-athens-library
>     <https://github.com/matthias-springer/amber-athens-library>
>     > <https://github.com/matthias-springer/amber-athens-library
>     <https://githu
b.com/matthias-springer/amber-athens-library>>

>     >
>     > This thing hasn't been updated for over 2 years!
>     >
>     > --
>     > You received this message because you are subscribed to the
>     > Google Groups "amber-lang" group.
>     > To unsubscribe from this group and stop receiving emails from
>     > it, send an email to [hidden email] <javascript:>.
>     > For more options, visit https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>
>     > <https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>>.
>     >
>     >
>     >
>     >
>     > --
>     > Best regards,
>     > Matthias Springer
>     >
>     > Student M.Sc. IT Systems Engineering (Hasso Plattner Institute)
>     > [hidden email] <javascript:> * Stahnsdorfer Straße 144b, 14482
>     > Potsdam, Germany
>     >
>     > --
>     > You received this message because you are subscribed to the Google
>     > Groups "amber-lang" group.
>     >
To unsubscribe from this group and stop receiving emails from

>     it, send
>     > an email to [hidden email] <javascript:>
>     > <mailto:[hidden email] <javascript:>>.
>     > For more options, visit https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "amber-lang" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [hidden email]
> <mailto:[hidden email]>.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Athens for Amber

matthias.springer
In reply to this post by horrido
This is what I tried last time: adding a method to BlockClosure for doing the wrapping.

BlockClosure>>wrap: aClass
< $core.wrapClassName(aClass._name(), aClass._package()._name(), self, aClass._superclass(), false); >

I was trying to wrap classes using "CanvasRenderingContext2D wrap: Context2D" where Context2D is an already existing Smalltalk class. Does not work though. It seems like the wrapping has to be in place before the Smalltalk class is loaded or I did not use "wrapClassName" correctly.

For testing purposes, you can run the following code and see if the the result is a wrapped object: "((HTMLCanvas onJQuery: 'body' asJQuery) tag: 'canvas') element getContext: '2d'". Maybe Herby knows what to do.


On Fri, Jun 19, 2015 at 10:43 PM, Richard Eng <[hidden email]> wrote:
Well, of course, I'm still a novice; I don't know how to write these wrappers. Can anyone give me some tips or guidance?


On Friday, 19 June 2015 15:56:25 UTC-4, Herby wrote:


Richard Eng wrote:
> Okay, so if I understand your repository correctly, I can ignore
> everything but the Athens files. I grab the Athens*.st files from the
> 'st' directory (the corresponding .js files in the 'js' directory are
> presumably auto-generated). I load these Athens packages into *my
> existing Amber installation*. Then I fiddle with boot.js and I'm good to go?

Except that "fiddle with boot.js" part. That should not happen - it
_must_ be done externally. Telling anyone to "fiddle with boot.js" is
the path to hell.

Unfortunately, there's still no API that publishes class wrapping to
Smalltalk part, but if there's a need to wrap classes, it just must be
added.

> On Friday, 19 June 2015 10:00:36 UTC-4, Matthias Springer wrote:
>
>     Hi there,
>
>     I have not been working on this for a while, but the latest version
>     is here: https://github.com/matthias-springer/amber-athens
>     <https://github.com/matthias-springer/amber-athens>. For an Athens
>     tutorial see here: http://m-sp.org/amber-athens/
>     <http://m-sp.org/amber-athens/> (mostly copied over from the Pharo
>     implementation 2 years ago).
>
>     Besides adding all the Athens-* packages to your project, you also
>     have to wrap some classes in boot.js (that what I did 2 years ago,
>     maybe there is a better way to do this now).
>
>     smalltalk.wrapClassName("Image", "Athens-Amber", Image,
>     smalltalk.Object);
>     smalltalk.wrapClassName("CanvasContext2D", "Athens-Amber",
>     CanvasRenderingContext2D, smalltalk.Object);
>     smalltalk.wrapClassName("CanvasGradient", "Athens-Amber",
>     CanvasGradient, smalltalk.Object);
>
>
>
>     On Fri, Jun 19, 2015 at 3:47 PM, Richard Eng <[hidden email]
>     <javascript:>> wrote:
>
>         Sorry for the newbie question, but how would I go about
>         installing/integrating the Athens library? I never know what to
>         do with Github.
>
>         https://github.com/matthias-springer/amber-athens-library
>         <https://github.com/matthias-springer/amber-athens-library>
>
>         This thing hasn't been updated for over 2 years!
>
>         --
>         You received this message because you are subscribed to the
>         Google Groups "amber-lang" group.
>         To unsubscribe from this group and stop receiving emails from
>         it, send an email to [hidden email] <javascript:>.
>         For more options, visit https://groups.google.com/d/optout
>         <https://groups.google.com/d/optout>.
>
>
>
>
>     --
>     Best regards,
>     Matthias Springer
>
>     Student M.Sc. IT Systems Engineering (Hasso Plattner Institute)
>     [hidden email] <javascript:> * Stahnsdorfer Straße 144b, 14482
>     Potsdam, Germany
>
> --
> You received this message because you are subscribed to the Google
> Groups "amber-lang" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [hidden email]
> <mailto:[hidden email]>.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
Best regards,
Matthias Springer

Student M.Sc. IT Systems Engineering (Hasso Plattner Institute)
[hidden email] * Stahnsdorfer Straße 144b, 14482 Potsdam, Germany

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Athens for Amber

Herby Vojčík


Matthias Springer wrote:

> This is what I tried last time: adding a method to BlockClosure for
> doing the wrapping.
>
> BlockClosure>>wrap: aClass
> < $core.wrapClassName(aClass._name(), aClass._package()._name(), self,
> aClass._superclass(), false); >
>
> I was trying to wrap classes using "CanvasRenderingContext2D wrap:
> Context2D" where Context2D is an already existing Smalltalk class. Does
> not work though. It seems like the wrapping has to be in place before

I fear this may be the case... or maybe adding one .initClass call can
fix it. Must make some experiments.

> the Smalltalk class is loaded or I did not use "wrapClassName" correctly.
>
> For testing purposes, you can run the following code and see if the the
> result is a wrapped object: "((HTMLCanvas onJQuery: 'body' asJQuery)
> tag: 'canvas') element getContext: '2d'". Maybe Herby knows what to do.
>
>
> On Fri, Jun 19, 2015 at 10:43 PM, Richard Eng <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     Well, of course, I'm still a novice; I don't know how to write these
>     wrappers. Can anyone give me some tips or guidance?
>
>
>     On Friday, 19 June 2015 15:56:25 UTC-4, Herby wrote:
>
>
>
>         Richard Eng wrote:
>          > Okay, so if I understand your repository correctly, I can ignore
>          > everything but the Athens files. I grab the Athens*.st files
>         from the
>          > 'st' directory (the corresponding .js files in the 'js'
>         directory are
>          > presumably auto-generated). I load these Athens packages into
>         *my
>          > existing Amber installation*. Then I fiddle with boot.js and
>         I'm good to go?
>
>         Except that "fiddle with boot.js" part. That should not happen - it
>         _must_ be done externally. Telling anyone to "fiddle with
>         boot.js" is
>         the path to hell.
>
>         Unfortunately, there's still no API that publishes class
>         wrapping to
>         Smalltalk part, but if there's a need to wrap classes, it just
>         must be
>         added.
>
>          > On Friday, 19 June 2015 10:00:36 UTC-4, Matthias Springer wrote:
>          >
>          >     Hi there,
>          >
>          >     I have not been working on this for a while, but the
>         latest version
>          >     is here: https://github.com/matthias-springer/amber-athens
>          > <https://github.com/matthias-springer/amber-athens>. For an
>         Athens
>          >     tutorial see here: http://m-sp.org/amber-athens/
>          > <http://m-sp.org/amber-athens/> (mostly copied over from the
>         Pharo
>          >     implementation 2 years ago).
>          >
>          >     Besides adding all the Athens-* packages to your project,
>         you also
>          >     have to wrap some classes in boot.js (that what I did 2
>         years ago,
>          >     maybe there is a better way to do this now).
>          >
>          >     smalltalk.wrapClassName("Image", "Athens-Amber", Image,
>          >     smalltalk.Object);
>          >     smalltalk.wrapClassName("CanvasContext2D", "Athens-Amber",
>          >     CanvasRenderingContext2D, smalltalk.Object);
>          >     smalltalk.wrapClassName("CanvasGradient", "Athens-Amber",
>          >     CanvasGradient, smalltalk.Object);
>          >
>          >
>          >
>          >     On Fri, Jun 19, 2015 at 3:47 PM, Richard Eng
>         <[hidden email]
>          > <javascript:>> wrote:
>          >
>          >         Sorry for the newbie question, but how would I go about
>          >         installing/integrating the Athens library? I never
>         know what to
>          >         do with Github.
>          >
>          > https://github.com/matthias-springer/amber-athens-library
>          > <https://github.com/matthias-springer/amber-athens-library>
>          >
>          >         This thing hasn't been updated for over 2 years!
>          >
>          >         --
>          >         You received this message because you are subscribed
>         to the
>          >         Google Groups "amber-lang" group.
>          >         To unsubscribe from this group and stop receiving
>         emails from
>          >         it, send an email to [hidden email]
>         <javascript:>.
>          >         For more options, visit
>         https://groups.google.com/d/optout
>          > <https://groups.google.com/d/optout>.
>          >
>          >
>          >
>          >
>          >     --
>          >     Best regards,
>          >     Matthias Springer
>          >
>          >     Student M.Sc. IT Systems Engineering (Hasso Plattner
>         Institute)
>          > [hidden email] <javascript:> * Stahnsdorfer Straße 144b, 14482
>          >     Potsdam, Germany
>          >
>          > --
>          > You received this message because you are subscribed to the
>         Google
>          > Groups "amber-lang" group.
>          > To unsubscribe from this group and stop receiving emails from
>         it, send
>          > an email to [hidden email]
>         >  <mailto:[hidden email]>.
>         >  For more options, visit https://groups.google.com/d/optout.
>
>     --
>     You received this message because you are subscribed to the Google
>     Groups "amber-lang" group.
>     To unsubscribe from this group and stop receiving emails from it,
>     send an email to [hidden email]
>     <mailto:[hidden email]>.
>     For more options, visit https://groups.google.com/d/optout.
>
>
>
>
> --
> Best regards,
> Matthias Springer
>
> Student M.Sc. IT Systems Engineering (Hasso Plattner Institute)
> [hidden email] <mailto:[hidden email]> * Stahnsdorfer Straße 144b, 14482
> Potsdam, Germany
>
> --
> You received this message because you are subscribed to the Google
> Groups "amber-lang" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [hidden email]
> <mailto:[hidden email]>.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Athens for Amber

Herby Vojčík
In reply to this post by horrido


Richard Eng wrote:

> Well, of course, I'm still a novice; I don't know how to write these
> wrappers. Can anyone give me some tips or guidance?
>
>
> On Friday, 19 June 2015 15:56:25 UTC-4, Herby wrote:
>
>
>
>     Richard Eng wrote:
>      > Okay, so if I understand your repository correctly, I can ignore
>      > everything but the Athens files. I grab the Athens*.st files from
>     the
>      > 'st' directory (the corresponding .js files in the 'js' directory
>     are
>      > presumably auto-generated). I load these Athens packages into *my
>      > existing Amber installation*. Then I fiddle with boot.js and I'm
>     good to go?
>
>     Except that "fiddle with boot.js" part. That should not happen - it
>     _must_ be done externally. Telling anyone to "fiddle with boot.js" is
>     the path to hell.
>
>     Unfortunately, there's still no API that publishes class wrapping to
>     Smalltalk part, but if there's a need to wrap classes, it just must be
>     added.
>
>      > On Friday, 19 June 2015 10:00:36 UTC-4, Matthias Springer wrote:
>      >
>      > Hi there,
>      >
>      > I have not been working on this for a while, but the latest version
>      > is here: https://github.com/matthias-springer/amber-athens
>     <https://github.com/matthias-springer/amber-athens>
>      > <https://github.com/matthias-springer/amber-athens
>     <https://github.com/matthias-springer/amber-athens>>. For an Athens
>      > tutorial see here: http://m-sp.org/amber-athens/
>      > <http://m-sp.org/amber-athens/> (mostly copied over from the Pharo
>      > implementation 2 years ago).
>      >
>      > Besides adding all the Athens-* packages to your project, you also
>      > have to wrap some classes in boot.js (that what I did 2 years ago,
>      > maybe there is a better way to do this now).
>      >
>      > smalltalk.wrapClassName("Image", "Athens-Amber", Image,
>      > smalltalk.Object);
>      > smalltalk.wrapClassName("CanvasContext2D", "Athens-Amber",
>      > CanvasRenderingContext2D, smalltalk.Object);
>      > smalltalk.wrapClassName("CanvasGradient", "Athens-Amber",
>      > CanvasGradient, smalltalk.Object);

It seems there already is a solution for that in Amber API itself:

   Image javascriptConstructor: Platform globals Image

and similarly for other two (I'd probbaly do it in class-side initialize
method).

>      >
>      >
>      >
>      > On Fri, Jun 19, 2015 at 3:47 PM, Richard Eng <[hidden email]
>      > <javascript:>> wrote:
>      >
>      > Sorry for the newbie question, but how would I go about
>      > installing/integrating the Athens library? I never know what to
>      > do with Github.
>      >
>      > https://github.com/matthias-springer/amber-athens-library
>     <https://github.com/matthias-springer/amber-athens-library>
>      > <https://github.com/matthias-springer/amber-athens-library
>     <https://github.com/matthias-springer/amber-athens-library>>
>      >
>      > This thing hasn't been updated for over 2 years!
>      >
>      > --
>      > You received this message because you are subscribed to the
>      > Google Groups "amber-lang" group.
>      > To unsubscribe from this group and stop receiving emails from
>      > it, send an email to [hidden email] <javascript:>.
>      > For more options, visit https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>
>      > <https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>>.
>      >
>      >
>      >
>      >
>      > --
>      > Best regards,
>      > Matthias Springer
>      >
>      > Student M.Sc. IT Systems Engineering (Hasso Plattner Institute)
>      > [hidden email] <javascript:> * Stahnsdorfer Straße 144b, 14482
>      > Potsdam, Germany
>      >
>      > --
>      > You received this message because you are subscribed to the Google
>      > Groups "amber-lang" group.
>      > To unsubscribe from this group and stop receiving emails from it,
>     send
>      > an email to [hidden email] <javascript:>
>      > <mailto:[hidden email] <javascript:>>.
>      > For more options, visit https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "amber-lang" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [hidden email]
> <mailto:[hidden email]>.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Athens for Amber

Herby Vojčík


Herby Vojčík wrote:

>
>
> Richard Eng wrote:
>> Well, of course, I'm still a novice; I don't know how to write these
>> wrappers. Can anyone give me some tips or guidance?
>>
>>
>> On Friday, 19 June 2015 15:56:25 UTC-4, Herby wrote:
>>
>>
>>
>> Richard Eng wrote:
>> > Okay, so if I understand your repository correctly, I can ignore
>> > everything but the Athens files. I grab the Athens*.st files from
>> the
>> > 'st' directory (the corresponding .js files in the 'js' directory
>> are
>> > presumably auto-generated). I load these Athens packages into *my
>> > existing Amber installation*. Then I fiddle with boot.js and I'm
>> good to go?
>>
>> Except that "fiddle with boot.js" part. That should not happen - it
>> _must_ be done externally. Telling anyone to "fiddle with boot.js" is
>> the path to hell.
>>
>> Unfortunately, there's still no API that publishes class wrapping to
>> Smalltalk part, but if there's a need to wrap classes, it just must be
>> added.
>>
>> > On Friday, 19 June 2015 10:00:36 UTC-4, Matthias Springer wrote:
>> >
>> > Hi there,
>> >
>> > I have not been working on this for a while, but the latest version
>> > is here: https://github.com/matthias-springer/amber-athens
>> <https://github.com/matthias-springer/amber-athens>
>> > <https://github.com/matthias-springer/amber-athens
>> <https://github.com/matthias-springer/amber-athens>>. For an Athens
>> > tutorial see here: http://m-sp.org/amber-athens/
>> > <http://m-sp.org/amber-athens/> (mostly copied over from the Pharo
>> > implementation 2 years ago).
>> >
>> > Besides adding all the Athens-* packages to your project, you also
>> > have to wrap some classes in boot.js (that what I did 2 years ago,
>> > maybe there is a better way to do this now).
>> >
>> > smalltalk.wrapClassName("Image", "Athens-Amber", Image,
>> > smalltalk.Object);
>> > smalltalk.wrapClassName("CanvasContext2D", "Athens-Amber",
>> > CanvasRenderingContext2D, smalltalk.Object);
>> > smalltalk.wrapClassName("CanvasGradient", "Athens-Amber",
>> > CanvasGradient, smalltalk.Object);
>
> It seems there already is a solution for that in Amber API itself:
>
> Image javascriptConstructor: Platform globals Image
>
> and similarly for other two (I'd probbaly do it in class-side initialize
> method).

But use the fresh release (0.14.16) as there was a bug, now fixed.

>> >
>> >
>> >
>> > On Fri, Jun 19, 2015 at 3:47 PM, Richard Eng <[hidden email]
>> > <javascript:>> wrote:
>> >
>> > Sorry for the newbie question, but how would I go about
>> > installing/integrating the Athens library? I never know what to
>> > do with Github.
>> >
>> > https://github.com/matthias-springer/amber-athens-library
>> <https://github.com/matthias-springer/amber-athens-library>
>> > <https://github.com/matthias-springer/amber-athens-library
>> <https://github.com/matthias-springer/amber-athens-library>>
>> >
>> > This thing hasn't been updated for over 2 years!
>> >
>> > --
>> > You received this message because you are subscribed to the
>> > Google Groups "amber-lang" group.
>> > To unsubscribe from this group and stop receiving emails from
>> > it, send an email to [hidden email] <javascript:>.
>> > For more options, visit https://groups.google.com/d/optout
>> <https://groups.google.com/d/optout>
>> > <https://groups.google.com/d/optout
>> <https://groups.google.com/d/optout>>.
>> >
>> >
>> >
>> >
>> > --
>> > Best regards,
>> > Matthias Springer
>> >
>> > Student M.Sc. IT Systems Engineering (Hasso Plattner Institute)
>> > [hidden email] <javascript:> * Stahnsdorfer Straße 144b, 14482
>> > Potsdam, Germany
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "amber-lang" group.
>> > To unsubscribe from this group and stop receiving emails from it,
>> send
>> > an email to [hidden email] <javascript:>
>> > <mailto:[hidden email] <javascript:>>.
>> > For more options, visit https://groups.google.com/d/optout
>> <https://groups.google.com/d/optout>.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "amber-lang" group.
>> To unsubscribe from this group and stop receiving emails from it, send
>> an email to [hidden email]
>> <mailto:[hidden email]>.
>> For more options, visit https://groups.google.com/d/optout.
>

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Athens for Amber

horrido
In reply to this post by matthias.springer
It's not obvious how you "import" the Athens files. None of your configuration files (e.g., Gruntfile.js) even mention the Athens*.st files.

I copied the files over into the 'src' directory of my 'KingTut' application. Then in Gruntfile.js, I included this:

        amberc: {
            options
: {
                amber_dir
: path.join(__dirname, "bower_components", "amber"),
                library_dirs
: ['src', 'bower_components/amber/contrib/src']
           
},
            all
: {
                src
: [
                   
'src/KingTut.st', // list all sources in dependency order
                   
'src/KingTut-Tests.st', // list all tests in dependency order
                   
'src/Athens-Amber.st',
                   
'src/Athens-Core-Matrices.st',
                   
'src/Athens-Core-Morphic-Tutorial.st',
                   
'src/Athens-Core-Morphic.st',
                   
'src/Athens-Core-Paints.st',
                   
'src/Athens-Core-Paths.st',
                   
'src/Athens-Core-PathsGeometry.st',
                   
'src/Athens-Core.st',
                   
'src/Athens-HTML-Matrices.st',
                   
'src/Athens-HTML-Morphic.st',
                   
'src/Athens-HTML-Paints.st',
                   
'src/Athens-HTML-Paths.st',
                   
'src/Athens-HTML-Tutorial.st',
                   
'src/Athens-HTML.st'
               
],


Then I ran 'grunt devel'. This didn't work. None of the Athens packages appear in the Browser.

Also, I don't know the dependency order, if there's any.


On Friday, 19 June 2015 15:28:40 UTC-4, Matthias Springer wrote:
Exactly, that should work. If something is not working as expected let me know.

On Friday, June 19, 2015, Richard Eng <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="25fDoxSiUVMJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">horrido...@...> wrote:
Okay, so if I understand your repository correctly, I can ignore everything but the Athens files. I grab the Athens*.st files from the 'st' directory (the corresponding .js files in the 'js' directory are presumably auto-generated). I load these Athens packages into my existing Amber installation. Then I fiddle with boot.js and I'm good to go?


On Friday, 19 June 2015 10:00:36 UTC-4, Matthias Springer wrote:
Hi there,

I have not been working on this for a while, but the latest version is here: <a href="https://github.com/matthias-springer/amber-athens" rel="nofollow" target="_blank" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fmatthias-springer%2Famber-athens\46sa\75D\46sntz\0751\46usg\75AFQjCNH6QWPlimJxaYWskWfKvBkAviqHpg';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fmatthias-springer%2Famber-athens\46sa\75D\46sntz\0751\46usg\75AFQjCNH6QWPlimJxaYWskWfKvBkAviqHpg';return true;">https://github.com/matthias-springer/amber-athens. For an Athens tutorial see here: <a href="http://m-sp.org/amber-athens/" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fm-sp.org%2Famber-athens%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNGlmTorb1Oj1dccR-7W5T5SP9Cc6A';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fm-sp.org%2Famber-athens%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNGlmTorb1Oj1dccR-7W5T5SP9Cc6A';return true;">http://m-sp.org/amber-athens/ (mostly copied over from the Pharo implementation 2 years ago).

Besides adding all the Athens-* packages to your project, you also have to wrap some classes in boot.js (that what I did 2 years ago, maybe there is a better way to do this now).

smalltalk.wrapClassName("Image", "Athens-Amber", Image, smalltalk.Object);
smalltalk.wrapClassName("CanvasContext2D", "Athens-Amber", CanvasRenderingContext2D, smalltalk.Object);
smalltalk.wrapClassName("CanvasGradient", "Athens-Amber", CanvasGradient, smalltalk.Object);



On Fri, Jun 19, 2015 at 3:47 PM, Richard Eng <[hidden email]> wrote:
Sorry for the newbie question, but how would I go about installing/integrating the Athens library? I never know what to do with Github.

<a href="https://github.com/matthias-springer/amber-athens-library" rel="nofollow" target="_blank" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fmatthias-springer%2Famber-athens-library\46sa\75D\46sntz\0751\46usg\75AFQjCNErvT9D_7NlWMFgUsR7MXZ5QBjnXw';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fmatthias-springer%2Famber-athens-library\46sa\75D\46sntz\0751\46usg\75AFQjCNErvT9D_7NlWMFgUsR7MXZ5QBjnXw';return true;">https://github.com/matthias-springer/amber-athens-library

This thing hasn't been updated for over 2 years!

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to amber-lang+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.



--
Best regards,
Matthias Springer

Student M.Sc. IT Systems Engineering (Hasso Plattner Institute)
[hidden email] * Stahnsdorfer Straße 144b, 14482 Potsdam, Germany

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to amber-lang+unsubscribe@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.


--
Best regards,
Matthias Springer

Student M.Sc. IT Systems Engineering (Hasso Plattner Institute)
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="25fDoxSiUVMJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">m...@... * Stahnsdorfer Straße 144b, 14482 Potsdam, Germany

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Athens for Amber

Herby Vojčík


Richard Eng wrote:
> It's not obvious how you "import" the Athens files. None of your
> configuration files (e.g., Gruntfile.js) even mention the Athens*.st files.

You don't.


First step: amber-athens should be a proper Amber library (with
bower.json, local.amd.json and *.amd.json if it uses external JS libs).

Second step: you use amber-athens as a library in your project(s).

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Athens for Amber

matthias.springer
I can build a proper Amber library, so that you can import it. Working on that now. What is the best way to get the latest Amber release ("npm install -g amber-cli@0.14.16" does not work: "version not found")?

On Sat, Jun 20, 2015 at 1:58 PM, Herby Vojčík <[hidden email]> wrote:


Richard Eng wrote:
It's not obvious how you "import" the Athens files. None of your
configuration files (e.g., Gruntfile.js) even mention the Athens*.st files.

You don't.


First step: amber-athens should be a proper Amber library (with bower.json, local.amd.json and *.amd.json if it uses external JS libs).

Second step: you use amber-athens as a library in your project(s).


--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
Best regards,
Matthias Springer

Student M.Sc. IT Systems Engineering (Hasso Plattner Institute)
[hidden email] * Stahnsdorfer Straße 144b, 14482 Potsdam, Germany

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Athens for Amber

Herby Vojčík


Matthias Springer wrote:
> I can build a proper Amber library, so that you can import it. Working
> on that now. What is the best way to get the latest Amber release ("npm
> install -g amber-cli@0.14.16" does not work: "version not found")?

'npm -g install amber-cli' installs latest the cli, cli version != amber
version

If you intend to use `amber init` to start new project, this is enough.

In case you want to update amber in your project, then

   bower install "amber@*" --save

> On Sat, Jun 20, 2015 at 1:58 PM, Herby Vojčík <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>
>
>     Richard Eng wrote:
>
>         It's not obvious how you "import" the Athens files. None of your
>         configuration files (e.g., Gruntfile.js) even mention the
>         Athens*.st files.
>
>
>     You don't.
>
>
>     First step: amber-athens should be a proper Amber library (with
>     bower.json, local.amd.json and *.amd.json if it uses external JS libs).
>
>     Second step: you use amber-athens as a library in your project(s).
>
>
>     --
>     You received this message because you are subscribed to the Google
>     Groups "amber-lang" group.
>     To unsubscribe from this group and stop receiving emails from it,
>     send an email to [hidden email]
>     <mailto:amber-lang%[hidden email]>.
>     For more options, visit https://groups.google.com/d/optout.
>
>
>
>
> --
> Best regards,
> Matthias Springer
>
> Student M.Sc. IT Systems Engineering (Hasso Plattner Institute)
> [hidden email] <mailto:[hidden email]> * Stahnsdorfer Straße 144b, 14482
> Potsdam, Germany
>
> --
> You received this message because you are subscribed to the Google
> Groups "amber-lang" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [hidden email]
> <mailto:[hidden email]>.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Athens for Amber

Herby Vojčík


Herby Vojčík wrote:

>
>
> Matthias Springer wrote:
>> I can build a proper Amber library, so that you can import it. Working
>> on that now. What is the best way to get the latest Amber release ("npm
>> install -g amber-cli@0.14.16" does not work: "version not found")?
>
> 'npm -g install amber-cli' installs latest the cli, cli version != amber
> version
>
> If you intend to use `amber init` to start new project, this is enough.
>
> In case you want to update amber in your project, then
>
> bower install "amber@*" --save

bower install "amber#*" --save

(bower for some reason chose to use # as version specifier)

>
>> On Sat, Jun 20, 2015 at 1:58 PM, Herby Vojčík <[hidden email]
>> <mailto:[hidden email]>> wrote:
>>
>>
>>
>> Richard Eng wrote:
>>
>> It's not obvious how you "import" the Athens files. None of your
>> configuration files (e.g., Gruntfile.js) even mention the
>> Athens*.st files.
>>
>>
>> You don't.
>>
>>
>> First step: amber-athens should be a proper Amber library (with
>> bower.json, local.amd.json and *.amd.json if it uses external JS libs).
>>
>> Second step: you use amber-athens as a library in your project(s).
>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "amber-lang" group.
>> To unsubscribe from this group and stop receiving emails from it,
>> send an email to [hidden email]
>> <mailto:amber-lang%[hidden email]>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>>
>> --
>> Best regards,
>> Matthias Springer
>>
>> Student M.Sc. IT Systems Engineering (Hasso Plattner Institute)
>> [hidden email] <mailto:[hidden email]> * Stahnsdorfer Straße 144b, 14482
>> Potsdam, Germany
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "amber-lang" group.
>> To unsubscribe from this group and stop receiving emails from it, send
>> an email to [hidden email]
>> <mailto:[hidden email]>.
>> For more options, visit https://groups.google.com/d/optout.
>

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Athens for Amber

Herby Vojčík


Herby Vojčík wrote:

>
>
> Herby Vojčík wrote:
>>
>>
>> Matthias Springer wrote:
>>> I can build a proper Amber library, so that you can import it. Working
>>> on that now. What is the best way to get the latest Amber release ("npm
>>> install -g amber-cli@0.14.16" does not work: "version not found")?
>>
>> 'npm -g install amber-cli' installs latest the cli, cli version != amber
>> version
>>
>> If you intend to use `amber init` to start new project, this is enough.
>>
>> In case you want to update amber in your project, then
>>
>> bower install "amber@*" --save
>
> bower install "amber#*" --save

BTW in case you want to recompile .st files from cli (for example,
because the .js format is too old), it would be nice to update amber-dev
npm package as well:

   npm install "amber-dev@*" --save-dev

> (bower for some reason chose to use # as version specifier)
>
>>
>>> On Sat, Jun 20, 2015 at 1:58 PM, Herby Vojčík <[hidden email]
>>> <mailto:[hidden email]>> wrote:
>>>
>>>
>>>
>>> Richard Eng wrote:
>>>
>>> It's not obvious how you "import" the Athens files. None of your
>>> configuration files (e.g., Gruntfile.js) even mention the
>>> Athens*.st files.
>>>
>>>
>>> You don't.
>>>
>>>
>>> First step: amber-athens should be a proper Amber library (with
>>> bower.json, local.amd.json and *.amd.json if it uses external JS libs).
>>>
>>> Second step: you use amber-athens as a library in your project(s).
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "amber-lang" group.
>>> To unsubscribe from this group and stop receiving emails from it,
>>> send an email to [hidden email]
>>> <mailto:amber-lang%[hidden email]>.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>>
>>>
>>> --
>>> Best regards,
>>> Matthias Springer
>>>
>>> Student M.Sc. IT Systems Engineering (Hasso Plattner Institute)
>>> [hidden email] <mailto:[hidden email]> * Stahnsdorfer Straße 144b, 14482
>>> Potsdam, Germany
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "amber-lang" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [hidden email]
>>> <mailto:[hidden email]>.
>>> For more options, visit https://groups.google.com/d/optout.
>>
>

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
12