Post Reply 
How to use Python syntax ?
12-13-2019, 06:12 AM
Post: #4
RE: How to use Python syntax ?
(12-12-2019 09:33 PM)hamorabi Wrote:  I would like to ask you two more questions, if you don't mind:

1. Is there a document where I can know exactly which Python syntax is supported and which isn't?
No. The aim is to support math algorithms in the French curriculum. In short, OOP and advanced strings syntax/commands are not supported.

Quote:2. Is it possible for me to see the code that gets generated from the python syntax ? This would enable me to see learn programming in the Prime's native language and also see if I can optimize the converted code?
Not on the Prime, but you can see the conversion with the xcas(f) command inside Xcas/Xcas for Firefox. I would not recommend to spend too much time trying to optimize the converted code, instead try to optimize the algorithm, or convert it to native code in Xcas. Optimizing interpreted code is often bad because you will tend to write compact code that is difficult to read and maintain and this has sometimes the effect of degrading performances of the corresponding native code.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
How to use Python syntax ? - hamorabi - 12-12-2019, 05:04 AM
RE: How to use Python syntax ? - parisse - 12-12-2019, 04:28 PM
RE: How to use Python syntax ? - hamorabi - 12-12-2019, 09:33 PM
RE: How to use Python syntax ? - parisse - 12-13-2019 06:12 AM
RE: How to use Python syntax ? - hamorabi - 12-14-2019, 02:23 AM
RE: How to use Python syntax ? - parisse - 12-15-2019, 07:02 AM



User(s) browsing this thread: 1 Guest(s)