TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: The Silicon C++14 Web Framework

140 pointsby matt42over 10 years ago

11 comments

vitriol83over 10 years ago
the requirement for pre-processing makes me a bit suspicious, it&#x27;s going to be a pain to interact with other parts of the toolchain, so i would hope there&#x27;s a very good reason for it. i would make this at the top of the README.md.<p>The same comments apply to a lesser extent to the C++14 requirement- does your framework really benefit from using C++14 features over say C++11 ? Again I would make this clear at the top of the README.
评论 #8911560 未加载
jasodeover 10 years ago
If the author has seen Facebook proxygen[1] (another C++ http framework), a comparison to it would be helpful.<p>At first glance, it looks like the Silicon dependency <i>microhttpd</i> is somewhat analogous to proxygen. Is the Silicon value-added proposition the extra layers on top such as auto gen of client-side code, etc?<p>[1] <a href="https://github.com/facebook/proxygen" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;facebook&#x2F;proxygen</a>
评论 #8911919 未加载
sighypeover 10 years ago
I like the concepts behind this framework, even if the &#x27;@&#x27; symbol is debatable. I think, combined with something like CodeSynthesis&#x27; ODB ORM (which apparently supports migrations now), something like this could be used to create some really efficient, light weight web applications that give frameworks like node.js a run for their money.<p>I like the idea of running a light C++ application on a crappy $5&#x2F;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&#x27;t think the vast majority of developers really understand how far C++ has come in the last 15 years.<p>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 &quot;web language&quot;.
评论 #8912779 未加载
tttt123over 10 years ago
The @ definition is insane, something which would never fly in large scale projects. And who names a library function D? If the authors feels typing full meaningful function names is too much he should stay with Javascript. Good C++ is code which is readable by 3rd parties not just yourself.<p>This whole library smacks of #define BEGIN { #define END }
评论 #8916138 未加载
BinaryIdiotover 10 years ago
I really enjoy the C++ language but am incredibly rusty since I haven&#x27;t had a job in a very long time that requires the knowledge of use of the language. I was actually thinking about writing my own web framework for fun and learning (a bonus if it became useful but I wasn&#x27;t holding my breath) but now that I see this I&#x27;m going to play around with it and see if it doesn&#x27;t want I wanted or if I&#x27;ll still work on one.<p>Not a huge fan of the preprocessor usage but still very interesting and very cool!
评论 #8912532 未加载
TillEover 10 years ago
I have to admit, I have no idea what the @ symbol does. Can anyone clarify?<p>It can&#x27;t be a macro, so I assume it&#x27;s a C++14 feature I&#x27;m not aware of.
评论 #8911335 未加载
评论 #8911338 未加载
Yadiover 10 years ago
This is so exciting! I wanna test it out right now and I have so many questions.<p>are there any more docs than the description on Github readme?<p>I know this sounds very n00b of me, but can I use this as an Api layer for raw data?<p>I&#x27;d love to see more middlewares built around it. I used the &#x27;Tree frog framework&#x27; for a while, I felt my work flow was not too efficient due to different api layers.
评论 #8912799 未加载
erglkjahlkhover 10 years ago
Where are the benchmarks? Seriously, I&#x27;d expect this thing to fly.
评论 #8912983 未加载
grandalfover 10 years ago
the point of this kind of thing is that it can allow super fast performance for critical endpoints:<p>Suppose your app consumes a JSON api and it turns out that one or two endpoints constitute most of the server load.<p>Rewriting one or two endpoints using a lightweight, fast framework can be a great solution, so long as you are already being smart about caching and there aren&#x27;t other bottlenecks in your architecture.
igoldnyover 10 years ago
why not Assembly? it&#x27;s faster... :)
评论 #8911644 未加载
easytigerover 10 years ago
Building on an unused standard ensures failure and is little more than masturbation. The use of preprocessor sugar proves this yet further.
评论 #8911451 未加载
评论 #8911356 未加载
评论 #8911545 未加载