Better HN
topnewbestaskshowjobs
Log inSign up

YuechenLi

404 karma · joined Feb 27, 2026 (9mo ago) · 189 submissions

Build compilers and kernels for fun.

vibe coded an entire geometric modeling kernel, only brag about it occasionally.

Most humble person in the world.

https://github.com/yuechen-li-dev

yuechenli at outlook.com

Submissions

comment 21h ago · link · parent

Idiomatic Rust seemed to always use a ton of method chaining much more than any other language, even TypeScript, so a lot of Rust code just reads like "names.iter().cloned().map(|name|name.trim().to_string()).filter(|name| name.is_empty()).map(|name| name.to_lowercase()).filter_map(...)" all the time.

comment 2d ago · link · parent

Oh, right. Thanks for reminding me, kinda embarrassing since I just implemented Result <T, E> in the new app I'm building with unions.

comment 3d ago · link · parent

I would just call it a strictly worse subset of C++ with C# syntax rather than Rust, because this doesn't have Rust's memory safety or exhaustive pattern matching, and arena allocation has its own trade-offs too.

comment 3d ago · link · parent

So... What does this have over using NativeAOT which already exists?

Keep in mind a large portion of time NativeAOT is actually SLOWER than going through RyuJIT with the only definitive benefit being smaller binaries, and it's not like you can't do Span<T> and ref structs in modern C# for manual low level memory control already.

So my question is just... why?

comment 4d ago · link · parent

Aetheris kernel for Helios is very different in that STEP AP242 read/write is part of the kernel itself, hence the term "STEP AP242 Native-ish", because the internal representation of the geometry maps directly to a mostly analytical subset of STEP instead of a different internal representation. This was critical because Aetheris doesn't mutate geometry from repeated STEP import/export, so any Aetheris exported geometry always reimports/reexports the exact same way, even though it is slower, which I don't think any other kernel on the market can claim and eliminate a class of error altogether.

comment 4d ago · link · parent

The thing with Framework's setup is that they are really in the exact situation where build quality would suffer the most: Unlike large companies, they don't have the product volume nor the capital for fully automated manufacturing + rigorous inspection/audit, and their hardware are way too custom so they can't use a lot of well tested off-the-shelf parts with the quality assurance amortized like a lot of white box manufacturers.

Big component manufacturers usually tend to not to want to work with somebody like Framework because it's a lot of work for relatively little profit because the lack of volume, which is why the vendor they work with tend to be smaller, cheaper suppliers with weaker engineering/quality assurance.

Framework are fun personal laptops to play around with, but for enterprise, it's probably better to stick with the large manufacturers, as bad as HP/Dell/Lenovo may be sometimes.

comment 4d ago · link · parent

FluidCAD is pretty fantastic and probably has the best UI out of the OpenCascade based CAD imo.

comment 4d ago · link · parent

Should be hotfixed now, and the NIST AP242 parts should import/export at least. The kernel was importing with default tolerance of 0.001mm instead of the part's declared tolerance of 0.01mm. Thanks.

And I think you understand now why I said build a geometry kernel is really a slog sometimes.

comment 4d ago · link · parent

So... many of these are just DFM checks, right? Requirement checks like draft angle minimum and refusal of sharp angles near gates can be enforced programmatically during build time, and in terms of strength of material those can be checked via fast FEA. You are correct that modeling is never the hard part and everything else that happens after modeling is, and I do agree with you that the current AI CAD is insufficient on that front because they overfocus on the modeling portion.

comment 4d ago · link · parent

With LLMs, unless you use a more extreme version of Samsung style hardware fuse, there really isn't anything that Google can do to prevent bootloader unlocking from a technical standpoint since all it really takes is one bug in the kernel for the bootloader to be unlocked.

comment 4d ago · link · parent

There is no traditional 2D constraint solver for parallel/perpendicular/equal, etc. Instead, constraints are requirements generalized in code as Concepts and construction geometries (planes, axis, profiles, etc.) are unified as Concept Structs and erased at compile time like TypeScript, so over/under-constraint for sketches doesn't exist because the constraints are explicit and pre-resolved.

It's easier if I show you some sample code.

https://github.com/yuechen-li-dev/Aetheris/blob/master/fixtu...

comment 4d ago · link · parent

Oh, haven't heard from GIMP in a long time, has there been significant UX improvement and have they carved out a niche like Krita yet?

comment 4d ago · link · parent

That's odd, considering I run round-trip import/export tests on the NIST test step files every commit.

It works for me on both Chrome and Firefox.

https://i.imgur.com/lWU5uP6.png https://i.imgur.com/2pyZ49X.png

Do you have the error message when you try to import CTC-01? And did you use Open File instead of Import STEP and it didn't work? because if you did, that's probably something I should fix in the UI.

comment 4d ago · link · parent

Well, if you like code CAD, I think I've finally got my implementation of CAD app to a state that isn't absolutely embarrassing now, if people would like to try it out.

https://helios-cad-wasm.yuechenli.chatgpt.site/

Be warned though, the Firmament DSL used is designed to be LLM friendly, so it's a language that's way easier to read than it is to write, and it has a very nontraditional constraint system.

comment 4d ago · link · parent

I wouldn't call geometric modeling "fun" to work on, you get to 80% of the way there super quickly, and the remaining 20%(boolean robustness, fillet/chamfer) is a never ending swamp if done with conventional approach.

I think my implementation is the only open-source kernel with actual AP242 PMI support though and has the ability to label STEP files and generate 2D drawings directly from PMI. But it's code CAD and still fairly janky, if you want to try it out in the browser:

https://helios-cad-wasm.yuechenli.chatgpt.site/

Repo:

https://github.com/yuechen-li-dev/HeliosCAD

comment 4d ago · link · parent

Interesting. You are the lead dev for this right? Can you tell me more about it? It looks a bit complicated for my need from the screenshot, do you have a demo version I can try without registration?

comment 4d ago · link · parent

Ok, so I can see that this is a benchmark the submitter made and submitted themselves, which is kinda misleading and should at least be disclosed.

But my question is, what does this benchmark actually measure about the LLM's engineering abilities? It just looks like a page of random bar graphs to me.

comment 4d ago · link · parent

Just curious, what do you think is lacking in the current AI-first CAD workflow that makes it less than production ready?

Full disclosure, I'm currently trying to build something to solve this and it would be nice to get some market feedback.

comment 5d ago · link · parent

I thought they were merging Planner, To Do, and Projects together since they had 3 products that essentially does the same exact thing slightly differently for some weird reason. But the lack of migration from To Do to Planner is very frustratingly Microsoft.

comment 5d ago · link · parent

Ok, sorry for the late response as I had work, but I think I should spend some time discussing the architecture.

The reason I say Aetheris is next generation is that while version 1(currently preserved on a separate branch)is a much more conventional CSG like kernel with 3D boolean, version 2 is its own architecture and doesn't do direct 3D boolean at all in the current production path, and the vestigial 3D boolean code was left as a fallback as a "build your own boolean" kit. To put it simply, what Aetheris does instead is that it compiles code through multiple intermediate representations into STEP geometries, which is why all kernel operation is done through Firmament V2 DSL and called via templates.

If you are talking about complex assemblies, I have had the 400+ part difference engine mockup assembly on the repo README for months now. But if you want to see more assemblies, I've finally got the frontend to an acceptable (though still buggy) state.

https://helios-cad-wasm.yuechenli.chatgpt.site/

One of the weaknesses of Aetheris is that it's not currently very import tolerant for old nonconformant STEP files well as it usually rejects import of degenerate geometry instead of healing silently. As the only parts I've tested on are modern AP242 from NIST and public files from McMaster, which is why AP214 and 203 imports are still listed as experimental for a reason.

- boxy-with-surfacetex.step is indeed a very simple part, but it is also nonconformant: 30 of the file’s cylindrical faces are bands bounded by two full circles, and the exporter (ST-Developer v14) marks both circles as FACE_OUTER_BOUND when the STEP schema allows at most one outer bound per face.

-raspberry_pi_4_model_b.step: part of it was importer bugs that was never caught (Pcurve on cone was read with incorrect convention, for example), part of it is the assembly contains degenerate geometry (a circle was written as three 120-degrees NURBS arcs, pcurves advancing in the wrong direction, geometry gaps that has the faces and edges disagree with each other on tolerances) etc.

But I think both of these bug report should be on the issue tracker on the repo instead of on HN...

comment 1w ago · link · parent

The heavy focus on 3D modeling and CAD is what I've expected from OpenAI recently ever since the news that they disbanded their standalone robotics team, as I would expect them to go all in on physical AI and game/visual asset generation via LLMs.

One of the consequences to that is I think the first wave of AI CAD startups are getting hit by the bitter lesson right now, including the startup companies that trained their own VLM for CAD like Zoo or companies that tries to build CAD specific harness like Adam.new/MecAgent, because the increase in capability from GPT/Claude/Gemini for 3D modeling as a specific area of focus for benchmarks means that the early moat gets eroded super quickly.

comment 1w ago · link · parent

A regular rounded rectangle is G1 continuous while a squircle (superellipse) is G2 continuous, which means that it is not only continuous on position and tangent for its outline, but the curvature rate of change for the outline is also continuous, so it's smoother and doesn't have hard difference between "line" and "rounded corner" on the shape.

comment 1w ago · link · parent

It's an interesting solution to the AI optimized geometry problem, but there is a limitation to this approach that even the paper itself noted: it's fragile to topology change (for example, what if a Boolean cut crosses through an entire face so the vertices order of that face mutates to something completely different?), and it shifts the compute cost from "nudging the entire parameter set to see what works" to "automatically figure out which mesh vertices is associated with which CAD parameter", which is why from what I see the usefulness is fairly narrow at this stage, despite it being interesting LLM led research.

comment 1w ago · link · parent

So, the Claude English to human English translation:

Ordinarily, if you want to adjust the parameters of a CAD part, say, a bracket, to meet a constraint like a particular mass or center of mass, the approach is to change every parameter a little, rebuild the geometry to see what physical properties changes, and repeat until you get the result you wanted.

This is of course a very expensive operation because you have to iterate through every parameter on a part every single time for any optimization pass.

So VCAD's approach is to essentially record how each of the mesh verticies connect to each other after the BRep tesselates, then calculate what part of the mesh are actually affected when a parameter change, and then use that to guide their optimizer to get the physical result they wanted, so they only need to change the relevant parameters they found that affects properties instead of doing the computational equivalent of banging your head against the keyboard and hoping something works.

comment 1w ago · link · parent

Definitely agree with that in concept, but there really a fact that nobody realized until recently after all the game decompilation/mix-ups: LLMs can read assembly fairly well and traditional obfuscation techniques doesn't really work on them, so if you have access to the binary and a disassembler, an LLM agent will be able to reverse engineer and reconstruct the likely high level source code of most software given enough time anyways.

In other words, almost nothing is closed source to LLMs if they have access to the binary.

comment 1w ago · link · parent

In the article:

>In its marketing, Lovable repeatedly emphasizes that no technical knowledge is needed to build projects. This can give the impression that the platform takes care of security too. Yet Lovable’s Terms & Conditions place responsibility for applications and data handling on the customers themselves.

My point is that the way Lovable websites are generated pretty much made no auth or mistake prone from scratch auth stack the default path with no regard to the security problem down the line, and the people they are marketing to are not decent developers or developers at all really, but people who doesn't have much knowledge about software, which is irresponsible.

comment 1w ago · link · parent

One of the golden rule of webdev is "never build your own auth" for a reason.

To me, it feels like Lovable is an irresponsible product selling the idea that web development is trivial now with LLMs, where the reality is that although it's true that agentic coding means while anybody can spin up a website in like 10 minutes, a professional software engineer who knows what they are doing can still utilize LLMs much more effectively than an amateur ever could.

comment 1w ago · link · parent

Not to brag too much, but I believe that my own code CAD language, Aetheris' Firmament, is a bit ahead of KCL in terms of language design, so maybe take a look and see if Firmament is a better target for you to map to?

https://github.com/yuechen-li-dev/Aetheris/blob/master/fixtu...

comment 1w ago · link · parent

You are right about the pattern matching, so it's on me that I didn't write clearly enough, what I meant is that I wish C# had Rust's compiler enforced exhaustive pattern matching over enums and the ability to carry data payloads:

https://doc.rust-lang.org/book/ch06-01-defining-an-enum.html

Instead of .NET 11's more awkward (imo) `union` form.

https://learn.microsoft.com/en-us/dotnet/csharp/language-ref...

comment 1w ago · link · parent

Figure I try pitching at least, but would you consider evaluating my Aetheris kernel to use as Aircad's geometry kernel over OCCT?

https://github.com/yuechen-li-dev/Aetheris

There are currently a lot of newer browser CAD projects that already wraps OCCT WASM, like FluidCAD and Chili3D. And as you said previously, current CAD tools are slow to improve, and part of the reason is because of using kernels first built in the 1980s, and projects like Shapr3D and Plasticity both hit limitations of their existing kernels and switched to Parasolid when their project got bigger, and OCCT's per entity tolerance issue is pretty well know by now.

On another topic, getting a plate with thousands of holes to mesh in under a second is some serious performance, and I do agree with your conclusion that most CAD apps are slow not because of programming language but because accurate NURBS math is inherently slow, but their is also the issues with the 2D constraint solver and fillet/boolean algorithms too. Happy to talk more about the geometry kernel stuff too.

1234567