From: Paul Rubin <no.email@nospam.invalid>
Subject: Re: Ada->Javascript?
Date: Tue, 20 Jan 2015 14:33:20 -0800
Date: 2015-01-20T14:33:20-08:00 [thread overview]
Message-ID: <87y4ox9j67.fsf@jester.gateway.sonic.net> (raw)
In-Reply-To: m9mem7$l5u$1@speranza.aioe.org
tmoran@acm.org writes:
> Does there exist any kind of Ada to Javascript translator? Even
> something that took compilable, but not runnable, simple Ada to
> Javascript. Having an Ada compiler check for typos, type errors, etc,
> and handle enumeration types, non-zero array'first, etc etc would be a
> great help.
In principle you could do this with an Ada-to-C translator (several
exist) followed by Emscripten. If the idea is just to get a strongly
typed language to run in the browser though, there are much better
alternatives. I've been looking at Purescript (purescript.org) which is
Haskell-like, while others like Dart are a bit more mainstream. The
thing to keep in mind is that Javascript is a managed, garbage collected
language, a design that trades off real-time and bounded-memory
capabilities for a lot more programming convenience. An Ada front end
would give up the convenience without getting the Ada capabilities back.
So something like Purescript is a better match.
next prev parent reply other threads:[~2015-01-20 22:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-20 20:43 Ada->Javascript? tmoran
2015-01-20 21:32 ` Ada->Javascript? David Botton
2015-01-20 22:33 ` Paul Rubin [this message]
2015-01-21 4:45 ` Ada->Javascript? tmoran
2015-01-21 20:07 ` Ada->Javascript? David Botton
2015-01-21 21:34 ` Ada->Javascript? tmoran
2015-01-21 21:57 ` Ada->Javascript? David Botton
2015-01-23 1:39 ` Ada->Javascript? brbarkstrom
2015-01-23 3:08 ` Ada->Javascript? David Botton
2015-01-21 11:25 ` Ada->Javascript? Vadim Godunko
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox