Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bullen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
54 ms
·
781.
▲
by
bullen
5y ago
Just enough to trigger the buffer... 1024-8192 bytes or something like that... a fart in space since it's just once per session!
782.
▲
by
bullen
5y ago
Ok, fixed it elsewhere and in my brain... :/ Thx! Can't edit the comment though.
783.
▲
by
bullen
5y ago
Open-source also means the source is open, what you are looking for is free and honestly nothing is free... if you have a better term I'm open for suggestions. But really open-source (as in free) is the misnomer here, it should be call
784.
▲
by
bullen
5y ago
Not if you send "noop" messages.
785.
▲
by
bullen
5y ago
We already discussed this in an earlier thread, and however bad this looks it's better than my own license. Here it's clear, you can either use the code without money involved and then you have MIT (+ show logo and some example co
786.
▲
by
bullen
5y ago
Added link in the readme! Thx. No, no dev log but I'll tell you some things that where incredible during that project: - I started the fuse project 4 months before I set foot in the Meadow project office (we had like 3 meetings during
787.
▲
by
bullen
5y ago
Probably not, since I dont know what RoD is.
788.
▲
by
bullen
5y ago
Aha, ok yes then you would need to have many subdomains? Or make your own tab system inside one browser tab. I can see why that is a problem for some.
789.
▲
by
bullen
5y ago
long-polling are blocked to almost exactly the same extent as comet-stream and SSE. The only thing you have to do is to push more data on the response so that the proxy is forced to flush the response! Since IE7 is no longer used we can bur
790.
▲
by
bullen
5y ago
Sure but then HTTP/3 is still binary and it's in flux meaning most routers don't play nice with it yet and since HTTP/1.1 works great for 99.9% of the usecases I would say it's a complete waste of time, unless you h
791.
▲
by
bullen
5y ago
I would look at my own app-server: https://github.com/tinspin/rupy It's not the most well documented but it's the smallest implementation while still being one of the most performant so you can learn more tha
792.
▲
by
bullen
5y ago
The world record is not the 1.100 concurrent users per machine (T2 small then medium on AWS) we had at peak, but the 99.6% connections we managed. All other multiplayer games have ~80% if they are lucky! 350.000 was the total number of play
793.
▲
by
bullen
5y ago
He just needs to push more data on the reply to force the anti-virus to flush the data. Easy peasy.
794.
▲
by
bullen
5y ago
They don't block it, they cache the response until there is enough data in the buffer... just push more garbage data on the first chunks...
795.
▲
by
bullen
5y ago
Yes, since IE7 is out of the game long-polling is no longer needed. Comet-stream and SSE will save you alot of bandwidth and CPU!!!
796.
▲
by
bullen
5y ago
They don't support headers in javascript, that is more a problem with javascript than SSE. Read my comment below about that.
797.
▲
by
bullen
5y ago
It used to be 2 sockets per client, so now it's 6? Well it's a non-problem, if you need more bandwith than one socket in each direction can provide you have much bigger problems than the connection limit; which you can just ignore
798.
▲
by
bullen
5y ago
The mistake they did was to assume only one TCP socket should be used; the TCP has it's own head-of-line limitations just like HTTP/1.1 has if you limit the number of sockets (HTTP/1.1 had 2 sockets allowed per client, but Ch
799.
▲
by
bullen
5y ago
Aha, well why do you need to send a header when you can just put the data on the GET URL like so "blabla?cookie=erWR32" for example? In my example I use this code: var source = new EventSource('pull?name=one');
800.
▲
by
bullen
5y ago
I managed to get through almost all middle men by using 2 tricks: 1) Push a large amount of data on the pull (the comet-stream SSE never ending request) response to trigger the middle thing to flush the data. 2) Using SSE instead of just Co
801.
▲
by
bullen
5y ago
I made the backend for this MMO on SSE over HTTP/1.1: https://store.steampowered.com/app/486310/Meadow/ We have had a total of 350.000 players over 6 years and the backend out-scales all other multiplaye
802.
▲
by
bullen
5y ago
See my comment below: https://news.ycombinator.com/item?id=30313403
803.
▲
by
bullen
5y ago
The TCP stack can give you that info if you are lucky in your topography but generally you cannot rely on this working 100%. The way I solve it is to send "noop" messages at regular intervals so that the socket write will return -
804.
▲
by
bullen
5y ago
You just needed to send a "noop" (no operation) message at regular intervals.
805.
▲
by
bullen
5y ago
The problem with WebSockets is that hey are: 1) More complex and binary so you cannot debug them as easily, specially on live and specially if you use HTTPS. 2) The implementations don't parallelize the processing, with Comet-Stream +
806.
▲
by
bullen
5y ago
How do you mean lack of headers and cookies? That is wrong. Edit: Actually it seems correct (a javascript problem, not SSE problem) but it's a non-problem if you use a parameter for that data instead and read it on the server.
807.
▲
by
bullen
5y ago
Absolutely not, HTTP/1.1 is the way to make SSE fly: https://github.com/tinspin/rupy/wiki/Comet-Stream Old page, search for "event-stream"... Comet-stream is a collection of techniques of which
808.
▲
by
bullen
5y ago
HTTP also uses CRLF but the spec is flexible I think. Still most if not all implementations use it. That is alot of bytes when you sum them up. Also CRLFCRLF is used to demarkate end of headers and chunks.
809.
▲
by
bullen
5y ago
Apple 2 was more like a prototype for the C64 that has graphics and sound unmatched without cheating on 8-bit with 16-bit memory. But honestly today I would give a Raspberry Pico instead, it uses less energy and has more performance but it&
810.
▲
by
bullen
5y ago
Hm, I'm usually not a fan of using new stuff unless it has been stable/working/default for some years... last I heard of wayland was NOT good, but it was a couple of years back... The way you should use the GPU is with OpenGL
More ›