Comments (5)
-1. WebSockets designed as a ugly pile above http protocol to allow work from browser-restricted javascript. Adding support for it to MozRepl will increase risk of remote attack of local browser from remote-origin code.
However you are right, that some message-oriented (or even object-oriented) protocol would be very usable. What about CORBA? It's object-oriented. It's cross-platform. It has libraries for almost every sane programming language (C, C++, Python, Perl to name a few). It would be very pretty to create XPCOM<->CORBA proxy generator. However this doesn't fit to this project scope.
from mozrepl.
everyone who actually used CORBA at some point agrees that it’s horrible and luckily all but dead, but should have died faster.
websockets would be implemented in firefox already, that’s why i had the idea to use them. they also have many implementations everywhere and command line clients exist.
but if for some reason not websockets, how about ZeroMQ? It also has implementations everywhere (even e.g. in R), is not a horrible relic from business hell, and is widely used for things like IPython.
from mozrepl.
I actually used CORBA and can't agree with you. It's comprehensible and elegant. However I can agree that it's usable for full-scale cross-process object bridge not for single-method interface (int execString(in string input, out string output)
).
Why not use some human-readable message-passing protocol like used by FTP/MemCache?
from mozrepl.
It's comprehensible and elegant
hmm, right, this suggests it’s better than thought because it suffered from bad implementations.
Why not use some human-readable message-passing protocol like used by FTP/MemCache?
this would have the advantage of not requiring libs or complex JS to emit and parse it.
but wouldn’t it be nice to have a pretty usable console for it? i have an idea: how about adopting the ipython protocol?
then we could have the notebook, a terminal shell, and a standalone shell window as frontends for free!
from mozrepl.
All I want to say - I need to keep ability to connect to it with telnet or socat.
from mozrepl.
Related Issues (20)
- node.js module please?
- No longer supports Thunderbird HOT 1
- Execute javascript in current web page context HOT 1
- In Firefox 25 on Ubuntu, document.cookie is undef in spite of active cookies
- Where is it in Firefox 29? HOT 3
- Changing focus from inspector window to main window
- Start the repl on Windows?
- Link to library of Bash functions for driving Mozrepl
- Feature request: REPL for add-on debugging
- window.document.URL returning browser URL HOT 4
- Why not put the temporary file in a temporay directory?
- Broken instructions for starting the REPL HOT 3
- Error "Exposing privileged or cross-origin callable is prohibited" HOT 1
- MozRepl add on does not work with FF55 HOT 4
- content always null when I'm use Firefox nightly builds.
- Dose not work on Firefox 55 HOT 2
- programmatically activate on startup
- Not Compatible with Firefox Quantum
- Alternatives? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mozrepl.