I see, thanks.

Do you care about performance? If not, a hack could probably be done on top
of SAFE_HEAP. When that is on, each load and store is done through a
function call, so making those do something that works with normal JS
arrays (aliasing is the issue) could work. Then there would just be some
boilerplate changes in replacing the creation of the typed arrays, etc.

On Wed, Aug 19, 2015 at 6:01 PM, Roy Teeuwen <[email protected]> wrote:

> Haha sorry, let me elaborate to ease your curiousness :D
>
> I am trying to compile the SASS compiler from C code to Javascript, this
> way I can compile my SASS files to CSS with Rhino in an Java - OSGi
> environment. Currently the only emscripted SASS. javascript file uses typed
> arrays, which does not work in Rhino, and the only other solution in Java
> to compile sass to css is to use JRuby, a Ruby script engine. But JRuby
> does not work 100% in an OSGi environment.
>
> Op donderdag 20 augustus 2015 02:54:53 UTC+2 schreef Alon Zakai:
>>
>> Rhino? You're just making me more curious with that answer ;)
>>
>> In general, you should be able to just get the 1.23.0 tags in the 3
>> repos, and build them. I think just building with -s USE_TYPED_ARRAYS=0
>> should give you an error saying what you should do.
>>
>> If not, the old docs are in this repo, you should be able to look in
>> site/ when you check out 1.23.0 and see them.
>>
>>
>> On Wed, Aug 19, 2015 at 5:48 PM, Roy Teeuwen <[email protected]> wrote:
>>
>>> Hey Alon,
>>>
>>> Because I will be using Rhino (Javascript engine in Java) to execute the
>>> emscripted javascript code, and the version that I am using of Rhino
>>> (1.7.4) unfortunately does not support typed array's (upgrading rhino is
>>> not possible).
>>>
>>> How would I go about using the original compiler when using version
>>> 1.23.0? This section has been removed from the docs, so I have no way on
>>> knowing how to enable the original compiler again when downgrading. Or was
>>> the disabling of typed array included in the initial fastcomp
>>> implementation? Any idea where I can check this?
>>>
>>> Greetings
>>> Roy
>>>
>>>
>>> Op donderdag 20 augustus 2015 02:42:58 UTC+2 schreef Alon Zakai:
>>>>
>>>> Yes, we only support typed arrays now. The changelog says we deprecated
>>>> them in 1.23.1, so 1.23.0 might still work.
>>>>
>>>> But why do you not want typed arrays, btw?
>>>>
>>>>>
>>>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

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

Reply via email to