Live data from Hacker News

Ask HN: Who is using C++ as the main language for new project?

news.ycombinator.com

11–20 of 199 posts

Re: Ask HN: Who is using C++ as the main language for new project?

#13

I am using C++ for sioyek which is a PDF reader designed for reading research papers and textbooks: https://sioyek.info/ Other libraries used: * MuPDF for PDF rendering * Qt5 for UI * sqlite for database I also recently added a plugin system which is language neutral, but I wrote a python wrapper around it (see and example here: https://sioyek.info/#extensible ).

this is a cool project! I've been wanting to try my hand at building a simple PDF reader. Haven't heard of MuPDF before, thank you!

Re: Ask HN: Who is using C++ as the main language for new project?

#14
I've started using C++ for the REST backend for a mobile app recently.

I'm using restinio for the REST layer (sadly deprecated a couple of months ago, but it still seemed like the best option in terms of clean interface) and sqlite for the DB layer.

I've architected it all so I have a purely insert-only and order-independent DB on the write-side, so litestream was seeming like a good fit for single-writer, multiple readers, but now that's been abandoned, I'll wait until litefs stabilises, or roll my own to do what I need.

I originally started the REST side in dart so I could share code with the flutter client app, but I soon realised that performance wasn't where I wanted it to be and that the backend queries were all very different to client side anyway, so it seemed easier just to create the REST side in C++. I should add that my normal work has been predominantly C++ for many years so it's more familiar to me than learning something else and also being able to hit the sqlite layer directly without another abstraction layer seems beneficial.

I was planning to use litestream to distribute the sqlite DB to multiple readers, but now that's deprecated, I'll probably look into doing my own in C++ later on if his new focus on litefs doesn't work out for me.

Re: Ask HN: Who is using C++ as the main language for new project?

#15
This is a little toy project (an animated 3D wind map), but I started it a couple of days ago so I guess it qualifies as "new":

https://github.com/0xf00ff00f/windmap

Uses CMake, Qt6, CUDA and OpenGL. Here's a short video showing how it currently looks like:

https://twitter.com/0xf00ff00f/status/1557920480564334594

Re: Ask HN: Who is using C++ as the main language for new project?

#19
I am using C++ for processing and currently Qt for GUI (only the CEF component of it, thinking about changing it to native WebView2). CMake for building, nlohmann for json. Still need a connection with server APIs (auth, data sync).

Not sure yet what to use for local data storage, sqlite seems like a pretty rigid solution.

Post reply on HN