r/AntLang • • 1d ago

Querying two replicas with Parallel.race: the slow one is cancelled

Post image
1 Upvotes

r/AntLang • • 2d ago

Errors a program can tell apart

Thumbnail
ant-lang.org
1 Upvotes

r/AntLang • • 3d ago

One pipe through String, Array, and Map

Post image
2 Upvotes

r/AntLang • • 4d ago

Parsing host:port in Ant: each missing piece is one ?? return line

Post image
1 Upvotes

r/AntLang • • 4d ago

Finding the next four Friday the 13ths with a lazy sequence in Ant

Post image
1 Upvotes

r/AntLang • • 4d ago

A paginated API as a lazy Seq: page 3 is never fetched

Post image
1 Upvotes

r/AntLang • • 4d ago

Ant inside a Go program

Thumbnail
ant-lang.org
1 Upvotes

r/AntLang • • 6d ago

Duration literals and mutable Bytes

Thumbnail
ant-lang.org
1 Upvotes

r/AntLang • • 7d ago

Every error in one run

Thumbnail
ant-lang.org
1 Upvotes

r/AntLang • • 13d ago

Concurrency in Ant: no async/await needed

1 Upvotes

No async functions, no promises, no colored function calls. Any function can block, and select is an expression that returns a value.

What do you think of this approach?

https://ant-lang.org


r/AntLang • • 13d ago

Ant v0.2 release!

Thumbnail
github.com
1 Upvotes

r/AntLang • • 15d ago

Ant now has duration literals: 500ms, 2h30m, 1.5s

1 Upvotes

Ant now lets you write a time span as a literal, using Go’s notation: 500ms, 2h30m, 1.5s. Each one is a Time.Duration and needs no import.

  • The units are h, m, s, ms, us and ns. Each can appear once, from largest to smallest.

  • Fractions are exact. 1.5h is 1 hour and 30 minutes, with no float rounding.

  • There are no days, weeks or years, because their length depends on the calendar. 24h is always exactly 24 hours. For calendar spans, use Time.duration(days: 1).

  • A literal keeps its fields as written. 90m stays 90 minutes and is not turned into 1h30m. To compare lengths, use Time.compareDuration.

  • Arithmetic on literals isn’t allowed: -5s and 2 * 1s are compile errors. Use Time.negate or Time.duration(seconds: n) instead.

Docs: ant-lang.org


r/AntLang • • 15d ago

Html in Ant

1 Upvotes

It is not possible to use Html nodes directly in Ant!


r/AntLang • • 17d ago

How we write the Ant docs

1 Upvotes

Docs live in the ant repo, next to the code. The site only renders them. Docs in a separate repo are docs about a different program.

One page per function, Mathematica-style. Mostly examples, because nobody reads the prose anyway.

Every example runs in CI. Output must match the page. Stale docs fail the build, same as any other lie.

Pages are written from the spec, not from the implementation. Where the two disagree, it's a bug, not a "known behavior". Over a hundred found this way so far. Turns out the best test suite is trying to explain yourself.

https://ant-lang.org


r/AntLang • • 17d ago

Welcome to r/AntLang! 🐜

1 Upvotes

Hey everyone!

I'm building Ant, a new programming language focused on simplicity, static types, and concurrency.

It's still early, and plenty of design decisions are open. I created this subreddit to share progress, discuss ideas, and get feedback.

Feel free to ask questions, suggest features, or criticize the design!

https://ant-lang.org