docs.amber-lang.net

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

docs.amber-lang.net

Nicolas Petton
Hi guys,

I started to write a documentation for Amber, extracting infos from the
wiki and rewriting parts of it.

This is only the beginning, but you can have a look at
docs.amber-lang.net and contribute on github at
https://github.com/amber-smalltalk/amber-documentation

Cheers!
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
|

amber as a prerequisite

SebastianHC
Hi!

I wonder ... has anybody of you guys ever setup Amber as a prereqisite
for a JS library or app?

I wonder if I could move some Smalltalk code to Amber but implement most
stuff directly in JS.

I am asking since I still have trouble with parallelJS. I can't
reference Amber from within the Workers used in ParallelJS ("smalltalk
is undefinded....")...

Thanks!
Sebastian

--
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 as a prerequisite

Herby Vojčík
"smalltalk" is not a global variable, it is (closure-)local to every module. But it can be accessed globally, via require('amber/helpers').vm (or .smalltalk in <=0.12.2, though it still works to be backward compatible for some time).

But workers run in different context, don't they, so they have their own globals? But if you pass an object to them which they can use, I see no problems; but I don't know how this work in workers, whether you can share live objects. If you can't, you probably need to load amber inside worker.

Herby

Sebastian Heidbrink wrote:

> Hi!
>
> I wonder ... has anybody of you guys ever setup Amber as a prereqisite
> for a JS library or app?
>
> I wonder if I could move some Smalltalk code to Amber but implement
> most stuff directly in JS.
>
> I am asking since I still have trouble with parallelJS. I can't
> reference Amber from within the Workers used in ParallelJS ("smalltalk
> is undefinded....")...
>
> Thanks!
> Sebastian
>

--
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 as a prerequisite

SebastianHC
Thank you Herby,

I already tried to load amber inside the worker, but there was now way
to accomplish that. ParallelJS it's own require mechanism and I got
errors that amber wasn't able to be loaded.
I can't tell you the right message since I have no access to the system now.

But I didn't try it with just 'amber/helpers' yet,... that might do the
trick...

Thank you again!
Sebastian

Am 29.01.2014 07:41, schrieb Herby Vojčík:

> "smalltalk" is not a global variable, it is (closure-)local to every
> module. But it can be accessed globally, via
> require('amber/helpers').vm (or .smalltalk in <=0.12.2, though it
> still works to be backward compatible for some time).
>
> But workers run in different context, don't they, so they have their
> own globals? But if you pass an object to them which they can use, I
> see no problems; but I don't know how this work in workers, whether
> you can share live objects. If you can't, you probably need to load
> amber inside worker.
>
> Herby
>
> Sebastian Heidbrink wrote:
>> Hi!
>>
>> I wonder ... has anybody of you guys ever setup Amber as a
>> prereqisite for a JS library or app?
>>
>> I wonder if I could move some Smalltalk code to Amber but implement
>> most stuff directly in JS.
>>
>> I am asking since I still have trouble with parallelJS. I can't
>> reference Amber from within the Workers used in ParallelJS
>> ("smalltalk is undefinded....")...
>>
>> Thanks!
>> Sebastian
>>
>

--
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.