geiser-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Which is better, ob-racket or ob-geiser for Racket?


From: Galaxy Being
Subject: Which is better, ob-racket or ob-geiser for Racket?
Date: Tue, 8 Jun 2021 17:23:15 -0500

At this point, which should I be using, a completely separate ob-racket with the special

(racket . t)

or geiser for working with Racket? After some trouble I've got MIT Scheme working with geiser and babel, and it seems to work with separate sessions too. But this

#+BEGIN_SRC racket :results value :session *racket1*
  (define two 2)
  two ;; not output
  (* two two two)
#+END_SRC

#+RESULTS:
: 8

gives me an answer, but starts no REPL, let alone a REPL session. Do I get better functionality with geiser Racket? This is pretty good first try

#+begin_src racket :require math/matrix
;(require math/matrix)
(define A
  (matrix [[1.00  0.00  0.00  0.00  0.00   0.00]
           [1.00  0.63  0.39  0.25  0.16   0.10]
           [1.00  1.26  1.58  1.98  2.49   3.13]
           [1.00  1.88  3.55  6.70 12.62  23.80]
           [1.00  2.51  6.32 15.88 39.90 100.28]
           [1.00  3.14  9.87 31.01 97.41 306.02]]))

(define b (col-matrix [-0.01 0.61 0.91 0.99 0.60 0.02]))

(matrix-solve A b)
#+end_src

#+RESULTS:
: #<array #(6 1) #[-0.01 1.602790394502109 -1.613203059905556 1.2454941213714346 -0.4909897195846582 0.06576069617523222]>


but I miss having an actual live REPL session. BTW, there is no run-racket

-- 

Lawrence Bottorff
Grand Marais, MN, USA
borgauf@gmail.com

reply via email to

[Prev in Thread] Current Thread [Next in Thread]