New SectorC 是一个用 x86-16 汇编编写的 C 语言编译器,适合在 x86 机器的 512 字节启动扇区中使用。它支持一个 C 语言的子集,去编写真正有趣的程序。此外,它很可能是有史以来最小的 C 语言编译器。
GitHub 地址→https://github.com/xorvoid/sectorc
2.5 响应式 UI 框架:van
本周 star 增长数:1,050+,主语言:JavaScript
New 据说是最小的响应式 UI 框架,VanJS 是 Vanilla JavaScript 的缩写,是个轻量级、零依赖的响应式 UI 框架,基于纯 vanilla JavaScript 和 DOM 实现。它的用法同 React 有点类似,可以参考下面的代码:
// Reusable components can be just pure vanilla JavaScript functions. // Here we capitalize the first letter to follow React conventions. const Hello = () => div( p("👋Hello"), ul( li("🗺️World"), li(a({href: "https://vanjs.org/"}, "🍦VanJS")), ), )
van.add(document.body, Hello()) // Alternatively, you can write: // document.body.appendChild(Hello())