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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Symbolic Execution by Overloading __bool__

81 点作者 philzook5 个月前

5 条评论

PhilipRoman5 个月前
Impressive work. I once implemented sybolic execution in Lua to automate calculating error propagation for physics class, but when I tried to extend the system, I couldn't figured out how to deal with control structures and resorted to writing functions like ifElse(x, y, z). Feels good to find out it is possible after all.
tracnar5 个月前
This is exactly what the CrossHair library does: <a href="https:&#x2F;&#x2F;github.com&#x2F;pschanely&#x2F;CrossHair">https:&#x2F;&#x2F;github.com&#x2F;pschanely&#x2F;CrossHair</a><p>It also overloads other methods to provide kind of symbolic objects.
评论 #42502861 未加载
int_19h5 个月前
Isn&#x27;t this kind of thing exactly why Lisp was so popular for symbolic computation historically?
评论 #42518736 未加载
svilen_dobrev5 个月前
Here some expression builder, with few renderers thereof, in one file, with some tests (beware: from 2012-2016)<p>Was used to turn a python function into plain text (textualize itself), into SQL-text (applicable as query), evaluate-numerically, translate into other languages, and the like.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;svilendobrev&#x2F;svd_util&#x2F;blob&#x2F;master&#x2F;expr.py">https:&#x2F;&#x2F;github.com&#x2F;svilendobrev&#x2F;svd_util&#x2F;blob&#x2F;master&#x2F;expr.py</a>
评论 #42502897 未加载
pizza5 个月前
This is the kind of thing I love to come across on a holiday break that seems ripe for side projects... :)