Show HN: ArchLang – floor plans as code, compiled to SVG/DXF/PDF

(playground.archlang.uk)

52 points | by chanmeng 2 days ago

16 comments

  • origini 4 minutes ago
    Very nice.

    I will check it out for my current project:

    Personal digital twin.

    Designing and building a virtual twin of my flat and my future house i want to be able to plan my dream farm before i can afford it and it will allow me to priotize things like a greenhouse over a forge etc.

    And depending if i will ever have the money or have to rebuild something: it should be possible to autogenerate random layouts of a perfect house. Like if your test case is waking up, dressing then going outside and coming in dirty for lunch, all of them have pathes and costs etc. and depending on how often you do, you might be able to plan and get a bauhaus style idea out of it.

  • CyLith 15 minutes ago
    This is great if you are designing a house, but less useful for reconstructing an as-built. The main frustration I have is that it's not easy to translate physical measurements into the quantities needed. It's odd to me that rooms are measured from the centerline of the wall, rather than edge to edge, which is what you'd measure with a tape measure or a laser ruler.

    I have been trying to vibe code a proof of concept house-to-cad system where you feed it measurements and it uses a SLAM-like process to reconcile your measurements into a coherent house model. If anyone knows of something, let me know. Or please make it!

  • sondr3 25 minutes ago
    Huh, this seems very cool indeed. I've used Sweet Home 3D to model the house we bought last year but that was an exercise in frustration trying to make things line up properly. This looks like something that'd be fun to try to use to replicate the full layout of the house in.
    • zdc1 13 minutes ago
      I went through a few 3D options when planning my kitchen rennovation before realising I'd need bite the bullet and learn QCAD. (This was more for planning placements and cabinets to the millimetre rather than mockups/aesthetics though.)
  • Hasz 41 minutes ago
    This is cool.

    A couple thoughts:

    - 3d render seems borked, windows/doors show as flat void floating in space.

    - I am personally much more interested in the mechanicals and structural design than things like rugs. US standards are going to be quite different than the UK, eg cavity walls frammed 24-16" OC vs whatever the UK uses.

    - units :)

    - it would be cool to have your integrated ide highlight the render, eg if I click on

    ``` furniture sofa in r_live anchor bottom-left flush inset 250 size 900x2000 label "Sofa" ```

    I see that object highlighted.

    - electrical, plumbing, hvac penetrations planning is imo quite important, along with a DRC system to check you comply with xyz code.

    - multiple floors would be cool

    Anyways, 2c driveby comments, cool project.

  • brudgers 20 hours ago
    Landing page for archlang, https://archlang.uk/
  • jstanley 1 hour ago
    FYI chanmeng I think the reason your comment is dead is because it is LLM-generated.
  • hard_times 41 minutes ago
    Can it do something like an auditorium with concentric seat arrangement, I wonder?
  • wm44821 55 minutes ago
    would be nice if cursor placement in the source highlighted the respective part of the rendering.
  • gwt4life 2 minutes ago
    Cool. I just wish Claude wouldnt make all websites default to looking like he Anthropic website.
  • arendtio 52 minutes ago
    Pretty cool! Is it possible to have multiple floors on top of each other?
  • bttf 37 minutes ago
    Why isn't IKEA using this? For instance, I could convert my empty house into code and then have IKEA send me suggestions.
  • jiggunjer 1 hour ago
    Interesting applications for game design too perhaps. I was looking for a way to design terrain maps using a 2d plan language.
  • Code__Block 17 minutes ago
    huh, very cool indeed !
  • larodi 43 minutes ago
    Love it, hope it gets good adoption!
  • dolmen 1 hour ago
    Stairs?
  • chanmeng 2 days ago
    [dead]