| View previous topic :: View next topic |
| Author |
Message |
Ron Murawski
Joined: 29 Oct 2006 Posts: 272 Location: Schenectady, NY
|
Post subject: Re: Go language Posted: Sat Jun 16, 2012 4:24 am |
|
|
| rreagan wrote: |
| Don wrote: |
| I have a long list of things that my perfect language should have and some that it MUST have, but near the top of my list is that it should be nearly as fast as C, produce standalone executable's and be highly cross platform. I would really also like to have associative arrays built into the language. I would like it to be easy enough to work with that I might reach for it to write scripts I might normally write in perl or ruby. |
The first thing that comes to my mind when reading this is Cython (C-Extensions for Python).
The one question I have about it is whether or not it is practical for one to write "Python code" and have it run at C speed. I know that I can write "C code in Cython" and it will run at C speed, but then I might as well write it in C. I guess you do get some niceties with string processing, associative arrays, and a huge standard library.
The one possible path I see is that you can write a pure Python file, then you create second modifying file that includes static declarations which the Cython compiler uses to modify your Python file. That means you write Python code, and the Python code stays untouched.
It sounds like you get the best of both worlds, but again I'm not sure how well it works out in practice. Perhaps it's time for me to find out  |
I never noticed that Cython compiled Python to C code. I thought it was just for interfacing Python to C libraries, but now that I've read the Cython page more carefully, it seems that it is a full Python-to-C translator. Please report on your Cython experiment and thanks for the link! |
|
| Back to top |
|
 |
|
| Subject |
Author |
Date/Time |
Go language |
Russell Reagan |
Fri Jun 15, 2012 4:40 am |
Re: Go language |
Ron Murawski |
Fri Jun 15, 2012 5:18 am |
Re: Go language |
Don Dailey |
Fri Jun 15, 2012 2:23 pm |
Re: Go language |
Ron Murawski |
Fri Jun 15, 2012 7:12 pm |
Re: Go language |
Don Dailey |
Fri Jun 15, 2012 7:27 pm |
Re: Go language |
Ron Murawski |
Fri Jun 15, 2012 9:46 pm |
Re: Go language |
Don Dailey |
Fri Jun 15, 2012 11:16 pm |
Re: Go language |
Russell Reagan |
Sat Jun 16, 2012 3:39 am |
Re: Go language |
Ron Murawski |
Sat Jun 16, 2012 4:24 am |
Re: Go language |
Don Dailey |
Sat Jun 16, 2012 4:44 am |
Re: Go language |
Russell Reagan |
Sat Jun 16, 2012 8:52 pm |
Re: Go language |
Ron Murawski |
Sat Jun 16, 2012 4:06 am |
Re: Go language |
H. Schlichting |
Thu Jun 21, 2012 8:08 pm |
Re: Go language |
Don Dailey |
Thu Jun 21, 2012 8:12 pm |
Re: Go language |
H. Schlichting |
Thu Jun 21, 2012 8:25 pm |
Re: Go language |
Don Dailey |
Thu Jun 21, 2012 8:31 pm |
Re: Go language |
H. Schlichting |
Thu Jun 21, 2012 10:19 pm |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|