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


Groups > comp.lang.javascript > #26224

Re: JavaScript Packers, Compression & Decompression

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: JavaScript Packers, Compression & Decompression
Date 2014-11-27 15:26 +0100
Organization PointedEars Software (PES)
Message-ID <1672499.DWPMiCGTlJ@PointedEars.de> (permalink)
References <3a302923-e399-49f5-a4fa-5b6b7f571864@googlegroups.com>

Show all headers | View raw


Chris White wrote:

> [spam.Spam.spam.example] is trying to provide compression to JavaScript
> because not all servers have compression.

Name one and give a use-case for its exclusive use.

> It is not only responsibility of the web server to compress,
> think about it.

BTDT.

> Why not client side compression so I can send form data back to server 
> compressed (just one of thousands of examples)?

Because the code to do that needs to be transported to the client first as 
it is executed there.

> If you pack a JavaScript, it may not compress as well with Gzip, here we
> need an alternative like bzip.

I do not see a use-case where you would send script code to the server other 
than uploading script files.  All user input must be treated as untrusted.

> Get with the program JavaScript!

This sentence does not make sense.
 
> *Why does JavaScript not support decompression of top formats?*

With regard to client-side/unprivileged JavaScript: The right tool for the 
right job.  With regard to client-side privileged/server-side/CLI JavaScript 
you are simply wrong.

> It is time to make a proper language that has all good compression formats
> built in (lpaq, lzma, lz77, bzip, Gzip, zip, rar, lha, etc, etc, etc).

To what end?  And why should JavaScript (whatever you think that is) be the 
exception there?  There is no native support for compression in other 
programming languages either.  In PHP, for example, this is facilitated with 
an *extension*.

> It is standard need on a computer,

No, it is not.  Besides, there are compression programs that do the job just 
fine, and using gzip can actually increase the footprint if the original is 
small.

> and the internet is run by computers, so only seems logical.

Your logic is flawed.
 
> Developers need to be able to find a match for their needs.

If there was a need, do you not think that someone before you would have 
addressed it?  And it turns out that people have.  Why do you not use Google 
as a search engine for a change?

> One compression may work well on say text, but another works better on
> binary data (like run length encoding algorithm I came up

Oh, *you* came up with that?  It seems your hubris knows no end.

> [tl;dr]

This is not the diary for your “How To Learn JavaScript in 30 Days” course.  
Please go away or get a minimum clue.  TIA.

BTW: _tera_

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.

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


Thread

JavaScript Packers, Compression & Decompression Chris White <0ntariokingston@gmail.com> - 2014-11-27 03:34 -0800
  Re: JavaScript Packers, Compression & Decompression "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-11-27 13:46 +0100
  Re: JavaScript Packers, Compression & Decompression Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-27 15:26 +0100
  Re: JavaScript Packers, Compression & Decompression Chris White <0ntariokingston@gmail.com> - 2014-11-28 06:16 -0800
  Re: JavaScript Packers, Compression & Decompression Chris White <0ntariokingston@gmail.com> - 2014-11-28 06:17 -0800
  Re: JavaScript Packers, Compression & Decompression Chris White <0ntariokingston@gmail.com> - 2014-11-28 06:27 -0800
    Re: JavaScript Packers, Compression & Decompression "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-11-28 15:43 +0100
    Re: JavaScript Packers, Compression & Decompression Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-28 16:16 +0100
      Re: JavaScript Packers, Compression & Decompression Chris White <0ntariokingston@gmail.com> - 2014-11-28 07:21 -0800
        Re: JavaScript Packers, Compression & Decompression Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-28 17:04 +0100
          Re: JavaScript Packers, Compression & Decompression "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-11-28 18:26 +0100
  Re: JavaScript Packers, Compression & Decompression Chris White <0ntariokingston@gmail.com> - 2014-11-28 08:20 -0800
    Re: JavaScript Packers, Compression & Decompression Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-28 17:57 +0100
      Re: JavaScript Packers, Compression & Decompression Chris White <0ntariokingston@gmail.com> - 2014-11-28 10:10 -0800
    Re: JavaScript Packers, Compression & Decompression danca <cyberdanny@tiscalinet.it> - 2014-11-28 22:31 +0100
      Re: JavaScript Packers, Compression & Decompression Chris White <0ntariokingston@gmail.com> - 2014-11-28 15:01 -0800
      Re: JavaScript Packers, Compression & Decompression Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-29 14:48 +0100
        Re: JavaScript Packers, Compression & Decompression Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-11-29 15:05 +0100
          [OT] Re: JavaScript Packers, Compression & Decompression danca <cyberdanny@tiscalinet.it> - 2014-12-01 18:44 +0100
  Re: JavaScript Packers, Compression & Decompression Denis McMahon <denismfmcmahon@gmail.com> - 2014-11-29 06:46 +0000
  Re: JavaScript Packers, Compression & Decompression Chris White <0ntariokingston@gmail.com> - 2014-11-30 18:41 -0800
    Re: JavaScript Packers, Compression & Decompression "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2014-11-30 20:38 -0800
    Re: JavaScript Packers, Compression & Decompression Denis McMahon <denismfmcmahon@gmail.com> - 2014-12-01 16:28 +0000
  Re: JavaScript Packers, Compression & Decompression Chris White <0ntariokingston@gmail.com> - 2014-11-30 18:41 -0800
  Re: JavaScript Packers, Compression & Decompression Chris White <0ntariokingston@gmail.com> - 2014-12-15 15:54 -0800

csiph-web