DEV Community

A language for programming GPUs

Caleb Winston on June 01, 2019

Most languages are for programming CPUs (that stands for Central Processing Unit). If you write a program in Python or Rust, for example, and run i...
Collapse
 
johannesvollmer profile image
Johannes Vollmer

Great project! Will calling this emu function feel like calling a Rust function? That would be really cool, maybe you can add that to your article.

Just one question: Why not use the rust parameter syntax, which would also fit the let: X syntax?

Collapse
 
calebwin profile image
Caleb Winston

Yes! Calling an Emu function can feel like calling a Rust function. I explain how this is possible in the "Execution" chapter of the "book". I just implemented it yesterday night.

Well, I do feel like it's a bit neater this way. Also, I'm not particularly keen on conforming to Rust-like syntax. The language should be treated as a unique language because it does do things differently from Rust for certain syntax.

Collapse
 
itr13 profile image
Mikael Klages

Seems interesting, might try to get into rust again to check it out. Any plans on adding support for it in other languages?

Collapse
 
calebwin profile image
Caleb Winston

There aren't any plans at the moment for adding support for it in other languages.

I want this to be more of something you embed in a systems language to talk to GPUs easily. In the past you would have used OpenCL or Halide in C or C++. But now you can use Emu in Rust.