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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: A side-effect-free programming language?

3 点作者 ssimono大约 5 年前
I am building a system that stores an event log of things that happened, and I would like the users to be able to set some custom functions that would reduce the event log into some sensible &quot;views&quot; of the state.<p>For that I would like to use an embedded programming language, could be anything but ideally doesn&#x27;t have any side-effect and simply works with its input data to produce an output.<p>Such language would be pointless on its own of course, but does someone know if an interpreted script specifically made for embedded programming exists, or if a more &quot;mainstream&quot; interpreter could easily be compiled without the I&#x2F;O machinery

3 条评论

mtmail大约 5 年前
I think &#x27;sandbox&#x27; is the term to search for. <a href="https:&#x2F;&#x2F;github.com&#x2F;mozilla-services&#x2F;lua_sandbox" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mozilla-services&#x2F;lua_sandbox</a>
评论 #22517199 未加载
kindly_fo大约 5 年前
Make your simple language and translate it to sql
PaulHoule大约 5 年前
SQL queries?