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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Chez Scheme txtar port from Go

74 点作者 hellcow3 个月前
This is a loose port of <a href="https:&#x2F;&#x2F;golang.org&#x2F;x&#x2F;tools&#x2F;txtar" rel="nofollow">https:&#x2F;&#x2F;golang.org&#x2F;x&#x2F;tools&#x2F;txtar</a>, which concatenates files together and allows for a top-level comment.<p>The txtar format is specifically designed to be easy for humans to read and write by hand. It&#x27;s perfect for test data.<p>The library itself tries to follow scheme standards by depending on only SRFIs (and if you&#x27;re new to scheme like me, SRFI stands for &quot;Scheme Requests For Implementation,&quot; and it&#x27;s like a standard library). I hope this is a helpful showcase of a scheme library!<p>I&#x27;m also new to writing scheme, and if any experienced scheme&#x2F;lisp devs are out there with feedback, that would be much appreciated.

5 条评论

thaliaarchi3 个月前
Simple format. Makes me want to write a parser for it using a shared buffered reader library I’m working on in Rust.
评论 #42988576 未加载
评论 #42985661 未加载
shawn_w3 个月前
The Go version treats file data as byte arrays; might want to do the same and use Scheme bytevectors instead of strings. OTOH the docs say it&#x27;s not supposed to be a general binary format...
ewired3 个月前
Similar format: <a href="https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;hrx">https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;hrx</a>
评论 #43054254 未加载
sudahtigabulan3 个月前
The Markdown of archives.
tyho3 个月前
I have been using txtar to provide context to LLM&#x27;s recently.