This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's Your Projects subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. Project Ideas/Start New Projects => Your Projects
Author Message
BatBlaster


Member


Joined: 10 Oct 2007
Posts: 160

Posted: 10 Nov 2007 01:05:59 pm    Post subject:

A python interpreter for the '83/84/SE.
Back to top
Xphoenix


Elite


Joined: 04 Apr 2007
Posts: 756

Posted: 10 Nov 2007 01:19:23 pm    Post subject:

Erm. . . Any more info? Links? Screens? What language are you writing it in?
Back to top
BatBlaster


Member


Joined: 10 Oct 2007
Posts: 160

Posted: 10 Nov 2007 07:12:54 pm    Post subject:

I don't know how to write it....
Back to top
magicdanw
pcGuru()


Calc Guru


Joined: 14 Feb 2007
Posts: 1110

Posted: 10 Nov 2007 08:38:57 pm    Post subject:

Xphoenix: I think BatBlaster was posting this as an idea, for someone else to write.

BatBlaster: If I understood your two sentences, then you're just giving an idea for someone else to write. Normally, it's better to at least give some useful information to get the person started, or to explain more. For instance, why do you think it would be useful to have a python interpreter on a calculator? If there's a good reason behind it, someone might be more willing to invest time in writing it.
Back to top
BatBlaster


Member


Joined: 10 Oct 2007
Posts: 160

Posted: 11 Nov 2007 08:52:48 am    Post subject:

magicdanw wrote:
Xphoenix: I think BatBlaster was posting this as an idea, for someone else to write.

BatBlaster: If I understood your two sentences, then you're just giving an idea for someone else to write.  Normally, it's better to at least give some useful information to get the person started, or to explain more.  For instance, why do you think it would be useful to have a python interpreter on a calculator?  If there's a good reason behind it, someone might be more willing to invest time in writing it.
[post="115807"]<{POST_SNAPBACK}>[/post]

well I use python more. It was my first programming language.
Back to top
elfprince13
Retired


Super Elite (Last Title)


Joined: 11 Apr 2005
Posts: 3500

Posted: 11 Nov 2007 03:43:47 pm    Post subject:

Quote:
I don't know how to write it....

http://www.google.com
http://en.wikipedia.org
http://www.python.org
http://www.ticalc.org/pub/text/

^--good places to start.

Seriously though,

implementing an interpreter for a programming language, especially one as flexible as python, is no mean feat. and then there's the task of writing all the native libraries for it to interface with.

However if you're serious about wanting this done, there is no excuse for you not teaching yourself the necessary skills to do it, given that the fact you are posting on this forum proves you have an internet connection.


Last edited by Guest on 11 Nov 2007 03:45:27 pm; edited 1 time in total
Back to top
BatBlaster


Member


Joined: 10 Oct 2007
Posts: 160

Posted: 12 Nov 2007 05:46:58 pm    Post subject:

Yeah... ummm.,..
I don't have time or the asm program.
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 12 Nov 2007 06:16:37 pm    Post subject:

Writing a Lisp interpreter would be easier and more fun. How can you resist all those parentheses?
Back to top
simplethinker
snjwffl


Active Member


Joined: 25 Jul 2006
Posts: 700

Posted: 12 Nov 2007 06:18:48 pm    Post subject:

If I understand correctly, you want a Python interpreter for the 83+ series? I have a feeling that this isn't even feasible. Python is a complex language, it's pretty much the only interpreted language for computers that doesn't have a serious cut-down in speed (ignoring perl, which is basically the same thing). I doubt that even in asm you could get one that runs decently, and the amount of memory required for all the commands and libraries would take up considerably more memory than the calculators have.
Sorry to say this Neutral
Also, Python and TI-Basic are similar (sort of), so the transition shouldn't be too hard for you.
PS: How do you expect to learn anything about programming if you only stick with the one language you know and have other people do the work for you? Learning takes time and motivation, so you shouldn't have others do everything for you. There's even a lot to learn from TI-Basic (and other languages in general) that you can apply to Python (among other languages) :)

[edit] @DarkerLine: lisp is nice, but then you'd have to put in ending parentheses!!! it's heresy! Very Happy (but it would be fun having one)


Last edited by Guest on 12 Nov 2007 06:20:54 pm; edited 1 time in total
Back to top
elfprince13
Retired


Super Elite (Last Title)


Joined: 11 Apr 2005
Posts: 3500

Posted: 12 Nov 2007 11:08:23 pm    Post subject:

BatBlaster wrote:
Yeah... ummm.,..
I don't have time or the asm program.

nor do most other people. If it motivates you, go out and learn to do it. If it doesn't motivate you, it probably won't motivate other people either.

DarkerLine wrote:
Writing a Lisp interpreter would be easier and more fun. How can you resist all those parentheses?

like this one? PostScript is easier though...both to write and to interpret. Razz of course, you can't beat BF for simplicity

simplethinker wrote:
If I understand correctly, you want a Python interpreter for the 83+ series?  I have a feeling that this isn't even feasible.  Python is a complex language, it's pretty much the only interpreted language for computers that doesn't have a serious cut-down in speed (ignoring perl, which is basically the same thing).  I doubt that even in asm you could get one that runs decently, and the amount of memory required for all the commands and libraries would take up considerably more memory than the calculators have.

you are confusing 3 separate things:
the official python interpreter
the python language spec.
the python libraries.

It does in fact have a pretty impressive cutback in speed, compared to say, C. It's definitely WAY faster than most scripting languages though, and, for that matter, on Windows the official Python interpreter is faster than the official Sun Java VM.

If someone were to implement an python interpreter for the calculator, its quite obvious the speed would suffer, just like anything else does if you're used to running it at billions of cycles per second, and you cut back to a few million instead. Furthermore, as you point out, implementing all those libraries for a calculator is infeasible for a single person, and rather pointless. Much more useful would be interpreter that conformed to the python language spec, and a new set of libraries, specifically targeted for the calculator---kind of what Moka is to Java on the 68K calculators.

Quote:
Learning takes time and motivation, so you shouldn't have others do everything for you.

well said.

Quote:
DarkerLine: lisp is nice, but then you'd have to put in ending parentheses!!! it's heresy!  Very Happy (but it would be fun having one)

this calls for a comic :P

Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement