Author Topic: Bugs and Requested Features with the HP Prime and Related Software  (Read 63284 times)

0 Members and 3 Guests are viewing this topic.

Offline MacBernick

  • LV3 Member (Next: 100)
  • ***
  • Posts: 93
  • Rating: +3/-0
    • View Profile
Re: Bugs and Requested Features with the HP Prime and Related Software
« Reply #120 on: January 31, 2014, 12:17:22 pm »
Quick suggestion for the FILLPOLY syntax.

I think it should accept this syntax for list of points :

{[[x1],[y1]], [[x2],[y2]], ...., [[xn],[yn]]}

This way, using translation, scaling, rotating matrix to all the points could be done in a single operation :

{list of point} * [rotation matrix], for example would rotate all the points at once.

Offline iconmaster

  • LV3 Member (Next: 100)
  • ***
  • Posts: 82
  • Rating: +5/-0
    • View Profile
Re: Bugs and Requested Features with the HP Prime and Related Software
« Reply #121 on: April 04, 2014, 04:28:24 pm »
It's been TOO LONG. SO here's some more bugs! Enjoy!

Today's bug: I have a bug with the INPUT command in my new Tetris game. My physical calculator turns off whenever it reaches it. It just turns off. I turn it back on, and program execution continues like normal, INPUT command succeeding and everything.

Today's suggestion: I can't find any functions to alter system settings. Are they in predefined variables, or functions, or what? I'd like to be able to, for example, switch angle modes to the correct one in a program.

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: Bugs and Requested Features with the HP Prime and Related Software
« Reply #122 on: April 04, 2014, 05:26:38 pm »
Heya, nice to see you back. I was wondering where did all the HP crowd go last Winter (every HP Prime game programmer pretty much vanished overnight once January was over. Maybe they got scared at the recent influx in Nspire topics :P)

Offline timwessman

  • LV3 Member (Next: 100)
  • ***
  • Posts: 94
  • Rating: +32/-0
    • View Profile
Re: Bugs and Requested Features with the HP Prime and Related Software
« Reply #123 on: April 06, 2014, 02:37:30 pm »
Today's suggestion: I can't find any functions to alter system settings. Are they in predefined variables, or functions, or what? I'd like to be able to, for example, switch angle modes to the correct one in a program.

VARS->HOME is where most items of interest will reside. Yes, they are in variables. Note however that some can be overridden by application variables (AAngle takes priority over HAngle) and so to do things properly you need to handle those.
TW

Although I work for the HP calculator group, the comments and opinions I post here are my own.

Offline iconmaster

  • LV3 Member (Next: 100)
  • ***
  • Posts: 82
  • Rating: +5/-0
    • View Profile
Re: Bugs and Requested Features with the HP Prime and Related Software
« Reply #124 on: April 07, 2014, 04:15:39 pm »
VARS->HOME is where most items of interest will reside. Yes, they are in variables. Note however that some can be overridden by application variables (AAngle takes priority over HAngle) and so to do things properly you need to handle those.

How did I not notice that?? Silly me.

A suggestion! I've also have been having trouble when coding recently with aligning my text on screen. I want ti centered, but I can't figure out how big a string will be on the screen! A function to give me the width of a given string of a given font would be nice for my GUI-using programs.

I have to say, though, with the new firmware, I'm going great guns on programming! It's actually sorta nice to work in.

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: Bugs and Requested Features with the HP Prime and Related Software
« Reply #125 on: April 08, 2014, 07:22:24 pm »
There's a new firmware? O.O

Offline iconmaster

  • LV3 Member (Next: 100)
  • ***
  • Posts: 82
  • Rating: +5/-0
    • View Profile
Re: Bugs and Requested Features with the HP Prime and Related Software
« Reply #126 on: April 08, 2014, 09:24:54 pm »
There's a new firmware? O.O

Well, new to me. Apparently, it's been available since 2013!

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: Bugs and Requested Features with the HP Prime and Related Software
« Reply #127 on: April 08, 2014, 09:47:23 pm »
Oh ok lol. You probably meant the December (or November?) update. I thought you meant that a new one just came out within the last few days :P

Offline timwessman

  • LV3 Member (Next: 100)
  • ***
  • Posts: 94
  • Rating: +32/-0
    • View Profile
Re: Bugs and Requested Features with the HP Prime and Related Software
« Reply #128 on: April 09, 2014, 11:42:18 am »
Quote
A suggestion! I've also have been having trouble when coding recently with aligning my text on screen. I want ti centered, but I can't figure out how big a string will be on the screen! A function to give me the width of a given string of a given font would be nice for my GUI-using programs.

I have to say, though, with the new firmware, I'm going great guns on programming! It's actually sorta nice to work in.

Well, I am glad you are liking it more. Here is something to ponder on for you though.

The reality is this - there were simply much higher priority items in the initial development and releases needing focused attention and polish. This means there are definitely some holes in the language (to name a few - getting the width of a string, being able to print something as a user in a 2d formula format, or a much nicer terminal) yet you already have what I think is the fastest user language on any calculator (excluding assembly and things that need a computer to do), easy to learn, and yet extremely capable programming language. There are TONS of things that I would personally like to do in the editor, UI, language, and so on to really make it shine.
TW

Although I work for the HP calculator group, the comments and opinions I post here are my own.

Offline iconmaster

  • LV3 Member (Next: 100)
  • ***
  • Posts: 82
  • Rating: +5/-0
    • View Profile
Re: Bugs and Requested Features with the HP Prime and Related Software
« Reply #129 on: April 09, 2014, 03:31:39 pm »
Well, I am glad you are liking it more. Here is something to ponder on for you though.

The reality is this - there were simply much higher priority items in the initial development and releases needing focused attention and polish. This means there are definitely some holes in the language (to name a few - getting the width of a string, being able to print something as a user in a 2d formula format, or a much nicer terminal) yet you already have what I think is the fastest user language on any calculator (excluding assembly and things that need a computer to do), easy to learn, and yet extremely capable programming language. There are TONS of things that I would personally like to do in the editor, UI, language, and so on to really make it shine.

Ah yes, I might of guessed that your schedule is a tad... Tight. I'm okay with that! I'll wait as long as I need to... It'll be worth the wait! And besides, the language is pretty great right now, as you said. I can't wait to see what HP releases next!

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: Bugs and Requested Features with the HP Prime and Related Software
« Reply #130 on: April 10, 2014, 03:25:32 am »
Btw, what's the stance about the idea of adding a new type of variable that is preserved even if you accidentally open the program code in the editor on-calc? For example, for game highscores or Zelda/Final Fantasy save files? I suggested it a few times before and that issue was brought up a while ago too, but it seemed pretty much ignored.

An example of why this is a serious issue: If I take the Tetris game on Omnimaga, my highscores are saved even after exiting and I can go back to view the top 5. However, if I hit ENTER by mistake (which is common for Nspire/84+/Casio users, since on those calc pressing ENTER launches the program) then run the program again, my highscores are gone.
« Last Edit: April 10, 2014, 03:28:34 am by DJ Omnimaga »

Offline timwessman

  • LV3 Member (Next: 100)
  • ***
  • Posts: 94
  • Rating: +32/-0
    • View Profile
Re: Bugs and Requested Features with the HP Prime and Related Software
« Reply #131 on: April 10, 2014, 03:41:19 pm »
Btw, what's the stance about the idea of adding a new type of variable that is preserved even if you accidentally open the program code in the editor on-calc? For example, for game highscores or Zelda/Final Fantasy save files? I suggested it a few times before and that issue was brought up a while ago too, but it seemed pretty much ignored.

Its not so much that its been ignored, rather there have just been higher priority items to look at. Another item to consider is that when we make a change we'd rather make a complete change rather then just patching one instance of a hole in capability. In my mind at least, this ties directly in with the whole underlying variable management, apps vs folders vs archived data, where are variables created, how they are created and similar.

There are many different ways to address the issues of "keeping a variable around long term". Your idea of a special variable is one. Another would be direct access to create and store variables into the flash memory. Another would be to have folders in the system. Another would be to put in something like sqlite and give an actual database that could be used or created at will. Another would be the concept of "projects" that had multiple source files, binary blobs, non-modifiyable data, etc.

In short, there are lots of ways to look at the issue and potentially certain of them are more in the long term direction of how we'd like the platform to move.
TW

Although I work for the HP calculator group, the comments and opinions I post here are my own.

Offline bb010g

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 428
  • Rating: +22/-1
  • I do stuff
    • View Profile
    • elsewhere on the net
Re: Bugs and Requested Features with the HP Prime and Related Software
« Reply #132 on: April 16, 2014, 03:29:02 am »
Suggestions from recent game work:
- All the graphics commands should take an optional last argument of alpha. (I'm looking at rect_p and arc_p in particular.)
- arc_p should take an optional fill color after its edge color, filling the section of the circle cut out by the arc. (Circles are a pain to do manually, and it's right there, looking at me...)
- textout_p should take it's GROB first. Everything else does in graphics!
- An option to use fixed-width style for textout_p wouldn't hurt either.
- Pointers or anonymous functions (or just passing functions like variables) would be a godsend. (I know it's a bit like C, but it works. I'd like to stay functional and still modify state, but I can't do that from a function without lists being parsed or global vars, which are icky and hardcoded. Pointers would allow pass-by-refrence.)
- A higher precision version of Time would be nice, even if it's just Unix. (EDIT: I forgot about ticks. derp)
- Includes!

Also, how much does the compiler optimize? I'm a rather functional programmer and like to make smallish functions; would a function like min(x,y) begin return if x > y then y else x end end be inlined each time? If you could give any sort of list, no matter how basic, of compiler optimizations made, that would be awesome.

Loving Unicode in variable names. Can we have a better explanation of user keys on calc? I finally found this, but this should be in help.

Thanks for all you guys do, and good luck on your work.

EDIT 2: I would love pointers. Having call-by-refrence and the ability to assign to on-the-fly variables from otherwise pure functions would be awesome... Also, function pointers.
Related to the optimization topic, can we have an inline tag for functions and either that or a const tag for local program variables?
Would an enum type be a possiblity, working synatically like local (and supporting the other operators)?
I know it sounds like I'm wanting C, but C's pretty boss. There's only so much you can do with effectful BASIC, even if it is compiled. ;)
« Last Edit: April 26, 2014, 01:45:15 am by bb010g »
Arch Linux user
Haskell newbie | Warming up to Lua | Being dragged into C++
Calculators: HP 50g, HP 35s, Casio Prizm, TI-Nspire CX CAS, HP 28s, HP Prime, Mathematica 9 (if that counts)
π: 3.14...; l: 108; i: 105; e: 101; l+i+e: 314
THE CAKE IS A LIE IS A PIE

Offline iconmaster

  • LV3 Member (Next: 100)
  • ***
  • Posts: 82
  • Rating: +5/-0
    • View Profile
Re: Bugs and Requested Features with the HP Prime and Related Software
« Reply #133 on: June 25, 2014, 05:09:03 pm »
- Pointers or anonymous functions (or just passing functions like variables) would be a godsend. (I know it's a bit like C, but it works. I'd like to stay functional and still modify state, but I can't do that from a function without lists being parsed or global vars, which are icky and hardcoded. Pointers would allow pass-by-refrence.)

Well, you can pass around global functions like this:

Code: [Select]
FUNC1()
BEGIN
 MSGBOX("Function One!!");
END;


FUNC2()
BEGIN
 MSGBOX("Function Two.");
END;


EXPORT PASSITAROUND()
BEGIN
 LOCAL C,L={"FUNC1","FUNC2"},A;
 A:=CHOOSE(C,"Choose 1",L);
 EXPR(L(A)+"()");
END;



You can execute multiple statements in EXPR too, I believe, so there's local functions for you, I guess.


EDIT: While I'm here, I might as well add a bug I found. Quoting is fun, and by fun I mean always buggy. This program crashes, but ONLY on my emulator:


Code: [Select]
EXPORT CRASHHYPE()
BEGIN
 RETURN MAKELIST('I+1',I,1,10);
END;


I know it shouldn't work even if it doesn't crash, but I had to try it.
« Last Edit: June 25, 2014, 05:25:13 pm by iconmaster »

Offline iconmaster

  • LV3 Member (Next: 100)
  • ***
  • Posts: 82
  • Rating: +5/-0
    • View Profile
Re: Bugs and Requested Features with the HP Prime and Related Software
« Reply #134 on: June 27, 2014, 08:58:21 am »
I have another bug! This one's rather crazy.


My calculator has somehow equated the number two with the empty string.


If I type in 2 to the command line, I get back "". Same goes for typing in 1+1. {1,2,3}? No, it's {1,"",3}. 2 is "" even in programs.


2 works fine in the CAS, though.