Is vibe coding realistic for building a small DAML app on Canton?
- tonozzibeverley953OP 1
I’m a developer in Richmond, Virginia, currently learning Daml and hoping to build a small internal app on Canton Network. I have some coding background but limited time outside work, so I’ve been curious whether the recent “vibe coding” approach with AI assistants could realistically speed up a first prototype. I came across What is Vibe Coding? The Complete Guide online, and it got me thinking about whether these AI code generation tools can handle something as specific as Daml contracts and Canton’s privacy model. My concern is that AI tools might produce plausible-looking code that doesn’t correctly follow Daml authorization or ledger rules, and I wouldn’t have the experience to catch the mistakes early on. I’m not sure whether to lean on AI generation at all for the first version or just write it manually and learn the hard way. Has anyone here tried AI-assisted coding for a Canton app? Did it actually help, or did you spend more time fixing generated code?
- Jatin_Pandya_cf
I’d suggest official CF Claude Skill for closest to current update Canton 3.x code and debugging.
Here’s a tutorial: https://youtu.be/cVmtWkDiYas?si=4mVi6onDUpvSWJP3
- Martin_Maurer
Interesting. You are describing the EXACT case this tool is made for: https://daml-reason.chainsafe.io/. It’s a semantic router that will help you agent find patterns that match you business intent with confidence. It’s still in the works but tailor-made for the case you are describing.
You can read more about the grant proposal here and if you like this, leave a thumbs up.
Feedback is also very welcome as this is in active development.
- joelmccracken 1
So, my personal experience:
- I have written Haskell professionally for some years (haskell heavily inspired
daml). - I had some initial training on working with
damlbefore starting to build with it. - There were certain unique concepts to the daml/canton model that the training helped with.
- I also work with Claude Opus day in and day out to work with daml.
IME, Claude can do it well enough to at least create something to work on/test out. However, I will say that that it still does miss things and make mistakes, so it is really essential to basically understand what you’re doing.
But, for learning, exploring, and perhaps building a local proof of concept, I think you can get really far with AI-assisted programming. I wouldn’t do a “fully vibe coded” project myself though, as smart contracts are so critical to get correct.
- I have written Haskell professionally for some years (haskell heavily inspired
- Nathan_Cornille
Disclaimer: I’m the person working on this.
We have an ongoing Dev Fund proposal about training Daml-specific coding models. From that we have an autocompleter that we showed to be more accurate than off-the-shelf tools like GitHub Copilot. That is not really relevant for vibecoding though, it is more for if you still write your code yourself in your editor.
We also made benchmarks that measure how good agentic models (so more relevant for vibecoding) are at writing Daml code that passes tests, and at writing tests that catch bugs. The latest off-the-shelf model we tested at the time (gpt-6-sol) was pretty good: it passed 32 of 34 public tasks, and its tests caught 151 of 159 seeded bugs, which imo supports that they could indeed realistically speed up prototypes.