The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

HP Prime Programming options
Message #1 Posted by Egan Ford on 4 Oct 2013, 7:36 p.m.

Hi,

I know I probably missed this discussion sometime ago and a Google search or two and quick scan here hasn't yield much other than Prime programming is done onboard with a Pascal-esk looking native language.

Questions:

  1. Can I program offline and import?
  2. What about C and ASM cross compiling?

Thanks.

      
Re: HP Prime Programming options
Message #2 Posted by Joe Horn on 4 Oct 2013, 8:04 p.m.,
in response to message #1 by Egan Ford

> Can I program offline and import?

Yes. You can use any text editor, then copy and paste directly into the hardware via the Connectivity Kit. You can also paste directly into the emulator's program editor.

Note that you can also use your computer's full keyboard to directly edit programs in Prime's built-in program editor, either via the Connectivity Kit, or in the emulator.

> What about C and ASM cross compiling?

At this time, only PPL (Prime Programming Language) is supported.

            
Re: HP Prime Programming options
Message #3 Posted by Egan Ford on 4 Oct 2013, 11:28 p.m.,
in response to message #2 by Joe Horn

Quote:
At this time, only PPL (Prime Programming Language) is supported.
Is PPL compiled binary, byte code, or interpreted?

Thanks.

                  
Re: HP Prime Programming options
Message #4 Posted by debrouxl on 5 Oct 2013, 4:48 a.m.,
in response to message #3 by Egan Ford

During execution, bytecode, according to Tim Wessman at http://www.omnimaga.org/index.php?topic=16826.msg304202#msg304202 .

      
Re: HP Prime Programming options
Message #5 Posted by Andy B (Australia) on 5 Oct 2013, 7:22 p.m.,
in response to message #1 by Egan Ford

Does anybody know of any guidelines re editing text in other text editors and copying and pasting code in and out of the emulator? Specifically relating to special characters and encodings?

I have always used the := for assignment rather than the right leaning triangle symbol because I'm not sure how to type that character into a text editor like notepad++ and even if I used it would it paste into the emulator ok?

            
Re: HP Prime Programming options
Message #6 Posted by Tim Wessman on 5 Oct 2013, 7:38 p.m.,
in response to message #5 by Andy B (Australia)

If you use the correct character, then yes it would paste fine. Everything is Unicode based in the system. UTF16 to be precise. Mainly because why bother adding any extra complexity worrying about UTF8 when space is not really an issue.

TW

                  
Re: HP Prime Programming options
Message #7 Posted by Andy B (Australia) on 6 Oct 2013, 12:35 a.m.,
in response to message #6 by Tim Wessman

Ok thanks. I guess the character codes are somewhere in the manual - I'll have a search.

By the way it would be nice if in future versions of the emulator the restrictions on mouse selection were relaxed, so that developers can edit freely and easily in the emulator program editor.

At the moment I can't select text and cut it into the clipboard without resorting to the emulator's / HP Prime's copy paste feature. This is the biggest obstacle that slows me down in writing programs. I just want to pretend to be in a normal windows text editor and use my mouse and cut/copy/paste in the normal ways.

                        
Re: HP Prime Programming options
Message #8 Posted by Han on 6 Oct 2013, 8:37 a.m.,
in response to message #7 by Andy B (Australia)

Quote:
Ok thanks. I guess the character codes are somewhere in the manual - I'll have a search.

By the way it would be nice if in future versions of the emulator the restrictions on mouse selection were relaxed, so that developers can edit freely and easily in the emulator program editor.

At the moment I can't select text and cut it into the clipboard without resorting to the emulator's / HP Prime's copy paste feature. This is the biggest obstacle that slows me down in writing programs. I just want to pretend to be in a normal windows text editor and use my mouse and cut/copy/paste in the normal ways.


The alternative is to edit with the connectivity kit. When you save your progress in the connectivity kit, it should also save it to the calculator or emulator.

                              
Re: HP Prime Programming options
Message #9 Posted by Eddie W. Shore on 6 Oct 2013, 10:44 a.m.,
in response to message #8 by Han

The emulator gives easier access to the math and Greek characters instead of creating using text files.

I usually program everything on the hardware and transfer programs to the PC for storage.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall