Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
Sounds interesting. Any code?
What device are you testing on, registering a callback taking 300 milliseconds, that cannot be right.
@rusty-hacker it isn't a callback, it's a handshake between the publishing window and the root window, but I'll try to make it shorter.
Try using webworker? It may help with the latency
I had to rewrite it because it was unreadable and didn't handle any corner cases. Will probably patch a lot in the future because I'll start using it soon. https://github.com/theitsloth/...
@melezorus34 Not for this, but I'll probably move most of the complex logic into workers so this and the UI won't slow down.
Update: I just realised that I can pass message ports through each other. Time to rewrite this to be a _lot_ cleaner and also to move most of it into a worker.
Useless JS library #0 ready.
Communication among windows in the same window group (iframes and popups with a common root), with dynamically generated objects, so it feels as though you were just calling local async methods.
Useless JS library #1 will be a layout manager, a program that manages panes and tabs, context menus, toolbars and a menubar much like Visual Studio, and let all of that communicate through Useless JS library #0.
Since JS is sloooooow, I try to make everything run the fastest possible, trading startup for runtime resource usage. #0 fulfills this, any message will take exactly 4 stops, although registering a callable method set takes .3 sec.
still a bad language