TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A programming language to make concurrent programs easy to write

2 pointsby pomboalmost 5 years ago

2 comments

tlackalmost 5 years ago
This language has some interesting properties. Here&#x27;s a code example featuring a user-defined event that triggers a handler. This kind of callback-oriented indirect application at the language level would be nice for async programs.<p><pre><code> from @std&#x2F;app import start, print, exit event loop: int64 on loop fn looper(val: int64) { print(val) if val &gt;= 10 { emit exit 0 } else { emit loop val + 1 } } on start { emit loop 0 }</code></pre>
pomboalmost 5 years ago
A friend and I created a programming language that looks like Typescript and makes distributed programs shorter and easier to reason about. Alan&#x27;s compiler and runtime exploits opportunities for parallelization across the computing resources available without being told to do so.