Why don't Mozilla make or use such engine in its browser? Make something really native for dealing with ads and annoyances. The irony is Brave smartly uses Rust which were forsaken by Mozilla. I know Mozilla seems to have something for ads but honestly I don't even know what it really does, beside its shield icon.
Brave overhauled its Rust adblock engine with FlatBuffers, cutting memory 75%
161–170 of 289 posts
Re: Brave overhauled its Rust adblock engine with FlatBuffers, cutting memory 75%
#162Why don't Mozilla make or use such engine in its browser? Make something really native for dealing with ads and annoyances. The irony is Brave smartly uses Rust which were forsaken by Mozilla. I know Mozilla seems to have something for ads but honestly I don't even know what it really does, beside its shield icon.
Re: Brave overhauled its Rust adblock engine with FlatBuffers, cutting memory 75%
#163Is Brave still a front for a cryptocurrency pump-and-dump scheme?
Never was.
https://news.ycombinator.com/item?id=18734999
https://www.sophos.com/en-us/blog/brave-ceo-apologises-for-a...
https://www.bleepingcomputer.com/news/security/facebook-twit...
and issues with tor (presumably fixed by now)
https://www.coindesk.com/tech/2021/02/22/brave-browser-was-e...
Re: Brave overhauled its Rust adblock engine with FlatBuffers, cutting memory 75%
#164Earlier quoted context omitted.
if I recall correctly Rust does not support any form of dynamic linking or library loading. Most of the community I’ve interacted with are big on either embedding a scripting engine or WASM. Lots of momentum on WASM based plugins for stuff. It’s a weakness for both Rust and Go if I recall correctly
It does support dynamic libs, but virtually all important Rust software seems to be written without any consideration for it.
Or at least it used to be when they designed the thing…
Re: Brave overhauled its Rust adblock engine with FlatBuffers, cutting memory 75%
#165Why don't Mozilla make or use such engine in its browser? Make something really native for dealing with ads and annoyances. The irony is Brave smartly uses Rust which were forsaken by Mozilla. I know Mozilla seems to have something for ads but honestly I don't even know what it really does, beside its shield icon.
Re: Brave overhauled its Rust adblock engine with FlatBuffers, cutting memory 75%
#166I am surprised there does not exist a community fork of Brave yet that strips out all of the commercial stuff (rewards, AI, own updates), making it suitable for inclusion in the repos of mainstream free/libre Linux distros.
Isn't this what Helium is doing? I have been using it as daily driver for half a year, works a charm. Only would like better 1Password integration.
Re: Brave overhauled its Rust adblock engine with FlatBuffers, cutting memory 75%
#167Earlier quoted context omitted.
Edit: I misremembered a Rust crates capability (pre- and post-install hooks), so my comment was useless and misleading.
Aren't procedural macros amd build.rs arbitrary code being executed at build time?
It does unlock some interesting things to be sure, like sqlx’ macros that check the query at compile time by connecting to the database and checking the query against it. If this sounds like the compiler connecting to a database, well, it’s because it is.
Re: Brave overhauled its Rust adblock engine with FlatBuffers, cutting memory 75%
#168Earlier quoted context omitted.
FlatBuffers was definitely the majority of the improvements here! On 64-bit systems, pointers themselves can really start to take up a lot of memory (especially if you multiply them across 100k+ adblock filters). Switching to array indices instead of pointers saves a lot of memory that's otherwise wasted when you don't need to address the entire possible memory space.
Insightful. Many thanks. Flat buffers is know to bloat client code. Was any trick used to mitigate that?
Re: Brave overhauled its Rust adblock engine with FlatBuffers, cutting memory 75%
#169I like Brave but the only thing that keeps me from using it on mobile is the lack of extension. That's why Firefox is my daily driver on Android
And here I am on IOS where Brave but not Firefox can use adblockers. My fucking god I’m not sure enshittification has ever been so widely dispersed. It’s impossible to have any type of unified set up across different OS/devices currently.
Re: Brave overhauled its Rust adblock engine with FlatBuffers, cutting memory 75%
#170Earlier quoted context omitted.
It does support dynamic libs, but virtually all important Rust software seems to be written without any consideration for it.
RAM is cheap mmmkay? Or at least it used to be when they designed the thing…