Labs · 应用界面
量身打造、值得长留的应用。
不是一个为您改头换面的产品 — 而是为它所运行的现场量身而造:教育、 工业,或您带来的任何行业。一个在零格信号下仍能运转的 Rust 内核,在每块屏幕上皆为原生, 其设计让您的数据始终归您所有。
不是一个套上您配色的模板。而是依其真正所为的工作而塑形的软件。
一间教室、一条生产线、一支外勤班组 — 应用是依这份工作真正如何进行而写的, 而非为了演示。是行业塑造它,而非反过来。
地下室、偏远站点、信号死角 — 工作不会停下。设备守住事实, 一旦信号回来便即刻与边缘节点对账。
没有您无法退出的账户,没有被扣作人质的数据。内核归您,记录归您, 亲手打造它的工程师正是那位回应之人。
来自一个为经久耐用而造的应用的四个数字。
严肃应用的手艺,在于一个由编译器守护的内核,它在没有信号时仍能运转,
并以唯一的事实来源在每一处现场运行。
代码保持英文 — 技术的通用语言。
// the core of the app · typed, so a wrong state cannot be reached #[derive(Clone, Deserialize)] struct Job { id: Uuid, site: SiteId, state: State, // Scheduled → OnSite → Done — nothing else is legal readings: Vec<Reading>, synced: bool, // the device knows what the edge has not yet seen } impl Job { /// A job closes only once every required reading is in. fn can_close(&self) -> bool { matches!(self.state, State::OnSite) && self.readings.iter().all(Reading::valid) } }
// works at zero bars · the floor does not wait for a signal fn record(&mut self, r: Reading) { self.readings.push(r.clone()); self.queue.push(Op::Add(r)); // kept on the device, durable self.synced = false; } /// When the signal returns, the device reconciles — in order, idempotent. async fn reconcile(&mut self, edge: &Edge) -> Result<()> { for op in self.queue.drain(..) { edge.apply(op).await?; // the edge is the record; the device, the witness } self.synced = true; Ok(()) }
# one core, every floor it must run on [targets] ios = "aarch64-apple-ios" # a thin Swift shell over the Rust core android = "aarch64-linux-android" # a thin Kotlin shell over the same core desktop = "x86_64 · aarch64" # Windows · macOS · Linux # the logic is written once, in Rust. only the shell changes per floor. # Swift and Kotlin carry the screen; Rust carries the truth.
为何一个为您的现场而造的应用,胜过一个改头换面来迁就它的产品。
一个改头换面的产品无法为您的现场而造 — 它成形于您的现场尚不为人所知之时。 一个仅限在线的应用,在信号断绝之处无法被信赖 — 等待早已内嵌其中。这正是我们为何 只写一个 Rust 内核、以编译器守护它、并亲自为它署名的原因 — 也是我们为何按度量所得报价、而非照搬货架价的原因。
在落笔写下第一行之前,先讲明如何守护您的成果。这一部分没有商量余地。
保密协议在此是默认,而非加价项目。您分享的内容仅由一位工程师阅读,再无他人 — 绝不出售、分享或转交。
凭证与记录留在您的屋子里,遵循最小权限原则。凡非必需,我们绝不留存副本, 未经您点头,任何东西都不会离开您的掌控。
在您屋子里运行的一切,皆归您阅读与审计 — 没有需要您蒙眼信任的黑箱。 机房归我们,您运行的归您。
两行 — 它所运行的现场,以及它须承载的工作。我们亲自阅读, 亲自回复。
它已经出现在 Zürich 的一块屏幕上 — 不在排队中,不在工单里。 将会打造它的那位工程师正在阅读,并将亲自回信。
·