GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - guibou/rust_rt: Rust experimentation. My first raytracer in rust.

BranchesTags
Open more actions menu

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
.gitignore
.gitignore
 
 
Cargo.toml
Cargo.toml
 
 
README.md
README.md
 
 
cornel.png
cornel.png
 
 
default.nix
default.nix
 
 

Repository files navigation

This is my first attempt at working with rust.

So I'm writing a ray tracer, as usual.

Right now, the thing I like with rust are:

  • I don't know what I'm doing at all. But I'm following the compiler. I've put lifetime annotation without any idea about what I'm doing. I've put Copy / Clone / PartialEq traits without any idea either. I do suspect that there may be some ugly copy happening in the background...

The things which annoys me, or that I don't understand:

  • Who had the idea that Foo::new is a good idea? I'm a C++ developer, so I want to write new Foo. (But there may be a semantic I don't understand yet).
  • No polymorphic numbers! It sucks so much to have to write "0." when I want a 0.
  • No repl?

How the hell does it work

cargo build && ./target/debug/rust_rt && eog output.ppm

Should display something ugly such as:

Ugly image

That's raytracing of sphere, with lighting, and everything is crappy.

About

Rust experimentation. My first raytracer in rust.

Resources

Readme
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.