main   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/examples/core/nbody_lang_shootout.xtm

Implementation

(bind-func main
  (lambda (n:i64)
    (let (;; (bodies:planet* (make_bodies))
          (i:i64 0))
      (offset_momentum 5 bodies)
      (printf "%.9f\n" (energy 5 bodies))
      (dotimes (i n)
        (advance 5 bodies 0.01))
      (printf "%.9f\n" (energy 5 bodies))
      void)))


Back to Index

Similar Entries

  • _glib_main_loop_call    xtlang
  • _glib_main_loop_call    xtlang
  • _glib_main_loop_call    xtlang
  • _gst_main_loop_call    xtlang
  • cerberus_main_cc    xtlang
  • clock_scheduler_main_callback    xtlang
  • decompose_domain    xtlang
  • get_main_frame    xtlang
  • glib-main-loop    scheme
  • glib-main-loop    scheme
  • glib_main_loop    xtlang
  • gst-main-loop    scheme
  • main    xtlang
  • main    xtlang
  • main    xtlang
  • main    xtlang
  • main    xtlang
  • main    xtlang
  • main    xtlang
  • main    xtlang
  • main    xtlang
  • main    xtlang
  • mainLoop    xtlang
  • mainLoop    xtlang
  • main_cc    xtlang
  • main_gain    xtlang
  • main_reverb    xtlang
  • run_main_event_loop    xtlang
  • set_dl_main    xtlang