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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Try Hy

178 点作者 proppy超过 11 年前

24 条评论

ninetax超过 11 年前
It&#x27;s a dialect of LISP that&#x27;s compiled down to Python AST IICR.<p>Here&#x27;s more information: <a href="http://docs.hylang.org/en/latest/tutorial.html" rel="nofollow">http:&#x2F;&#x2F;docs.hylang.org&#x2F;en&#x2F;latest&#x2F;tutorial.html</a>
paultag超过 11 年前
Well done! If anyone wants to learn more:<p><a href="http://hylang.org/" rel="nofollow">http:&#x2F;&#x2F;hylang.org&#x2F;</a><p><a href="http://github.com/hylang" rel="nofollow">http:&#x2F;&#x2F;github.com&#x2F;hylang</a><p><a href="http://www.youtube.com/watch?v=ulekCWvDFVI" rel="nofollow">http:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=ulekCWvDFVI</a><p>and a quick 5 minute lightning talk:<p><a href="http://youtu.be/1vui-LupKJI?t=16m13s" rel="nofollow">http:&#x2F;&#x2F;youtu.be&#x2F;1vui-LupKJI?t=16m13s</a><p>(Creator here)<p>Hack on!
评论 #6701421 未加载
agentultra超过 11 年前
I did a little presentation on Hy at Pycon Canada earlier this year [1].<p>Hy has come a ways since then even. Shortly after that talk we added succinct syntax aliases for QUOTE and QUASIQUOTE. And we added a nice clojure-inspired core library.<p>It&#x27;s a cool little language. Fun to hack on. You could learn a few things if you do. And I do hope that we can start help creating documentation for the Python AST module via this project.<p>[1] <a href="http://pyvideo.org/video/2328/hy-a-lisp-that-compiles-to-python" rel="nofollow">http:&#x2F;&#x2F;pyvideo.org&#x2F;video&#x2F;2328&#x2F;hy-a-lisp-that-compiles-to-pyt...</a>
mkramlich超过 11 年前
A+ for presentation
评论 #6700304 未加载
anaphor超过 11 年前
So it just desugars into Python? I see there is a section in the documentation for macros, but there&#x27;s nothing there. Does it support AST macros right now? I thought of doing something similar to this except doing some kind of static or gradual typing (that would be a larger project though).
评论 #6700561 未加载
评论 #6700337 未加载
评论 #6700351 未加载
zaph0d超过 11 年前
Very nice. Surface syntax (and some semantics like interop) seem to be heavily inspired by Clojure :-)
girvo超过 11 年前
Hy is neat. I love Lisps that &quot;compile&quot; or are embedable within host scripting languages.<p>My favourite one to hack on (owing to my PHP ability) is Pharen[0]. Very neat little Lisp that compiles down to PHP, which is very fun to play with. I highly suggest giving Hy a go if you&#x27;re a Pythonista, as you can learn a lot about programming in general by seeing how these sorts of languages map to the host. Very fun to hack on, too!<p>[0]: <a href="http://scriptor.github.io/pharen/" rel="nofollow">http:&#x2F;&#x2F;scriptor.github.io&#x2F;pharen&#x2F;</a>
dmoney超过 11 年前
To quote Dark Helmet, &quot;What the hell am I looking at?&quot;
vezzy-fnord超过 11 年前
Not bad. Could be a very useful tool to teach Python programmers Lisp, although I don&#x27;t think Python benefits much from converting its syntax to sexprs.
评论 #6700365 未加载
nlake44超过 11 年前
Source: <a href="https://github.com/hylang/tryhy" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hylang&#x2F;tryhy</a>
andrelaszlo超过 11 年前
Apparently without TCO :(<p><pre><code> File &quot;&lt;input&gt;&quot;, line 1, in fac File &quot;&lt;input&gt;&quot;, line 1, in fac File &quot;&lt;input&gt;&quot;, line 1, in fac RuntimeError: maximum recursion depth exceeded =&gt;</code></pre>
mattholtom超过 11 年前
Heh, recognized reverse polish notation right away. One of the companies I interviewed at last year had me program an RPN calculator fed by CSV spreadsheets. Weirdest thing I&#x27;ve made to date by a pretty wide margin.
评论 #6700707 未加载
评论 #6700653 未加载
jackhammons超过 11 年前
Incredible implementation.
评论 #6700259 未加载
评论 #6700303 未加载
petercooper超过 11 年前
What blew my mind is this actually worked on my iPod Touch and brought up the keyboard. Usually &quot;dynamic&quot; JavaScript keyboards or games totally fail on there..
hcarvalhoalves超过 11 年前
Excellent. I thought what a LISP on top of the Python runtime would be (like Clojure + JVM), didn&#x27;t knew this existed already.
a3_nm超过 11 年前
&quot;(defun f x (x))&quot; gives a Python stack trace.
评论 #6701234 未加载
评论 #6701230 未加载
Sunlis超过 11 年前
Finally my knowledge of Scheme comes in handy!
talles超过 11 年前
Love at first sight with the presentation
d0m超过 11 年前
I think this is fucking amazing.
basyt超过 11 年前
effin&#x27; finally. now to do some serious lisping!
derp_dogg超过 11 年前
where&#x27;s cons?
评论 #6701852 未加载
评论 #6700798 未加载
jbeja超过 11 年前
This could be the next big thing.
jbeja超过 11 年前
Is Python really that awesome?
评论 #6702585 未加载
评论 #6700562 未加载
ravestar超过 11 年前
[]+1 = [] 1<p>[]+[] -&gt; error ...
评论 #6700279 未加载