User Editable retweeted
コンパイラを信頼することなく、アセンブリ・バイナリのレベルでRustのようなメモリ安全性を保証できないか?と思い、勢いで、NoCompiler(github.com/h5i-dev/NoCompile…)というOSSを作ってみました。
最近、AnthropicとTheoremが、AIを用いてRISC-Vバイナリの安全性を大規模に形式検証するという取り組みを発表したのを覚えている人も多いと思います。
彼らが検証した性質の一つに、バイナリのメモリ安全性があります。具体的には、AddressSanitizer(ASan)で計装したバイナリと元のバイナリの振る舞いの等価性、および計装済みバイナリがクラッシュしないことを形式的に証明するというアプローチです。
ASanは非常に有用なバグ検出ツールですが、あらゆるメモリ安全性違反を検出できるという理論的保証はありません。そのため、ASanが検出可能なメモリ安全性違反が存在しないことを形式的に証明しても、それだけではメモリ安全性そのものを厳密に証明したことにはなりません。
では、そもそもアセンブリ自体にRustのようなメモリ安全性を保証する型システムを導入できないのでしょうか?
実はこのアイデア自体は決して新しいものではなく、1990年代からProof-Carrying Code(Necula, POPL 1997)やTyped Assembly Language(Morrisett et al., POPL 1998)、実際のx86を対象としたTALx86(Morrisett et al., 1999)などの研究が行われてきました。
今回はこれらのアイデアを参考に、RISC-V向けのTyped Assembly Languageと、その健全性がLean 4で形式証明された型検査器を実装してみました。
具体的には、通常のRISC-Vアセンブリに関数の型やメモリ領域へのアクセス権限、ループ不変条件などを記述することで、各load/store命令がアクセスを許可されたメモリ領域の範囲内に収まることを静的に検査・検証できます。型検査器の健全性はRISC-Vの形式意味論に基づいて証明されており、所定の仮定の下で、型検査を通過したコードのメモリアクセスの安全性が保証されます。
プログラミング言語の歴史を考えると、最初期は人間が機械語やアセンブリを直接書いていましたが、人間の認知能力の限界ゆえに、より抽象化されたプログラミング言語が発明されました。しかし、人間よりもはるかに賢いAIがコードを書くのであれば、人間が理解しやすい高級言語を経由する必要性は薄れていくのかもしれません。
AIが直接アセンブリとその型注釈を生成し、形式証明された型検査器で安全性を保証する。30年近く前から研究されてきたTyped Assembly Languageというアイデアが、AI時代に改めて注目されるのではと思います。
GitHub レポ: github.com/h5i-dev/NoCompile…
User Editable retweeted
Playbit is a pursuit of personal-scale software. Today we’re launching a beta version of a brand-new Playbit. It’s macOS only for now (more platforms soon.) Playbit is infrastructure for a new era of personal-scale, local-first software.
Ever since I started working on Playbit in 2020, have I had this nagging feeling that making software is just too damn complicated. For anything practical, you end up having to do so much “grunt work” that isn’t about the essence of what you’re actually trying to build: maintain servers, week-long waits on Apple bureaucracy, writing your own data sync or just accept that your software will be unavailable when someone uses it on a train that goes through a tunnel.
Playbit is a cultural platform for doing things differently.
You own your data. A Playbit Volume is like a fancy Dropbox that can contain not only files, but also structured data that can be edited offline and syncs whenever you are online. The data is encrypted and uses public-key cryptography to allow sharing volumes with other people or service accounts.
Apps are written in any programming language you’d like. Playbit is like an operating system kernel, a syscall-style C ABI with forwards version compatibility. Apps store their state in Volumes, so when you use an app you have complete visibility into the data stored by the app.
Sessions are like “private spaces” where an app runs. You can invite someone to join a session with a single click — Playbit is fully multiplayer. Session data is of course fully encrypted; a session invitation link holds the encryption key to the session.
We’d love to hear what you think and what you make!
User Editable retweeted
9/UX apps are scriptable to the control level too. All just filesystem operations. Also, now rc has a pretty app version.
User Editable retweeted
Tony Hoare on corporate languages and the price of reliability:
"The price of reliability is the pursuit of the utmost simplicity. It is a price which the very rich find most hard to pay."
User Editable retweeted
Suffering from markdown fatigue 😪 and trying something new to understand a complex plan: a graph of cards, organized around questions and answers, with just enough information at every level. Keyboard driven, highlight focused content, gives me something to do while I read
User Editable retweeted
Reload?
Native clients can load from the dev server: Contract and TS swap live and keep compatible state. Rust logic reloads too, running as Wasm on iOS via an interpreter.
User Editable retweeted
Exact implements its own renderer for drawing pixels on platforms like Linux and Windows called Ink. It's similar to GPUI or egui but works as a renderer under Exact's layout system and can include system native elements, etc. Ink, GPUI and egui perform about t he same for users. Ink starts a bit faster but uses more GPU and peak memory.
User Editable retweeted
There are two main things people care about with native performance: (1) smoothness/fps and (2) startup time. re: Smoothness. Here's Exact vs SwiftUI scrolling through the same rich content feed. You can see Exact holds 120fps and drops zero frames while SwiftUI drops down into the 30-50fps range and is extremely late on many frames.
User Editable retweeted
Exact also gives agents the ability to inspect the state of your app and complete the feedback loop in a variety of ways -- capturing screenshots and videos, inspecting the abstract state of the UI tree, asking for layout properties, etc.
User Editable retweeted
In Exact, your agent has control over the clock which makes testing and prodding faster and easier. Instead of sleeping and hoping an animation has finished, the agent advances the clock then reads the result, so its screenshots and state reads aren't racing tim ers or transitions. This reduces the possibility space of things an agent needs to check on as it tries to figure out why something is happening or isn't. There are a bunch of things like this that make it easier for agents to build and debug.
User Editable retweeted
Contract looks like Python -- indentation has meaning, fairly rigid about formatting, fairly sparse. And it is explicit and stron gly typed and pulls complexity forward into authoring like Rust. Your Contract code describes both your UI like you would in React an d also your state and data flow, the way you would with Redux or Zustand or TanStack Query.
User Editable retweeted
This is what my blog looks like as a Markdown blog.
I love the look. It makes me happy. :-)
And you can change the look with the click of a button. And of course anyone can create a stylesheet. But the key thing is, the look is up to the reader, not the site. That was a fundamental wrong turn that the web took. They put CSS in the wrong place, imho of course.
And btw it's not just for blogs either. You could do a Twitter this way too.
User Editable retweeted
Schevana
A Lisp Machine-style desktop that lives inside one host window and is written entirely in Chez Scheme.
By @PavelUvarov
User Editable retweeted
in 24hrs i made a collaborative, virtual operating system.
"ink os - a social computer"
it's written in a programming language that i wrote (ink) and i can play nocturne (an infinite 3d, ai native mmo) inside of it.
it has permissions like google docs, it's ai steerable via api / cli. (so you can use your local claude / codex subscriptions to vibe code onto it).
each app is sandboxed, so you don't need to worry about what your friends are publishing on the computer.
it uses object storage for files & has a shared database layer that all of the apps can talk to (with reactive subscriptions).
this means all your apps can be interoperable with each other.
think of each "desktop" as an opinionated workspace. pin separate apps to the task bar, surface different files and apps.
i've vibe coded the following apps onto it:
- preview
- finder
- little gods (game)
- palette analysis
- bookmarking
- retro diffusion
- spreadsheets
- video calls
- nocturne (game)
- pathweaver (game)
- rabble rouser (game)
- a collaborative moodboard
- a collaborative text editor
- a collaborative movie list manager
- multiplayer polls
- a music app
- rigamaroll (game)
- a chatroom
- color picker
- ink programming environment
- tic tac toe.
one thing i really love is how you can *duplicate* apps and then it treats them as separate deployments. so you can *really easily* fork an app or an mmo, vibe code some changes and then delete the one you don't like? (or keep both?)
i think the *permissions* model being at the top layer, enables some really fun ux for apps, such as... a video call app where you don't need to share a link with anyone cos it's just part of the space? (or a chatroom, private mmo server, etc).
if there's one thing i've learnt *again and again*...
it's... scale up your ambition.
if i can do this in *24-hrs* with ai, what can a team do in a year?
ok so... there was a 2 day hackathon at work last week...
i built an infinite, 3D, ai native mmo called nocturne... it's set in the world of inkwell.
the server capacity is... pretty good..? i tested it with 1000 connections in the cloud.
it's written in a programming language i wrote (called ink).
it uses polygons & gaussian splat *frostings* for the graphics.
it has an adaptive music system that changes intensity and mood based on the gameplay.
the combat is kind of realtime dnd-like?
all of the npcs are powered by llms, you can talk to them, trade, fight them... they remember you..?
they have little neural nets inside them and they optimise for survival and happiness.
there's *trillions* of combinations of characters... *hundreds of millions* of spell combinations.
all of the creatures have a genome, they reproduce and have mutations creating new creature types...
you can catch them like in pokemon... there's semantic crafting and alchemy... you can be turned into a vampire and burn in the sunlight..?
there's a day & night cycle... seasons... fires spread, rain puts them out, ice freezes over lakes...
you can become a werewolf and infect others? or a weredragon? even a wererat.
you can ride on goats, sheep, horses, eagles and dragons...
aliens can abduct you or the farm animals...
and when you do... you can discover and explore their home planets with different physics.
there's giant colossal beasts to fight, demigods with trials that give you world changing powers...
you can get portals in a bag that take you to home's you can customise like in tiny glade...
oh and there's an api... so people can connect their local agents to it and build their own worlds...
rift's open up and invasions happen. villages learn traditions and will fear you if you treat them badly...
there's open pvp everywhere and you drop all of your gear if you die.
if you try to do pvp in the main cities, then mages will spawn in and try to kill you.
oh... there's also semantic scrying.. you can get any item and cast a spell and it opens a portal to the closest thing that is semantically similar... got a bone? maybe it'll take you to a graveyard... a log? a forest, etc.
i feel like i haven't even *scratched the surface* with how deep this game is, but this post is pretty long... so... *dream bigger*.
User Editable retweeted
Anyone else get told by developers that AI can replace designers, then get asked for a Figma mockup showing what a disabled button should look like?
User Editable retweeted
When was the last time you designed something without using AI at any point in the process?
User Editable retweeted
Doing an implementation of Sam and Ravi's ragged blocks in Hazel to help visualize some stuff
Ragged Blocks: Rendering Structured Text with Style by Sam Cohen
arxiv.org/abs/2507.06460
very interesting method for rendering nested structure while respecting typographical layout























