Live data from Hacker News

Kotlin creator's new language: talk to LLMs in specs, not English

codespeak.dev

211–220 of 304 posts

Re: Kotlin creator's new language: talk to LLMs in specs, not English

#211

THe HN title seems very misleading to me. How is this, in any sense of the word, "formal?" I don't see that particular word used to describe this tool on the web page itself. The site does describe it as a "programming language," which feels like a novel use of the term to me. The borders around a term like "programming language" are inherently fuzzy, but something like "code generation tool" better describes CodeSpe…

Ok we've deformalized the title above.

Re: Kotlin creator's new language: talk to LLMs in specs, not English

#212

This is actually... pretty cool? Definitely won't use it for prod ofc but may try it out for a side-project. It seems that this is more or less: - instead of modules, write specs for your modules - on the first go it generates the code (which you review) - later, diffs in the spec are translated into diffs in the code (the code is *not* fully regenerated) this actually sounds pretty usable, esp. if someone likes writ…

We'd love to hear your feedback! Feel free to come to our discord to ask questions/share experience: https://l.codespeak.dev/discord

Re: Kotlin creator's new language: talk to LLMs in specs, not English

#213

We tend to obsess over abstractions, frameworks, and standards, which is a good thing. But we already have BDD and TDD, and now, with english as the new high-level programming language, it is easier than ever to build. Focusing on other critical problem spaces like context/memory is more useful at this point. If the whole purpose of this is token compression, I don't see myself using it.

Agreed. There is definitely a similarity to BDD.

Re: Kotlin creator's new language: talk to LLMs in specs, not English

#214
What I found more useful is an extra step. Spec to tests, and then red tests to code and green tests.

LLMs works on both translation steps. But you end up with an healthy amount of tests.

I tagged each tests with the id of the spec so I do get spec to test coverage as well.

Beside standard code coverage given by the tests.

Re: Kotlin creator's new language: talk to LLMs in specs, not English

#216
post #204

I think this is 100% the right direction: Instead of imperatively letting the agents hammer your codebase into shape through a series of prompts, you declare your intent, observe the outcome and refine the spec. The agents then serve as a control plane, carrying out the intent.

Very much agree. I like the imperative vs declarative angle you take here. Thank you!

Re: Kotlin creator's new language: talk to LLMs in specs, not English

#217
post #214

What I found more useful is an extra step. Spec to tests, and then red tests to code and green tests. LLMs works on both translation steps. But you end up with an healthy amount of tests. I tagged each tests with the id of the spec so I do get spec to test coverage as well. Beside standard code coverage given by the tests.

Very much agree on coverage. We're actually doing something in that area: https://codespeak.dev/blog/coverage-20260302

For now, it's only about test coverage of the code, but the spec coverage is coming too.

Re: Kotlin creator's new language: talk to LLMs in specs, not English

#218
post #214

What I found more useful is an extra step. Spec to tests, and then red tests to code and green tests. LLMs works on both translation steps. But you end up with an healthy amount of tests. I tagged each tests with the id of the spec so I do get spec to test coverage as well. Beside standard code coverage given by the tests.

When you translate spec to tests (if those are traditional unit tests or any automated tests that call the rest of the code), that fixes the API of the code, i.e. the code gets designed implicitly in the test generation step. Is this working well in your experience?

Re: Kotlin creator's new language: talk to LLMs in specs, not English

#219

This doesn't make too much sense to me. * This isn't a language, it's some tooling to map specs to code and re-generate * Models aren't deterministic - every time you would try to re-apply you'd likely get different output (without feeding the current code into the re-apply and let it just recommend changes) * Models are evolving rapidly, this months flavour of Codex/Sonnet/etc would very likely generate different co…

> * model transforms text into a formal specification

formal specification is no different from code: it will have bugs :)

There's no free lunch here: the informal-to-formal transition (be it words-to-code or words-to-formal-spec) comes through the non-deterministic models, period.

If we want to use the immense power of LLMs, we need to figure out a way to make this transition good enough

Re: Kotlin creator's new language: talk to LLMs in specs, not English

#220
post #57
post #49

Earlier quoted context omitted.

Models aren't deterministic - every time you would try to re-apply you'd likely get different output (without feeding the current code into the re-apply and let it just recommend changes) If the result is always provably correct it doesn't matter whether or not it's different at the code level. People interested in systems like this believe that the outcome of what the code does is infinity more important than the co…

I would be very comfortable with - re-run 100 times with different seeds. If the outcome is the same every time, you're reliably good to go.

Even when it's wrong each time?
Post reply on HN