participating in the py2c project

70 views
Skip to first unread message

wrndl...@gmail.com

unread,
Sep 13, 2013, 6:30:44 PM9/13/13
to py2c-di...@googlegroups.com
I would like to participate in the py2c project. I am a computer engineering student, and I'm very familiar with C. I have taught myself python as well. I have industry experience programming in C.

PradyunSG

unread,
Sep 16, 2013, 6:22:52 AM9/16/13
to py2c-di...@googlegroups.com

On 3 August 2013 09:55, Pradyun <...@gmail.com> wrote:
Hello All,
  I would like to join this project.. I'm 15, and just did an intern for a month, for a company that uses Python. This looks an interesting project, so I thought I should join.

On Sun, Aug 4, 2013 at 3:49 PM, Ramchandra Apte <...@gmail.com> wrote to Pradyun <...@gmail.com>:
  Sorry, but the project is in a dormant stage as I'm busy with other things.

That's what I was told..

Ramchandra Apte

unread,
Sep 16, 2013, 9:53:09 AM9/16/13
to py2c-di...@googlegroups.com


--
You received this message because you are subscribed to the Google Groups "py2c discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py2c-discussi...@googlegroups.com.
To post to this group, send an email to py2c-di...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/py2c-discussion/4463bdaa-3436-477a-b6c7-c81fd6228bbe%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

Pradyun Gedam

unread,
Sep 17, 2013, 6:34:46 AM9/17/13
to py2c-di...@googlegroups.com
If you don't mind, may the two of us (me and wrndl...@gmail.com) bring this project to life? (If it's fine with him too..)



Regards/Thanking you,
Pradyun S Gedam (In love with Python!!)


Ramchandra Apte

unread,
Sep 17, 2013, 11:00:06 AM9/17/13
to py2c-di...@googlegroups.com
Sure, you can clone the project and work on it.


Pradyun Gedam

unread,
Sep 19, 2013, 1:19:28 PM9/19/13
to py2c-di...@googlegroups.com

Ramachandra,
    Thanks. I have started working on this project and will soon post it on Github. I'll post the link here then.

P.S: The code and test are gonna be heavily re-factored.

Ramchandra Apte

unread,
Sep 21, 2013, 1:50:17 AM9/21/13
to py2c-di...@googlegroups.com
"wrndllmllr" and Pradyun, I've added both of you as a committers. Feel free to work on py2c as you wish.

Anand Jeyahar

unread,
Sep 22, 2013, 1:29:02 AM9/22/13
to py2c-di...@googlegroups.com
Hi,
   I went in looked a little more closer into the googlecode page. I like the idea of converting to pure C. But I think it's better to stick to conversion to pure C . Even if you guys think C++ conversion(I don't) is worth it, we would be better off focusing on C first and then adding C++. 

What do you guys think?


@Ramchandra: Hi, Do you think you can put up a rough Wiki of the existing codeflow? It may help reduce contribution time for a new user, and might* speed-up  development.

*-- Not sure it's worth it at this activity level.

==============================================
Anand Jeyahar

https://github.com/anandjeyahar

http://www.anandjeyahar.com/about

https://twitter.com/softwarmechanic
==============================================
Non est salvatori salvator,
neque defensori dominus,
nec pater nec mater,
nihil supernum.

- Godric Gryffindor,
1202 C.E.






Pradyun Gedam

unread,
Sep 22, 2013, 4:16:09 AM9/22/13
to py2c-di...@googlegroups.com
Dear All,
    I've started to work on converting the Python AST into some kind of C AST with some C-related stuff (like type of variable), from which to generate the C-code. It also allows us another level of checks/conversions to see what exactly the code is... I feel It's easier to maintain than the current implementation.
Currently, I have a working number (float and int) Python - C conversion system, with enough tests (~98% coverage, with ~2% coming from the if __name__ == '__main__': checks)

Before I commit, I have to ask: Are you guys fine with my approach?

I also have a few doubts and logical questions:
  • If we are to support a good subset of Python, we also need to figure out some way by which we can "emulate" Error - Handling in the C code... So, any Ideas?
  • How are we supposed to handle files, for-loops, iterables (like lists, tuples, generators, strings), generator functions, classes (we could skip classes till we shift to C++, if we ever do that is)?
  • Should we create a C module that could be included if the Python code has some stuff that is not easily or directly translate-able to C code? That would really make it very easy for us to handle stuff in (2.) but I'm not really sure..
PS: Should we shift to Git? (not GitHub, just Git) It's easier and more user-friendly (according to me)?

Regards/Thanking you,
Pradyun S Gedam (In love with Python!!)

>Removed Quotes!

Ramchandra Apte

unread,
Sep 22, 2013, 7:08:39 AM9/22/13
to py2c-di...@googlegroups.com
I actually think the opposite is true! — converting to C++ first (that'll be easier I think) and then to C.


Ramchandra Apte

unread,
Sep 22, 2013, 7:10:25 AM9/22/13
to py2c-di...@googlegroups.com
We all can chat on #py2c channel on Freenode.


--
You received this message because you are subscribed to the Google Groups "py2c discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py2c-discussi...@googlegroups.com.
To post to this group, send an email to py2c-di...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages