Vertx 3 Support for Python

2,624 views
Skip to first unread message

Satyajit Chainy

unread,
Jan 14, 2016, 11:37:38 PM1/14/16
to vert.x
Hi,
I have written few python scripts using Vertx 2. I would like to run them in Vertx 3. 
But somehow I find the support has been removed (listed support given in Vertx 3 website : Java, JavaScript, Groovy, Ruby, and Ceylon).
Is there any specific reason for it or the support is under work in progress and will be available in future versions of Vertx.
Please let me know.
Thanks,
SPC

Cosmic Interloper

unread,
Jan 15, 2016, 12:21:20 AM1/15/16
to ve...@googlegroups.com
afaik this is the latest atempt

i dont think anyone has heard from dano in a while though :/

--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/1fca8e35-2039-49e2-a7f0-c96624f1737b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Satyajit Chainy

unread,
Jan 15, 2016, 6:26:12 AM1/15/16
to vert.x
Hi,
It seems like there is no activity in the project for last six months.
Should I assume support for Python will not be available in near future.
Thanks,
SPC

Cosmic Interloper

unread,
Jan 15, 2016, 9:51:56 AM1/15/16
to ve...@googlegroups.com
it will only ever become official if someone steps up to finish it and maintain it

Official Vertx modules are listed on vertx.io,

Julien Viet

unread,
Jan 15, 2016, 10:16:28 AM1/15/16
to ve...@googlegroups.com
indeed, we need a contributor to step up and play an active role to make this happen for Python (and for other things!)


Julien Viet

unread,
Jan 15, 2016, 10:17:28 AM1/15/16
to ve...@googlegroups.com

Jonathan Doughty

unread,
Feb 12, 2016, 12:33:26 PM2/12/16
to vert.x
Resurrecting this thread to make a potential contributor aware of Transcrypt http://www.transcrypt.org/ - "a tool to compile a fairly extensive subset of Python into compact, readable JavaScript."

Transcrypt is still at the alpha stage, but might one insert this into the vert.x codegen / codetrans tool chain as a way to put Python back into the supported languages columns?

Just a thought.

Alex Georgiev

unread,
Nov 2, 2018, 7:13:23 PM11/2/18
to vert.x
Very surprised to see no Python in Vert.x 3. Any update on this? Will it be supported?

Julien Viet

unread,
Nov 3, 2018, 7:09:41 AM11/3/18
to ve...@googlegroups.com
Hi,

I think we are lacking of contributor for this.

I think also that Python is lacking of a modern runtime on the JVM.

Julien

--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.

Feuer Au

unread,
Nov 3, 2018, 8:19:04 AM11/3/18
to vert.x
Actually Vert.x is heading for 4.x 
so it maybe too late for language support of 3.x

Julien Viet

unread,
Nov 3, 2018, 8:45:21 AM11/3/18
to ve...@googlegroups.com
Currently the Vert.x stack is quite decoupled from the language implementations.

So any lang support could be added anytime, pretty much like what Jochen did with the full Scala support a couple of years ago.

actually we are heading toward a more decoupled lang releases, i.e languages should be able to be added anytime and release independently of the stack, i.e released to support a more recent version of the language (which would be useful for Kotlin that evolves quite quickly).

Julien


-- 
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.

Feuer Au

unread,
Nov 3, 2018, 9:42:29 AM11/3/18
to vert.x
Jython is not that actively maintained, is there a way to build a language support like es4x by using Graal rather than standard JVM?

If so, we probably could provide py4x, rb4x etc. and go4x if Golang is fully supported on Graal. 

Paulo Lopes

unread,
Nov 3, 2018, 10:09:09 AM11/3/18
to vert.x
In theory doing a py4x should be doable and easier if you don't take es4x approach of seemingly support both Graal and Jython.

It looks that polyglot components from graal can now be used on stock OpenJDK11. I've got it working with es4x and some extra maven dependencies and a bunch of command line flags.

If there's anyone willing to work on it I can help with graal questions from what I know from building es4x but I'm not a python expert so this would be a lot on my plate, as for example I've no knowledge on pip and how would it work in vertx.

Julien Viet

unread,
Nov 3, 2018, 12:15:54 PM11/3/18
to ve...@googlegroups.com
well said,

if somebody from the community is willing to support this, then much of the contributions done by Paulo on es4x could be reused and he would get mentored by Paulo on the $topic.

Julien
> --
> You received this message because you are subscribed to the Google Groups "vert.x" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
> Visit this group at https://groups.google.com/group/vertx.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/534fe613-5f47-4957-b558-d2f7c6d147e5%40googlegroups.com.

Feuer Au

unread,
Nov 3, 2018, 8:02:21 PM11/3/18
to vert.x
Recently the release candidate of Graal has been distributed into jmods
so developers could use jlink tool to create their own language runtime e.g. customized runtime supporting both Python and Java
and use it in this way to support polyglot development and use vertx-codegen to wrap Vert.x api to generate py apis

Got a feeling that Vert.x may have a branch of native languages support in future

Paulo Lopes

unread,
Nov 4, 2018, 10:43:39 AM11/4/18
to vert.x
From what I've seen on graal python, the interoperability with Java is the same as with Javascript so a variation of es4x would be enough to get things going (gsoc project anyone?) The thing I cannot give answers at the moment is how this would work with ide support, or modules from pip.

Again I'm willing to assist in making a python py4x and help porting the js code generation and loader if there are interested contributors!

Patrick Laflamme

unread,
Apr 13, 2019, 8:45:26 AM4/13/19
to vert.x
Reviving this thread. I'd be happy to help, though I have little experience in this type of thing so may need a reasonable amount of guidance. One thing I noticed about the Graalvm Python implementation is that it's very much in its infancy. I take it the LLVM implementation isn't an option for some reason? Forgive my ignorance.

Paulo Lopes

unread,
May 6, 2019, 10:43:44 AM5/6/19
to vert.x
The LLVM probably won't work either as the core libraries are written in Java, so we need a way to run Python on the JVM. I was hopping that graal python would be a good start but I'm not sure how to integrate python llvm into the JVM.

To start with this I think, first you need to write a verticle factory, that bootstraps the graalpython engine and runs a script as a "verticle".

You can then work on a codegen module that can produce python modules to interop with the java libraries, like the es4x is doing. For example say that it generates the vertx-web module, then this codegen should create a file such as:

```py
import java
Router = java.type("io.vertx.web.Router")
```

so from your script you can do:

```py
import vertx_web

router = vertx_web.Router.router(vertx)
...

```

Again I'm no python expert so, it might make sense to keep all types in a modules on have a seperate module per type (someone more used to python, should advice here...)

David Choi

unread,
Apr 6, 2020, 9:12:36 AM4/6/20
to vert.x
I'm a newby on vert.x but I really like it. Having said that the lack of Python support is concerning. I'm not even a Python dev, but due to the popularity of the language I think it's a bit of a shock that the GraalVM team is not actively working on it. Sure having languages already on the jvm supported is an easy win, but skipping a language as popular as Python is a terrible mistake.


On Thursday, January 14, 2016 at 11:37:38 PM UTC-5, Satyajit Chainy wrote:

Paulo Lopes

unread,
Apr 7, 2020, 1:45:33 AM4/7/20
to vert.x
Hi,

If you're interested in taking this endeavor, as I wrote before, I can assist with graal related questions but I don't have the capacity to do the work myself.

Reply all
Reply to author
Forward
0 new messages