pfr VS makepad

Compare pfr vs makepad and see what are their differences.

pfr

std::tuple like methods for user defined types without any macro or boilerplate code (by boostorg)

makepad

Makepad is a creative software development platform for Rust that compiles to wasm/webGL, osx/metal, windows/dx11 linux/opengl (by makepad)
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
pfr makepad
4 24
1,263 4,690
1.0% 1.3%
7.9 9.9
17 days ago 6 days ago
C++ Rust
Boost Software License 1.0 MIT License
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.

pfr

Posts with mentions or reviews of pfr. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-03-23.
  • Rooting for P1061 "Structured Bindings can introduce a Pack"
    1 project | /r/cpp | 19 Oct 2023
    This single feature opens a world of new possiblities. For example, it makes implementing "getting the number of fields" trivial. Furthrmore, and much more importantly, it enables turning a struct into a tuple. Currently, this can only be done by enumerating cases (therefore it's not fully generic), as with Boost PFR. By the way, PFR greatly simplifies our codebases, especially for parts with serialization and/or reflection.
  • Minimum viable declarative GUI in C++
    3 projects | /r/cpp | 23 Mar 2022
    The code is relatively short and can be groked with a few coffees: https://github.com/boostorg/pfr/tree/develop/include/boost/pfr ; if you're using C++17 it uses a binary search (https://github.com/boostorg/pfr/blob/develop/include/boost/pfr/detail/fields_count.hpp) to count the number of fields in a struct, by starting by the observation that a likely majorant on the number of fields in a struct is sizeof(the struct) * CHAR_BIT, assuming not too many [[no_unique_address]] tomfooleries. Then once this count is known it's possible to simply map them as a tuple through sheer brute force and destructuring: https://github.com/boostorg/pfr/blob/develop/include/boost/pfr/detail/core17_generated.hpp
  • The Serde Rust Framework
    14 projects | news.ycombinator.com | 14 Oct 2021
    I wonder if the c++ approach of boost.pfr would be portable to rust ? It allows reflection on aggregates without needing to annotate anything: https://github.com/boostorg/pfr
  • Counting the number of fields in an aggregate in C++20
    2 projects | /r/cpp | 14 Mar 2021
    It is an 'interesting' meta-programming problem though (wasted many weeks on it myself, fixed a small gcc bug - a 'uniform init' edge case and filed an issue with magic_get Reflecting array members of aggregate structs).

makepad

Posts with mentions or reviews of makepad. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-05.
  • WASM: Big Deal or Little Deal?
    5 projects | news.ycombinator.com | 5 Sep 2023
    It is what Makepad is working on in an interesting way using Wasm and Rust. They have created a Figma-like DSL and a good code separation with the logic behind it. You can edit UI's of in-production apps, and they are bundling an editor for that. Accessibility is an issue, and the project are looking to offer proper support there. In their video linked on the README they run the conference slides on Makepad with live apps embedded and running at 120 fps.

    https://github.com/makepad/makepad

    https://news.ycombinator.com/item?id=36567681

  • Snappy UIs with WebAssembly and Web Workers
    2 projects | news.ycombinator.com | 7 Aug 2023
    > if anyone tells you they need to use WebAssembly to make the UI snappy I'd advise you interrogate that assertion thoroughly.

    Get prepared to be blown away by Makepad [0]. I have no affiliation with them, but just watched their most recent conference presentation [1]. The slides were made with Makepad itself and included, embedded, a full-blown IDE, a synthesizer app, a Mandelbrod to zoom in endlessly, and more. All running at 120fps. The presentation is for the most part live-coding with this setup.

    What they want to do is bring coders and designers closer together, and while some code is in Rust they developed a DSL for the GUI parts that is close to how Figma works. These GUI's can run anywhere.

    And I couldn't help thinking "Why would people have complicated stacks to create Web 2.0 apps for the Google Web, when they have this?", in other words an opportunity to break out of the browser straitjacket.

    [0] https://github.com/makepad/makepad

    [1] https://www.youtube.com/watch?v=rC4FCS-oMpg

  • Makepad- Synthesizer Written in Rust
    3 projects | news.ycombinator.com | 3 Jul 2023
    For those who haven’t seen it, Makepad is also an in-browser code editor with an open-source UI toolkit. Looks like this synth is one of the examples of the UI toolkit.

    https://makepad.dev/

  • 50 Shades of Rust, or emerging Rust GUIs in a WASM world
    3 projects | /r/rust | 26 Apr 2023
    And I'm obsessed with what happens when you press Alt in their editor. I never knew I wanted this, but boy, do I want it.
  • Leveraging Rust and the GPU to render user interfaces at 120 FPS
    15 projects | news.ycombinator.com | 9 Mar 2023
    I tried this, using https://makepad.dev our GPU accelerated UI and renderstack. And unfortunately it wasn't a great experience. Text popping forward for whatever reason is not really an improvement (i tried indent depth, syntax highlighting reasons, cursor behavior). Maybe 'veeeeery' subtly could do something, but otherwise you dont want it to break visual symmetry as we are used to
  • Is the regex crate a bottleneck in your program? If so, can you share the details?
    6 projects | /r/rust | 24 Feb 2023
    Wow, so they did: https://github.com/makepad/makepad/pull/142
  • Ask HN: I just want to have fun programming again
    27 projects | news.ycombinator.com | 8 Feb 2023
    It says on the front page Mac and Web only

    https://github.com/makepad/makepad#prerequisites

    (windows and linux are coming )

  • Rust Web Framework Comparison
    4 projects | news.ycombinator.com | 29 Oct 2022
    We can! It’s a lot of work because you don’t have the whole JS ecosystem to fall back on, but to some that’s a feature not a bug.

    My favorite example of this is https://makepad.dev

  • Lapce release v0.0.12 open source code editor
    6 projects | /r/rust | 24 Mar 2022
    And a feature highlight of Code Lens. The idea is borrowed from https://github.com/makepad/makepad
  • Why Not Rust?
    4 projects | news.ycombinator.com | 18 Dec 2021
    When it comes to compile times, the most optimized Rust codebase I know for optimized for this is makepad.dev [1].

    It is compiling from scratch on mac m1 in around 7.5s [2] and that's +100k lines of Rust. However there is close to none dependencies, so this +100k is all there is to compile pretty much.

    [1] https://makepad.dev/

    [2] https://twitter.com/rikarends/status/1467529091284934666

What are some alternatives?

When comparing pfr and makepad you can also consider the following projects:

Magic Enum C++ - Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code

rust-gpu - 🐉 Making Rust a first-class language and ecosystem for GPU shaders 🚧

magic_get - std::tuple like methods for user defined types without any macro or boilerplate code

ProseMirror - The ProseMirror WYSIWYM editor

MLV-App - All in one MLV processing app.

Flutter - Flutter makes it easy and fast to build beautiful apps for mobile and beyond

ComLightInterop - Cross-platform COM interop library for .NET Core 2.1 or newer

gallery - Flutter Gallery was a resource to help developers evaluate and use Flutter

create-rust-app - Set up a modern rust+react web app by running one command.

react-canvas - High performance <canvas> rendering for React components

EU4ConsolePatcher - A simple memory patcher which enables the internal developer console in ironman mode

xi-editor - A modern editor with a backend written in Rust.