HP Prime: a student's view
|
08-31-2021, 03:37 PM
Post: #13
|
|||
|
|||
RE: HP Prime: a student's view
(08-31-2021 11:10 AM)toml_12953 Wrote: In a benchmark, it's important to use the exact same algorithm (and identical code, if possible). Otherwise, the results are meaningless. It's like comparing apples to oranges as we say. Since Python doesn't have a GOTO command, pick one of the published programs to convert that doesn't use GOTO. That leaves out the BASIC version. The closest one I saw to Python is the C version so I used that. This is true as far as the algorithm is concerned. However I don't think it is necessary to insist on identical code. All languages have features (or misfeatures) that differentiate them from other languages. A programmer writing in a given language should use the strengths of that language to create the best possible program. To do otherwise is to unnecessarily cripple the program, which would also skew the benchmark result, albeit in the opposite direction. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)