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.

A Common Lisp library for solving linear programming problems

86 pointsby leraxover 5 years ago

3 comments

namibjover 5 years ago
The with-solved-problem macro shows how (in this case, I think termed &quot;unhygienic&quot;) Lisp macros allow fancy stuff with the code-is-data approach.<p>The first argument seems to be a normal Lisp expression, with no special syntax, and the second argument has the solution variable and all the variables mentioned in the expression bound to (the solution object, the values of the variables in the solution it found).<p>This approach is obviously available for everything. You can just use fully-flexible S-Expressions as essentially function arguments, <i>and the function can modify the variables &#x2F; identifiers in scope during execution of it&#x27;s arguments</i>.<p>It makes me want to do more with Racket again...
评论 #20756205 未加载
评论 #20757339 未加载
评论 #20757673 未加载
panzerkleinover 5 years ago
Another recent computation library for Common Lisp: <a href="https:&#x2F;&#x2F;github.com&#x2F;numcl&#x2F;numcl" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;numcl&#x2F;numcl</a>
评论 #20756702 未加载
dshackerover 5 years ago
How is this different from miniKanren? Isn&#x27;t this logical programming? Or is it more of a simplex NSAT solver?