Tang
tomlplusplus
Tang | tomlplusplus | |
---|---|---|
2 | 23 | |
3 | 1,417 | |
- | - | |
2.2 | 6.4 | |
5 months ago | 2 months ago | |
C++ | C++ | |
MIT License | MIT License |
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.
Tang
-
Ask HN: What would you show an interviewer if they asked you for code samples?
A template language that I wrote for generating HTML. Meant to be included as a C++ library. https://github.com/Ghoti-io/Tang
Plenty of other C++ code of mine is on Github (such as a bunch of utility stuff, a thread pool, and a HTTP server that I'm writing from scratch), even though I would only call myself an intermediate C++ programmer. I just happen to like the language.
Or, if I had to throw other stuff into the mix, a fairly recent patch to Manim (Python) that got accepted (https://github.com/ManimCommunity/manim/pull/3155).
If I were really pressed, I would dig up a lot of my Drupal (PHP) stuff that I did years ago.
-
Ask HN: How to admit yourself that you cannot learn everything?
1. Realize that it is impossible to become an expert in everything.
2. Realize that it is very possible to become an expert in targeted areas.
3. Pick the targeted area that you enjoy the most and that makes the most $$$.
4. DO SOMETHING with the knowledge. Don't just acquire knowledge, because you will forget it. Build something useful... something that you can show off! THAT is the point at which people will start looking at you as the expert.
Personal note: I decided that I wanted to create a useful, non-trivial programming language, so I built one entirely on video. Github link: https://github.com/coreyp1/Tang Youtube playlist: https://www.youtube.com/playlist?list=PLZqirAnnqaCZ8lT8w7p2P...
Guess what? NOBODY is going to watch the videos, and I know that. But I did it for myself. People look at 2 things: the end result, and the fact that it was me that did it. I'm STILL not an expert at Vim, Flex, Bison, ICU, Make, or programming language design in general, but I absolutely know much, much more than I did starting out, and I learned things that I didn't anticipate. Most of all, though, I found the process personally very rewarding.
tomlplusplus
-
how to handle config files in c++?
Unless you want to make your own config file parser as an exercise (which is a good idea) I'd recommend using toml++.
-
Cmake fetchContent not working in a docker container.
It's a public repo - this one: https://github.com/marzer/tomlplusplus but thank you
-
Poxy - a Doxygen frontend - v0.9.0 released
For a live demo, see the toml++ homepage: https://marzer.github.io/tomlplusplus/
-
Preferred way to read in application settings/config in C++
Added bonus, tomlplusplus is a solid C++ implementation, actively updated, and easy to drop into a project (header only, CMake, vcpkg, Conan, etc.). Very easy to use for what I've needed.
-
toml++ v3.2.0 released
Key links: - Homepage: https://marzer.github.io/tomlplusplus/ - Repository: https://github.com/marzer/tomlplusplus - "What is TOML?": https://toml.io/
-
CMake for toml not working
cmake_minimum_required(VERSION 3.23) project(testProj) set(CMAKE_CXX_STANDARD 23) set(FETCHCONTENT_BASE_DIR ${PROJECT_SOURCE_DIR}/${CMAKE_PROJECT_NAME}/libs CACHE PATH "Missing description." FORCE) include(FetchContent) FetchContent_Declare( tomlplusplus GIT_REPOSITORY https://github.com/marzer/tomlplusplus.git GIT_TAG v3.1.0 ) FetchContent_MakeAvailable(tomlplusplus) add_executable(testProj testProj/src/main.cpp) target_link_libraries(testProj tomlplusplus)
- toml++: Header-Only TOML Config File Parser And Serializer For C++
-
What are some use cases of using shared_ptr in a single threaded program?
I use them in toml++ to store the path of the source document for all the data nodes parsed from that document. Storing it as a separate std::string allocation for every single object would have been very wasteful, and the alternative would have been to make an overall document class that owned everything, which I didn't want to do, so shared_ptr was a good compromise.
-
toml++ v3.1.0 released
Key links: - Homepage: https://marzer.github.io/tomlplusplus/ - Repository: https://github.com/marzer/tomlplusplus - "What is TOML?": https://toml.io/
-
What are some projects that taught you a lot?
toml++ was both my first 'public'/open-source project, and my first ever attempt at a parser. There's a few things I'd do differently now if I were to write it from scratch, but I've learned a lot along the way (particularly about making things build 'clean' on multiple platforms).
What are some alternatives?
toml11 - TOML for Modern C++
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
toml - Tom's Obvious, Minimal Language
toml - Python lib for TOML
json_test_data - Test data for nlohmann/json
cmkr - Modern build system based on CMake and TOML.
tree-sitter-html - HTML grammar for Tree-sitter
serdepp - c++ serialize and deserialize adaptor library like rust serde.rs
toml.io - Source Code for toml.io
tomli - A lil' TOML parser
DiscordCoreAPI - A bot library for Discord, written in C++, and featuring explicit multithreading through the usage of custom, asynchronous C++ CoRoutines.
Kraken - Kraken is an open-source modern math library that comes with a fast-fixed matrix class and math-related functions.