HHC 2014: Programming the Same Task: HP-41, HP-71B, HP 50g, HP Prime

Sdílet
Vložit
  • čas přidán 22. 08. 2024
  • HHC 2014, HP Handheld Conference, Sept. 20-21, 2014, Reno, NV: Joe Horn presents "Programming the Same Task on an HP-41, HP-71B, HP 50g, and HP Prime".

Komentáře • 54

  • @themathocist
    @themathocist Před 7 lety +14

    Very nice seeing how the program changes depending on the platform. For the HP Prime, there is no need to "swap" for the Prime, and storing T into B is unnecessary.
    LOCAL T:=MAX(A,B);
    A:=MIN(A,B);
    return({%CHANGE(A,T), %CHANGE(T,A)});
    Also, if you run the program from the Program Browser, it will provide you a nice input form where you only need to enter the values 4, and 5 as the input (i.e. no need to type PCH(4,5).

  • @okhouri
    @okhouri Před 3 lety +1

    HP 71B is the one and only. The most amazing computer ever made

  • @drbarnack1885
    @drbarnack1885 Před 3 lety +2

    This is a really helpful comparison. I like the elegance of the RPL stack in theory, but the PPL is more human-readable for me in practice.

  • @ffggddss
    @ffggddss Před 7 lety +3

    9:00
    Semicolon needed at end of command? They seem to agree that it isn't needed for the last command in the program, also citing Pascal for that.
    I believe Pascal inherited that part of its syntax from ALGOL, which didn't require semicolon after the final command in a block. A practice that is frowned upon, because when you edit the program, if you add more statements after that line within that block, you're in trouble if you then forget to add that missing semicolon!

    • @ffggddss
      @ffggddss Před 2 lety

      @Ralph Reilly A very welcome innovation, that latter, which we didn't have the benefit of, 50+ years ago.
      It probably would have overtaxed the CPUs of that era.
      Fred

  • @hokiebama1187
    @hokiebama1187 Před 11 měsíci

    I just watched this...

  • @fabricioluna2621
    @fabricioluna2621 Před 9 lety +8

    HP 50g. Intuitive. They use stack commands.

    • @IExSet
      @IExSet Před 8 lety +5

      And they have powerful RPL with hierarchical catalogs of variables, and u can program it on C/C++ ! And HP 50g is still faster than "modern" HP Prime, because u can't program Prime with C/C++ !

    • @odarge
      @odarge Před 2 lety

      @@IExSet who is programming the 50g in C/C++ ? Not me !! 🤔😉

  • @jellybeans6533
    @jellybeans6533 Před rokem

    Does the 50g program actually do the same thing as the others?

    • @0LoneTech
      @0LoneTech Před 9 měsíci +1

      Yes, and it really is sweet. LastArg reproduces the arguments consumed by the previous command, so matches up very well with high=max(a,b), low=min(a,b). The same technique was then used for the two %Ch calls. It could be written many other ways, e.g:
      Max LastArg Min
      Dup2 Max UnRot Min
      Dup2 < «Swap» IfT
      If Dup2 < Then Swap End
      2 →List Sort RevList List→
      The Swap way is more similar to the HP-41 and HP-71B examples, while the Max/Min ways are more like the Prime example.
      Just for fun, let me try a different approach without %Ch:
      «
      /
      Dup Inv
      2 →List
      «1 - 100 *» Map
      Sort
      List→
      Swap
      »
      I think the one in this presentation was easily the most neat of these.

  • @CristiNeagu
    @CristiNeagu Před 8 lety +5

    Just because the Prime needs longer code it doesn't mean it's worse. Sure, you lose efficiency but you gain ease of use and readability.

    • @Falcrist
      @Falcrist Před 8 lety +5

      It would have been ideal to have RPL available for command line programming , and some kind of C derivative for the IDE. The 50g still has the most elegant programming interface.

    • @IExSet
      @IExSet Před 8 lety +5

      Prime is toy for schoolboys(girls)

    • @Falcrist
      @Falcrist Před 8 lety +2

      Ex Set All pocket calculators and graphing calculators are toys for schoolboys(girls).

    • @IExSet
      @IExSet Před 8 lety

      +Falcrist Its not true (at least for everything before Prime), kids could play with logarithmic ruler, but it does not make it a toy. Same for serious things as HP 50g, i can,t see ways kids could play with it. People stil use things HP-15C and small analogue DM-15C. You cant solve demand for spontaneous pocket calculations with smartphones because they are not autonomous enough and its not comfortable type numbers on glass screen.

    • @Falcrist
      @Falcrist Před 8 lety

      Ex Set Pocket calculators and graphing calculators are for classrooms and collectors.
      If you're doing math-heavy work like engineering or scientific work, you're using python, mathcad, or specialized software to get the job done. If it's anything else, you're most likely using spreadsheet and database programs. For basic computations, there are a metric fuckton of programs, including emulators of almost every calculator that has ever been made.
      If you're doing real work, there are five options:
      1) You're in an office, in which case you're using a desktop, workstation, or server to do computations.
      2) You're on the go, in which case you use a phone, tablet, or laptop... not an extra calculator.
      3) You're a surveyor working for a company that somehow can't afford to upgrade from 1970s technology.
      4) You live in a 3rd world country, and don't have access to computers.
      5) You're a hipster dumbass who finds excuses to bust out a calculator when you should be using a real tool.
      The fact that you think it's not possible to use a phone for literally everything a calculator can do indicates that you fall into the dumbass category. The fact that you differentiate between the Prime and the 50g confirms that you're a dumbass.
      I'm thoroughly enjoying the irony of a person who thinks the HP Prime is a toy, but can't handle the fact that the entire pocket calculator genre is obsoleted to the point of being toys and museum pieces. I bet you're already trying to think of ways to convince me that you're an engineer.
      Go ahead. This should be fucking rich.

  • @kyleevjen5766
    @kyleevjen5766 Před 8 lety

    PACIFIC COAST HIGHWAY

  • @IExSet
    @IExSet Před 7 lety +8

    Prime is worse, 'cause it could give both worlds, but they dropped RPL at all and closed low level programming from developers. I like Prime exterior, but it is gloomy jail internally.

  • @marcel911
    @marcel911 Před 7 lety

    He sounds like George Carlin

  • @danilo9622
    @danilo9622 Před 3 lety

    Non è utile