Ladybird is now in alpha (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
Runtimes can have bugs or inefficiencies that cause them to use more memory than strictly necessary, but by and large most memory problems are the product of the apps (or webpages) themselves.
Replies (6)
I've been championing this mind set for nearly 20 years now. The message was more clear in the Flash era, but once you realize that your webpage is an (/a desktop) application that only happen to live in a browser - it makes a lot of reasoning and designing a lot easier.
Replies (1)
I don't want to tell you you've wasted your time but it's fairly obvious that webpages are sometimes documents, sometimes apps and sometimes a hybrid between the two. For example, YouTube is clearly an app, but a webpage written predominantly in HTML and CSS is much more of a document than an app.
Replies (2)
Replies (2)
I hope we can move past the movement of everything should be a web app.
Replies (1)
i'm not trying to be glib, i get what you mean, i just wonder if you have an actual criteria. I've been struggling with this from time to time over the years.
Replies (4)
I would say a contained set of words, sometimes accompanied by static visual data (e.g. images), which aimed to convey ideas or information.
For example, a post on a recipe blog website can be seen as a document, even if there are sometimes some interactive elements (like being able to change ingredient amounts based on desired portion sizes), and even if there's usually a CMS behind the scenes helping the website author update their recipes, as the written recipe is at the core of what is being transmitted.
On websites the wide array of interactive elements do blur the lines between documents and apps, but the web was designed as a document sharing medium first and had app functionality bolted onto it afterwards. It's perfectly possible to have a website with zero JavaScript.
I don't know if that fully answers your question, but hopefully it's of some use.
Replies (1)
normally, when i think of a document, i think of something that is to be printed / printable properly. this puts javascript out of the picture for the most part, though not necessarily entirely. some pages sadly don't even load their content without javascript these days, like SPAs, or require custom streaming.
i needed to print directions from google maps one time for example, and even the inbuilt solution is basically just a fancy print screen of a page that was mostly rendered with javascript (or similar, i don't know their tech stack, not necessarily relevant). but then this brings about the idea that the page can be interactive, while exposing an end result that is printable.
or consider css. modern css has animations. one can even implement a navbar without any js, just pure css (and i very much appreciate when people do!). i'd permit media queries, but i'm not sure about fancy animated effects.
another thing i might want to bring up is grafana. it's just interactive charts. if i disable the autorefresh, it's not live either. requires javascript, but i believe if someone wanted to chart something some other way that is not grafana, it's possible to do some visualizations with just css alone as well in a way that is manipulable. end result is again static. i could conceivably print it.
i'm not even sure pure html, with no embedded js and css, escapes the non-document fate guaranteed. video tags include videos after all.
for me the bigger question is usually how much arbitrary execution a website requires instead. if it's all fixed function stuff, like html or css, i'd grade that higher than i'd websites requiring arbitrary code execution. but then technically modern fonts are also virtual machine bytecode that is executed during font rendering, so even just putting text on the screen can require arbitrary code execution. and even if we don't go that far, you do need to hold onto some state, since html is not a regular language for example (cue can't parse html with regex meme). and this isn't even getting into all the weird and whacky multimedia formats.
Continue this thread (1 replies) →
IMHO the distinction is on interactivity, if I'm expected to click around to change state (not just get to other page) then its an app, if not, it's a document.
Seems like one required criterion, maybe even the most important criterion, is that a document is static. It can be displayed in a way that changes with time (such as playing video) but it's a dynamic view over static data (you can scrub back and forth and the frames are always the same). A 3D model could also be considered a document, even if you can fly through it, even if it's got a looping or scrubbable animation.
Say I write a static html page that loads a series of images down the page where one image will fit on your screen at any time. If the browser loads them all into memory at once without releasing the memory or maintains the a fully rendered virtual page out of sight, is that bloat the app or runtime fault?
Replies (3)
Runtime can certainly be optimized, but the app can also virtualize or force unloading if it needs to.
Replies (1)
Replies (1)
I suppose, sure, static webpages are closer to "documents" than "apps" and they should work well 'out of the box' without adding heaps of JS to optimize the browser's difficiencies.
If the runtime fails to load the offloaded data back in time there will be visible rendering artifacts so you really have to make sure your strategy is robust
Replies (1)
Lazy loading for images was only introduced around 2019, not every website out there will have been updated since (and retroactively become “badly written”).
It is also not on by default, because the platform itself is too conservative and the implementation doesn’t allow zero breakage changes of defaults like that.
The tooling culture around HTML also isn’t such that you’d be prevented from deploying a site if you can use it but don’t, at least you’re not railroaded towards that.
Lazy should have been the implicit default and we should have gotten loading=“eager” instead. Same with having sane calendar controls, dropdown and collapsible controls, video controls so good we wouldn’t need vendor equivalents, light boxes for images and so on.
Replies (3)
Replies (2)
Replies (2)
Replies (1)
Regardless, if it improved the experience then it becomes like Firefox was in the beginning, and Chrome in the beginning, a better performing competitor about to eat market share.
Continue this thread (1 replies) →
Replies (3)
I think the Corvette once had a special key for driving with enhanced performance, or maybe the key had to be turned to another position, I don't remember which. That caused so many service calls that later 'Vettes dropped it. And in the case of the Corvette, we're already talking about an enthusiast community that ostensibly actually takes an interest. Not so with people who call their browser "the internet".
Continue this thread (1 replies) →
Continue this thread (1 replies) →
My web browser runs on my computer and should do what I tell it to. Nobody else, just me.
The minute someone releases a browser that works that way they'll have whatever money they want to charge me for it. For now even Firefox does all sorts of anti-consumer nonsense and enforces all sorts of client side 'rules' it never should have so webdevs can protect their "rights" at my expense.
In the early days of the internet this kind of made sense. People had the "if devs don't trust the internet nobody will use it" argument. Now I think it's time to say "If users can't trust their own computers they won't use them."
I'm tired of living in Sagans demon haunted world.
My computer had many gigabytes of memory, so I always found this very annoying. Like, yes, Slack is a giant memory hog and that really sucks, but I can't exactly do anything about that.
Maybe Google would have the clout to actually enforce a memory limit like this, but I'm not sure whether anyone else does at this point. Apparently even Apple wasn't big enough.
Replies (1)
Replies (1)
Replies (2)
The internet was a better place when webpages were not seen as "apps."
Replies (1)
Replies (1)