Skip to content

Commit

Permalink
Added src/deventry.scm, a script that greatly speeds up Black Hole de…
Browse files Browse the repository at this point in the history
…velopment
  • Loading branch information
per-gron committed Nov 14, 2011
1 parent f044e11 commit 0620cc5
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,20 @@ special identifier objects instead of just symbols when combined with
hygienic macros. Usage of the other forms of macros is strongly
recommended.

# Development

If you want to contribute to Black Hole, either with small bugfix
patches or bigger things, feel free to do so! For bigger things, it's
good to keep in touch with me at per dot eckerdal at gmail dot com, to
make sure that we're on the same page.

I prefer getting patches through GitHub pull requests.

To actually work on the Black Hole code base, I strongly recommend
using the script `src/deventry.scm` instead of compiling the `bh`
binary over and over again. That file has instructions on how to use
it.

# More information / Contact

Please drop me a line at *per dot eckerdal at gmail dot com* or use
Expand Down
28 changes: 28 additions & 0 deletions src/deventry.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
;; This is a script that I use when I am working on the Black Hole
;; code base: Compiling the bh executable takes *loong* time, plus
;; it's much nicer to debug interpreted code. This is a way to open up
;; a Black Hole REPL with the Black Hole code interpreted.
;;
;; It is also possible to use this script to run Black Hole in
;; compiled mode, simply by compiling this file with `gsc deventry`
;;
;; To actually use it:
;;
;; 1. Put a symlink named bsc in your path that points to the gsc
;; binary
;;
;; 2. Set the BLACKHOLE_PATH environment variable to where your Black
;; Hole directory is.
;;
;; 3. Add the following code to ~/.gambcini:
;;
;; (let ((blackhole-path (getenv "BLACKHOLE_PATH")))
;; (and (equal? (path-strip-directory (car (command-line))) "bsc")
;; (load (path-expand "src/deventry" blackhole-path))
;; (begin
;; (println "Loaded Black Hole."))))
;;
;; 4. Fire up the Black Hole REPL with the terminal command `bsc`

(##include "blackhole.scm")
(apply-hooks!)

0 comments on commit 0620cc5

Please sign in to comment.