Live data from Hacker News

Ray Tracing in pure CMake

64.github.io

1–10 of 167 posts

Re: Ray Tracing in pure CMake

#5
post #2

Oh no... so far the most terrifying title I've seen in HN this year. By the way, it's impressive how they even managed to multithread this.

Someone might be working on an article even worse: list of things that raytracers haven't been written in (yet, regularly updated)

Re: Ray Tracing in pure CMake

#7
post #5
post #2

Oh no... so far the most terrifying title I've seen in HN this year. By the way, it's impressive how they even managed to multithread this.

Someone might be working on an article even worse: list of things that raytracers haven't been written in (yet, regularly updated)

(PS: would that eventually count as "raytracers, written in provocative blog post meme"?)

Re: Ray Tracing in pure CMake

#9

I refuse to even look at this. I've seen ray tracing in a PDF before but this is too far.

Let me tell you one detail: since cmake doesn't have floats, they use fixed point arithmetic. LOOK AT IT. You know you want too!

  function(sqrt x res)
      div_by_2(${x} guess)

      foreach(counter RANGE 4)
          if(${guess} EQUAL 0)
              set("${res}" 0 PARENT_SCOPE)
              return()
          endif()

          div(${x} ${guess} tmp)
          add(${tmp} ${guess} tmp)
          div_by_2(${tmp} guess)
      endforeach()

      set("${res}" "${guess}" PARENT_SCOPE)
  endfunction()

Re: Ray Tracing in pure CMake

#10
post #5
post #2

Oh no... so far the most terrifying title I've seen in HN this year. By the way, it's impressive how they even managed to multithread this.

Someone might be working on an article even worse: list of things that raytracers haven't been written in (yet, regularly updated)

Or how about: an LLVM backend for CMake.
Post reply on HN