Re:Show HN: Prometeo – a Python-to-C transpiler for high-per...
by adgjlsfhk1 on Wednesday November 17, 2021 @01:31PM
(#29256916)
Note that the whole point of Julia is that it saves you the rewrite. There is Julia code running on top supercomputers that gives speed competitive to C/C++/Fortran. You will have to put in some work to get Julia code to be that fast, but it is usually dramatically easier than a rewrite in a different language.
Re:Show HN: Prometeo – a Python-to-C transpiler for high-per...
by zanellia on Wednesday November 17, 2021 @03:50PM
(#29258648)
It's not so easy deploy an algorithm written in Julia on an embedded platform though, is it?
Re:Show HN: Prometeo – a Python-to-C transpiler for high-per...
by adgjlsfhk1 on Wednesday November 17, 2021 @05:45PM
(#29259814)
Probably not :)
Re:Show HN: Prometeo – a Python-to-C transpiler for high-per...
by fault1 on Wednesday November 17, 2021 @01:44PM
(#29257117)
yes, but "speed" in 'top supercomputers' is not "speed" in 'embedded systems'.
I do think Julia potentially can crack this space, but the runtime at least historically has not been tailored for it.
It does seem like Julia has become more modular lately especially being able to disconnect the JIT (or LLVM ORC). H Hopefully you'll either being able to either defatten or completely remove the runtime dependencies (ala Rust in no-std mode). Each of these is important for different use cases.
Writing C code directly is as a good option, as long as your code is not too complex to develop, maintain and extend.
And, again, Python here is intended to be the host language for an embedded domain specific language that gets compiled into C. It does not need to be efficient it needs to be expressive and easy to analyse and transpile.