Byte Buddy
brave-browser
Our great sponsors
Byte Buddy | brave-browser | |
---|---|---|
5 | 1,367 | |
6,006 | 16,601 | |
- | 1.4% | |
9.0 | 9.9 | |
4 days ago | 6 days ago | |
Java | JavaScript | |
Apache License 2.0 | Mozilla Public License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Byte Buddy
-
Monkey-patching in Java
As seen above, the API exposes the user to low-level bytecode manipulation via byte arrays. It would be unwieldy to do it directly. Hence, real-life projects rely on bytecode manipulation libraries. ASM has been the traditional library for this, but it seems that Byte Buddy has superseded it. Note that Byte Buddy uses ASM but provides a higher-level abstraction.
-
Any news on the Classfile API?
Just a drive-by comment: ByteBuddy is worth a look https://bytebuddy.net/. It is built on top of ASM.
-
Proposed: A new CMake scripting language usable alongside existing one
> can you show an example of how you'd parse, say, a .java.in
The canonical way to do such a thing is through the java annotation processing api [1] and using a tool like java poet [2]. Before you did that, you'd probably decide if you wanted to instead use bytecode generation with a library like bytebuddy [3]
But, assuming for some reason, you wanted to torture yourself and actually consume a java.in file and apply a regex, then you'd probably pull out the "maven-replacer-plugin" [4] and configure that for the task at hand. (or use your favorite templating language plugin. There's a million of them).
Though, to be fair, this really isn't something that comes up in regular java programming due to the nature of the ecosystem. Anything you'd want to codegen likely already has a library and anything you didn't would receive (legitimate) push back.
[1] https://www.baeldung.com/java-annotation-processing-builder
[2] https://github.com/square/javapoet
[3] https://bytebuddy.net/
[4] https://github.com/beiliubei/maven-replacer-plugin
-
is rust the only language to have procedural macros?
Have a look at byte buddy.
-
Byte Buddy on Android made possible
If you've ever used libraries like https://github.com/JakeWharton/hugo or https://hibernate.org/ (if you've ever done some backend development) and wondered how do they seem to add some code/logic into your app just by adding some annotation to some method, or if you ever wondered how mocking frameworks like Mockito can change a class behavior for example, then most likely you're interested in a programming technique that allows to modify existing code, usually known as Aspect oriented programming (also known in Java as Bytecode instrumentation) which, even though it might sound intimidating at first, some really cool tools such as Byte Buddy or AspectJ make it quite easy to accomplish.
brave-browser
- FLaNK AI Weekly 18 March 2024
-
Brave's AI assistant now integrates with PDFs and Google Drive
https://github.com/brave/brave-browser/wiki/Patching-Chromiu...
You'll notice the actual patching itself is introduced with the caveat:
-
How Web3 Decentralization Can Dismantle Big Tech Monopolies in 2024
Brave browser, which blocks ads and trackers, grew to over 50 million monthly active users in 2023 while enabling privacy-first models to counter Google's search and Chrome browser ecosystem.
-
Google fixes 8th Chrome zero-day exploited in attacks this year
Still waiting on the Brave stable release with the patched version of chromium https://github.com/brave/brave-browser/issues/35013
- BRAVE browser and Marvel Insider don't play nice ??
-
Brave not opening links in apps / Windows 11
Manually download the standalone version from: https://github.com/brave/brave-browser/releases/tag/v1.61.101 and update it that way.
-
Release Channel 1.61.101
Upgraded Chromium to 120.0.6099.71. (#34740) (Changelog for 120.0.6099.71)
-
Release Channel 1.61.100
Brave Github repository
-
Youtube not working anymore
For those looking for a fix: Use the latest Nightly Build for Brave.
-
Can anyone verify this information about privacy?
~Using privacy plug-ins or browsers. You can block our site from setting cookies used for interest-based ads by using a browser with privacy features, like Brave, or installing browser plugins, like Privacy Badger, Ghostery or uBlock Origin, and configuring them to block third party cookies/trackers.
What are some alternatives?
Javassist - Java bytecode engineering toolkit
Vanadium - Privacy and security enhanced releases of Chromium for GrapheneOS. Vanadium provides the WebView and standard user-facing browser on GrapheneOS. It depends on hardening in other GrapheneOS repositories and doesn't include patches not relevant to the build targets used on GrapheneOS.
Byteman - Byteman Project main repo
bromite - Bromite is a Chromium fork with ad blocking and privacy enhancements; take back your browser!
easydeviceinfo - :iphone: [Android Library] Get device information in a super easy way.
thorium - Chromium fork named after radioactive element No. 90. Windows and MacOS/Raspi/Android/Special builds are in different repositories, links are towards the top of the README.md.
timber - A logger with a small, extensible API which provides utility on top of Android's normal Log class.
Brave-AppImage
joda-time-android - Joda-Time library with Android specialization
iridium-browser - Iridium Browser source code
StatusBarUtil - A util for setting status bar style on Android App.
bypass-paywalls-chrome - Bypass Paywalls web browser extension for Chrome and Firefox.