Recommendations on porting Python to D

Chris Piker chris at hoopjump.com
Wed Apr 24 19:50:45 UTC 2024


Hi D

I have a somewhat extensive CGI based web service written in 
Python and I'd like to port it to D.  I can do this manually of 
course, and maybe that's the best way, but for a rough start, is 
anyone aware of any tools that generate an abstract syntax tree 
which could then be converted to somewhat equivalent D code?  
This might give me a jump-start on the manual conversion process. 
  Then later I can work on removing the CGI dependency.

I'm aware that this wouldn't work in general due to all the third 
party modules typically used in python, but most of this code is 
self contained Python2 and doesn't depend on many imports.

I can just call my old C code from D, but the old Python is 
another story.

Thanks for any advice you may have,




More information about the Digitalmars-d-learn mailing list