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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Y2K – A 0-byte code golfing language using pre-2000 timestamps

2 点作者 benbusby超过 2 年前
Happy New Year HN. I thought it would be a fitting time to share a project I&#x27;ve been working on called Y2K. It&#x27;s a code golfing language that can interpret file timestamps as code and ignore all file content, effectively allowing a set of 0-byte files to collectively form a solution to a problem. The repo has some small examples, including a simple &quot;Hello World&quot; program, printing the Fibonacci Sequence up to N terms, and Fizz Buzz. Most of the current examples only create 1-3 files when exported.<p>To make it easier to write programs, the interpreter allows writing all logic &quot;raw&quot; as file content, rather than requiring users to manually modify file timestamps one by one. These files can then be exported to a set of 0-byte files with their timestamps modified to achieve the same functionality.<p>It&#x27;s still in a fairly early stage and has quite a few limitations, but I&#x27;m curious what people think at this point. It&#x27;s been a fun project to work on and I&#x27;m excited to continue expanding on its functionality moving forward!

暂无评论

暂无评论