TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Dusa Programming Language (Finite-Choice Logic Programming)

174 pointsby febin5 months ago

14 comments

robsimmons5 months ago
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 未加载
summarity5 months ago
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>
gpm5 months ago
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 未加载
febin5 months ago
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 未加载
wslh5 months ago
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 未加载
treetalker5 months ago
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 未加载
vosper5 months ago
&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 未加载
convolvatron5 months ago
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)
Zezima5 months ago
So happy to see Dusa on HN. Was a joy to see you work on it while in batch at RC. Congrats!
评论 #42752535 未加载
temporallobe5 months ago
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.
adastra225 months ago
&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 未加载
cybice5 months ago
Any real life tasks examples?
评论 #42757357 未加载
Koshkin5 months ago
Dusa McDuff rocks!
Syzygies5 months ago
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 未加载