delneg / fable-raytracer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fable-raytracer

Small ray tracer demo of the F# to Rust language transpiler in Fable 4.x

Online demo:

https://ncave.github.io/fable-raytracer/

Build and run:

  • install .NET and Node.js
  • install Rust and wasm-pack
  • run dotnet tool restore to get Fable installed locally
  • run one of the performance tests:
    • npm run test-js (F# to JavaScript, running in Node.js)
    • npm run test-web (F# to Rust to WebAssembly, in Browser, localhost:8080)
    • npm run test-wasm (F# to Rust to WebAssembly, running in Node.js)
    • npm run test-rust (F# to Rust, running as native binary)
    • npm run test-dotnet (F# running on .NET as managed code)
    • npm run test-native (F# running on .NET as native binary)

About

License:MIT License


Languages

Language:F# 75.6%Language:HTML 15.6%Language:Rust 5.1%Language:JavaScript 3.7%