bloaty VS ml-compiler-opt

Compare bloaty vs ml-compiler-opt and see what are their differences.

bloaty

Bloaty: a size profiler for binaries (by google)

ml-compiler-opt

Infrastructure for Machine Learning Guided Optimization (MLGO) in LLVM. (by google)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
bloaty ml-compiler-opt
15 7
4,548 584
0.7% 1.7%
5.3 7.6
about 1 month ago 21 days ago
C++ Python
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

bloaty

Posts with mentions or reviews of bloaty. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-14.

ml-compiler-opt

Posts with mentions or reviews of ml-compiler-opt. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-17.
  • Large Language Models for Compiler Optimization
    3 projects | news.ycombinator.com | 17 Sep 2023
    I did a bit of work on this last summer on (much) smaller models [1] and it was briefly discussed towards the end of last year's MLGO panel [2]. For heuristic replacements specifically, you might be able to glean some things (or just use interpretable models like decision trees), but something like a neural network works fundamentally differently than the existing heuristics, so you probably wouldn't see most of the performance gains. For just tuning heuristics, the usual practice is to make most of the parameters configurable and then use something like bayesian optimization to try and find an optimal set, and this is sometimes done as a baseline in pieces of ML-in-compiler research.

    1. https://github.com/google/ml-compiler-opt/pull/109

  • How to make smaller C and C++ binaries
    4 projects | news.ycombinator.com | 7 May 2023
    If you're using Clang/LLVM you can also enable ML inlining[1] (assuming you build from source) which can save up to around 7% if all goes well.

    There are also talks of work on just brute forcing the inlining for size problem for embedded releases for smallish applications. It's definitely feasible if the problem is important enough to you to throw some compute at it [2].

    1. https://github.com/google/ml-compiler-opt

    2. https://doi.org/10.1145/3503222.3507744

  • A code optimization Ai?
    1 project | /r/AskProgramming | 9 Jan 2023
    LLVM's inlining-for-size and register-allocation-for-performance optimizations are both implemented using machine learning models trained by Google.
  • Google AI Proposes ‘MLGO’: A Machine Learning Guided Compiler Optimization Python Framework
    1 project | /r/artificial | 10 Jul 2022
    Continue reading | Checkout the paper, github, demo and ref article.
  • Google ML Compiler Inlining Achieves 3-7% Reduction in Size
    4 projects | news.ycombinator.com | 6 Jul 2022
    Looks like they do have a pretrained model:

    https://github.com/google/ml-compiler-opt/releases/download/...

    The code will by default auto-download it during the build process. It's about 800 kbytes, which seems very reasonable for something that will reduce the generated code size by gigabytes for a large codebase.

What are some alternatives?

When comparing bloaty and ml-compiler-opt you can also consider the following projects:

Clipboard - 😎🏖️🐬 Your new, 𝙧𝙞𝙙𝙤𝙣𝙠𝙪𝙡𝙞𝙘𝙞𝙤𝙪𝙨𝙡𝙮 smart clipboard manager

capstone - Capstone disassembly/disassembler framework for ARM, ARM64 (ARMv8), BPF, Ethereum VM, M68K, M680X, Mips, MOS65XX, PPC, RISC-V(rv32G/rv64G), SH, Sparc, SystemZ, TMS320C64X, TriCore, Webassembly, XCore and X86.

TinyGo - Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.

LOGICGUIDE - Plug in and Play implementation of "Certified Reasoning with Language Models" that elevates model reasoning by 40%

protozero - Minimalist protocol buffer decoder and encoder in C++

llvm-project - The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.

certified-reasoning - Certified Reasoning with Language Models

periphery - A tool to identify unused code in Swift projects.

connectedhomeip - Matter (formerly Project CHIP) creates more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity Standards Alliance.

espthernet - ESP8266 10-Base-T Ethernet Driver

prometheus-cpp - Prometheus Client Library for Modern C++