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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Program Synthesis for Ruby

82 点作者 sankha93大约 3 年前

3 条评论

eatonphil大约 3 年前
&gt; Given a method specification in the form of tests, type and effect annotations with RDL, this synthesizes a Ruby function that will pass the tests. This reduces programmer effort to just writing tests that specify the function behavior and the computer writing the function implementation for you.<p>That&#x27;s really neat! But doesn&#x27;t this just mean that instead of writing your code and logic in Ruby you&#x27;re writing it in RDL?<p>Also, it would be great to see some examples in the README or in an examples folder. It&#x27;s kind of hard for me to tell exactly what I need to write and what to call to generate the Ruby.
评论 #31016376 未加载
评论 #31020047 未加载
noneeeed大约 3 年前
Interesting. Reminds me of my time at university using something called Progol. You gave it positive and negative cases and it&#x27;s algorithm would (very slowly) try and come up with Prolog code that fit it.<p>It was an interesting idea but in reality we spent so much time having to spoon-feed it more and more carefully constructed examples that it just seemed pointless.<p>Not to say that this will suffer from the same issue, but I do wonder if the benefit will really be significant enough to make it worth it.
评论 #31017800 未加载
pmontra大约 3 年前
I&#x27;m writing a Rails API app (for a customer) that is a client to Alexa&#x27;s Skill Management API and is a server for a backend app. I have tests but I&#x27;m afraid that without a 100% coverage of all corner cases I&#x27;ll be disappointed by some results and it could be difficult to manually fix the code generated by the program. Am I overly pessimistic?
评论 #31022057 未加载