Haxe is probably something you'll be interested in:
I think a lot of the stuff that screwed the language was that it was initially supposed to be "an evolution of javascript" (ecmascript 4? I forget), so it took a on lot of the undesirable features of JavaScript, it was never a complete break from it.
Also, Adobe made a big-ish mistake in that it didn't keep the runtime separated from the VM - a lot of the VM abstractions (like pointer tagging) leaked into the runtime, and this is why a lot of things were harder to optimize in the VM than they should've been. Fortunately, the browser vendors didn't have this problem, that's why their GC could "run circles around Flash".
You still have Adobe AIR to target desktop and mobile GUI apps.
And you have a also the open source project Redtamarin
https://github.com/Corsaair/redtamarin
for shell scripts, command-line tools, server-side, etc. in 32bit/64bit for Windows, macOS and Linux