New Version: 2018.02.12 1.4.1.13441
|
02-22-2018, 11:11 AM
Post: #21
|
|||
|
|||
RE: New Version: 2018.02.12 1.4.1.13441
(02-21-2018 10:55 PM)toml_12953 Wrote: Like adding pointers, datatype specifiers (like INT, REAL, STRING) and user-defined records (like structures in C) to HPPL? Please, please? I wouldn't add pointers to be honest. When one starts to play with memory management the probability that the user-programmer messes up and complains blaming the system would be too high. Unless there would be an included garbage collection in the cycle, but that may blown up everything. Wikis are great, Contribute :) |
|||
02-22-2018, 11:14 AM
Post: #22
|
|||
|
|||
RE: New Version: 2018.02.12 1.4.1.13441
Thanks again Tim, Cyrille and other team members! Great!
— Dirk Hartland |
|||
02-22-2018, 11:54 AM
Post: #23
|
|||
|
|||
RE: New Version: 2018.02.12 1.4.1.13441
(02-21-2018 10:55 PM)toml_12953 Wrote: Like adding pointers, datatype specifiers (like INT, REAL, STRING) I do not see the need yet, using the IFERR helps detect execution errors when programming. (02-21-2018 10:55 PM)toml_12953 Wrote: user-defined records (like structures in C) to HPPL? You can create a list and create a file: AFiles("Data"):=List, and then reuse it knowing its structure. Viga C | TD | FB |
|||
02-22-2018, 01:01 PM
Post: #24
|
|||
|
|||
RE: New Version: 2018.02.12 1.4.1.13441
Hello, every time I re-install the simulator or connection kit, I must delete the shortcut that I place on the desktop and recreate it manually. = (
|
|||
02-22-2018, 01:56 PM
Post: #25
|
|||
|
|||
RE: New Version: 2018.02.12 1.4.1.13441 | |||
02-22-2018, 02:21 PM
Post: #26
|
|||
|
|||
RE: New Version: 2018.02.12 1.4.1.13441
I (almost) always have to pin new shortcuts to my task bar. Occasionally, previous ones remain, but then I always wonder about the properties it retained. I have read that this is a windows thing, that installer resources have no direct influence over how the shortcuts are managed.
Maybe Tim will offer some insight here? -Dale- |
|||
02-22-2018, 02:43 PM
(This post was last modified: 02-22-2018 02:44 PM by StephenG1CMZ.)
Post: #27
|
|||
|
|||
RE: New Version: 2018.02.12 1.4.1.13441
(02-21-2018 10:57 PM)Arno K Wrote:(02-21-2018 10:29 PM)Tim Wessman Wrote: Now if you will all quit finding problems I can get on to interesting things... I see Tim got 26 minutes... But what could be more interesting than making the Prime better? Stephen Lewkowicz (G1CMZ) https://my.numworks.com/python/steveg1cmz |
|||
02-22-2018, 06:55 PM
Post: #28
|
|||
|
|||
RE: New Version: 2018.02.12 1.4.1.13441
(02-22-2018 11:11 AM)pier4r Wrote:OK, I can live without the pointers but what I really want is user-defined datatypes (structures or records). They make the code so much cleaner.(02-21-2018 10:55 PM)toml_12953 Wrote: Like adding pointers, datatype specifiers (like INT, REAL, STRING) and user-defined records (like structures in C) to HPPL? Please, please? Tom L Cui bono? |
|||
02-22-2018, 07:10 PM
(This post was last modified: 02-22-2018 07:11 PM by toml_12953.)
Post: #29
|
|||
|
|||
RE: New Version: 2018.02.12 1.4.1.13441
(02-22-2018 11:54 AM)Carlos295pz Wrote:(02-21-2018 10:55 PM)toml_12953 Wrote: Like adding pointers, datatype specifiers (like INT, REAL, STRING) Yeah, but the code isn't as clean. Example: record MyType Name as string DOB as string DateOfHire as string salary as real end record UserRec(1000) as MyType UserRec(1).Name="Tom" UserRec(1).DOB="1968-09-11" UserRec(1).DateOfHire="1989-03-01" UserRec(1).salary=109234.17 Later on in the program, you know just what is being worked on by the field name after the dot. Coding is much cleaner than having to take an element out of a list. Quick, what kind of data is stored in L1(3)? How about UserRec(2).DateOfHire ? Which one is clearer as to what the data is and easier to remember? Am I the only person who's writing heavy-duty programs for the Prime? Programs with hundreds of lines and lots of data? Programs that may have to be maintained by someone else? Tom L Cui bono? |
|||
02-22-2018, 07:32 PM
Post: #30
|
|||
|
|||
RE: New Version: 2018.02.12 1.4.1.13441
You may be the only one. At least I imagine there aren't too many others.
Personally, I wouldn't choose the prime as an ideal host device for this kind of application. |
|||
02-22-2018, 07:49 PM
Post: #31
|
|||
|
|||
RE: New Version: 2018.02.12 1.4.1.13441
I know of at least 3 with applications in the 1mb or more source file size...
TW Although I work for HP, the views and opinions I post here are my own. |
|||
02-22-2018, 08:09 PM
Post: #32
|
|||
|
|||
RE: New Version: 2018.02.12 1.4.1.13441
(02-22-2018 07:10 PM)toml_12953 Wrote: Am I the only person who's writing heavy-duty programs for the Prime? Programs with hundreds of lines and lots of data? Programs that may have to be maintained by someone else? Creo que la alternativa es que se libere otro lenguaje para la calculadora, pero no reemplazar ni complicar HP PPL, me gusta mucho la simplicidad de HP PPL y como programador me ajusto a sus características como en cualquier otro lenguaje. Para mi tiene un atractivo muy académico, es el "PSeInt" en inglés para la enseñanza en programación básica (Imperativa), he logrado ver a muchos que siguieron con HP PPL y ahora tienen la base de programación en poco tiempo gracias a la simplificidad de este lenguaje accesible y portable en la calculadora, logran la meta de aprendizaje con rapidez y eso es excelente, apostar con HP PPL para enseñar programación lo considero una buena idea desde el principio. No aporto nada mencionando esto, tampoco pretendo cuestionar mejoras, solo es una forma de expresar mi gratitud a este lenguaje. I think the alternative is to release another language for the calculator, but not replace or complicate HP PPL, I really like the simplicity of HP PPL and as a programmer I adjust to its characteristics as in any other language. For me it has a very academic appeal, it is the "PSeInt" in English for teaching in basic programming (Imperative), I have seen many who followed with HP PPL and now have the programming base in a short time thanks to the simplification of this accessible and portable language in the calculator, they achieve the learning goal quickly and that is excellent, bet with HP PPL to teach programming I consider it a good idea from the beginning. I do not contribute anything mentioning this, nor do I intend to question improvements, it is just a way of expressing my gratitude to this language. Viga C | TD | FB |
|||
02-22-2018, 08:20 PM
(This post was last modified: 02-22-2018 08:26 PM by Han.)
Post: #33
|
|||
|
|||
RE: New Version: 2018.02.12 1.4.1.13441
Create your own custom 'store' and 'recall' functions that handle the data types you need. For example, you can create a RECSTO(record, recnum, label, value) function and RECRCL(record, recnum, label) to return the desired value.
Each record object should have the following structure: { { "label1", "label2", ... , "labeln" }, { value1_1, value1_2, ..., value1_n }, // this is the first record { value2_1, value2_2, ..., value2_n }, // this is the second record ... } The RECSTO function should use the supplied 'label' to find the appropriate index (using the first list in each record) for the value. So RECTSTO("MyRec", 2, "NAME", "Tom") should basically do something like: records:=AFiles(record); // here record="MyRec" labels:=records(1); // first list is always labels list n:=POS(labels,label); // here label="NAME"; current:=records(recnum+1); current(n):=value; // here value="Tom"; records(recnum+1):=current; AFiles(record):=records; Everything is generic. A long time ago I wrote a short how-to on creating dynamic variables; this is based on that idea. http://www.hpmuseum.org/forum/thread-3362.html Graph 3D | QPI | SolveSys |
|||
02-22-2018, 08:33 PM
(This post was last modified: 02-22-2018 08:37 PM by Han.)
Post: #34
|
|||
|
|||
RE: New Version: 2018.02.12 1.4.1.13441
If you have a collection of different "structures" for records, you can declare them with constants:
RecordType1:={ { "Name", "DOB", "SS#", "Gender" } }; RecordType2:={ { "Name", "Salary", "DateOfHire"} }; ... To "declare" a new record, use: AFiles("NewRecord"):=RecordType1; which creates an app variable named NewRecord whose data structure is RecordType1. You can even expand upon the post above and add in a second list that contains the data types, and have the records actually start at the third position onward within each record list. So even though HPPPL does not have classes and structures, you can implement them fairly easily. Graph 3D | QPI | SolveSys |
|||
02-23-2018, 07:55 PM
Post: #35
|
|||
|
|||
RE: New Version: 2018.02.12 1.4.1.13441
Boa tarde
Finalizei os testes desse novo firmware nos meus aplicativos, funcionou perfeitamente. Parabéns a equipe envolvida excelente trabalho. |
|||
02-24-2018, 02:37 PM
(This post was last modified: 02-24-2018 02:42 PM by lschroeder1947.)
Post: #36
|
|||
|
|||
RE: New Version: 2018.02.12 1.4.1.13441
Hi Tim,
I think I found a problem with iOS and windows 10, Apple and Microsoft, version of the lite / free. Probably true for Android Lite as well. Using Pro on Android and Windows 10, works fine with the HP Connectivity Kit running on another windows 10 machine (you helped me with that issue before). I know lite and free not suppose to connect. Pressing wifi icon in lower right hand screen time, battery, angle method, wifi pallete brings up Yellow circle Exclamation mark (see thumbnail). It stays locked on screen. Nothing works, including app reset, to get it to go away except quitting the lite / free app and restarting. Works with one try with windows 10. I think on my iPad I started it 6 0r 7 times before it would run without closing. Checked help, tree, about and all were running latest version. By the way Shift 1, Program, works correctly. Temporarily shows yellow circle Exclamation mark icon and goes away. Larry |
|||
02-24-2018, 04:44 PM
Post: #37
|
|||
|
|||
RE: New Version: 2018.02.12 1.4.1.13441
∫(e^(-x^2-i*t*x),x,-∞,∞) in cas mode,the result is wrong。
but it's correct in some old firmware |
|||
02-24-2018, 04:59 PM
Post: #38
|
|||
|
|||
RE: New Version: 2018.02.12 1.4.1.13441
Problem with "Filled" in circle, Geometry App
Viga C | TD | FB |
|||
02-24-2018, 05:06 PM
Post: #39
|
|||
|
|||
RE: New Version: 2018.02.12 1.4.1.13441
Muchas gracias por la corrección, yo he sido uno de los que estuvo perdido por algún tiempo sin saber que podía solucionar eso con el #pragma, la etiqueta anterior no me hizo ver lo obvio :c
Viga C | TD | FB |
|||
02-24-2018, 07:57 PM
(This post was last modified: 02-24-2018 08:00 PM by ggauny@live.fr.)
Post: #40
|
|||
|
|||
RE: New Version: 2018.02.12 1.4.1.13441
Hi,
A little problem in FRENCH : Chineses characters and not good writting. Gérard. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)