Hacker News new | past | comments | ask | show | jobs | submit | bilekas's comments login

The author recommends Domain Consolidation however this seems like some bad advice in certain cases due to the browsers max connection limit on domains. At least in http 1.0. or am I mistaken ?

You are correct that this is an optimisation only available to H2+, but optimising to the H/1.x use-case is a use-case not worth optimising for—if one cared about web performance that much, they wouldn’t be running H1/.x in the first place.

Most connections on the web nowadays are over H2+: https://almanac.httparchive.org/en/2024/http#http-version-ad...


> if one cared about web performance that much, they wouldn’t be running H1/.x in the first place.

You may not have intended it this way but this statement very much reads as "just use Chrome". There's lots of microbrowsers in the world generating link previews, users stuck with proxies, web spiders, and people stuck with old browsers that don't necessarily have H2 connectivity.

That doesn't mean over-optimize for HTTP 1.x but decent performance in that case should not be ignored. If you can make HTTP 1.x performant then H2 connections will be as well by default.

Far too many pages download gobs of unnecessary resources just because they didn't bother tree shaking and minifying resources. Huge populations of web users at any given moment are stuck on 2G and 3G equivalent connections. Depending where I am in town my 5G phone can barely manage to load the typical news website because of poor signal quality.


In my opinion the benefits of domain consolidation outweigh the costs.

Using a bunch of domains like a.static.com,b.static.com etc was really only helpful when the limit on connections to a domain was like 2. Depending on the browser those limits have been higher for a while.

For http/2 it's less helpful.

But honestly there's not really one right answer theoretically. multiple domains increase fixed overhead of DNS, tcp connect, tls handshake, but offer parallelism that doesn't suffer from head of line blocking.

You can multiplex a bunch of request/responses over a http/2 stream in parallel... Until you drop a packet and remember that http/2 is still TCP based.

UDP based transports like http/3 and quic don't have this problem.


I see a lot of people in the comments basically saying "well X did it first" and that it's not worth talking about. This missed the point for me, zig is an interesting one personally and not out of semantics of std lib or anything really, it's just something nice to play around with so far. I think with the above attitude we probably could have stopped systems programming at c++, that wouldn't be too fun at all, what we all do without java to laugh at?

Just admit that discussions about proglangs are just so delicate. They turn people mad. End of the story.

> In the beginning, computers were invented. This has made lots of people very angry and was generally considered a bad move.

Well this is hard, guess I'm not a human!

It's been so long since I've played doom but without strafing.. it's almost impossible!


Stated elsewhere: hold alt + (left/right) to strafe

just go forward to trigger the monsters and then immediately back to where you started for cover and then pick them off at a distance. easy!

The Kremlin is not Russia. There are some extremely valid reasons for that. It's not like everyone just decided to not appreciate poor old Russia.

The Kremlin's behaviour is ridiculous and shouldn't be accepted in Europe. Russoophobia is just another speaking point of the Kremlin that you're feeding into. Objectively they are in the wrong.


Aha that's a really interesting tinfoil hat theory! I doubt it's true but reminds me of the recent YouTube drama about Google using the transcript to train their AI. Seeing Spotify generate ai music to bloat their library it is a nice harmless conspiracy theory for fun if nothing else.


Yeah we specialise in nice harmless conspiracy theories that are fun and delicate


Ah but when apple does it it's "innovation" /s

In all fairness I don't see the value for this at all except for extremely rare cases.


I use it for a floating window for watching videos & for sending SMS. It’s nice but I forget about it pretty often.


Can't you do that from your Mac directly?


yes


How do you get a Firefox window to float on top like the iPhone preview window does?


not sure if its the same in FF but in Safari I can right click the speaker icon on a tab that's playing something and pop it into PiP.

It's great for apps that aren't on Mac yet


Am I correct in seeing this as a custom language for a custom browser? That kind of makes this a bit more impressive but equally more challenging if nothing else to find other members to help with develop!


Yup, FixScript is a new language. Author says in a blog post[1]:

> It started as a very simple scripting language for a specific need. But when I caught myself using it also for the main program it became obvious that the language is much more than just for the scripting.

It has some interesting parts; the "base" vs. "classes" syntaxes remind me of Vala. Using syntax to disambiguate some things at compile time reminds me of Raku (including typed variables). It also has syntactic macros (similar to Erlang parse transforms) called "token processors", so the syntax is fully extensible - invalid tokens are kept by the parser and passed to token processor, so in principle you could completely ignore the original syntax (something you can't do in Rust or Nim).

In any case, the language is rather small and simple (it reminds me of Janet a bit); picking it up shouldn't be too big of a hurdle, I think.

[1] https://www.fixscript.org/blog/introduction


> Also LLVM and GCC aren't going to be rewritten from C++ into Rust anytime soon.

I'm afraid you underestimate the will power of rustaceans to find literally anything to rewrite.


I doubt Cranelift will ever match the only project that has beaten the contribution level of Linux kernel.


I had to do this recently, actually it was not possible to book the flight without doing it. I already have my passport attached to the accounting and this just felt incredibly invasive. But I still don't buy any of the reasons for it.


I get the same feeling as the repercussions for bad actors are fines relative to revenue, 10% if I read correctly, given that the OP has stated that they work off a deficit most of the time, I can't see this being an issue.

Also if it is well monitored and seems to have a positive community, I don't see the major risk to shut down. Seems more shutting down out of frustration against a law that, while silly on it's face, doesn't really impact this provider.


>the repercussions for bad actors are fines relative to revenue, 10% if I read correctly, given that the OP has stated that they work off a deficit most of the time, I can't see this being an issue.

From another commenter:

Platforms failing this duty would be liable to fines of up to £18 million or 10% of their annual turnover, whichever is higher.


Part of the issue is that you have to spend time and money to defend an accusation.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: