[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-dev] Scaling Tor Metrics, Round 2



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/12/15 01:07, Spencer wrote:
> Hi,
>> teor: Do David's visualizations already use JavaScript? We could
>> make (another) part of the metrics site use JavaScript.
>> 
> 
> Can the data be processed on the host server and sent to the
> client JS-free?

We briefly discussed making a JavaScript-free Globe a while ago by
using Node.js.  I'm not sure whether this would also work for Metrics.
 It may depend on how interactive graphs are supposed to be.

But before we look more into this: do we really have no JavaScript at
all?  The High Security level in Tor Browser says that JavaScript
performance optimizations are disabled and that JavaScript is disabled
on all non-HTTPS sites, but in theory, Metrics runs on HTTPS, so the
bubble graphs should work in Tor Browser.  A possible deal breaker
might be that we're fetching data from Onionoo for the bubble graphs.
 Would we be able to put JavaScript on Metrics if we load data from
https://metrics.torproject.org/ instead of
https://onionoo.torproject.org/?

>> Or are we waiting to choose a language before doing any new
>> work?
>> 
> 
> What are the options?

I think the main option is to keep rendering graphs on the server.
Right now, we're using R/ggplot2 for that, but we could switch to
server-side JavaScript or really anything else.  The main downside is
lack of real interactivity.

Thanks for the feedback!

All the best,
Karsten

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org

iQEcBAEBAgAGBQJWZT/sAAoJEJD5dJfVqbCrjEwH/2aeydyl4QhxNubSzj0liQQc
37ajKKePhGNwRGFlna+KccSpZRA4yZg6/Rqejl7sylPdXEHF9joyUyX+2u2Bq6Lp
IfuN5LAnohio2TAC8HRlNMUgEZUwmTVrtGMM+mf+iUu3z0c9RQWlusdqv3pUy36J
nVZKHazEs4u0ZdiKJwPTGecNkzgw00zkufwMUtuuBSmMvmSjlpmKrbs1swoXRt1a
ltVpj24QQv5igQBHpTuFdBAMHS0F4dGwGWSYHYxwo4ZaAQPD3SnVlNDqk3FXS22/
nMQj+Smp5I9qyplPTHTofcZKWenInDdV69J+j3WOk96WhWmk+qgVrjv+/5Bhgts=
=R8ud
-----END PGP SIGNATURE-----
_______________________________________________
tor-dev mailing list
tor-dev@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev