medusa icon indicating copy to clipboard operation
medusa copied to clipboard

Status Update

Open azenla opened this issue 9 years ago • 6 comments

Hello! I would like to ask what is planned for medusa. I am a strong user of Dart, so I was very interested in how this could bring more to the Dart Community.

azenla avatar Jan 22 '15 02:01 azenla

Hey, Medusa started off as my college project mainly to boost Python execution speeds but now more is planned for it. Given the scope for the large scale deployment of Dart medusa can be used to bridge the gap between experienced developers who might be more familiar with Python to jump over and continue develop in Python and deploy in Dart. Development is kinda slow now but the main hurdle here is porting the huge, rich runtime library that Python provides to Dart/medusa. The base compiler is buggy but kinda ready but since a lot of py modules are native porting them to dart is also an uphill task. Any suggestions?

lispyclouds avatar Jan 22 '15 07:01 lispyclouds

@rahul080327 Would implementing the transformer in Dart help? I can help port that :)

azenla avatar Jan 22 '15 13:01 azenla

@kaendfinger That would remove the Python dependency which would be really awesome. But I'm using the inbuilt ast module that Python provides in its libs to parse the python input and generate code. The ast is a pretty nasty module to implement in dart as its native for one and secondly its highly optimized and specific for Python(see the Python 2.7.x sources). If you are planning to write the transformer in dart I'm kinda skeptical of its performance as the lexers, parsers and AST walkers all have to be written which the ast module provides out of the box and has very high performance. But then again I'm open to any suggestions any time :D

lispyclouds avatar Jan 22 '15 14:01 lispyclouds

@rahul080327 Ahh true, I'll take a look at the code a bit more and tell you what I think :)

azenla avatar Jan 22 '15 16:01 azenla

Apologies for the sparse docs and lack of tests... will be on it soon. :)

lispyclouds avatar Jan 23 '15 02:01 lispyclouds

Just FYI, lots of python lib is hooked with C code and even fortune code. The scientific python community used a lot of C code to boost up the numeric/matrix calculation part, for example numpy and scipy project.

BTW, will this project support python3 in the future?

Thanks.

grapemix avatar Jan 16 '16 07:01 grapemix