[libre-riscv-dev] circuitjs

Luke Kenneth Casson Leighton lkcl at lkcl.net
Tue Apr 28 16:35:20 BST 2020


On Tue, Apr 28, 2020 at 4:11 PM Jacob Lifshay <programmerjake at gmail.com> wrote:

> I heard that most of google's web frontends (like gmail) are written using
> GWT (or something similar).

and it makes for an incredible effectiveness as a result.  the team
only need write code *once* and it can run on desktop *and* as a
mobile app, but not only that, the subdivision into (close to)
Model-View-Controller by inherent design means that actual front-end
GUI code is pretty much completely separate from "stuff that does
stuff".

using pyjs a client commented on how sparse (how little) code was.
and it was because everything that was "active" - handling data - was
done using a JSON RPC client-server architecture.  the actual
server-side implementation of a JSONRPC server was done in a mere *50*
lines of code.  25 of those lines involved exception/error handling!
other JSONRPC servers that i've seen are thousands of lines of
completely unnecessary code.

l.



More information about the libre-riscv-dev mailing list