Readit News logoReadit News
o11c commented on Converting an online game to work without any JavaScript   bejofo.com/blog/no-js-gam... · Posted by u/YannickR
glroyal · 12 hours ago
The point of the refresh (which can be activated with a meta tag) is that JavaScript is disabled in the game's server-rendered mode, so AJAX/Comet is out of the question.
o11c · 8 hours ago
You don't need JS to do long-polling, just keep the main page's connection open without writing the trailing `</html>`

This does limit what you can do with the poll-added content, but simply allowing the refresh to take place is a strict improvement over refreshing eagerly.

o11c commented on Converting an online game to work without any JavaScript   bejofo.com/blog/no-js-gam... · Posted by u/YannickR
motorest · 18 hours ago
> The "refresh causes load" issue can be solved by doing long-polling instead of short-polling.

...and now you have to greatly scale up your backend infrastructure to be able to handle all those open connections to handle each and every single active user.

o11c · 17 hours ago
With any decent backend implementation, idle connections should be really cheap - measured in individual pages, and the hard part is figuring out how to count the kernel side.
o11c commented on Optimizing our way through Metroid   antithesis.com/blog/2025/... · Posted by u/eatonphil
o11c · a day ago
Hmm, scrolling lags even without javascript (Firefox ESR, Linux). Last time I saw this I think they fix was something about gradients/blur?

There's also some kind of weird input-capture stopping keyboard scrolling at first, and the video player is some weird thing I can't see how to make work.

o11c · 20 hours ago
Adding 1 CSS rule gets rid of the slowness:

  background-color: black !important;
I'm not sure which specific one is to blame, but there is a lot of transparency in various colors, both foreground and background.

o11c commented on Optimizing our way through Metroid   antithesis.com/blog/2025/... · Posted by u/eatonphil
o11c · a day ago
Hmm, scrolling lags even without javascript (Firefox ESR, Linux). Last time I saw this I think they fix was something about gradients/blur?

There's also some kind of weird input-capture stopping keyboard scrolling at first, and the video player is some weird thing I can't see how to make work.

Dead Comment

o11c commented on Converting an online game to work without any JavaScript   bejofo.com/blog/no-js-gam... · Posted by u/YannickR
o11c · a day ago
The "refresh causes load" issue can be solved by doing long-polling instead of short-polling.

Note that the http-equiv refresh will only trigger after the page is fully-loaded, which long-polling does not allows to happen, so you do have resilience for the case where the long-poll is interrupted mysteriously.

o11c commented on RFC 9839 and Bad Unicode   tbray.org/ongoing/When/20... · Posted by u/Bogdanp
o11c · a day ago
I have had real-world programs broken by blind assumption of "does not deliberately contain controls" (form feed is particularly common for things intended to be paginated, escape is common for things designed for a terminal, etc.) and even "is fully UTF-8" (there are lots of old data files and logs that are never going away).

If you aren't doing something useful with the text, you're best off passing a byte-sequence through unchanged. Unfortunately, Microsoft Windows exists, so sometimes you have to pass `char16_t` sequences through instead.

The worst part about UTF-16 is that invalid UTF-16 is fundamentally different than invalid UTF-8. When translating between them (really: when transforming external data into an internal form for processing), the former can use WTF-8 whereas the latter can use Python-style surrogateescape, but you can't mix these.

o11c commented on Why the Internet Is Turning to Shit   currentaffairs.org/news/w... · Posted by u/Improvement
breve · 2 days ago
> But it was a necessary investment, because when I Google synonyms for a word, I can no longer trust that the results I get will be accurate or useful

Why would you use Google as a thesaurus in the first place? Why not go directly to the Cambridge or Merriam-Webster thesaurus (the article even links to Merriam-Webster):

https://dictionary.cambridge.org/thesaurus/

https://www.merriam-webster.com/

The internet may well be turning to shit but people also need to take responsibility for their own abdication of thinking.

o11c · 2 days ago
In my experience, all thesauri suck, either having far too few quasi-synonyms (and thesauri that divide them into closeness tiers aren't very useful in practice), or having far too many quasi-synonyms without distinguishing senses or parts of speech (sometimes, but only sometimes, intersection search works to avoid this), or both.

As for antonyms, good luck finding anything at all.

So, using additional tools, even if not designed for the task, is often useful.

o11c commented on 4chan will refuse to pay daily online safety fines, lawyer tells BBC   bbc.co.uk/news/articles/c... · Posted by u/donpott
m-s-y · 2 days ago
>It's a huge stretch to call the existence of 4chan in anyone's best interests.

Absolutely, 100% incorrect. You obviously don't approve of 4chan's content or mission, but that's not the point. It benefits everyone when anyone takes a stand because their legal rights are under attack.

"I disapprove of what you say, but I will defend to the death your right to say it."

>This is not a slippery slope

Again, incorrect.

Any type of punishment for 4chan due to their legal content is damn close to the definition of "slippery slope". You're familiar with the "anti-slippery slope" argument already ("First they came for 4chan and I said nothing, because good riddance!"), so you're obviously cogent enough to understand what you're saying.

>The sheer anarchy of the libertarian mindset that much of this site supports is not a good thing.

This is not for you to decide. Your mindset is why free speech laws must exist in the first place.

o11c · 2 days ago
The whole point of this is that what counts as "legal" is permitted to change. In particular, "legal under some circumstances" is a thing.
o11c commented on 4chan will refuse to pay daily online safety fines, lawyer tells BBC   bbc.co.uk/news/articles/c... · Posted by u/donpott
mattnewton · 2 days ago
Doesn’t seem weird at all, Britons are saying a) I agree children watching porn is bad but b) I value my privacy online and c) don’t think sending in photos of an ID is really going to stop kids. Actually seems pretty reasonable, and a reasonable democratic representative should look at that and say “well, how else can get A if method B is unpopular and unlikely to work?”

Instead they seem to have conflated B with A. Maybe they are afraid that any criticism on this method is interpreted as attack on doing anything at all for kids watching porn on the internet or even twisted into some kind of endorsement.

o11c · 2 days ago
> Instead they seem to have conflated B with A. Maybe they are afraid that any criticism on this method is interpreted as attack on doing anything at all for kids watching porn on the internet or even twisted into some kind of endorsement.

In all fairness, I have seen quite a few people explicitly arguing "I want kids to watch porn" of late.

u/o11c

KarmaCake day4026July 18, 2023View Original