Hacker Newsnew | past | comments | ask | show | jobs | submit | user142's commentslogin

Apart from the independence from Google, are there any big differences compared to other engines? Is it faster? Does it use less RAM? I really wish there was a browser engine focused on a different area of the CPU vs. RAM tradeoff. Like a browser engine focused on using very little RAM or maybe even an engine that lets me configure whether I want more speed or lower RAM usage.

I think with today's RAM prices a browser that uses a lot less RAM or has an option for that would be interesting for many people.


Browsers have been optimizing CPU and RAM usage like crazy, over the years. Compared to 15 years ago, they probably are 100x more CPU efficient and maybe 4x more RAM efficient, I don't really know and it obviously varies widely depending on content, but what I do know is that websites are 1000x to 10,000x less efficient, because they can be.

Browsers used to have status bars that showed details about loading the page to regular users. They should have kept them, and they should show statistics about how heavy the page load is: total transferred, total JS vs html/css vs media, total cpu usage, cpu usage per minute, memory usage, high and low watermarks, gpu usage?.

Over time people would come to understand that some websites are way heavier than others, and prefer the lighter alternatives where practical. At least some more web-dev engineering managers may come to appreciate the value of not having absurdly bad efficiency.

And now, why are some company's minor mobile apps 500MB, when an open-source native mobile app can be like 20MB? Same thing - because they can.


You should check Ladybird memory usage. It’s way lower.

I just checked on this page vs chromium. They have the same amount of ram used. Then I navigated to google maps, the same place on the map and ladybird used muuch more ram 1.6GB vs 1.1.

Are you aware that Google has been known to serve more optimized versions of their websites to Chromium users to make Chromium seem faster?

Were any of those sites a Google site?

> Then I navigated to google maps

Think I’m wrong about this. Ignore.

> I think with today's RAM prices a browser that uses a lot less RAM or has an option for that would be interesting for many people.

Time to bring back the Java ME era version of Opera Mini!

> Opera Mini uses a server to translate HTML, CSS and JavaScript into a more compact format. It can also shrink any images to fit as the handset screen. This step makes Opera Mini fast.

> Most Opera Mini versions use only the server-based compression method, with maximal compression but some issues with interactive web apps. Opera Mini can operate in three compression modes: "mini" (or "extreme" on Android versions), "turbo" (or "high" on Android versions) and uncompressed. The turbo and mini modes reduce the amount of data transferred, thereby also increasing speed on slower connections.

> […]

> When browsing the Web in Opera Mini mode, JavaScript is processed by the proxy server, and is merely rendered on the device. This limits interactivity. Scripts cannot be run in the background on the device. If a script is paused (on the server), the browser must communicate with the server to unpause it. JavaScript will only run for a couple of seconds on the Mini server before pausing, due to resource constraints.

https://en.wikipedia.org/wiki/Opera_Mini


Opera Mini - meh.

But desktop Opera powered by Presto should have continued :-(

Such an amazing application.

The only faster browser I've ever used was links2 + SSL support + image support. It didn't render CSS, which meant it became useless circa 2007 (I think?), but it was <<instant>>. Everything would just load instantly, faster than some desktop apps. I was using it with Gmail and it was crazy fast.


Presto-based desktop Opera pioneered many things we take for granted today: instant backclick, mouse gestures, tab groups, saved sessions, arguably tabbed browsing itself (iCab may have had it earlier?).

Used to live in that app. Loved being able to add my own stylesheet or disable a site's style.

I agree, but FYI, firefox has plugins (Auto tab discard) that very aggressively unload ("sleep"/discard) websites, since using it my problems with RAM are much more manageable (I set it to just 1 minute of inactivity). It very helpfully does not unload content with unsent form content.

I noticed that there is no control flow in the examples.


Next article =) How the borrow checker handles ifs and loops is a pretty fun topic. If-statements work like you'd expect (invalidations from both branches are merged). Loops is where it gets weird: we have to scout all the invalidations that happen inside the loop and then "replay" them _before_ the body of the loop. I can explain it more if you'd like.


I was wondering about the case where a reference points to a different path depending on control flow. I guess you can just design your language to make this impossible but this is still possible to do with pointers in C/C++.


Theoretically, we can have a reference that points to two paths, a "path union" so to speak. If the user explicitly typed out the path union, it would be something like:

let my_ref &Entity in (live_list[], dead_list[]) = if ...

though it would be nicer in practice, because the compiler could infer that.

Haven't implemented it yet of course, but the data structures in the borrow checker are designed with this in mind.


Would it then be possible to mutably reference two entries in the same hashmap?


Yep, that comes for free from the model. Though, if you're asking if we can have two unique references (like `&mut`) to two different entries, not yet. Nick's original proposal had some thoughts on how we can do that, and Zeta (another language implementing group borrowing) has some neat dependent-type-ish mechanisms for that. I'm still considering what Valen will want to do there.

Edit: it turns out, Ante has path unions! https://www.reddit.com/r/ProgrammingLanguages/comments/1x37b...


Judging by the enthusiasm for hosted AI models and tools like Claude Code on Hacker News, I don't think people care much about surveillance anymore.


> scalpers and their bots would claim a large share of them

Is there any actual data on this? I know people don't like scalpers but I wonder what the actual percentage is.


Tests can only prove the presence of bugs, but not their absence. If the AI can access the tests, it can easily make them pass by just adding additional if statements. It doesn't mean the code is actually correct.


Surely programs can know where the pointer is as long as it is over a window that belongs to the program. Otherwise hover wouldn't work.


Hover is done by the client telling the compositor it would like the cursor to change its shape if it is over a certain area the client is drawing. But the client does not know where the cursor is or where on the screen the client is (or even if the client is visible at all).


I heard the desktop environmentalists are working on such a project.


The first question should have been "Was this ticket AI-generated?".


Oh, it was! But the guy that generated it insisted that he triple-checked the prose after, and it should be treated as typed by hand

I'm pretty sure it would be okay to stop at 5-10 questions, because it was clear he couldn't answer any. But my friend is from a hateful branch, and so she went for humiliation angle of asking for as much clarification as the ticket itself allowed


I have a very similar situation. Except it isn't even a ticket, just an export of a very long "conversation" with ChatGPT with a vague indication that this is what needs to be implemented. When questioned about it, the person insists they completely understood it before but just forgot after a few days. Sometimes the prompts are removed. Lots of contradictory material in it, some doesn't make sense even in context. Very difficult to figure out what is wanted.


> person insists they completely understood it before but just forgot after a few days.

I don't doubt this, to be honest.

I have the feeling of learning a lot when coding with agents. New features, patterns, entire languages... It's very satisfactory asking questions and getting answers in as much detail as you want, with examples, etc.

Except I forget it all soon after. Because I didn't put the effort. Easy come easy goes .


I'm continually flabbergasted that this is accepted and not immediate grounds for punitive action- plopping slop into a ticket (or having it generated directly) is straight-up disrespectful to the person on the other end. I'd rather have someone slap me in the face directly than get one of these tickets.


> the ability to start a program with restricted access to files, network or OS calls (on Windows and on Linux)

Bubblewrap allows you to do that on Linux.


I just realized that you can run sudo apt install nyancat on Ubuntu. It even includes a man page.


Just to note, that's output using standard ANSI escapes and not kitty or sixel terminal graphics support.


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

Search: