Author Topic: about HPPL  (Read 4564 times)

0 Members and 1 Guest are viewing this topic.

Offline supergems

  • LV2 Member (Next: 40)
  • **
  • Posts: 38
  • Rating: +1/-14
    • View Profile
about HPPL
« on: November 20, 2014, 05:27:36 am »
I read on various forums that HPPL is similar to BASIC, but in reality it just is not true. HP-PRIME Programming Language (HPPL) is more similar to Pascal and the author himself, Bernard Parisse, explains the origins*:

Quote
"The first version of the PPL was in the hp39gii, it was mostly an uppercase translation of the Xcas programming language, using keywords instead of ponctuation for obvious pedagogical reasons. The Xcas programming language is itself inspired by the maple language, itself inspired by Pascal and Algol."

*http://www.hpmuseum.org/forum/thread-2038-post-18415.html#pid18415




greetings to all,
supergems

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: about HPPL
« Reply #1 on: November 20, 2014, 04:24:40 pm »
It's compared to "BASIC" not because of its features, but rather because of what it is and what the other calculators have : an on-calc editable language that offers the ability to code algorithms and often games, too. And on the other calcs (the popular ones in high school, let's say), that'd be TI-Basic or CASIO-Basic. So on the HP Prime, the logical name for such a feature would be a "Basic" too, even if it's not.
Users who write such code on the Prime ought to know that, in reality it's called HPPL....
« Last Edit: November 20, 2014, 10:57:29 pm by Adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: about HPPL
« Reply #2 on: November 20, 2014, 09:54:03 pm »
Yeah the reason why people think it's like BASIC is because they are used to TI-BASIC and Casio BASIC syntax. For example, a for loop in TI-83 Plus BASIC looks like this:

For(Z,0,1000,5)
If Z<500
Then
2*Z->A
3*Z->B
End
4Z->C
End

In Casio BASIC I think it's more like this:

For 0->Z To 1000 Step 5
If Z<500
Then
2*Z->A
3*Z->B
End
4*Z->C
Next

And HP PPL

FOR Z FROM 0 TO 1000 STEP 5 DO
IF Z<500 THEN
2Z->A;
3Z->B;
END;
4*Z->C;
END;

alternate HP PPL syntax:

FOR Z FROM 0 TO 1000 STEP 5 DO
IF Z<500 THEN
A := 2Z;
B := 3Z;
END;
C := 4*Z;
END;

I am unsure if it's similar to original computer BASIC languages and I know it looks similar and closer to Pascal, but the similarities with other competitor calc languages could explain why people think HP PPL is a form of BASIC.

And yeah the official name is HP Prime Programming Language. I assume the language name on the HP Prime ancestor (HP 39gII) would be HP39PL or HP39gIIPL.
« Last Edit: November 20, 2014, 09:57:28 pm by DJ Omnimaga »