user616370
user616370

Reputation: 51

Garbage collector in Common lisp?

Is SBCL or CMUCL garbage collector available in Lisp implementation?

Upvotes: 4

Views: 6979

Answers (3)

Marko
Marko

Reputation: 31493

Both of them have GC available. Like with any conformant Common Lisp implementation, you can do (gc :full t) to instruct garbage collector to collect all your unreachable objects.

Upvotes: 3

SK-logic
SK-logic

Reputation: 9724

SBCL exposes some of its GC functionality: http://john.freml.in/sbcl-optimise-gc

Upvotes: 10

darioo
darioo

Reputation: 47213

Both of them provide garbage collection.

See this for CMUCL and this for SBCL.

Quote from Wikipedia:

Garbage collection was invented by John McCarthy around 1959 to solve problems in Lisp.

Every Common Lisp implementation, must have garbage collection defined, since any standard implementation must comply to Common Lisp ANSI standard.

Upvotes: 9

Related Questions