PyneComp now runs on a new compiler, written in Rust
As of today, every compile and every v6 conversion through the API and PyneIDE runs on a rewritten compiler. Nothing changes on your side; the API calls are the same.
What you will notice:
- It is much faster. On about 1,100 real scripts, the median time to compile a v6 script went from 29 ms to under 1 ms, and to convert a v4 or v5 script to v6 from 278 ms to about 1 ms. The slowest conversion dropped from 28 seconds to 0.12 seconds. Network and API time come on top of that and haven’t changed, so small scripts won’t feel much different.
- Scripts that TradingView refuses now get an error that points at the line in your script, instead of being compiled.
- When you convert a script, lines that need no change come back exactly as you wrote them.
- PyneIDE’s language server is built from the same compiler, so the editor checks your script the same way compiling does. PyneIDE updates it on its own.
If a script compiles differently than before, or one you expect to work is now rejected, let us know.