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.

Trivial REST server in various languages to compare

22 pointsby begoon6 months ago

10 comments

alganet6 months ago
What is the criteria for chosing a framework vs implementing using language fundamentals?<p>I don&#x27;t care about one over another, but I would prefer if all examples followed the same approach. It would make the comparison more valuable.
评论 #42192710 未加载
评论 #42192998 未加载
评论 #42193084 未加载
phtrivier6 months ago
Would have been even more interesting to split the code in different folders (maybe only keeping the global Makefile) as it would have demonstrated the level of boilerplate &#x2F; config &#x2F; dependencies needed for what is basically the &quot;hello world&quot; of the web.
begoon6 months ago
Hey, the author here.<p>Agree, I wasn’t consistent with “a framework” vs “just language” approach. Ideally it should be 100% one or another.<p>My idea was to use the standard library as much as possible, but I didn’t eliminate the use of third party libraries entirely if it would allow async&#x2F;concurrent processing.<p>It all started with Go vs Rust vs Zig as the main point of comparison. Then I added more languages I am familiar with.<p>By far, IMHO, Go is a clear winner in terms of being 100% with the standard library, fully concurrent and quite concise.<p>Sure, JS&#x2F;TS implementations are also concise but it is different, not natively compiled technology.<p>The language&#x27;s selection is purely my personal familiarity, so nothing wrong with Java, it’s just not my area.
VeejayRampay6 months ago
this thread is going to be dozens of replies of people overly defensive of their language producing the whole gamut of &quot;the code in LANGUAGE_X is not optimal, it should use SOME_TECHNOLOGY instead&quot;
评论 #42194184 未加载
评论 #42192659 未加载
xnx6 months ago
No bash? <a href="https:&#x2F;&#x2F;github.com&#x2F;dzove855&#x2F;Bash-web-server">https:&#x2F;&#x2F;github.com&#x2F;dzove855&#x2F;Bash-web-server</a>
frizlab6 months ago
The Swift server is implemented using NIO directly, which nobody will do, ever. They probably should’ve used Vapor or Hummingbird…
indulona6 months ago
i am surprised at how many languages look more like some kind of yaml configuration file rather than actual program.<p>also of note is to notice how many languages lack good support in standard library and therefore require much more code to be needed.
评论 #42192899 未加载
munksbeer6 months ago
No Java, in the top three most widely used languages.
zihotki6 months ago
What problem does it address? What is being compared?
dave1999x6 months ago
Why is this REST and not just HTTP?