compile-time

Open-source projects categorized as compile-time

Top 23 compile-time Open-Source Projects

  • BuildTimeAnalyzer

    Build Time Analyzer for Swift

  • compile-time-regular-expressions

    Compile Time Regular Expression in C++

  • Project mention: Why are strings and IO so complicated? | /r/cpp | 2023-12-07

    CTRE (https://github.com/hanickadot/compile-time-regular-expressions) ranges::views (filter, transform, etc.) (C++20) str.find() + str.substr() freopen to stdin + cin >> extraction Parser libraries

  • 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.

    InfluxDB logo
  • utoipa

    Simple, Fast, Code first and Compile time generated OpenAPI documentation for Rust

  • Project mention: What's everyone working on this week (23/2023)? | /r/rust | 2023-06-05

    In case you didn't know https://github.com/juhaku/utoipa is really nice to generate openapi spec and have a swagger!

  • lazy_importer

    library for importing functions from dlls in a hidden, reverse engineer unfriendly way

  • cocoapods-binary

    integrate pods in form of prebuilt frameworks conveniently, reducing compile time

  • xorstr

    heavily vectorized c++17 compile time string encryption.

  • UNITS

    a compile-time, header-only, dimensional analysis and unit conversion library built on c++14 with no dependencies.

  • Project mention: I want some logically difficult c programs | /r/C_Programming | 2023-12-09

    C++ Version

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • Aspect Injector

    AOP framework for .NET (c#, vb, etc)

  • Project mention: Aspect Injector VS Metalama - a user suggested alternative | libhunt.com/r/aspect-injector | 2023-12-07
  • raytracer.hpp

    Simple compile-time raytracer using C++17

  • Rugby

    🏈 Cache CocoaPods for faster rebuild and indexing Xcode project.

  • static-assertions

    Ensure correct assumptions about constants, types, and more in Rust

  • ctpg

    Compile Time Parser Generator is a C++ single header library which takes a language description as a C++ code and turns it into a LR1 table parser with a deterministic finite automaton lexical analyzer, all in compile time.

  • Python-Raytracer

    A basic Ray Tracer that exploits numpy arrays and functions to work fast.

  • reflekt

    A plugin for Kotlin compiler for compile-time reflection (by JetBrains-Research)

  • au

    A C++14-compatible physical units library with no dependencies and a single-file delivery option. Emphasis on safety, accessibility, performance, and developer experience. (by aurora-opensource)

  • pure_simd

    A simple, extensible, portable, efficient and header-only SIMD library!

  • mp

    C++17 ~~Template~~ Meta-Programming library

  • eternal

    A C++14 compile-time/constexpr map and hash map with minimal binary footprint (by mapbox)

  • nimja

    typed and compiled template engine inspired by jinja2, twig and onionhammer/nim-templates for Nim.

  • Project mention: nimja VS happyx - a user suggested alternative | libhunt.com/r/nimja | 2023-05-24
  • todo_by

    Compile-time lifetimes for comments.

  • Project mention: todo_by: Compile-time lifetimes for comments. | /r/rust | 2023-05-13

    Let me know what you think, and if you think you can help out with an issue that affects library authors, please share your insights!

  • ctregex.zig

    Compile time regular expressions in zig

  • Project mention: Compile time regular expression in C++ | news.ycombinator.com | 2023-09-12

    Since other people are posting other lang implementations... someone did it for zig too (probably less polished than this C++ lib) [1]. It is nice that the regexes can be used at compile time too ().

    --

    : I think the difference between C++ template language and Zig comptime is that Zig's comptime is almost equal as Zig's regular language, whereas the experience of programming C++ templates almost feels like learning a separate, equally complex language.

    1: https://github.com/alexnask/ctregex.zig

  • Unchained

    A fully type safe, compile time only units library. (by SciNim)

  • Project mention: GNU Units | news.ycombinator.com | 2023-08-03

    Anything with a finite (200 is small even) number of units misses the algebraic structure of the problem mentioned in https://news.ycombinator.com/item?id=36988497 wherein multiplying|dividing two things gives you a (potentially) new unit which implies an open ended "space" of units.

    To be concrete (hah!), in C++ a template meta-type with 12 signed integer parameters (6 numerators & 6 denominators for rational exponents of SI base units) might be one way to model it.

    Unlike C++ template stuff, Nim macros (like Lisp macros) makes metaprogramming more like procedural programming - just against abstract syntax trees. I think that helps to shield some of this type complexity from users, but the documentation README https://github.com/SciNim/Unchained does better job than I can in an HN comment.

    Of course, for unit system conversion, the number of dimensions (6 in SI, 3 in CGS/Gaussian) changes. So, for full generality you need compile-time (if you want static type integration/CT errors) linear algebra over a rational field (at least & conventionally) to project|inverse project. That might be theoretically possible in C++. I would think it very un-fun and unlikely to ever have been done. There's probably a Mathematica package, though.

  • compile-time-ray-tracer-in-rust

    Compile-Time Ray Tracer in Rust ported from C++

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

compile-time related posts

  • todo_by: Compile-time lifetimes for comments.

    3 projects | /r/rust | 13 May 2023
  • Error formatter for template specializations

    2 projects | /r/cpp | 3 May 2023
  • Compile-Time 'Fun' with Std.ranges

    1 project | news.ycombinator.com | 29 Apr 2023
  • Is there comptime reflection in Rust proc-macro?

    3 projects | /r/rust | 11 Mar 2023
  • Force compiler to construct strings dynamically on the stack (win64)

    1 project | /r/cpp | 29 Dec 2022
  • Code criticism on decrypt function

    1 project | /r/cpp_questions | 21 Nov 2022
  • Konst for Rust: Const equivalents of std functions, comparison, and parsing

    1 project | news.ycombinator.com | 9 Nov 2022
  • A note from our sponsor - SaaSHub
    www.saashub.com | 2 May 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source compile-time projects? This list will help you:

Project Stars
1 BuildTimeAnalyzer 4,279
2 compile-time-regular-expressions 3,163
3 utoipa 1,847
4 lazy_importer 1,492
5 cocoapods-binary 1,293
6 xorstr 1,057
7 UNITS 921
8 Aspect Injector 728
9 raytracer.hpp 667
10 Rugby 652
11 static-assertions 554
12 ctpg 448
13 Python-Raytracer 447
14 reflekt 337
15 au 279
16 pure_simd 227
17 mp 201
18 eternal 189
19 nimja 169
20 todo_by 117
21 ctregex.zig 117
22 Unchained 106
23 compile-time-ray-tracer-in-rust 85

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com