Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gildas
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
gildas
19d ago
How many years before you understand what cookie banners are?
2.
▲
by
gildas
2mo ago
This might interest you as well [1]. Similarly, here is an example of presentation using this format [2]. [1] https://github.com/gildas-lormeau/Polyglot-HTML-ZIP-PNG [2] https://github.com/gildas-lormea
3.
▲
Aug 31st 2026: All Manifest V2 extensions removed from the Chrome Web Store
(developer.chrome.com)
4 points
by
gildas
2mo ago
|
1 comments
4.
▲
by
gildas
3mo ago
You can even make the file compatible with ZIP (and PDF) on top of that, see https://github.com/gildas-lormeau/Polyglot-HTML-ZIP-PNG/raw/... (and https://github.com/gildas-lormeau/Polyglo
5.
▲
by
gildas
3mo ago
There is a third option: - Save the page as a self-extracting ZIP file, see https://github.com/gildas-lormeau/Polyglot-HTML-ZIP-PNG
6.
▲
by
gildas
3mo ago
I have an example of a side-project [1] where I think I naturally applied the best practices described in this article. My goal was to see if it's possible to code an entire project using a single agent (Claude). To do this, I "si
7.
▲
by
gildas
7mo ago
I just ran a test on a 10GB HTML page and called window.stop() via a 100ms setTimeout, which, in my opinion, simulates what would happen in a better-implemented case in SingleFile if the call to window.stop() were made as soon as the HTTP h
8.
▲
by
gildas
7mo ago
The call to window.stop() stops HTML parsing/rendering, which is unnecessary since the script has downloaded the page via HTTP and will decompress it as-is as a binary file (zip.js supports concatenated payloads before and after the zi
9.
▲
by
gildas
7mo ago
The reason I did not implement the innovative mechanism you describe is because, in my case, all the technical effort was/is focused on reading the archive from the filesystem. No one has suggested it either. Edit: Actually, SingleFile
10.
▲
by
gildas
7mo ago
I haven't looked closely, but I get the impression that this is an implementation detail which is not really related to the format. In this case, a polyglot zip/html file could also interrupt page loading via a window.stop() call
11.
▲
by
gildas
7mo ago
I would like to know why ZIP/HTML polyglot format produced by SingleFile [1] and mentioned in the article "achieve static, single, but not efficiency". What's not efficient compared to the gwtar format? [1] https:/
12.
▲
Gwtar: A static efficient single-file HTML format
(gwern.net)
4 points
by
gildas
8mo ago
|
0 comments
13.
▲
by
gildas
10mo ago
If we were to compare this to the JS world, it seems Python’s async is closer to Babel-style generator-based coroutines [1] than to JavaScript’s async/await execution model. [1] https://babeljs.io/docs/babel-plugin
14.
▲
by
gildas
10mo ago
You haven't got it wrong, the first example in the article behaves the same in JS, see https://jsfiddle.net/L5w2q1p7/ .
15.
▲
by
gildas
10mo ago
Thank you also for the kind words! Regardoing support, you can choose whichever method you prefer; it makes no difference to me actually.
16.
▲
by
gildas
10mo ago
Author of SingleFile here. Sorry, this is obviously not normal. Please feel free to report any bugs here https://github.com/gildas-lormeau/SingleFile/issues .
17.
▲
by
gildas
11mo ago
Great idea, some people have already implemented it for the same type of need, it would seem (see the list of user agents in the source code). Implementation seems simple. https://github.com/0x48piraj/gz-bomb/blob&
18.
▲
by
gildas
11mo ago
FYI, zip.js has no issues with 1 (it can be fixed with standard extra fields), 3 (zip64 support), and 5 (you cannot have more than 64K of comment data at the end of the file).
19.
▲
by
gildas
11mo ago
Unfortunately, I will have difficulty answering your question because my knowledge is limited to the zip format. In the use case presented in the article, I find that the zip format meets the need well. Generally speaking, in the context of
20.
▲
by
gildas
11mo ago
For implementation in a library, you can use HttpRangeReader [1][2] in zip.js [3] (disclaimer: I am the author). It's a solid feature that has been in the library for about 10 years. [1] https://gildas-lormeau.github.io/
21.
▲
by
gildas
1y ago
The warning message you mentioned simply means that the extension can inject "content scripts" into the web pages you visit. This feature is necessary, for example, to remove ads that cannot be blocked via HTTP.
22.
▲
by
gildas
2y ago
Bonus point for clients that don't support the HTTP “Accept-Encoding” header [1] and consume all your bandwidth. [1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Ac...
23.
▲
by
gildas
2y ago
Thank you for explaining your point of view on the interest of this conversation. Here's mine, I consider an offense to be something quite subjective sometimes. In some cases, it's possible to offend someone without meaning to. Th
24.
▲
by
gildas
2y ago
I'm sorry. I'm open to discussion if you can explain what is offending to you
25.
▲
by
gildas
2y ago
I'm sorry if you feel offended. My comments will be removed by HN moderators if they think it's necessary. You can flag and downvote them meanwhile. You can also contact the moderators or your local police if you think it is neces
26.
▲
by
gildas
2y ago
I sincerely apologize again if you found my response offensive. You can contact your local police to make a complaint, I suppose.
27.
▲
by
gildas
2y ago
Yes, but in this case, there's nothing to stop you from apologizing and possibly discuss the offending point so that it doesn't happen again.
28.
▲
by
gildas
2y ago
I sincerely apologize if you found my response offensive. It was not my intention and I try to respect the moderation rules on HN. I just wanted to give my point of view, as a person living in the EU.
29.
▲
by
gildas
2y ago
I'm sorry but it's normal. You don't have the right to offend people online or not.
30.
▲
by
gildas
2y ago
The UK left EU some years ago.
More ›