Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

compiled scripting language

Name: Anonymous 2011-02-03 20:17

would it be possible to convert a scripting language like Python or Ruby so that it compiles directly to machine code? if so would it be as fast as Pascal/Delphi? would it be possible to give languages like Python the option to declare types statically to override the dynamic typing?

Name: Anonymous 2011-02-03 20:18

Every language can be compiled, every language can be interpreted.

The thread is now over, you can go back to /g/.

Name: Anonymous 2011-02-03 20:35

Yes. Psyco already does that: it takes portions of code that are repeatedly executed and compiles specialized versions of them to machine code. Also, search for Pyrex on your favorite seach engine.

Name: >>3 2011-02-03 20:44

And no, it wouldn't be as fast as Pascal, based on the history of specializing compilers for dynamic OO languages. The fact that Python's dynamic dispatch is a series of hashtable lookups instead of a single table access for every (method call|messsage dispatch) puts such a dent on performance that apparently no amount of optimization (as far as we know) can completely eliminate.

Name: Anonymous 2011-02-03 20:47

>>4
s/ table/ vtable/

Name: Anonymous 2011-02-03 21:09

>>5
s/ vtable/ tablecat/

Name: HAXUS THE SAGE 2011-02-04 0:58

>>6
s/ tablecat/ HAXUS THE SAGE/

Name: HAXUS THE GREAT 2011-02-04 2:36

>>7
s/HAXUS THE SAGE/HAXUS THE GREAT/g

Name: Anonymous 2011-02-04 3:09

Name: Anonymous 2011-02-04 3:21

>>3
Pyrex is obsolete, use http://www.cython.org instead.

Psyco is also obsolete, see PyPy from the same authors.

Name: Anonymous 2011-02-04 3:55

>>9
mailto:noko

Name: Anonymous 2011-02-04 6:06

>>10
Cython is obsolete, use Jython instead.

Name: Anonymous 2011-02-04 6:37

>>12
Jython is Python for JEWS

Name: Anonymous 2011-02-04 7:12

>>13
No, it isn't!
I remember it was different from Python somehow

Name: Anonymous 2011-02-04 7:18

different from Python somehow

By being made by JEWS!

Name: Anonymous 2011-02-04 7:44

Maybe use srfi 49's I-expressions in say, Racket, to translate to the stalin compilers scheme? That would smoke Pascal/Delphi.

Name: Anonymous 2011-02-04 7:55

>>16
ONE WORD.

Name: Anonymous 2011-02-04 8:28

>>16
Has been proven that Chicken Scheme can be slightly faster than C.

Name: Anonymous 2011-02-04 8:29

>>18
s/ven/ved/

Name: Anonymous 2011-02-04 9:03

Chicken has a stalin egg BTW. Which is fucking sweet

Name: Anonymous 2011-02-04 12:07

>>18
That looks neat. What's the catch?

Name: Anonymous 2011-02-04 12:32

>>18
Has been proved that any language, interpreted or compiled, can be slightly faster than any other language, interpreted or compiled, given the correct choice of benchmark

Name: Anonymous 2011-02-04 17:21

Isn't every program running on current operating systems using interpreted mode at some point?

Name: Anonymous 2011-02-04 17:38

>>23
Under valgrind, yes.

Don't change these.
Name: Email:
Entire Thread Thread List