Amber package external deps (was: Re: [amber-lang] A new repository for Amber documentation)

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

Amber package external deps (was: Re: [amber-lang] A new repository for Amber documentation)

Herby Vojčík


Jeremy Shute wrote:
> The AMD stuff is great, but I think it's probably still a struggle for
> people to understand how to get from point A to point B.  Coming from
> Smalltalk you expect there to be "turtles all the way down," but here I
> think you really need some knowledge of the Javascript ecosystem in
> order to be effective with Amber.
>
> Similarly, I still can't figure out how to express from within Smalltalk
> that some code depends on a require.js package.  It may be worthwhile to

That is not there (yet). I'd like it to have it, it's much better to say
Canvas needs jQuery than to download it separately.

> have tools available from the IDE for importing Javascript packages...

Smalltalk vm amdRequire: 'amdModule'

>
> Jeremy

Herby

P.S.: Nicolas - style / API design question: should the previous be
   Smalltalk requireAmdModule: 'amdModule'
with definitions of forwarding methods for the published vm APIs,
or it is ok to use
   Smalltalk vm knownApi
directly (but then it should probably be documented what is known API
and what is private; though _thisIsPrivate may be enough)?

--
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/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Amber package external deps (was: Re: [amber-lang] A new repository for Amber documentation)

Nicolas Petton

Herby Vojčík writes:
>
> P.S.: Nicolas - style / API design question: should the previous be
>    Smalltalk requireAmdModule: 'amdModule'
> with definitions of forwarding methods for the published vm APIs,
> or it is ok to use
>    Smalltalk vm knownApi
> directly (but then it should probably be documented what is known API
> and what is private; though _thisIsPrivate may be enough)?

I think it's ok to have `Smalltalk vm api` but it must be documented
both in the Smalltalk code and in the doc :)

Nico

--
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/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Amber package external deps (was: Re: [amber-lang] A new repository for Amber documentation)

Herby Vojčík


Nicolas Petton wrote:

> Herby Vojčík writes:
>> P.S.: Nicolas - style / API design question: should the previous be
>>     Smalltalk requireAmdModule: 'amdModule'
>> with definitions of forwarding methods for the published vm APIs,
>> or it is ok to use
>>     Smalltalk vm knownApi
>> directly (but then it should probably be documented what is known API
>> and what is private; though _thisIsPrivate may be enough)?
>
> I think it's ok to have `Smalltalk vm api` but it must be documented
> both in the Smalltalk code and in the doc :)

Where in Smalltalk code? List all the API in `vm` method comment? Or in SmalltalkImage class comment.

> Nico

Herby

--
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/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Amber package external deps (was: Re: [amber-lang] A new repository for Amber documentation)

Nicolas Petton

Herby Vojčík writes:
>
> Where in Smalltalk code? List all the API in `vm` method comment? Or in SmalltalkImage class comment.

In SmalltalkImage (I tend to add an `## API` section for that in class
comments in markdown).

Nico

--
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/groups/opt_out.