Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Ian Scott
    @polpo
    is it ok to depend on os-homedir?
    Andrey Sidorov
    @sidorares
    yes, it was nice to have zero dependencies but not worth just for the sake of it
    Ian Scott
    @polpo
    ok, I'll use it then. expect a PR soon :)
    Andrey Sidorov
    @sidorares
    happy to even factor out some code ( say make xauth-cookie module )
    thanks!
    aashidham
    @aashidham
    anybody here rn?
    @sidorares curious if this can be used with browserify as an x11-server and window manager
    (on the browser-side)
    Andrey Sidorov
    @sidorares
    hi @aashidham
    aashidham
    @aashidham
    hey
    does my question make sense?
    Andrey Sidorov
    @sidorares
    I saw you checked browser based server implementations linked from node-x11 readme
    this library is just protocol implementation
    in X11 world your screen ( in your case browser ) is "server"
    node-x11 is client
    aashidham
    @aashidham
    But you have createServer() in your codebase
    Andrey Sidorov
    @sidorares
    In theory you could run it in browser and use websockets as transport but you would need another server on other end to transform websockets to tcp
    aashidham
    @aashidham
    Do you know a package that does this? I tried https://github.com/GothAck/javascript-x-server but couldn't get it to work
    Andrey Sidorov
    @sidorares
    yes, but this is more as a tool to create proxies etc
    I tried both of them ( that one and https://github.com/ttaubert/x-server-js ) over I year ago and I think I was able to run very simple program, like xeyes
    aashidham
    @aashidham
    I want all opcodes supported, I want a fully functional xserver in js
    Andrey Sidorov
    @sidorares
    not sure how much of functionality they implement
    It's much bigger task. node-x11 just implement protocol while to make server you need to understand protocol and actually manage al resourses ( display windows, dispatch input events, create/dispose server side resources - Pixmaps, Atoms, Selections, Properties - there are heaps )
    "fully functional" your best bet is to compile xorg via emscripten and make your own x11 display driver that uses dom / canvas etc
    aashidham
    @aashidham
    I'm surprised nobody has built this. Xorg has been around since like 1970
    Do you know a talented developer I can pay to make this?
    Andrey Sidorov
    @sidorares
    I think there are java based servers but likely there is no "production ready" JS based servers
    Only experiments like you saw
    Too much time to invest :)
    Because it's interesting for experiments/learning but if you actually need that to get things done there are other solutions available right now
    When you have options like VNC in browser or Java based x server
    aashidham
    @aashidham
    Does VNC cover most / all opcodes?
    Andrey Sidorov
    @sidorares
    Personally I'd really like to see that happen
    With hardware accelerated 3d
    via webgl
    aashidham
    @aashidham
    Yes, I'm building a computer environment in the browser and I really want to incorporate X11
    Andrey Sidorov
    @sidorares
    (actually I'd probably use webgl context from start as output device )
    what kind of computer environment you building?
    aashidham
    @aashidham
    I'm ok with using x11vnc and then move to browser, but I want all opcodes / functionality implemented
    Container (docker / rkt) and Linux environment in the browser
    You can sign up for updates at benuku.com if you're interested :)
    Willing to pay ~$2k for a working graphics environment from X11 with MIT license
    What I have right now isn't smooth, and crashes a lot
    Andrey Sidorov
    @sidorares
    I wonder if there is a good x server test suite
    like "this server passes 51% of functional tests"
    "Container environment" - are you talking about actual container/kernel in browser like http://bellard.org/jslinux/ ?
    aashidham
    @aashidham
    Well, no -- thats a cool project but ultimately useless because it dies when you close the tab
    Andrey Sidorov
    @sidorares
    Or containers in the server and browser just as remote graphical terminal?
    aashidham
    @aashidham
    ^^Yes
    Andrey Sidorov
    @sidorares
    With X server most clients will die as well on tab close