News for hackers. Stuff that matters.
Re:Show HN: Prometeo – a Python-to-C transpiler for high-per... by 4w4s on Wednesday November 17, 2021 @09:21AM (#29253296)
Nice job! Is this aimed at single core/thread computations or the prometeo layer is also a way to write in a more "user friendly way" basic parallel code?
Re:Show HN: Prometeo – a Python-to-C transpiler for high-per... by zanellia on Wednesday November 17, 2021 @09:27AM (#29253392)
For the time being, it targets single core/thread applications only.
Re:Show HN: Prometeo – a Python-to-C transpiler for high-per... by fwsgonzo on Wednesday November 17, 2021 @12:36PM (#29256107)
Do you have access to builtins and intrinsics? Are there any plans?

The single threaded thing is not an issue because you can still call the same function on each CPU and use the CPU ID to target parts of the computation, like a compute kernel function.

Re:Show HN: Prometeo – a Python-to-C transpiler for high-per... by zanellia on Wednesday November 17, 2021 @03:52PM (#29258669)
Intrinsics (or directly assembly) are used in BLASFEO (https://github.com/giaf/blasfeo) the linear package used by prometeo. It would be cool to generate assembly directly for a few things, but that would require quite a bit of work!
Re:Show HN: Prometeo – a Python-to-C transpiler for high-per... by giaf on Thursday November 18, 2021 @07:29AM (#29264662)
Indeed, and that would make the code machine-dependent too. On top of that, BLASFEO is already used for the most computationally intensive operations (e.g. matrix-matrix operations and factorizations, involving O(n^3) flops on O(n^2) data) providing high performance and low overhead, and the other operations on vector and matrices are anyway usually memory bounded and would see little to no benefit from directly using the assembly language.
Re:Show HN: Prometeo – a Python-to-C transpiler for high-per... by 4w4s on Wednesday November 17, 2021 @06:49PM (#29260431)
On top of linear algebra, is it also possible to interface it directly to standalone, well optimized existing QP solvers, like HPIPM (https://github.com/giaf/hpipm)? In case one is interested in implementing MPC controllers.
Re:Show HN: Prometeo – a Python-to-C transpiler for high-per... by giaf on Thursday November 18, 2021 @07:35AM (#29264713)
You are not the only one request this :p So, if I understand correctly, at the end what you would like is a tool to write your MPC problem more conveniently in a high-level language and still be able to deploy your code using HPIPM on an embedded device? [BTW, I happen to be the main HPIPM developer, so very glad about your comment!]
Re:Show HN: Prometeo – a Python-to-C transpiler for high-per... by zanellia on Thursday November 18, 2021 @07:40AM (#29264735)
Interfacing existing C code would be an important thing to be addressed. It is currently a missing feature, unfortunately.