sml VS Marlin

Compare sml vs Marlin and see what are their differences.

Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine. (by MarlinFirmware)
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
sml Marlin
23 755
1,081 15,902
2.3% 0.5%
6.8 9.8
about 1 month ago 1 day ago
C++ C++
Boost Software License 1.0 GNU General Public License v3.0 only
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.

sml

Posts with mentions or reviews of sml. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-08.
  • Sharing Saturday #496
    6 projects | /r/roguelikedev | 8 Dec 2023
    Anyway the need is not complicated, I need both entry and exit functions from every state, optionally allowing these functions to be coroutines (that's special sauce but for later), and an explicit state transition table which also have a way to say that a state can be accessed at any point. Also allow states to be state machines, optional FSM hierarchies. If you ignore the coroutine stuff it's pretty standard features these days, except that - Boost.MSM is quite archaic now (it was so novel when it was first released...) although it allows most of the features I talked about, I just think it will complicate my code unneecessarilly; - Boost-Ext.SML (not Boost) is almost perfect except it doesnt have entry/exit functions on states for some reason. Also last time we (as in in livestream) tried it in prototypes it didnt compile on msvc XD - Boost-Ext.SML2 is even better but still doesnt have entry/exit functions although it's in the plans.
  • State machines with C++20 coroutines and Asio/Boost Async
    2 projects | /r/cpp_questions | 8 Apr 2023
    Hello all. Being a huge fan of state machine and coroutines, I have been browsing around for examples of what other people do combine these two. I have been using boost-ext/sml for quite many projects and are quite happy about that. But when transitioning to code that relies on coroutines, I would like to write entry/exit/actions/guard methods that uses coroutines and where I can co_await on awaitables from Asio and more recently "Boost Async".
  • Looking for well written, modern C++ (17/20) example projects for microcontrollers
    19 projects | /r/embedded | 16 Mar 2023
    boost-ext/sml: quite modern way of doing state machines using a DSL
  • When Debug Symbols Get Large
    2 projects | news.ycombinator.com | 9 Mar 2023
    I recently was troubleshooting a crash that backtraced through the boost::sml library [0]. The crash didn't actually have anything to do with the library, but it was used as the core event loop.

    The backtrace -- as in, just the output from running `bt` in GDB -- was over a thousand wrapped lines long. There were ~5 stack frames that took up 200 lines of console each to print just the function name. That product's debug builds recently hit the 2GB line, which is enough that old versions of binutils complain.

    I don't know what the solution is. There's some really neat stuff you can do with template metaprogramming, and in stripped release builds it compiles down extremely tiny. Plus the code is very clean to read. But it does feel like there isn't any kind of central vision for the C++ debugging experience, and bad interactions between highly-complex modern C++ typing, the compiler, and the debugger are probably only going to get worse unless somebody (the ISO committee? Vendors?) thinks really hard about debugging support.

    [0]: https://github.com/boost-ext/sml

  • [Boost::MSM] Huge Memory Usage Issue During Compilation
    1 project | /r/cpp_questions | 11 Nov 2022
    I'm a big fan of MSM but what you're experiencing is pretty normal for template-heavy libraries built on C++03 machinery (emulation of variadic templates is the usual culprit). It's probably not the answer you're hoping for, but the real solution is to switch to a library with more modern foundations. (I've been happily using [Boost::ext].SML for a few years but I'm reluctant to strongly recommend anything in particular since I haven't re-explored the problem space since I found it.)
  • State machine suggestion?
    2 projects | /r/QtFramework | 27 Oct 2022
    The Boost one that you mention, seems to be one that it's kinda old. A "successor" of sorts is Boost SML. I've not used it yet, but certainly the first impressions are very good.
  • Specifications for an open source finite state machine library
    1 project | /r/cpp | 25 Oct 2022
    Or Boost.Sml
  • Facts about State Machines
    7 projects | news.ycombinator.com | 29 Sep 2022
    At our company, we rely a lot on https://github.com/boost-ext/sml
  • What are some cool modern libraries you enjoy using?
    32 projects | /r/cpp | 18 Sep 2022
    I'm a big fan of boost::sml for representing state machines.
  • [C++20] New way of meta-programming?
    5 projects | /r/cpp | 5 Sep 2022
    https://github.com/boost-ext/sml (State Machine DSL and backend for perfomance)

Marlin

Posts with mentions or reviews of Marlin. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-26.
  • Why Prusa is floundering, and how you can avoid their fate
    4 projects | news.ycombinator.com | 26 Dec 2023
    There is _a lot_ wrong with Marlin. It is a complex codebase, full with ancient artefacts, litterred with preprocessor ifdefs every 2-3 lines of code, dynamic includes in the middle of CPP files, etc[1]. It's about as unreadable as C++ code gets--well, I guess it's not template metaprogramming.

    Klipper by contrast is a breeze to read through[2].

    I am very grateful for Marlin, for all of reprap, and everyone who has contributed to it. But saying there is nothing wrong with it is straight up misguided.

    [1]: https://github.com/MarlinFirmware/Marlin/blob/bugfix-2.1.x/M...

    [2]: https://github.com/Klipper3d/klipper/blob/master/src/lcd_hd4...

  • E steps way off.
    1 project | /r/ender3 | 6 Dec 2023
    I think you are mistaken. I can't speak for implementations preceding the Ender 3 V2, so what you're saying may have been true at some point for other machines. However, here you can see Marlin developers confirm that there is an EEPROM on the stock E2V2 board using diagrams from Creality and photographic confirmation. Here is the datasheet for the EEPROM. Here is a thread discussing this Marlin release, and also the then-recent release of official Creality firmware which resolved the same issue. Since the stock firmware is based on Marlin, and at the time Marlin did not support this type of EEPROM, the EEPROM was not usable at launch. Any mainstream firmware (official or third-party) from the last three years will be using the onboard EEPROM unless the user intentionally specified otherwise.
  • FYI: Marlin 2.1.2.1 on Sapphire plus v2
    1 project | /r/TwoTrees | 26 Sep 2023
    pull latest Marlin from github: https://github.com/MarlinFirmware/Marlin
  • Ender 3 Pro + Octoprint = Thermal Malfunction, system stopped! Heater_ID: E0
    1 project | /r/Ender3Pro | 25 Aug 2023
    Also, checked the following discussion but seems like I need to update the firmware to be able to comment that like right? Temperature variance monitor tweaks by zeleps · Pull Request #23571 · MarlinFirmware/Marlin · GitHub
  • Marlin DACAI Screen Bug
    1 project | /r/ender3v2 | 6 Jul 2023
  • Anycubic Kobra Marlin 2.1+ based custom firmware
    4 projects | /r/anycubic | 30 Jun 2023
    i spent some time and successfully rebased Kobra 2.8.2 OG firmware from an unknown Marlin ~2.0.8 frankenstein to a clean latest (as of now) release (not bugfix) 2.1.x -- v2.1.2.1 + 1 commit
  • Digraphs and Trigraphs
    3 projects | /r/arduino | 28 Jun 2023
    As an example, check the macropocalypse in Marlin - but the actual trigger for me to start was Reprap firmware doing a floating point divide in interrupt context while targeting AVR8 core…
  • Need advice on intermittent thermal runaway (Ender 3 V2)
    1 project | /r/FixMyPrint | 27 Jun 2023
    Any change of thermistor or to a PT100/PT1000 will require recompiling the firmware, because every type has different characteristics. Marlin uses an internal table to calculate the temperature for whatever reading it gets from the CPU's analogue-to-digital converter. It has many tables for different thermistors, but only one is ever incorporated at compile time. So you have to specify which type you're using. You can see the commonly-used types in the list in Marlin's Configuration.h file, in the section headed // @section temperature. The tables themselves are in Marlin/src/module/thermistor.
  • Marlin ramps1.4
    1 project | /r/AnetA8 | 23 Jun 2023
  • Has anyone actually edited Marlin source code and added a new feature?
    1 project | /r/MarlinFirmware | 22 Jun 2023
    FWIW It IS open source but the GNU General Public License v3.0 rules apply. https://github.com/MarlinFirmware/Marlin/blob/bugfix-2.1.x/LICENSE

What are some alternatives?

When comparing sml and Marlin you can also consider the following projects:

hsm - Finite state machine library based on the boost hana meta programming library. It follows the principles of the boost msm and boost sml libraries, but tries to reduce own complex meta programming code to a minimum.

MKS-TinyBee - MKS TinyBee is a mainboard for 3d printing, based on ESP32 module

stm32plus - The C++ library for the STM32 F0, F100, F103, F107 and F4 microcontrollers

SKR-2

hana - Your standard library for metaprogramming

klipper - Klipper is a 3d-printer firmware

HFSM2 - High-Performance Hierarchical Finite State Machine Framework

Marlin-2.0.X-MKS-Robin-Nano - Marlin 2.0.X for the MKS Robin Nano 1.1/1.2

Experimental Boost.DI - C++14 Dependency Injection Library

BIGTREETECH-SKR-mini-E3 - BIGTREETECH SKR-mini-E3 motherboard is a ultra-quiet, low-power, high-quality 3D printing machine control board. It is launched by the 3D printing team of Shenzhen BIGTREE technology co., LTD. This board is specially tailored for Ender 3 printer, perfectly replacing the original Ender3 printer motherboard.

Boost.Beast - HTTP and WebSocket built on Boost.Asio in C++11

Ender-3 - The Creality3D Ender-3, a fully Open Source 3D printer perfect for new users on a budget.