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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

K as a Prototyping Language

42 点作者 cubix将近 17 年前

5 条评论

dats将近 17 年前
Last year someone benchmarked a simplified raytracer in a few different languages--primarily to show off OCaml. Later, someone wrote the raytracer in 7 lines of K. <a href="http://www.nsl.com/k/ray/ray.k" rel="nofollow">http://www.nsl.com/k/ray/ray.k</a>. The original comparison: <a href="http://www.ffconsultancy.com/languages/ray_tracer/index.html" rel="nofollow">http://www.ffconsultancy.com/languages/ray_tracer/index.html</a>
评论 #266421 未加载
tdoggette将近 17 年前
/ Right to left precedence:<p>3*2+5 / yields 21<p>Why should I learn this language that I've never heard of if it can't even do math in any sensible way? Not left-to-right, not order of operations, not lisp-like prefix. Who thought that was a good idea?
评论 #266475 未加载
评论 #266210 未加载
评论 #266137 未加载
评论 #266178 未加载
评论 #266303 未加载
dangoldin将近 17 年前
If anyone is interested in some examples, take a look at projecteuler.net - it's a series of mathematical/programming puzzles.<p>After you solve a particular problem you gain access to a forum where people detail their solution. A good amount of the solutions tend to be written in these APL languages (J, K) and may serve as a nice way to learn.
42flicks将近 17 年前
Very interesting, thanks for posting the link.<p>I'm also interested in what industries this language perfoms well.
评论 #266298 未加载
ahold将近 17 年前
Is it "K" or "Q" language?
评论 #266479 未加载
评论 #266336 未加载