Impossible Machines 演示物理世界声明式编程原型

原标题:Show HN: Impossible Machines: declaratively program the physical world
42AI 研判分

开发者发布了一个名为 Impossible Machines 的概念验证原型,探索将“声明式编程”范式应用于物理机械系统。用户只需描述期望的物理效果(如敲钟),系统即自动推导并生成实现该效果的机械结构连接方案。目前该项目仅为软件模拟的思想实验,尚未接入真实执行器。

报道正文

1 · Make a detour 2 · Beat the brake 3 · Guided turn Freeform bench

Turn your phone sideways

Impossible Machines works best in landscape, where there’s room to explore the mechanism.

Continue in portrait

Sources

Crank Weight

Block Brake Guide

Obstacles Sinks

Bell Door

×

− Working design

Other designs What is this?

A prototype of what declarative programming may look like for the physical world. Show the system what you want, and watch a mechanism appear. Move the sink, place an obstacle, change the shape. Describe the world, not as it is, but as you wish it to be.

A thought experiment by @bhaprayan


作者发帖说明(HN):

Sharing a thought experiment I put together. The premise: what might declarative programming feel like for the physical world?

We’re already familiar with this paradigm in software land (eg SQL etc where we declare what we want and the execution engine figures out how).

I didn’t have access to an actuator so I mocked up the concept in software. The way it works is you demonstrate the effect and the system figures out how to achieve it. So say you want to ring a bell and you have a crank. The system will find a way to connect the two. If you add obstacles it figures out how to work around them (runs a constraint solver runs behind the scenes).

I think what’s interesting about this is being able to think about the problem at a higher level of abstraction, with the system figuring out a way to achieve the intended effect.

Anyways, curious to read reactions, feedback, and interesting ideas on how to extend this!