Discussion:
Supporting TypeScript natively on Nashorn
(too old to reply)
Erko Knoll
2018-08-09 10:01:16 UTC
Permalink
Hi,

Great job with Nashorn, I really love it. However, based on the blog post
of
https://blogs.oracle.com/nashorn/nashorn-architecture-and-performance-improvements-in-the-upcoming-jdk-8u40-release
I would like to ask if there are any plans to natively support TypeScript
in the future.

The reason I'm asking is because I built a product that allows to do
TypeScript scripting for JVM. But currently I'm transpiling TypeScript down
to ES5 so Nashorn would be able to ingest it. For obvious performance gain
reasons it would be really cool if type information could be retained from
TypeScript side.

If you are interested how writing TypeScript currently looks like for JVM,
then you can visit the website: http://hyperionscripting.com/. Though it is
built for JIRA that is written in Java, then the same approach could be
applied for any JVM application.

Hoping to hear back,
Erko
Jim Laskey
2018-08-09 12:47:09 UTC
Permalink
The Nashorn team has no plans but you might check the GraalVM https://www.graalvm.org project to see what they might have in this area.

Cheers,

— Jim
Post by Erko Knoll
Hi,
Great job with Nashorn, I really love it. However, based on the blog post
of
https://blogs.oracle.com/nashorn/nashorn-architecture-and-performance-improvements-in-the-upcoming-jdk-8u40-release
I would like to ask if there are any plans to natively support TypeScript
in the future.
The reason I'm asking is because I built a product that allows to do
TypeScript scripting for JVM. But currently I'm transpiling TypeScript down
to ES5 so Nashorn would be able to ingest it. For obvious performance gain
reasons it would be really cool if type information could be retained from
TypeScript side.
If you are interested how writing TypeScript currently looks like for JVM,
then you can visit the website: http://hyperionscripting.com/. Though it is
built for JIRA that is written in Java, then the same approach could be
applied for any JVM application.
Hoping to hear back,
Erko
Art Fiedler
2018-08-10 13:17:39 UTC
Permalink
I have a project that uses nashorn to compile typescript and run in java, what's wrong with that? Doesn't it become native after loading it if I remember correctly?

From: Jim Laskey
Sent: Thursday, August 9, 2018 7:48 AM
To: Erko Knoll
Cc: nashorn-***@openjdk.java.net
Subject: Re: Supporting TypeScript natively on Nashorn

The Nashorn team has no plans but you might check the GraalVM https://www.graalvm.org project to see what they might have in this area.

Cheers,

— Jim
Post by Erko Knoll
Hi,
Great job with Nashorn, I really love it. However, based on the blog post
of
https://blogs.oracle.com/nashorn/nashorn-architecture-and-performance-improvements-in-the-upcoming-jdk-8u40-release
I would like to ask if there are any plans to natively support TypeScript
in the future.
The reason I'm asking is because I built a product that allows to do
TypeScript scripting for JVM. But currently I'm transpiling TypeScript down
to ES5 so Nashorn would be able to ingest it. For obvious performance gain
reasons it would be really cool if type information could be retained from
TypeScript side.
If you are interested how writing TypeScript currently looks like for JVM,
then you can visit the website: http://hyperionscripting.com/. Though it is
built for JIRA that is written in Java, then the same approach could be
applied for any JVM application.
Hoping to hear back,
Erko
Loading...