Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1V7lBC-0008FZ-Ur for bitcoin-development@lists.sourceforge.net; Fri, 09 Aug 2013 11:48:26 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of gmail.com designates 209.85.219.42 as permitted sender) client-ip=209.85.219.42; envelope-from=mh.in.england@gmail.com; helo=mail-oa0-f42.google.com; Received: from mail-oa0-f42.google.com ([209.85.219.42]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1V7lBB-0008Cy-RU for bitcoin-development@lists.sourceforge.net; Fri, 09 Aug 2013 11:48:26 +0000 Received: by mail-oa0-f42.google.com with SMTP id i18so6826311oag.15 for ; Fri, 09 Aug 2013 04:48:20 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.60.47.230 with SMTP id g6mr291388oen.62.1376048900399; Fri, 09 Aug 2013 04:48:20 -0700 (PDT) Sender: mh.in.england@gmail.com Received: by 10.76.84.231 with HTTP; Fri, 9 Aug 2013 04:48:20 -0700 (PDT) In-Reply-To: References: Date: Fri, 9 Aug 2013 13:48:20 +0200 X-Google-Sender-Auth: B1PTSjxo4qAuzyBSGVcHDTMNmdY Message-ID: From: Mike Hearn To: Wendell Content-Type: multipart/alternative; boundary=001a11c2db58e6ea0c04e3825972 X-Spam-Score: -0.5 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (mh.in.england[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 1.0 HTML_MESSAGE BODY: HTML included in message 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-Headers-End: 1V7lBB-0008Cy-RU Cc: Bitcoin Dev Subject: Re: [Bitcoin-development] SPV client in pure JavaScript? X-BeenThere: bitcoin-development@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Aug 2013 11:48:27 -0000 --001a11c2db58e6ea0c04e3825972 Content-Type: text/plain; charset=UTF-8 JavaScript is turing complete so of course it can be done. The real question you're asking is, can it be done in a web app? I think the answer is I think "no" because web apps aren't allowed to make raw TCP socket connections. Now there may be a way around that by using browser-specific things like extensions or "installable apps" which give your code greater access permissions. This approach means you essentially use Chrome as your app platform instead of a JVM, the assumption presumably being that more users have Chrome than a JVM. The flip side is that users who don't would probably balk at the idea of installing an entire browser in order to run a wallet app, whereas a JVM can be bundled and the resulting app acts like any other. I don't know of a convenient way to "statically link" Chrome into a regular-looking application. I personally wouldn't find such a design compelling. Whilst Java isn't exactly a great language, JavaScript is significantly worse in virtually all aspects. I don't understand why anyone would want to use JavaScript outside the browser - you get less safety, less performance, fewer features, less mature tools and so on. If the end result is an installable app like any other, all you did is cripple yourself vs the competition that's using languages/platforms designed for it. On Fri, Aug 9, 2013 at 1:32 PM, Wendell wrote: > To those of you in the know about modern browser tech: > > Does it seem at all conceivable that an SPV wallet could be built entirely > in JavaScript? And if indeed it is within the realm of the possible, how > would such a thing be safely distributed for use? Would a signed Chrome > Plugin be an ideal vehicle? > > -wendell > > grabhive.com | twitter.com/grabhive | gpg: 6C0C9411 > > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Bitcoin-development mailing list > Bitcoin-development@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bitcoin-development > > --001a11c2db58e6ea0c04e3825972 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
JavaScript is turing complete so of course it can be done.= The real question you're asking is, can it be done in a web app? I thi= nk the answer is I think "no" because web apps aren't allowed= to make raw TCP socket connections.

Now there may be a way around that by using browser-specific= things like extensions or "installable apps" which give your cod= e greater access permissions. This approach means you essentially use Chrom= e as your app platform instead of a JVM, the assumption presumably being th= at more users have Chrome than a JVM. The flip side is that users who don&#= 39;t would probably balk at the idea of installing an entire browser in ord= er to run a wallet app, whereas a JVM can be bundled and the resulting app = acts like any other. I don't know of a convenient way to "statical= ly link" Chrome into a regular-looking application.

I personally wouldn't find such a design compelling= . Whilst Java isn't exactly a great language, JavaScript is significant= ly worse in virtually all aspects. I don't understand why anyone would = want to use JavaScript outside the browser - you get less safety, less perf= ormance, fewer features, less mature tools and so on. If the end result is = an installable app like any other, all you did is cripple yourself vs the c= ompetition that's using languages/platforms designed for it.



On Fri, Aug 9, 2013 at 1:32 PM, Wendell <w@grabhive.com> wrote:
To those of you in the know about modern bro= wser tech:

Does it seem at all conceivable that an SPV wallet could be built entirely = in JavaScript? And if indeed it is within the realm of the possible, how wo= uld such a thing be safely distributed for use? Would a signed Chrome Plugi= n be an ideal vehicle?

-wendell

grabhive.com | twitter.com/grabhive | gpg: 6C0C9411


-----------------------------------------------------------------------= -------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gam= pad/clk?id=3D48897031&iu=3D/4140/ostg.clktrk
___________________= ____________________________
Bitcoin-development mailing list
Bitcoin-develo= pment@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bitcoin-de= velopment


--001a11c2db58e6ea0c04e3825972--