News for hackers. Stuff that matters.
Re:Taichi: A Language for High-Performance Computation on Sp... by joe_the_user on Wednesday October 02, 2019 @11:04PM (#21143165)
Looks like cool stuff.

Am I right this language compiles to GPU code?

I'm thinking of a similar project myself and I'm curious what consideration besides loop vectorization goes into such stuff, especially, what about caches and access issues (OK, I ask the same question for any project like this)?

Also, isn't one factor in sparse representations that if you aren't careful, the data becomes un-sparse and slows down a lot?

Re:Taichi: A Language for High-Performance Computation on Sp... by sanxiyn on Wednesday October 02, 2019 @11:20PM (#21143257)
It compiles to both CPU and GPU. GPU is faster and headline numbers are for GPU.
Re:Taichi: A Language for High-Performance Computation on Sp... by nuntius on Wednesday October 02, 2019 @08:34PM (#21142369)
Very cool. Seems to be another tool in the same vein as halide-lang.org, now extended for sparse data.
Re:Taichi: A Language for High-Performance Computation on Sp... by pancho111203 on Thursday October 03, 2019 @04:59AM (#21144968)
Cool stuff, but I would have found it more useful as a python library, to allow integration with existing tools like Pytorch.
Re:Taichi: A Language for High-Performance Computation on Sp... by dagw on Thursday October 03, 2019 @05:01AM (#21144981)
I would have found it more useful as a python library

Today is you lucky day! Taichi is also a C++ library with first class python bindings: https://github.com/yuanming-hu/taichi

Re:Taichi: A Language for High-Performance Computation on Sp... by pancho111203 on Thursday October 03, 2019 @05:19AM (#21145063)
That's awesome, I'll give it a try. Do the python bindings include the Sparse Data functionality? I can't find it in the docs.
Re:Taichi: A Language for High-Performance Computation on Sp... by wangii on Wednesday October 02, 2019 @06:19PM (#21141381)
Neat!

however, as a C guy, I really don't want to give up the control of my data structures.

Re:Taichi: A Language for High-Performance Computation on Sp... by jrk on Wednesday October 02, 2019 @06:51PM (#21141630)
A key idea of this language is that you _don't_ give up control over your data structures. You program your algorithm against abstract data structures, as in most high-performance DSLs, but then you _explicitly control_ the implementation of those abstract data structures as physical hierarchical structures. (You can get a taste for this in the `layout` block in Fig. 1.)
Re:Taichi: A Language for High-Performance Computation on Sp... by mratsim on Thursday October 03, 2019 @04:04PM (#21151496)
So you're working on both Halide and Taichi?