frozen
a header-only, constexpr alternative to gperf for C++14 users (by serge-sans-paille)
pika
A WIP little dependently-typed systems language (by naalit)
frozen | pika | |
---|---|---|
10 | 4 | |
1,210 | 35 | |
- | - | |
6.1 | 7.1 | |
about 1 month ago | 18 days ago | |
C++ | Rust | |
Apache License 2.0 | GNU General Public License v3.0 or later |
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.
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.
frozen
Posts with mentions or reviews of frozen.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-07-08.
-
Making a "constant mapping"
I found this extension that implements "frozen" versions of some C++ containers, but I was wondering if there is a good solution available in the standard library.
-
Static map - is it possible?
A library exists that can produce constexpr hash table based containers.
-
What C++ library do you wish existed but hasn’t been created yet?
I use the Frozen library for that. Since the conversions should be known at compile time you can make constexpr hash tables for lookups.
-
Command-line util for class implementation (My first try at a professional c++ application)
The constexpr dependency of note here is frozen.
-
Ambition is cute.
In C++, a drop-in replacement for your DSA can provide significant improvements over the standard library. Particularly the standard unordered_map class can be improved by 50% to 100% (e.g. https://github.com/greg7mdp/parallel-hashmap, or for static maps https://github.com/serge-sans-paille/frozen). Of course, recognize that creating a DS/A from scratch is an entire project, and you shouldn't roll your own for an independent codebase.
-
[Hobby] Bomberman fan 2D Animator needed
Technologies (for curious folks): C++17, SFML, Entt, Frozen, Protobuf, spdlog, GoogleTest, GoogleBenchmark, CMake and Dear ImGui for debug purpose.
-
May 2021 monthly "What are you working on?" thread
In the language, I added anonymous array literals. I did some cleanup in the compiler and updated to LLVM 12 from 10 (which was pretty trivial, surprisingly). I also added frozen, a C++ perfect-hashing library, as a dependency to speed up the lookup of keywords in my lexer. The library exploits C++’s constexpr features to generate a perfect hash at compile-time without any separate build step, which is great, and it also provides a drop-in replacement for std::unordered_map that uses the hash.
-
MSVC Backend Updates in Visual Studio 2019 version 16.10 Preview 2 | C++ Team Blog
This is where I plug Frozen :-] https://github.com/serge-sans-paille/frozen
-
What (relatively) easily to implement features would you like to see in c++23.
I’ve no idea how hard it is to implement, but return type polymorphism would be nice. Especially returning different things based on the constexpress of the result. And then add Frozen eqivalents of associative containers to the STL, so that, for example constexpr auto set = std::make_set(...) would be frozen::set, and auto set = std::make_set(...) would be std::set.
-
Compile-time INI config parsing and accessing with C++20
In which case, I believe the answer your question would be yes: the frozen map.
pika
Posts with mentions or reviews of pika.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-09-01.
-
September 2021 monthly "What are you working on?" thread
I just switched Pika to using significant indentation. This is mostly because of how annoying line continuation is in a ML-style language (so f a b syntax) without significant indentation or required semicolons, but you can read more about the reasons for that decision in this section of the README.
-
May 2021 monthly "What are you working on?" thread
Recently, I've been working on adding garbage collection to Pika. I've successfully written an Immix-based garbage collector that works with the LLVM GC support infrastructure, and I'm currently working on integrating the GC with Pika, or really Durin, the dependently-typed intermediate representation that Pika compiles to. Because types are passed around at runtime, objects of unknown type and size can be stored unboxed in polymorphic data structures; but that makes keeping track of type information for heap allocations somewhat harder, because type information needs to be allocated and constructed at runtime in some cases. It's an interesting design problem, because you want constructing type information to be fast; but the GC will run much more often, so maximizing tracing speed by avoiding e.g. indirection in type information is important; and you also want to construct as much type information as possible at compile time and embed it as constants.
-
March 2021 monthly "What are you working on?" thread
I've been working on adding algebraic effects to Pika during the past month. It's turned out to be harder than I thought it would, but I'm almost done - performing and catching one effect at a time works, and the compilation strategy I'm using now (I reimplemented the whole thing after realizing the strategy I was using wouldn't actually work) should be enough to handle multiple effects at once and also effect polymorphism, I just have to get those working in the elaborator.
-
February 2021 monthly "What are you working on?" thread
After taking a break from Pika, my dependently-typed ML for systems programming, during the month of January, I've started working on it again by getting recursion to work properly. I'm planning on starting to implement algebraic effects next, and an Immix-based garbage collector for boxed values after that. Here's what my current plan for algebraic effects looks like:
What are some alternatives?
When comparing frozen and pika you can also consider the following projects:
gram_grep - Search text using a grammar, lexer, or straight regex. Chain searches for greater refinement.
konna - A fast functional language based on two level type theory
parallel-hashmap - A family of header-only, very fast and memory-friendly hashmap and btree containers.
durin - the Dependent Unboxed higher-oRder Intermediate Notation
STL - MSVC's implementation of the C++ Standard Library.
bluebird - A work-in-progess programming language modeled after Ada and C++
rumi - The rumi compiler
mpv - 🎥 Command line video player
starlight - JS engine in Rust
c3c - Compiler for the C3 language