r/ProgrammingLanguages • u/Avatar111222333 • Aug 07 '26
Discussion Programming language similar to TS that is runtime typed
Found this language today. I don't like the marketing "Language for agents". But looking through some examples and their design phiolosphy I seem to be a fan.
Combines some nice stuff from Go, Rust and Typescript.
https://boundaryml.com/explore
I have NOT tried this locally so please take this with a grant of salt. Seems like it's still very much a play language - nonetheless it's interesting
What do you think ? Will it die in a year ?
0
Upvotes
19
u/Helpful-Primary2427 Aug 07 '26
Yeesh. Language written for agents, docs written by agents for agents, why should I care?
11
u/Helpful-Primary2427 Aug 07 '26
Why does it collect telemetry from users?? I have never, ever heard of a language do that
8
u/Massive-Squirrel-255 Aug 07 '26
The marketing is pretty unclear about some things that should be specified unambiguously.
> A type-system like TypeScript, but without type erasure
> BAML has a type system like TypeScript, but persists it at runtime. TypeScript explicitly chose not to be sound, trading it away for productivity. That was the right move for humans, but it's the wrong default when agents are writing the code. It's not a coincidence there are 5 different schema validation libraries for TS: the type system doesn't mean enough.
> BAML has no
any, types are what the code says at runtime.It's really not clear what this means. They imply the type system is sound, but if it was indeed sound then you would be able to erase types at runtime without any problems (this is what OCaml does, for example). The fact that things carry a type at runtime implies that ill-typed operations are legal and are caught by dynamic checks - for example, unsafe casts in Java allow for 'unsoundness', and so you need some information at runtime to maintain memory safety.
7
u/Usual_Office_1740 Aug 07 '26
The tag line should read by agents, for agents.
2
u/cmontella 🤖 mech-lang Aug 08 '26
I love how the instructions for humans are code, but the instructions for agents are high level English.
1
u/kacxdak Aug 07 '26
heya! one of the folks building BAML here :)
We gave a first conference talk about this recently where we touched a bit around the why and some interesting language tooling we've built. a lot of our current time has been still on the engineering, so hopefully we'll be fixing up the copy on the website within 1-2 weeks!
https://youtu.be/AMiyLItEtLA?t=559
I'm really curious to hear your about what appealed and what didn't from the syntax examples and the snippets we show?
0
u/[deleted] Aug 07 '26
[deleted] — view deleted comment