Better HN
topnewbestaskshowjobs
Log inSign up

calebwin

72 karma · joined Jan 8, 2019 (7y ago) · 29 submissions

CS PhD student at Stanford researching video analytics
Submissions

1.

Show HN: Standard Graphics – command-line tool for universal 2D graphics(github.com ↗)

2 points · by calebwin · 7y ago · discuss

2.

Show HN: A universal command-line tool for printing 2D graphics(github.com ↗)

1 points · by calebwin · 7y ago · discuss

comment 7y ago · link · parent

https://docs.rs/em contains not only documentation but also comprehensive explanation on effectively using Emu.

I would recommend looking through it first. Of course, if you have questions feel free to ask - https://gitter.im/talk-about-emu/thoughts

comment 7y ago · link · parent

- Maybe there is a component of RLSL that could be useful. I have to think more about what I want that component to be.

- I want Emu to support general Rust code but still use stable Rust and provide really nice compile-time errors. Maybe Emu could do AST-level checking to (1) ensure that only legal transpilable-to-SPIR-V subset is used, (2) infer the kernel parameters, (3) infer global work size, local work size and then do MIR-level compilation to OpenCL or SPIR-V?

- At the moment, I want to focus on AST-level compilation because I think many applications (AI, ML, simulations, etc.) can still technically be implemented without a huge subset of Rust.

comment 7y ago · link · parent

I've been working on a project with similar goal to RLSL, called Emu. It's a procedural macro that automatically off-loads portions of code to run on a GPU. Here's a quick example...

  #[gpu_use]
  fn main() {
      let mut a = vec![0.2; 1000];
      let mut b = vec![0.3; 1000];
      let c = vec![0.0; 1000];

      gpu_do!(load(a));
      gpu_do!(load(b));
      gpu_do!(load(c));
      gpu_do!(launch());
      for i in 0..1000 {
          c[i] = a[i] + b[i];
      }
      gpu_do!(read(c));
      
      println!("{:?}", c);
  }
Emu is currently open-sourced as a 100% stable Rust library and while it only supports a tiny subset of Rust, that subset is well-defined with useful compile-time errors and a comprehensive test suite.

So if you're looking for a way to contribute to single-source GPGPU for Rust, please consider helping expand Emu's supported subset of Rust. The repository is at https://www.github.com/calebwin/emu

I will say that since Emu works at the AST/syntax level, RLSL is of great interest to me because it works instead at the MIR level which allows it to more easily support a large subset of Rust.

6.

Show HN: Stdg – Print 2D graphics from any language to any screen(github.com ↗)

2 points · by calebwin · 7y ago · discuss

7.

Pipelines – A language for data flow and analysis(dev.to ↗)

1 points · by calebwin · 7y ago · discuss

8.

Emu 0.2.0 – a framework for programming GPUs in Rust(reddit.com ↗)

2 points · by calebwin · 7y ago · discuss

9.

Show HN: A Language for Programming GPUs(dev.to ↗)

12 points · by calebwin · 7y ago · 2 comments

10.

Show HN: Emu – Language for Gpgpu Scripting from Rust(github.com ↗)

3 points · by calebwin · 7y ago · discuss

11.

Show HN: Emu – Language for Gpgpu from Rust(github.com ↗)

3 points · by calebwin · 7y ago · discuss

12.

Show HN: Emu – language for numerical computing embedded in Rust(calebwin.github.io ↗)

1 points · by calebwin · 7y ago · discuss

comment 7y ago · link · parent

Would you mind elaborating on the "compile time reference counting"? Is this new? How does it handle cycles?

comment 7y ago · link · parent

I really like that graphic for the website and README! Did you make it?

15.

Raster – Simple Grid System(github.com ↗)

2 points · by calebwin · 7y ago · discuss

comment 7y ago · link · parent

Would you mind explaining why compiling to machine code was faster than to C?

17.

Main.cc(main.cc ↗)

4 points · by calebwin · 7y ago · 1 comment

18.

GitHub Linguist Golang Color Change(github.com ↗)

1 points · by calebwin · 7y ago · discuss

comment 7y ago · link · parent

Isn't the main reason why languages like Go and Rust don't do that because it would produce a ton of memory garbage?

20.

Hypocorisms(en.wikipedia.org ↗)

1 points · by calebwin · 7y ago · discuss

21.

English nicknames(en.wikipedia.org ↗)

2 points · by calebwin · 7y ago · discuss

22.

Ask HN: Why build compilers in Rust instead of C?

1 points · by calebwin · 7y ago · 4 comments

23.

Crafting Interpreters: Global Variables(craftinginterpreters.com ↗)

2 points · by calebwin · 7y ago · discuss

24.

Show HN: The Wu Programming Language(github.com ↗)

3 points · by calebwin · 7y ago · discuss

25.

Show HN: Pipelines – Language for scripting parrallel pipelines with Python(github.com ↗)

69 points · by calebwin · 7y ago · 16 comments

26.

Show HN: 24-hour digital tower defense simulator(github.com ↗)

1 points · by calebwin · 7y ago · discuss

27.

Show HN: Pipelines: framework and language for crafting data pipelines(github.com ↗)

5 points · by calebwin · 7y ago · discuss

comment 7y ago · link · parent

there's this language called gro that i'm hoping to look into when i get some time - http://depts.washington.edu/soslab/gro/