Re:Ask HN: Is it possible to compile TypeScript to Golang?
by ch_sm on Sunday March 26, 2023 @09:24AM
(#35314175)
Elixir doesn‘t have support for static types built in.
Re:Ask HN: Is it possible to compile TypeScript to Golang?
by giaour on Sunday March 26, 2023 @10:09AM
(#35314620)
It has support for type annotations, though, and tools like dialyzer can check for type errors much like TypeScript does: https://elixir-lang.org/getting-started/typespecs-and-behavi...
Re:Ask HN: Is it possible to compile TypeScript to Golang?
by avinassh on Sunday March 26, 2023 @09:39AM
(#35314330)
Interesting choices.
Are there any languages which have concurrency semantics like Go?
Re:Ask HN: Is it possible to compile TypeScript to Golang?
by mholyland on Sunday March 26, 2023 @12:11PM
(#35316081)
There are many languages with libraries that can use CSP (Communicating Sequential Processes)[0], but some popular languages that have it in the core libs are: Golang, Crystal and Clojure.
[0] https://en.m.wikipedia.org/wiki/Communicating_sequential_pro...
There are many good programming languages that might work if neither Go nor Typescript individually would meet your needs.
I recommend examining the following to see if they would work better for you:
Ada: https://learn.adacore.com/courses/intro-to-ada/index.html
Elixir: https://elixir-lang.org/
Java: https://docs.oracle.com/javase/tutorial/
Rust: https://doc.rust-lang.org/book/
All of them have excellent support for concurrency and strong typing to various degrees that help you to write complex logic quickly.