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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: What are some well-designed REPLs?

8 点作者 avindroth超过 1 年前
I am designing a DSL and a REPL, and am looking for some inspiration.<p>CLI or embedded in editor, I don’t mind either.

3 条评论

denvaar超过 1 年前
I don&#x27;t know if it technically qualifies as a REPL[1], but I really enjoy Elixir&#x27;s interactive console, IEx. What I like about it:<p>- Tab completion (obviously). Not only for functions&#x2F;modules&#x2F;bindings that are in scope, but also when you&#x27;re in a string and begin typing a path, it will complete the directory names and stuff.<p>- You can type &quot;h&quot; before a module or function name to read the docs. Similarly, you can do the same with &quot;t&quot; to see type information.<p>- History of what you&#x27;ve executed, and also a reverse history search feature.<p>- Not fully &quot;readline compatible&quot;, but some basic, standard key bindings work.<p>- Plenty of handy helper functions.[2]<p>[1] <a href="https:&#x2F;&#x2F;ferd.ca&#x2F;repl-a-bit-more-and-less-than-that.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;ferd.ca&#x2F;repl-a-bit-more-and-less-than-that.html</a><p>[2] <a href="https:&#x2F;&#x2F;hexdocs.pm&#x2F;iex&#x2F;1.13&#x2F;IEx.Helpers.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;hexdocs.pm&#x2F;iex&#x2F;1.13&#x2F;IEx.Helpers.html</a>
uticus超过 1 年前
Ruby&#x27;s IRB has always been nice to work with: <a href="https:&#x2F;&#x2F;github.com&#x2F;ruby&#x2F;irb#commands">https:&#x2F;&#x2F;github.com&#x2F;ruby&#x2F;irb#commands</a><p>Of course LISP is the example to look at with REPL: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Read%E2%80%93eval%E2%80%93print_loop#Lisp_specifics" rel="nofollow noreferrer">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Read%E2%80%93eval%E2%80%93prin...</a><p>...esp with Emacs: <a href="https:&#x2F;&#x2F;slime.common-lisp.dev&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;slime.common-lisp.dev&#x2F;</a>
stop50超过 1 年前
I like bpython. An extension of pythons repl