scnlib
think-cell-library
scnlib | think-cell-library | |
---|---|---|
18 | 2 | |
947 | 356 | |
- | 3.7% | |
9.3 | 3.7 | |
9 days ago | 8 days ago | |
C++ | C++ | |
Apache License 2.0 | Boost Software License 1.0 |
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.
scnlib
-
Why are strings and IO so complicated?
scnlib (https://github.com/eliaskosunen/scnlib) scanf
- Reddit++
- Safe and cross platform C++11 alternative to sscanf
-
CPM.cmake to make CMake's FetchContent easier
include(FetchContent) FetchContent_Declare( Catch2 GIT_REPOSITORY https://github.com/catchorg/Catch2.git GIT_TAG v3.0.0-preview4 ) FetchContent_Declare( fmt GIT_REPOSITORY https://github.com/fmtlib/fmt.git GIT_TAG 9.1.0 ) FetchContent_Declare( scnlib GIT_REPOSITORY https://github.com/eliaskosunen/scnlib.git GIT_TAG v1.1.2 ) FetchContent_MakeAvailable(Catch2 fmt scnlib)
-
[C++20] ClearIO library (unfinished)
Yeah, but parsing format strings in runtime induces an overhead, and doing it in compile time is not trivial, and I’m not sure ClearIO is worth the trouble, since it turns out scnlib exists.
-
My AoC2021 solutions in C++
The code is rather nice (in my biased opinion) and makes heavy use of a couple of libraries like scnlib and [Eigen](eigen.tuxfamily.org/). Some things could probably be more optimized but I mainly focused on conciseness. I hope this is useful and I can explain my thought process further if you have any questions.
-
what annoys you most while using c++?
I've found https://github.com/eliaskosunen/scnlib but haven't tested it. Maybe that suits your needs for 2.
-
The Year is 2022 and the Standard is C++20; what is your preferred way to do Text I/O?
I had a user enum like enum class Color {Red, Green, Blue}; that I wanted to add serialization support for. Following the docs (https://scnlib.readthedocs.io/), after some tweaks I arrived at the following:
-
scnlib (scanf for modern C++) - version 1.0 released
Thanks for the comment, I made an issue tracking this: https://github.com/eliaskosunen/scnlib/issues/51
-
Modern C++ in Advent of Code
I am using some modern libraries: scnlib fmtlib Eigen and usually abuse lambdas :)
think-cell-library
-
Inside boost::concurrent_flat_map
We at think-cell use that pattern a lot in our library.
-
C++ Jobs - Q3 2023
Library * We use Boost throughout our code, e.g., Boost.Spirit for parsing. * We have our own range library, in the same spirit as Boost.Range or Eric Niebler’s range-v3, but going further, for example, by unifying internal and external iteration. We gave a talk about it, and most of the code is public. * We develop our own cross-platform library to support Mac and Windows with a single code base. * We have our own reference-counting and persistence libraries to save and restore whole object trees. * We have an extensive bug reporting infrastructure. Assertions and error checks stay in the release code, and our software automatically reports bugs to our server. The server analyzes the bug, categorizes it and files it in a database that all developers can access. If an update fixes the bug, the user can download the update directly from a bug response web page.
What are some alternatives?
C++ Format - A modern formatting library
LeetCode - This repository contains the solutions and explanations to the algorithm problems on LeetCode. Only medium or above are included. All are written in C++/Python and implemented by myself. The problems attempted multiple times are labelled with hyperlinks.
gainput - Cross-platform C++ input library supporting gamepads, keyboard, mouse, touch
C++ Actor Framework - An Open Source Implementation of the Actor Model in C++
cpp-peglib - A single file C++ header-only PEG (Parsing Expression Grammars) library
gtl - Greg's Template Library of useful classes.
aoc2021 - Advent of Code 2021
Apache Arrow - Apache Arrow is a multi-language toolbox for accelerated data interchange and in-memory processing
tinyformat - Minimal, type safe printf replacement library for C++
etl - Embedded Template Library
libflow
C-Plus-Plus - Collection of various algorithms in mathematics, machine learning, computer science and physics implemented in C++ for educational purposes.