Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
matt42
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
121.
▲
by
matt42
12y ago
Thanks Dang, I misunderstood the Show HN principles. I won't use it for the next Silicon updates.
122.
▲
by
matt42
12y ago
I also think that with async/await probably coming with the next c++ standard, we will be able to write much simpler async code in plain C++, without Asio.
123.
▲
by
matt42
12y ago
Thanks. I would be happy to hear your feedback: what was nice, what feature/documentation is missing, what should be improved, etc...
124.
▲
by
matt42
12y ago
Ok. My mystake was to post two Show HN: One for the git repository, one for the documentation.
125.
▲
by
matt42
12y ago
I hope the HN staff will read this message and figure out what happened...
126.
▲
by
matt42
12y ago
Could we know why this post has been banned from the frontpage? Thanks, Matt
127.
▲
by
matt42
12y ago
My previous post was a link to the github repository. This post is about the new documentation website which gives much information about the framework.
128.
▲
by
matt42
12y ago
Yes. I already started to read the examples. They are a bit hard to digest but I will definitely take the time to implement a libh2o backend with HTTP/2 support.
129.
▲
by
matt42
12y ago
There are already several C implementations of HTTP 2. And it should not take too long to wrap them in a silicon backend.
130.
▲
by
matt42
12y ago
libuv could be one of the futur backends yes. But with microhttpd silicon is able to handle more req/s that most other web frameworks. I am more focused on stabilizing the code base, documentation, and adding support for other database
131.
▲
by
matt42
12y ago
Wt is more focused on providing Qt-like widget of building interfaces server side. Silicon does have any tool to build html pages. It lets the client do the rendering. Crow is a more similar to silicon. But silicon has several advantages:
132.
▲
by
matt42
12y ago
I agree with your point. We are still at a "prehistoric" age in the development of C++ web servers. All those high level tasks where hard in C++98. But C++11 and C++14 really helps high level programming. Silicon demonstrates that
133.
▲
Spurious Correlations
(tylervigen.com)
3 points
by
matt42
12y ago
|
0 comments
134.
▲
by
matt42
12y ago
Author here. If you have questions or suggestions, please post them here.
135.
▲
Silicon C++14 Web Framework Documentation
(siliconframework.org)
49 points
by
matt42
12y ago
|
28 comments
136.
▲
by
matt42
12y ago
Thanks for you feedback. The @ is just a convenient syntaxic sugar. I will explain in the README how to use silicon with plain C++ code.
137.
▲
by
matt42
12y ago
The perf depends on the backend. However the overhead of the framework is almost 0. I'll publish the benchmark but with microhttpd I was able to serve 280k req/second with the hello work example and a 4 cores I5 processor
138.
▲
by
matt42
12y ago
Thanks for your enthusiasm, you can post your questions here. The project is still young and not funded so I do not have much time to write a comprehensive doc, but I'll do my best. What do you mean by Api layer for raw data?
139.
▲
by
matt42
12y ago
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/sili
140.
▲
by
matt42
12y ago
Even if it not clear in the readme. The preprocessor is optional. I posted the plain c++ version of the hello_word example here: https://github.com/matt-42/silicon/issues/2#issuecomment-705... I will add a no
141.
▲
by
matt42
12y ago
#define S(name) is a bit dangerous. It would affect any C/C++ function called S.
142.
▲
by
matt42
12y ago
Here is the tranformation done by the preprocessor: https://gist.github.com/matt-42/a53cc0b0a8d8f1cf673f It would be really convenient to have it done by the C preprocessor, but it seems impossible to me to get it with
143.
▲
by
matt42
12y ago
Indeed, Silicon should be seen as a glue between low level http libraries, a message encoding format, others externals resources like databases, and your actual API. You can use it with microhttpd, or any other network libraries (the curren
144.
▲
by
matt42
12y ago
I guess you meant that C++ is verbose.. But silicon is designed such that you do not write more lines than you would in Go, Nodejs or Ruby frameworks.
145.
▲
by
matt42
12y ago
You are right. I'll make it clear in the README. The preprocessing can be easy done by hand for those who want to skip the use of the preprocessor, it is actually pretty simple: [...] @test [...] is equivalent to: iod_define_symbol(tes
146.
▲
by
matt42
12y ago
Nice idea. I probably do so after I fix the first batch of issues.
147.
▲
by
matt42
12y ago
It is not part of C++14, it is a small syntaxic sugar that compiles to iod symbols. A compiler convert it to plain C++. In short, their are empty objects holding a unique C++ type. More info here: https://github.com/matt-42&
148.
▲
Show HN: The Silicon C++14 Web Framework
(github.com)
140 points
by
matt42
12y ago
|
37 comments
149.
▲
Using Crosswalk in Chrome Apps for Mobile
(github.com)
2 points
by
matt42
12y ago
|
0 comments
150.
▲
Intel Releases Broadwell-U: New SKUs, Up to 48 EUs and Iris 6100
(anandtech.com)
1 points
by
matt42
12y ago
|
0 comments
More ›