Re:Show HN: The Silicon C++14 Web Framework
by matt42 on Monday January 19, 2015 @12:11PM
(#8912779)
I'll write more about it later, but silicon actually has a nice way to deal with databases. It currently only support sqlite, but it has:
- a sqlite middleware: See the example here: https://github.com/matt-42/silicon#middlewares
- a sqlite ORM middleware: https://github.com/matt-42/silicon/blob/master/silicon/sqlit...
- a generic CRUD implementation (relying on the ORM): https://github.com/matt-42/silicon/blob/master/tests/crud.cc
The mysql, redis, postgresql equivalents will come soon.
That is pretty awesome! Something for postgresql would be great.
My stack heavily relies on pg and the other ORMs performance have been disappointing, I need to use something like this.
I like the idea of running a light C++ application on a crappy $5/month VPS and squeezing out every last drop of performance, built on top of the idea that modern C++ developers can crank out solutions as fast as Ruby or Python developers. From interviewing and talking to people, I don't think the vast majority of developers really understand how far C++ has come in the last 15 years.
The real PITA with web frameworks is how they interact with the database. Now that C++ has some decent ORMs, an improved feature set, and some strong renewed interest, I think we can make C++ a "web language".