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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: What would your ideal programming language look like?

1 点作者 _callcc将近 10 年前
Extra points for original ideas, syntax or semantics.<p>Perfectly OK to argue for existing languages too. (Why not?)

4 条评论

dozzie将近 10 年前
Why would it be <i>one</i> language? There&#x27;s no such thing.<p>I write glue code for CLI tools a lot. Something specialized similarly to shell is required.<p>I write networking code at various levels, sometimes on top of HTTP, other times I need linewise protocol with SSL&#x2F;TLS, and sometimes I need to work with raw IP packets or ethernet frames.<p>I need sometimes to interact with operating system closely. A necessity to have ABI easily translated to what C gives.<p>There are times when I need fast program with very small memory footprint, so I need clear control over memory usage.<p>No single language nor runtime can fulfil all these (barring uselessly general statement that &quot;Linux is such thing&quot;). It&#x27;s a norm for me to juggle with three or four languages at the same time on a single project.
anonyfox将近 10 年前
Elixir, without the clumsy anonymous function calls (eg.: `sum.(1,2)`. Everything else is pretty much what I want: Functional, not too strict in purity, concurrent, compiled, dynamic, optional static typing, tests in the language core (not an afterthought), first-class comments with doctests, piping, pattern matching.<p>I admit it: syntax matters for me, I&#x27;m actually more productive when dealing with truly <i>elegant</i> code. Also I don&#x27;t do systems level programming (Rust seems interesting for this if I ever need it)
stephenr将近 10 年前
It&#x27;s possible this exists already, I haven&#x27;t researched it that heavily, but..<p>Effectively what I want is a high-level scripting language with &#x27;c-like&#x27; syntax, that can be compiled into a static binary, to allow easier distribution of (in particular) shell utilities.<p>I have a feeling Go may come close, but I have a vague feeling I wasn&#x27;t crazy about the syntax of it.
评论 #9966532 未加载
smt88将近 10 年前
Basically Rust. I&#x27;m not crazy about the syntax. It&#x27;s more the philosophy and goals that I absolutely love.