Better HN
topnewbestaskshowjobs
Log inSign up

p-ranav

44 karma · joined Nov 24, 2018 (8y ago) · 24 submissions

Submissions

1.

Show HN: Fccf – Quickly search through C/C++ source code in a directory(github.com ↗)

1 points · by p-ranav · 4y ago · discuss

2.

Show HN: Repr for C++: Return a printable string representation of a value(github.com ↗)

3 points · by p-ranav · 6y ago · discuss

3.

Show HN: Table Maker for Modern C++(github.com ↗)

1 points · by p-ranav · 6y ago · discuss

4.

Show HN: Awesome-hpp – A curated list of header-only C++ libraries(github.com ↗)

3 points · by p-ranav · 6y ago · discuss

5.

Show HN: Structopt for C++ – Parse command line arguments by defining a struct(github.com ↗)

85 points · by p-ranav · 6y ago · 56 comments

6.

Show HN: Envy – Deserialize env. variables into type-safe structs in modern C++(github.com ↗)

1 points · by p-ranav · 6y ago · discuss

7.

Show HN: Tabulate – Table Maker for Modern C++(github.com ↗)

1 points · by p-ranav · 6y ago · discuss

8.

Show HN: Indicators – Activity Indicators for Modern C++(github.com ↗)

1 points · by p-ranav · 6y ago · discuss

9.

Show HN: Jsonlint – A lightweight command-line tool for validating JSON(github.com ↗)

4 points · by p-ranav · 7y ago · discuss

10.

Show HN: CSV for Modern C++(github.com ↗)

1 points · by p-ranav · 7y ago · discuss

11.

Show HN: Preprocessor macro that implements Python-style 'with' statement in C++(github.com ↗)

1 points · by p-ranav · 7y ago · discuss

12.

Show HN: Yet Another Argument Parser for C++(github.com ↗)

1 points · by p-ranav · 7y ago · discuss

comment 7y ago · link · parent

Hello. If boost is already part of your workflow, there is probably no reason to switch. boost::program_options is sophisticated and widely used by the community.

If boost is not part of your workflow and you want something lightweight, then here are some reasons (some of these reasons are "in my opinion"): This library is header-only. It's a single header file and you're off. As the README suggests, the ArgumentParser class is easy to use and intuitive. Processing functions can be provided as "action" lambdas in each argument to convert the argument value from raw strings to higher-level objects and aggregates - examples in the README better represent what I mean here. The parser supports parsing and extraction of std::vector<T> and std::list<T> from a list of argument values too.

There are numerous argument parsers for C++ and this post should have been titled "Yet another argument parser for C++" but hey, I've had fun putting this together. If you think it suits your use-cases, you're welcome to try it out and give me feedback. Thanks.

14.

Argument Parser for Modern C++(github.com ↗)

2 points · by p-ranav · 7y ago · 2 comments

comment 7y ago · link · parent

Start slowly. Don't think about spending four years of ALL your free time on this project. Think short term. 3-6 months and see where you get. Plan what you want to finish in 3-6 months and see if you are able to find the passion to finish what you planned. If you have the passion and it's coming along nicely, you may want to keep going. If, on the other hand, you're finding this work to be tedious and taking up time you could be doing something else with, then you have your answer.

Remember... if this becomes successful, your work won't stop at 4 years. It'll go on for quite a bit longer. Ask yourself if that's something you're up for. If not, keep this as a hobby project and draw your boundaries.

Good luck!

comment 7y ago · link · parent

Did you mean to link to a URL?

comment 8y ago · link · parent

Thanks for the feedback. Yes, I agree. This is not optimal. The project was more a learning experience for me with language interpretation. I have since learned that it is better to implement a byte-code emitter and a stack-based VM. I just wanted to get the tree-walker to a reasonable place before moving on.

Thanks for the links. These are valuable.

18.

Show HN: Walnut – A tree-walking Interpreter in C++(github.com ↗)

3 points · by p-ranav · 8y ago · 2 comments

19.

Show HN: Lightweight Lexer with UTF-8 support in C++(github.com ↗)

2 points · by p-ranav · 8y ago · discuss