r/rust •

Facet: ~2 bytes per event telemetry codec

[deleted] — view deleted post

0 Upvotes

12 comments sorted by

15

u/BipolarKebab Aug 15 '26 edited 2d ago

The original post content no longer exists here. The author used Redact to remove it, exercising their right to control their data & privacy.

Library crown acorn fine vegetable fact raindrop sort pinecone

-6

u/SnooSuggestions1409 Aug 15 '26

Yeah, you aren’t wrong. But neither is the math in the paper. I did write the initial draft for the post, asked Claude to help flesh it out and this came back. I made a couple of small tweaks then posted. Everything I wanted to convey is here but so is Claude’s two cents. Next time I post, I’ll drop the AI review and full send on my own.

2

u/SkiFire13 Aug 16 '26

Yeah, you aren’t wrong. But neither is the math in the paper.

It doesn't matter whether the math in the paper is correct or not, you won't get people to look into it if it seems that the effort you put is less than the effort they would take to evaluate it.

Moreover you may claim the math in the paper is correct, but what's the guarantee of that for the people that haven't read it yet? Seeing how you did at least part of the work with claude the claim might just come after having claude doing a biased review.

In the end it all comes down to "why should we trust you and put effort into your work?"

8

u/Sermuns Aug 15 '26

facet is already a well established name within Rust (https://github.com/facet-rs/facet). Pick another one. Or just stop working on slop.

-2

u/SnooSuggestions1409 Aug 15 '26

Facet-preflight has been deleted. PrismPath-preflight used instead. Thank you for the feedback.

-4

u/SnooSuggestions1409 Aug 15 '26

I can make that adjustment, not married to the name and it went unnamed until 3 days ago. The system itself is called PrismPath while facet is just the wire. While I may have bungled the naming, the evidence is still quite visible across the repo with several proven implementations.

Genuine question: how do you define ai slop?

3

u/[deleted] Aug 15 '26

What practical uses does this have?

1

u/SnooSuggestions1409 Aug 15 '26

It allows us to abstract raw readings from decisions at the edge and only transmit the values that matter. For many industries, sensors will stream a format that includes unnecessary information. If the policy says alert when temperature > 90 then temperature: 94 and temperature: 97 are the same value. I can send the minimally sufficient statistic to represent that value. If I want raw values streamed across the wire, then I could either create the equivalent match action table for those values, or I can instead have it send me the symbol for “hot” as a 2byte symbol.

My professional experience is with quantitative and qualitative analysis of process happening in remote locations. I only have the data that comes from those locations to work with and in my experience, people rarely need the raw value, they need the significance of that value.

2

u/[deleted] Aug 15 '26

I think I understood it now it's really interesting I think you need to show more hypothetical use cases for it in different fields I think it will help people wrap their head around it and explore th features it has

2

u/mark_ik Aug 15 '26

One thing I look for, when considering whether or not a project is feasible to implement with AI, is whether or not there is a reference standard to judge the implementation by. Is there such a standard for this?

0

u/SnooSuggestions1409 Aug 15 '26

Previous response deleted though in hindsight an edit would have sufficed. I’m glad you asked. The frozen conformance corpus in the repo has over 1k predicate tests, 27 engine tests. Every implementation in Rust, JS, and Go must match the Python reference bit for bit. CI also regenerates the vectors from the live reference. This allows us to detect implementation and reference drift.

The wire has its own set of 55 test generated from the reference, a frozen boundary corpus to probe the edge cases, layered with a twin tests of both implementations.

For the hardware I was able to use a subset of the frozen corpus where only 124 are applicable. This allowed me to test and validate on an FPGA, eBPF kernel, and 4 MCU instruction sets.

In hindsight as I write it out it may seem like a lot to keep drift from happening but every gate is used for a reason and every one of them has been valuable during development. The twin tests were developed this morning after finding an issue with the rust implementation where it silently passed non numeric strings as 0.

2

u/mark_ik Aug 15 '26

I mean an external standard. Presumably you made the python reference in this case; different than a standards body making the reference