Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #14907

Re: Extending JavaScript (C lib)

From "Scott Sauyet" <3103invalid@webnews.fastusenet.org>
Newsgroups comp.lang.javascript
Subject Re: Extending JavaScript (C lib)
Message-ID <201207061436533103@webnews.fastusenet.org> (permalink)
References <23cade81-201f-4f8c-92dc-110870559add@googlegroups.com> <201207061231433103@webnews.fastusenet.org> <0b3de880-ccc5-408f-a29e-de6b0627f052@googlegroups.com>
Date 2012-07-06 14:36 +0000

Show all headers | View raw


> Mathieu Malaterre wrote:
> Scott Sauyet wrote:

>> So what sort of extensions are you trying to make to the language?  
>> Are there good reasons you can't implement the things you want in the 
>> language itself?
> 
> I am sending compressed images to the client. I would like to (re)use 
> the carefully coded & heavily optimized C lib to decompress the image 
> on the client side.

Any thoughts on how you would get your extensions installed on client
machines?  I don't know if any of them except for some experimental
Chrome versions have extension points that would allow you to load your
extensions dynamically.


> I could limit this behavior to only one JavaScript implementation, the
> other implementations would receive PNG (JPG?) files and be noticed of
> the potential slow down.

How complex is the decompression algorithm?  Javascript, especially in
newer implementations, can be surprisingly quick, although mathematical
algorithms are by no means its forte.

  -- Scott

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Extending JavaScript (C lib) mathieu.malaterre@gmail.com - 2012-07-06 00:32 -0700
  Re: Extending JavaScript (C lib) "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-07-06 07:57 +0000
    Re: Extending JavaScript (C lib) "Scott Sauyet" <3103invalid@webnews.fastusenet.org> - 2012-07-06 12:05 +0000
      Re: Extending JavaScript (C lib) Stefan Weiss <krewecherl@gmail.com> - 2012-07-06 15:05 +0200
  Re: Extending JavaScript (C lib) "Scott Sauyet" <3103invalid@webnews.fastusenet.org> - 2012-07-06 12:31 +0000
    Re: Extending JavaScript (C lib) mathieu.malaterre@gmail.com - 2012-07-06 06:30 -0700
      Re: Extending JavaScript (C lib) "Scott Sauyet" <3103invalid@webnews.fastusenet.org> - 2012-07-06 14:36 +0000
      Re: Extending JavaScript (C lib) "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2012-07-06 11:12 -0700
  Re: Extending JavaScript (C lib) Erwin Moller <erwinmollerusenet@xs4all.nl> - 2012-07-09 11:37 +0200

csiph-web