News for hackers. Stuff that matters.
Re:µcad: New open source programming language that can gener... by skolos on Monday November 24, 2025 @12:29PM (#46036593)
Looking at examples I see:

``` c = Sector(radius, start = 180°, end = 270°).translate(y = radius); ```

Programming language that requires (maybe it does not require, but then example is not good) to type degrees. Or maybe it is not designed to be typed and rather ai generated?

Re:µcad: New open source programming language that can gener... by UncleEntity on Monday November 24, 2025 @01:28PM (#46037292)
I saw another example where they had 'mm' as well so I'm guessing that's all part of the type system as postfix attributes?

Poked around in the docs a bit but didn't see a grammar so, dunno... I can only guess it does automatic type conversion if you only type the numbers without the qualifier.

Re:µcad: New open source programming language that can gener... by WilstonOreo on Tuesday November 25, 2025 @11:11AM (#46047216)
Yes, we use units as postfix attributes. The grammar is here, in case you are interested: https://codeberg.org/microcad/microcad/src/branch/main/lang/...
Re:µcad: New open source programming language that can gener... by addaon on Tuesday November 25, 2025 @11:12AM (#46047226)
opt-shift-8