HN Gopher Feed (2017-10-22) - page 1 of 10 ___________________________________________________________________
Rust to WebAssembly Made Easier
29 points by adamnemecek
https://lord.io/blog/2017/wargo/#___________________________________________________________________
flavio81 - 2 hours ago
I am not a Rust fan nor user, but I must heartily applaud the sign
that the times are changing -- for that we will finally free
ourselves from being forced to have only one choice (Javascript)
for delivering frontend code at the browser.Looking forward to many
interesting stuff done by leveraging Webassembly to the max!
hacker_9 - 1 hours ago
Why would you use Rust over JS for front end work though?
geofft - 50 minutes ago
For ... reasons ... I want to build a Chrome extension that
implements USB-IP support as described in the Linux kernel
https://www.kernel.org/doc/Documentation/usb/usbip_protocol....
, with the Chrome USB API on one end and a websocket tunnel on
the other, leading to websockify running on an EC2 instance.
(Or, apparently, WebUSB is a thing these days and I don't need
an extension?) I could do protocol parsing in JS, but Rust
seems like a much more well-suited language for this.The
frontend itself, as in the UI, I'll write in JS, but there are
parts that need to be running client-side that aren't really
"frontend".Someone I know built a thing which (for more
complicated reasons) ends up speaking HTTPS tunneled over a
websocket connection, with a need to terminate TLS within the
local JavaScript context. There are a few pure-JS TLS
libraries, but it'd be nicer to use an actual TLS
library.Someone else I know literally built a Kerberos client
in JS. Again, having the UI in JS seems good but the protocol
bits probably shouldn't be in JS. (Also, it is possible that I
keep weird company.)As a maybe more sympathetic example,
consider noVNC or Guacamole, which are JavaScript clients for
VNC. It would be a lot simpler to just hand an existing VNC
implementation a