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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Dusa Programming Language (Finite-Choice Logic Programming)

174 点作者 febin4 个月前

14 条评论

robsimmons4 个月前
Oh, hello hacker news!<p>Also potentially interesting to this crowd are the underlying editor, which I split out from the online Dusa editor and called &quot;sketchzone&quot; (<a href="https:&#x2F;&#x2F;github.com&#x2F;robsimmons&#x2F;sketchzone">https:&#x2F;&#x2F;github.com&#x2F;robsimmons&#x2F;sketchzone</a>). Some of my motivations and hopes for sketchzone are blogged here: <a href="https:&#x2F;&#x2F;typesafety.net&#x2F;rob&#x2F;blog&#x2F;endless-sketchzone" rel="nofollow">https:&#x2F;&#x2F;typesafety.net&#x2F;rob&#x2F;blog&#x2F;endless-sketchzone</a><p>Also, I more-or-less did Advent of Code 2024 in Dusa: journal entries and links to solutions are at <a href="https:&#x2F;&#x2F;typesafety.net&#x2F;rob&#x2F;blog&#x2F;advent-of-dusa-2024" rel="nofollow">https:&#x2F;&#x2F;typesafety.net&#x2F;rob&#x2F;blog&#x2F;advent-of-dusa-2024</a>
评论 #42751302 未加载
summarity4 个月前
As someone whose day job involves a lot of graph analysis and logic programming[0], I&#x27;m always excited to see new applied research in this area. More energy is needed here.<p>Logic systems will be a key part of solving problems of hybrid data analysis (e.g. involving both social graphs, embedding spaces, and traditional relational data) - Cozo[1] sticks out as a great example.<p>[0] <a href="https:&#x2F;&#x2F;codeql.github.com&#x2F;docs&#x2F;ql-language-reference&#x2F;about-the-ql-language&#x2F;" rel="nofollow">https:&#x2F;&#x2F;codeql.github.com&#x2F;docs&#x2F;ql-language-reference&#x2F;about-t...</a><p>[1] <a href="https:&#x2F;&#x2F;www.cozodb.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.cozodb.org&#x2F;</a>
gpm4 个月前
Is there an implicit algorithm for how this language is evaluated? It seems hard to use without having an understanding of the likely performance of your code.
评论 #42750927 未加载
评论 #42751414 未加载
febin4 个月前
Research Paper <a href="https:&#x2F;&#x2F;arxiv.org&#x2F;pdf&#x2F;2405.19040" rel="nofollow">https:&#x2F;&#x2F;arxiv.org&#x2F;pdf&#x2F;2405.19040</a>
评论 #42750036 未加载
wslh4 个月前
Genuinely asking: what are the advantages of this approach with other approaches like Prolog? How is the interplay between current state-of-the-art, and finite-choice logic programming over what was previously known about logic programming?
评论 #42753188 未加载
评论 #42752588 未加载
treetalker4 个月前
From <a href="https:&#x2F;&#x2F;dusa.rocks&#x2F;docs&#x2F;introductions&#x2F;asp&#x2F;" rel="nofollow">https:&#x2F;&#x2F;dusa.rocks&#x2F;docs&#x2F;introductions&#x2F;asp&#x2F;</a> :<p>&gt; Answer set programming is a way of writing Datalog-like programs to compute acceptable models (answer sets) that meet certain constraints. Whereas traditional datalog aims to compute just one solution, answer set programming introduces choices that let multiple possible solutions diverge.<p>Fascinating! I could see useful applications in litigation (e.g., narrowing potential claims; developing the theory of the case; finding impeaching lines of questioning).
评论 #42771577 未加载
vosper4 个月前
&gt; Note that this if-then statement is written backwards from how it’s written in English: the “then” part, the conclusion is written first, followed by the :- symbol. After the :- symbol come the premises<p>Why not write it like it’s written in English? It could be one less thing to learn for people trying to adopt the language.<p><a href="https:&#x2F;&#x2F;dusa.rocks&#x2F;docs&#x2F;introductions&#x2F;graph&#x2F;" rel="nofollow">https:&#x2F;&#x2F;dusa.rocks&#x2F;docs&#x2F;introductions&#x2F;graph&#x2F;</a>
评论 #42750860 未加载
评论 #42750364 未加载
评论 #42750505 未加载
评论 #42751587 未加载
评论 #42756241 未加载
评论 #42752434 未加载
convolvatron4 个月前
not only do I think that choice is a really important tool for writing pragmatic logic programs, this is a key piece to a really interesting goal - unifying logical and procedural programming (see verse)
Zezima4 个月前
So happy to see Dusa on HN. Was a joy to see you work on it while in batch at RC. Congrats!
评论 #42752535 未加载
temporallobe4 个月前
Have to admit as a “regular” developer using general purpose languages such as Java, C, Ruby, Perl, etc., most of this goes over my head, but at the same time I find the mix of Prolog and VB syntax fascinating and confusing.
adastra224 个月前
&gt; If you’ve X (as implemented in Y), you may want to start by reading about Z<p>No, what I want is a code example, front and center.
评论 #42756766 未加载
cybice4 个月前
Any real life tasks examples?
评论 #42757357 未加载
Koshkin4 个月前
Dusa McDuff rocks!
Syzygies4 个月前
My mind is blown, a new language where I can see new reach. Back in the day, APL was good at multidimensional arrays, and from there could outstrip Fortran shops at anything. A surprising swath of discrete reality can be viewed as a graph, or graphs of graphs. For me, computational group theory, combinatorial enumeration, canonical forms... All topics Claude 3.5 Sonnet happens to be exceptional at.<p>Even a month ago, I&#x27;d have asked &quot;Where&#x27;s the parallelism?&quot; looking at any new language. AI has upended my world. My subscriptions are getting out of hand, they&#x27;re starting to look like some peoples&#x27; sports channel cable bills. I&#x27;ll be experimenting with the right specification prompt to get AI to write correct programs in three languages side by side, in either Cursor or Windsurf. Then ask it to write a better prompt, and go test that in the other editor. I&#x27;m not sleeping much, it&#x27;s like buying my first Mac.<p>One constant debate I have with Claude is how much the choice of language affects AI reasoning ability. There&#x27;s training corpus, but AI is even more appreciative of high level reasoning constructs than we are. AI doesn&#x27;t need our idioms; when it taught itself the game Go it came up with its own.<p>So human documentation is nice, but who programs that way anymore? Where&#x27;s the specification prompt that suffices for Claude to code whatever we want in Dusa?
评论 #42767467 未加载