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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Koto Programming Language

214 点作者 virtualritz大约 1 个月前

17 条评论

chaosprint大约 1 个月前
Should compare with Rhai (<a href="https:&#x2F;&#x2F;rhai.rs&#x2F;" rel="nofollow">https:&#x2F;&#x2F;rhai.rs&#x2F;</a>)<p>I found rhai&#x27;s syntax very straightforward, and I could almost accomplish my needs just by looking at some basic examples.<p>I use Rhai in wasm, and it can handle real-time audio blocks, which is really impressive:<p><a href="https:&#x2F;&#x2F;glicol.org&#x2F;tour#meta2" rel="nofollow">https:&#x2F;&#x2F;glicol.org&#x2F;tour#meta2</a>
评论 #43517014 未加载
评论 #43519782 未加载
评论 #43560894 未加载
评论 #43524839 未加载
irh大约 1 个月前
Koto creator here, nice surprise to see this on HN so I&#x27;m a bit late to the discussion. Happy to answer any questions!
评论 #43518166 未加载
评论 #43519658 未加载
评论 #43524704 未加载
mostafah大约 1 个月前
Very cool. I really like the idea of implementing higher level features as extensions on top of a smaller core. I wish real scripting languages like this were more common and in use. Lua comes to mind when thinking about a generic scripting language, but even that is not that widespread.
评论 #43516836 未加载
tzury大约 1 个月前
Interesting.<p>At the time we did it with Lua.<p>We extended Nginx and Envoy-proxy with a Rust library (and a server), and added a Lua interface, so users can further tweak the config and the flow.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;zuriby&#x2F;curiefense&#x2F;tree&#x2F;main&#x2F;curiefense&#x2F;curieproxy&#x2F;lua" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zuriby&#x2F;curiefense&#x2F;tree&#x2F;main&#x2F;curiefense&#x2F;cu...</a>
评论 #43515853 未加载
aerzen大约 1 个月前
Recently I&#x27;ve started evaluating new languages in terms of &quot;how difficult would it be to read working code in this language, written by an insane person&quot;.<p>After looking at this for 5 minutes it seems it is better than rhai according to my metric. But not necessarily better than lua.
评论 #43525771 未加载
account-5大约 1 个月前
If I was going to chose a scripting language for rust I&#x27;d pick nushell&#x27;s syntax. Nushell is an amazing shell and it&#x27;s syntax is one of the reasons why.
esafak大约 1 个月前
Would this compile fast enough to be used in shell scripts? #&#x2F;usr&#x2F;bin&#x2F;env koto
评论 #43518267 未加载
amadoury大约 1 个月前
Koto means big brother in Fulani (a West African language).
评论 #43519803 未加载
replwoacause大约 1 个月前
Elegant syntax!
mentalgear大约 1 个月前
&gt; Syntax: [...] minimizing visual distractions, while also managing to avoid inexpressive terseness.<p>Nice! Now, if it only had type support.
评论 #43515866 未加载
评论 #43522661 未加载
评论 #43517679 未加载
shahriarhus大约 1 个月前
It&#x27;s reminds me of Lua for C++, am I correct?
评论 #43525655 未加载
f18m大约 1 个月前
Is this the equivalent of Lua for Rust?
评论 #43525638 未加载
fithisux大约 1 个月前
Koto? Like the Italo-Disco band?
评论 #43516973 未加载
fstarship大约 1 个月前
It seems every scripting language does duck&#x2F;dynamic typing (as far as I can tell this applies to Koto).<p>I don’t understand why… inferred typing is nearly as easy to use while being more robust.<p>For me the biggest gap in programming languages is a rust like language with a garbage collector, instead of a borrow checker.<p>Rust has a lot of features that should be strongly considered for the next generation of programming languages such as<p>result&#x2F;sum types<p>Inferred typing<p>Not object oriented or overly prescriptive with functional programming.<p>I think the closest language to filling that gap is occaml (I am not familiar with it).<p>I have coworker&#x27;s that are more skilled in domain logic that can write basic self contained programs, but stuff like traits, OOP functional programming is a bridge too far.<p>I feel like a language that fills that gap could be useful, context is a manufacturing ERP system.
评论 #43515470 未加载
评论 #43515754 未加载
评论 #43517680 未加载
评论 #43515465 未加载
评论 #43516356 未加载
评论 #43515492 未加载
评论 #43515293 未加载
评论 #43515297 未加载
评论 #43516807 未加载
评论 #43516870 未加载
评论 #43515437 未加载
评论 #43515776 未加载
评论 #43515640 未加载
评论 #43515651 未加载
评论 #43516687 未加载
评论 #43515942 未加载
评论 #43515893 未加载
评论 #43518019 未加载
评论 #43516746 未加载
评论 #43516833 未加载
评论 #43515731 未加载
评论 #43517814 未加载
评论 #43516756 未加载
评论 #43516786 未加载
seivan大约 1 个月前
The documentation and integration with Rust for this amazing, well done! Like other commenters, I also wish it had better static typing and looked more like Elixir with anonymous sum types and template literal types.
brookritz大约 1 个月前
Jabdah
评论 #43515402 未加载
martin-t大约 1 个月前
The amount of scripting languages _for Rust_ is a symptom of how Rust fails to satisfy the need to write code with less strict requirements.<p>It makes perfect sense to use Rust as the main language for your application but have areas which are either in the prototype stage, need to be written quicker or which simply don&#x27;t need the performance. But Rust does not offer a way to enter such a less strict context and such proposals keep getting shot down by the community, even when they are made from core members of the Rust team.<p>Contrast that with C# which has a dynamic keyword, allows enabling a checked context (not just in code where you can&#x27;t miss it but also from csproj), has reflection, etc.<p>I really want Rust to succeed but sometimes the attitude borders on zealotry.
评论 #43515232 未加载
评论 #43515351 未加载
评论 #43515527 未加载
评论 #43515187 未加载
评论 #43515642 未加载
评论 #43515739 未加载
评论 #43515215 未加载