TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Reply to "Scala is Easier than PHP"

24 点作者 old_sound超过 14 年前

2 条评论

barrkel超过 14 年前
On the topic of not restarting your web server after making changes: more interesting to me is parallel sessions running different versions of the server code. New sessions coming in get the newest version of the code, while older sessions keep running the old code, for an arbitrary (configurable) amount of time. This was a property of a system I was part of building in a previous job, and it worked very nicely; all session state was in a tiny (<64K) blob of data which contained in its header a pointer (intranet URL) to the server application metadata. In an ASP.NET environment, this made minor upgrades to the app server software painless, with no need to partition the web farm, bleed out old sessions and bring up new sessions, etc.; it's all automatic.
puls超过 14 年前
I have trouble believing that "no shared state" and "reloading your code with every execution" can possibly be an advantage in production.<p>Maybe when you're developing, sure, but they otherwise only force you in to inefficient workarounds.<p>Of course, the statelessness of HTTP contributes to the necessity, but using a proper language (there, I said it) doesn't get in the way of creating a proper server application.
评论 #1925897 未加载
评论 #1926011 未加载