question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SES on JVM: struggling with __proto__ cycle for Function

See original GitHub issue

I’ve got an application where most of the deployment platform is the JVM and I’d like to re-write it in SES. I mentioned this to @erights and he said figuring out how to do SES on the JVM would be useful; for example, for interoperability with RChain.

Legend has it Nashorn on Java 9 has pretty good javascript support. At first it walk balking at const but i learned:

To activate ES6 support, use --language=es6 on the command line. – Laskey

That got me a little further; in particular, I’m using openjdk 10 via docker:

# start in the shim/examples directory of the proposal-realms repo

docker run -v $(cd ..; /bin/pwd):/opt -w /opt --rm -it openjdk:10 \
       jjs --language=es6 dist/realm-shim.js examples/simple.js

But no joy:

Exception in thread "main" java.lang.RuntimeException: dist/realm-shim.js:95:10 ES6 destructuring is not yet implemented
    const { contextFunction } = contextRec;

context: 3ccc45a646d https://github.com/tc39/proposal-realms

p.s. is there a better repo in which to raise this issue? It sorta belongs in proposal-realms, but I’m not sure this is tc39 business.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
erightscommented, Jun 8, 2018

Not clear. It is conformant to prevent proto cycles, but this code should not have tried to create one. So it depends on why it thought it had a proto cycle that needed to be rejected.

0reactions
dckccommented, Aug 7, 2018

oh. right. spread. Modern JS is pretty nice 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

SES on JVM: struggling with __proto__ cycle for Function #1
I've got an application where most of the deployment platform is the JVM and I'd like to re-write it in SES. I mentioned...
Read more >
How JVM Works - JVM Architecture? - GeeksforGeeks
JVM (Java Virtual Machine) acts as a run-time engine to run Java applications. JVM is the one that actually calls the main method...
Read more >
On the Cloud Deployment of a Session Abstraction for Service/Data ...
the aggregation/filtering functions should be also dynamically adaptable both ... Amazon Simple Email Service (SES) is a transactional mailing.
Read more >
Membrane functionalization in artificial cell engineering - Spiral
Abstract. Bottom-up synthetic biology aims to construct mimics of cellular structure and behaviour known as artificial cells from.
Read more >
Integrating Tools for Practical Software Analysis - Monterey ...
Abstract. The lack of integration between prototype implementations of results of research (“tools”) blocks progress toward direct application.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found