Post Reply 
HP_PRIME PYTHON SYNTAX: HP_PPY
11-14-2017, 02:21 AM (This post was last modified: 11-14-2017 02:32 AM by toml_12953.)
Post: #22
RE: HP_PRIME PYTHON SYNTAX: HP_PPY
(11-13-2017 10:08 PM)pier4r Wrote:  I don't want to create a flame with the following post. Rather I'd like to point out why in my opinion some objections are not that "realistic".

[quote='toml_12953' pid='83224' dateline='1510601543']

A few people are working on replacement firmware for the Prime (non-HP, of course). I'd gladly give up HPPL, CAS or both for a full Python interpreter.
(11-13-2017 10:08 PM)pier4r Wrote:  I cannot follow. If you give up the math environment developed for the prime, couldn't you just get a raspi with python and be all set?
It wouldn't have the great form factor or portability of the Prime

(11-13-2017 10:08 PM)pier4r Wrote:  I mean, it is not that you can program extensive python code with the prime keyboard.
Why not? All the ASCII characters are available. I don't mind choosing them from a table.

(11-13-2017 10:08 PM)pier4r Wrote:  For massive code is something different, but you don't do massive code for a calculator with the idea of having it portable. You use directly another system.

I do.

(11-13-2017 09:36 PM)toml_12953 Wrote:  Even if not Python then I'd like some other standardized language that's available across platforms. Languages such as C or Pascal. If there's room in the ROM, HPPL could easily be extended to Pascal. It's so close now.

(11-13-2017 10:08 PM)pier4r Wrote:  I think that the scope of the calculator is not suitable to C or Pascal.
C or Pascal could be quite complicate to manage, instead on a calculator one does not want to think much about the quirks of the code, rather one wants to think on the problem.

C, Pascal and BASIC (modern versions) allow me to concentrate on the problem without thinking about quirks of the code.

(11-13-2017 10:08 PM)pier4r Wrote:  Python with its indentation style would be a nightmare to code on the calculator.

Why?

(11-13-2017 10:08 PM)pier4r Wrote:  You don't go and complain that Matlab or mathematica have their own languages instead of C or Pascal.

I do.

(11-13-2017 10:08 PM)pier4r Wrote:  Last but not least. the languages that you find fitting, say python or Pascal, may not fit another user that may prefer HPPL. The problem is why the second user should adapt to Pascal? is it that more legit than you adapting to HPPL?

I can program in HPPL with no problem but then I'm limited to the Prime or a Prime emulator on the PC or smartphone. I'd like a language that runs natively on each platform. If you know of a native Windows, Linux, Android or iOS version of HPPL that doesn't require an emulator, please let me know!

The TI Nspire has a great piece of third-party software called Ndless. That software allows machine language programs to be run. One of the programs currently available is Python! Ndless doesn't require a complete replacement of the OS, it just allows the user to access the calculator on the lowest level. Unfortunately (for me anyway), the entire layout of the TI OS is bizarre with documents for everything rather than a programming language that can be run standalone. The TI model just doesn't work for me and many programming statements have been omitted from their language (INPUT is extremely limited, there's no way to read the keyboard while a program is executing, there are no graphics statements). The Prime works much more compatibly with the way I think. I'm much more comfortable with it. If a program like Ndless could be developed for the Prime, that would be ideal for me.

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP_PRIME PYTHON: HP_PPY - toml_12953 - 11-12-2017, 04:42 PM
RE: HP_PRIME PYTHON: HP_PPY - webmasterpdx - 11-12-2017, 05:58 PM
RE: HP_PRIME PYTHON: HP_PPY - Carlos295pz - 11-12-2017, 06:08 PM
RE: HP_PRIME PYTHON: HP_PPY - webmasterpdx - 11-12-2017, 06:12 PM
RE: HP_PRIME PYTHON: HP_PPY - Carlos295pz - 11-12-2017, 06:19 PM
RE: HP_PRIME PYTHON: HP_PPY - webmasterpdx - 11-12-2017, 06:21 PM
RE: HP_PRIME PYTHON: HP_PPY - Carlos295pz - 11-12-2017, 06:26 PM
RE: HP_PRIME PYTHON: HP_PPY - parisse - 11-12-2017, 07:35 PM
RE: HP_PRIME PYTHON SYNTAX: HP_PPY - toml_12953 - 11-14-2017 02:21 AM



User(s) browsing this thread: 1 Guest(s)