Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Fix error 'The function CL21.CORE.PACKAGE:IN-PACKAGE is undefined.' by sbcl.
(defpackage cl21) (in-package :cl21) (cl:dolist (package-name '(:cl21.core)) (cl:let ((package (cl:find-package package-name))) (cl:unless package (cl:error "Package \"~A\" doesn't exist." package-name)) (cl:do-external-symbols (symbol package) (cl:shadowing-import symbol) (cl:export symbol...
(defpackage cl21) (cl:in-package :cl21) (cl:dolist (package-name '(:cl21.core)) (cl:let ((package (cl:find-package package-name))) (cl:unless package (cl:error "Package \"~A\" doesn't exist." package-name)) (cl:do-external-symbols (symbol package) (cl:shadowing-import symbol) (cl:export sym...
Fix a bug: add comma when serializing plist into JSON
(in-package #:eloquent.mvc.response) (defgeneric make-encoder (encoder) (:documentation "Returns a function for encoding a value into a string.")) (defmethod make-encoder ((encoder (eql :json-plist))) "Returns a function for encoding a PLIST into a JSON string." #'cl-json:encode-json-plist-to-string) (defmetho...
(in-package #:eloquent.mvc.response) (defgeneric make-encoder (encoder) (:documentation "Returns a function for encoding a value into a string.")) (defmethod make-encoder ((encoder (eql :json-plist))) "Returns a function for encoding a PLIST into a JSON string." #'cl-json:encode-json-plist-to-string) (defmetho...
Define generic function 2-NODE-P with two methods.
(cl:in-package #:clump-2-3-tree) (defclass tree () ((%contents :initform nil :accessor contents) (%leaf-class :initarg :leaf-class :reader leaf-class) (%2-node-class :initarg :2-node-class :reader 2-node-class) (%3-node-class :initarg :3-node-class :reader 3-node-class))) (defclass node () ((%parent :ini...
(cl:in-package #:clump-2-3-tree) (defclass tree () ((%contents :initform nil :accessor contents) (%leaf-class :initarg :leaf-class :reader leaf-class) (%2-node-class :initarg :2-node-class :reader 2-node-class) (%3-node-class :initarg :3-node-class :reader 3-node-class))) (defclass node () ((%parent :ini...
Use direct dependencies in ASDF
;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- (defsystem :swap-bytes :defsystem-depends-on (:madeira-port :trivial-features) :depends-on (:trivial-features) :serial t :components ((:file "package") (:madeira-port "ccl" :when (:and :ccl (:or :x86 :x86-64))) (:madeir...
;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- (defsystem :swap-bytes :defsystem-depends-on (:madeira-port :trivial-features) :depends-on (:trivial-features) :components ((:file "package") (:madeira-port "ccl" :when (:and :ccl (:or :x86 :x86-64)) :depends-on ("packag...
Add email in asdf system author field
;;;; repl-utilities.asd (asdf:defsystem #:repl-utilities :serial t :description "Ease common tasks at the REPL." :license "BSD 2-clause" :author "Matt Niemeir" :components ((:file "package") (:file "utils") (:file "repl-utilities")))
;;;; repl-utilities.asd (asdf:defsystem #:repl-utilities :serial t :description "Ease common tasks at the REPL." :license "BSD 2-clause" :author "Matt Niemeir <matt.niemeir@gmail.com>" :components ((:file "package") (:file "utils") (:file "repl-utilities")))
Return nil in keypress handler
(in-package :lispkit) (defparameter *current-tab* nil) (defun load-url (url &optional view) (webkit.foreign:webkit-web-view-load-uri (or view *current-tab*) url)) (defun event-as-string (event) (with-gdk-event-slots (state string) event (print (list state string)))) (let ((key-events nil)) (defun all-...
(in-package :lispkit) (defparameter *current-tab* nil) (defun load-url (url &optional view) (webkit.foreign:webkit-web-view-load-uri (or view *current-tab*) url)) (defun event-as-string (event) (with-gdk-event-slots (state string) event (print (list state string)))) (let ((key-events nil)) (defun all-...
Fix export list to include specials
(defpackage :ps2js (:use #:cl #:uiop/pathname #:uiop/filesystem #:uiop/run-program #:cl-fsnotify #:alexandria) (:export #:bundle-vendor #:bundle-main #:minify-js #:watch-parenscript #:unwatch-parenscript) (:documentation "Automati...
(defpackage :ps2js (:use #:cl #:uiop/pathname #:uiop/filesystem #:uiop/run-program #:cl-fsnotify #:alexandria) ;;; You are probably best off using package qualified names rather ;;; than importing all of this mess... (:export #:*ps-dir* #:*js-dir* #:...
Define ASDF system in package ASDF-USER.
;;;; Copyright (c) 2008 - 2013 ;;;; ;;;; Robert Strandh (robert.strandh@gmail.com) ;;;; ;;;; all rights reserved. ;;;; ;;;; Permission is hereby granted to use this software for any ;;;; purpose, including using, modifying, and redistributing it. ;;;; ;;;; The software is provided "as-is" with no warranty. The u...
;;;; Copyright (c) 2008 - 2013 ;;;; ;;;; Robert Strandh (robert.strandh@gmail.com) ;;;; ;;;; all rights reserved. ;;;; ;;;; Permission is hereby granted to use this software for any ;;;; purpose, including using, modifying, and redistributing it. ;;;; ;;;; The software is provided "as-is" with no warranty. The u...
Use 0.0.0.0 as default *host*
;; Common Lisp Script ;; Manoel Vilela (defpackage :lisp-chat-config (:use :cl) (:export :*debug* :*host* :*port*)) (in-package :lisp-chat-config) (defparameter *debug* t) (defparameter *host* "chat.lerax.me") (defparameter *port* 5558)
;; Common Lisp Script ;; Manoel Vilela (defpackage :lisp-chat-config (:use :cl) (:export :*debug* :*host* :*port*)) (in-package :lisp-chat-config) (defparameter *debug* t) (defparameter *host* "0.0.0.0") (defparameter *port* 5558)
Switch to package :TRE to be safe.
(defbuiltin sys-image-create (pathname fun) (sb-ext:save-lisp-and-die pathname :toplevel (lambda () (cl:funcall fun)))) (defbuiltin %start-core () (setq *launchfile* (cadr (| sb-ext:*posix-argv* ; #+SBCL sb-ext:*posix-a...
(defbuiltin sys-image-create (pathname fun) (sb-ext:save-lisp-and-die pathname :toplevel (lambda () (cl:funcall fun)))) (defbuiltin %start-core () (cl:use-package :tre) (setq *launchfile* (cadr (| sb-ext:*posix-argv* ; ...
Revert back to :serial t.
(asdf:defsystem #:explicit-bind :author "Jean-Philippe Paradis <hexstream@gmail.com>" ;; See the UNLICENSE file for details. :license "Public Domain" :description "UNSUPPORTED. UNSTABLE? INCOMPLETE? Effectively enables intermixing of any number of LET, LET*, (an enhanced version of) FLET, MULTIPLE-VALUE-BIND...
(asdf:defsystem #:explicit-bind :author "Jean-Philippe Paradis <hexstream@gmail.com>" ;; See the UNLICENSE file for details. :license "Public Domain" :description "UNSUPPORTED. UNSTABLE? INCOMPLETE? Effectively enables intermixing of any number of LET, LET*, (an enhanced version of) FLET, MULTIPLE-VALUE-BIND...
Use system option :SERIAL T.
(cl:in-package #:asdf-user) (defsystem :sicl-compiler-test-utilities :depends-on (:sicl-compiler-utilities) :components ((:file "packages") (:file "test-utilities" :depends-on ("packages"))))
(cl:in-package #:asdf-user) (defsystem :sicl-compiler-test-utilities :depends-on (:sicl-compiler-utilities) :serial t :components ((:file "packages") (:file "test-utilities")))
Use proper argument order for IS.
(cl:defpackage #:enhanced-eval-when_tests (:use #:cl #:parachute) (:shadowing-import-from #:enhanced-eval-when #:eval-when)) (cl:in-package #:enhanced-eval-when_tests) (defmacro test-passthrough (situations) `(is equal (macroexpand-1 '(eval-when ,situations do-it)) '(cl:eval-when ,situations do-it...
(cl:defpackage #:enhanced-eval-when_tests (:use #:cl #:parachute) (:shadowing-import-from #:enhanced-eval-when #:eval-when)) (cl:in-package #:enhanced-eval-when_tests) (defmacro test-passthrough (situations) `(is equal '(cl:eval-when ,situations do-it) (macroexpand-1 '(eval-when ,situations do-it)))) (d...
Rename global variable holding global environment.
(cl:in-package #:sicl-extrinsic-hir-compiler) (defparameter *global-environment* (make-instance 'environment))
(cl:in-package #:sicl-extrinsic-hir-compiler) (defparameter *environment* (make-instance 'environment))
Add copyright dates and license statement.
(cl:in-package #:sicl-clos) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Class STANDARD-WRITER-METHOD. (defclass standard-writer-method (standard-accessor-method) ())
;;;; Copyright (c) 2013 - 2015 ;;;; ;;;; Robert Strandh (robert.strandh@gmail.com) ;;;; ;;;; All rights reserved. ;;;; ;;;; Redistribution and use in source and binary forms, with or ;;;; without modification, are permitted provided that the following ;;;; conditions are met: ;;;; ;;;; 1. Redistributions of source ...
Remove :METACLASS keyword argument before passing it to the host ENSURE-CLASS.
(cl:in-package #:sicl-clos) (defun ensure-class (name &rest arguments &key direct-superclasses &allow-other-keys) (let* ((generated-name (gensym)) (environment (sicl-genv:global-environment)) (new-arguments (copy-list arguments)) (new-superclasses (loop for superclass-name in (remove t...
(cl:in-package #:sicl-clos) (defun ensure-class (name &rest arguments &key direct-superclasses &allow-other-keys) (let* ((generated-name (gensym)) (environment (sicl-genv:global-environment)) (new-arguments (copy-list arguments)) (new-superclasses (loop for superclass-name in (remove t...
Put the test file in a reasonable package.
(defun test-parse () (let* ((it.bese.yaclml.xmls::*strip-comments* nil) (str (arnesi:read-string-from-file "/home/ACCELERATION/nathan/lisp/gainesville-green/templates/faq.tal")) (form2 (cxml:parse str (make-interner *uri-to-package* (cxml:make-whitespace-normalizer (cxml-xmls:make-xmls-bui...
(in-package :ucw) (defun test-parse () (let* ((it.bese.yaclml.xmls::*strip-comments* nil) (str (arnesi:read-string-from-file "/home/ACCELERATION/nathan/lisp/gainesville-green/templates/faq.tal")) (form2 (cxml:parse str (make-interner *uri-to-package* (cxml:make-whitespace-normalizer (cxml-...
Define new generic function REPLACE-AND-SHRINK.
(cl:in-package #:clump-2-3-tree) (defgeneric delete (leaf)) (defgeneric delete-child (parent child)) (defmethod delete ((leaf leaf)) (delete-child (parent leaf) leaf))
(cl:in-package #:clump-2-3-tree) (defgeneric delete (leaf)) (defgeneric delete-child (parent child)) (defgeneric replace-and-shrink (parent child)) (defmethod delete ((leaf leaf)) (delete-child (parent leaf) leaf))
Include eg.lisp in ASD file to automaticall compile example algebras for convenience
(asdf:defsystem :bld-ga :name "bld-ga" :author "Ben Diedrich <bldiedrich@gmail.com>" :license "MIT" :description "Library implementing geometric algebra. Define algebras based on dimension and inner product signature. Uses BLD-GEN system for generic arithmetic functions. Use BLD-GENSYM for symbolic scalars and ...
(asdf:defsystem :bld-ga :name "bld-ga" :author "Ben Diedrich <bldiedrich@gmail.com>" :license "MIT" :description "Library implementing geometric algebra. Define algebras based on dimension and inner product signature. Uses BLD-GEN system for generic arithmetic functions. Use BLD-GENSYM for symbolic scalars and ...
Make the two function have the same shape.
(cl:in-package #:sicl-extrinsic-hir-compiler) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Main entry point. (defun eval (form) (let* ((cleavir-generate-ast:*compiler* 'cl:eval) (ast (cleavir-generate-ast:generate-ast form *environment*)) (hir (cleavir-ast-to-hir:compile-toplev...
(cl:in-package #:sicl-extrinsic-hir-compiler) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Main entry point. (defun eval (form) (let* ((cleavir-generate-ast:*compiler* 'cl:eval) (ast (cleavir-generate-ast:generate-ast form *environment*)) (hir (cleavir-ast-to-hir:compile-toplev...
Return the cell, not the element.
;;;;; TRE environment ;;;;; Copyright (c) 2005-2006,2008,2010 Sven Klose <pixel@copei.de> (if (not (eq t *BUILTIN-MEMBER*)) (progn (defun %member-r (elm lst) (if lst (if (equal elm (car lst)) lst (%member-r elm (cdr lst))))) (defun member (elm &rest lsts) (or (%membe...
;;;;; TRE environment ;;;;; Copyright (c) 2005-2006,2008,2010-2011 Sven Klose <pixel@copei.de> (if (not (eq t *BUILTIN-MEMBER*)) (progn (defun %member-r (elm lst) (if lst (if (equal elm (car lst)) lst (%member-r elm (cdr lst))))) (defun member (elm &rest lsts) (or (%...
Fix bugs introduced by merge
(:nav-graph (((0.0 0.0 :id 1) (0.0 1.0 :id 2) (1.0 1.0 :id 3) (1.0 0.0 :id 4)) ((1 2) (2 1) (1 4) (4 1) (2 3) (3 2))) :home-node 1)
(:nav-graph (((0.0 0.0 :id 1) (0.0 1.0 :id 2) (1.0 1.0 :id 3) (1.0 0.0 :id 4)) ((1 2) (2 1) (1 4) (4 1) (2 3) (3 2))) :home-nodes (1))
Add backends to asdf file.
;;;; fsocket.asd (asdf:defsystem #:fsocket :description "Unix sockets extension for usocket." :author "Thayne McCombs <bytecurry.software@gmail.com>" :license "MIT" :depends-on (#:usocket) :serial t :components ((:file "package") (:file "fsocket")))
;;;; fsocket.asd (asdf:defsystem #:fsocket :description "Unix sockets extension for usocket." :author "Thayne McCombs <bytecurry.software@gmail.com>" :license "MIT" :depends-on (#:usocket) :components ((:file "package") (:file "fsocket" :depends-on ("package")) (:module backend ...
Define system in package ASDF-USER
(cl:in-package #:common-lisp-user) (asdf:defsystem :cleavir-ast-to-source :depends-on (:cleavir-ast :cleavir-primop) :serial t :components ((:file "packages") (:file "ast-to-source") (:file "fixnum") (:file "accessors")))
(cl:in-package #:asdf-user) (defsystem :cleavir-ast-to-source :depends-on (:cleavir-ast :cleavir-primop) :serial t :components ((:file "packages") (:file "ast-to-source") (:file "fixnum") (:file "accessors")))
Load file containing definition of variable *CLASS-UNIQUE-NUMBER*.
(cl:in-package #:sicl-boot-phase1) (defun ld (filename environment) (format *trace-output* "Loading file ~a~%" filename) (finish-output *trace-output*) (sicl-extrinsic-environment:load-source-with-environments filename (compilation-environment environment) environment)) (defun fill-environment (environment) ...
(cl:in-package #:sicl-boot-phase1) (defun ld (filename environment) (format *trace-output* "Loading file ~a~%" filename) (finish-output *trace-output*) (sicl-extrinsic-environment:load-source-with-environments filename (compilation-environment environment) environment)) (defun fill-environment (environment) ...
Add github to the jump table
(in-package :lispkit) (defparameter *jumps* (make-hash-table :test #'equal)) (defun defjump (place prefix url) (setf (gethash prefix place) url)) (defjump *jumps* "g" "http://google.com/search?q=~a") (defun lookup-jump (s table) (gethash s table)) (defun extract-jump-str (s) (let ((splits (split-sequence #\...
(in-package :lispkit) (defparameter *jumps* (make-hash-table :test #'equal)) (defun defjump (place prefix url) (setf (gethash prefix place) url)) (defjump *jumps* "g" "http://google.com/search?q=~a") (defjump *jumps* "gh" "https://github.com/search?&q=~a") (defun lookup-jump (s table) (gethash s table)) (defu...
Add default method on ROTATE-LEFT.
(cl:in-package #:clump-binary-tree) (defgeneric rotate-left (tree)) (defgeneric rotate-right (tree)) (defmethod rotate-left ((tree node)) (when (null (right tree)) (error 'right-subtree-must-be-non-nil :tree tree))
(cl:in-package #:clump-binary-tree) (defgeneric rotate-left (tree)) (defgeneric rotate-right (tree)) (defmethod rotate-left (tree) (error 'invalid-binary-tree :tree tree)) (defmethod rotate-left ((tree node)) (when (null (right tree)) (error 'right-subtree-must-be-non-nil :tree tree))
Use processor class from Cleavir.
(cl:in-package #:sicl-extrinsic-file-compiler) (defmethod cleavir-hir-transformations:introduce-immediate (constant (implementation sicl-target-sicl:sicl) (processor sicl-x86-64:x86-64) os) (let ((value (cleavir-ir:value constant))) (cond ((and (typep value 'integer) (<= #.(- (expt 2 30)) va...
(cl:in-package #:sicl-extrinsic-file-compiler) (defmethod cleavir-hir-transformations:introduce-immediate (constant (implementation sicl-target-sicl:sicl) (processor cleavir-processor-x86-64:x86-64) os) (let ((value (cleavir-ir:value constant))) (cond ((and (typep value 'integer) (<= #.(- (e...
Load a file containing the definition of the class METAOBJECT.
(cl:in-package #:sicl-boot-phase1) (defun ld (filename environment) (format *trace-output* "Loading file ~a~%" filename) (finish-output *trace-output*) (sicl-extrinsic-environment:load-source-with-environments filename (compilation-environment environment) environment)) (defun fill-environment (environment) ...
(cl:in-package #:sicl-boot-phase1) (defun ld (filename environment) (format *trace-output* "Loading file ~a~%" filename) (finish-output *trace-output*) (sicl-extrinsic-environment:load-source-with-environments filename (compilation-environment environment) environment)) (defun fill-environment (environment) ...
Add temporary methods for BUILT-IN-CLASS.
(cl:in-package #:sicl-clos) (defmethod reader-method-class ((class regular-class) (direct-slot standard-direct-slot-definition) &rest initargs) (apply #'reader-method-class-default class direct-slot initargs)) (defmethod writer-method-class ((class regular-class) (direct-slot standard-direct-...
(cl:in-package #:sicl-clos) (defmethod reader-method-class ((class regular-class) (direct-slot standard-direct-slot-definition) &rest initargs) (apply #'reader-method-class-default class direct-slot initargs)) (defmethod writer-method-class ((class regular-class) (direct-slot standard-direct-...
Add metadata required by Quicklisp.
(cl:in-package #:asdf-user) (defsystem :clobber :serial t :components ((:file "packages") (:file "clobber") (:file "demo") (:file "demo2")))
(cl:in-package #:asdf-user) (defsystem :clobber :description "Library for transaction-oriented data bases." :author "Robert Strandh <robert.strandh@gmail.com>" :license "FreeBSD, see file LICENSE.text" :serial t :components ((:file "packages") (:file "clobber") (:file "demo") (:file "demo2")))
Remove in-package from ASD file.
#| This file is a part of Colleen (c) 2014 Shirakumo http://tymoon.eu (shinmera@tymoon.eu) Author: Nicolas Hafner <shinmera@tymoon.eu> |# (in-package #:cl-user) (asdf:defsystem colleen :version "2.2.0" :license "Artistic" :author "Nicolas Hafner <shinmera@tymoon.eu>" :maintainer "Nicolas Hafner <shinmera@ty...
#| This file is a part of Colleen (c) 2014 Shirakumo http://tymoon.eu (shinmera@tymoon.eu) Author: Nicolas Hafner <shinmera@tymoon.eu> |# (asdf:defsystem colleen :version "2.2.0" :license "Artistic" :author "Nicolas Hafner <shinmera@tymoon.eu>" :maintainer "Nicolas Hafner <shinmera@tymoon.eu>" :homepage ...
Return bytecode instead of NIL.
;;;;; tré – Copyright (c) 2008–2013 Sven Michael Klose <pixel@copei.de> (defun %compile-environment-configure-transpiler (tr funs) (= (transpiler-dot-expand? (copy-transpiler tr)) nil) (transpiler-add-wanted-functions tr (| funs (+ *universe-functions* *macros*))) tr) (defun compile-c-environment (&optional (fu...
;;;;; tré – Copyright (c) 2008–2013 Sven Michael Klose <pixel@copei.de> (defun %compile-environment-configure-transpiler (tr funs) (= (transpiler-dot-expand? (copy-transpiler tr)) nil) (transpiler-add-wanted-functions tr (| funs (+ *universe-functions* *macros*))) tr) (defun compile-c-environment (&optional (fu...
Define a class to hold interpretation information.
;;;; ---------------------------------------------------------------------- ;;;; Title: X11 standard keysym interpretation rules ;;;; Created: 2016-01-25 ;;;; Author: Robert Strandh <robert.strandh@gmail.com> ;;;; License: LGPL (See file COPYING for details). ;;;; --------------------------------------------...
;;;; ---------------------------------------------------------------------- ;;;; Title: X11 standard keysym interpretation rules ;;;; Created: 2016-01-25 ;;;; Author: Robert Strandh <robert.strandh@gmail.com> ;;;; License: LGPL (See file COPYING for details). ;;;; --------------------------------------------...
Synchronize with latest (warning!) RESTAS
(in-package #:saluto) (defvar *providers* '() "Variable, containing providers objects Should be replaced when mounting module") (defun parse-provider (provider-name) (or (find provider-name (print *providers*) :key #'name :test #'string=) (error "SALUTO: No such provider ~A" provider-name))) (restas:define...
(in-package #:saluto) (defvar *providers* '() "Variable, containing providers objects Should be replaced when mounting module") (defun parse-provider (provider-name) (or (find provider-name *providers* :key #'name :test #'string=) (error "SALUTO: No such provider ~A" provider-name))) (restas:define-route l...
Use function SICL-ENVIRONMENT:FIND-CLASS to look up class prototypes.
(cl:in-package #:sicl-clos) (defmacro defmethod (&environment env function-name &rest rest) (multiple-value-bind (qualifiers lambda-list specializers declarations documentation forms) (parse-defmethod rest) (let ((generic-function-var (gensym))) `(let ((,generic-function-var (ensure-generic-...
(cl:in-package #:sicl-clos) (defmacro defmethod (&environment env function-name &rest rest) (multiple-value-bind (qualifiers lambda-list specializers declarations documentation forms) (parse-defmethod rest) (let ((generic-function-var (gensym))) `(let ((,generic-function-var (ensure-generic-...
Remove useless blank lines at end of file.
(cl:in-package :sicl-arithmetic) (defun + (&rest args) (cond ((null args) 0) ;; FIXME: check that we have a number ((null (cdr args)) (car args)) (t (apply #'+ (binary-add (car args) (cadr args)) (cddr args))))) (defun - (x &rest args) (cond ((null args) (negate x)) ((null (cdr args)) (binary-sub x (car args...
(cl:in-package :sicl-arithmetic) (defun + (&rest args) (cond ((null args) 0) ;; FIXME: check that we have a number ((null (cdr args)) (car args)) (t (apply #'+ (binary-add (car args) (cadr args)) (cddr args))))) (defun - (x &rest args) (cond ((null args) (negate x)) ((null (cdr args)) (binary-sub x (car args...
Patch from Martin Raspaud to make the Listener compile when fasl directory != source directory.
;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: CL-USER; Base: 10 -*- (in-package :cl-user) (defpackage "CLIM-LISTENER" (:use "CLIM" "CLIM-LISP") (:export #:run-listener #:dev-commands)) (in-package :clim-listener) (eval-when (:load-toplevel) ; (format t "~&~%!@#%^!@#!@ ... ~A~%~%" *load-truename*) (defpara...
;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: CL-USER; Base: 10 -*- (in-package :cl-user) (defpackage "CLIM-LISTENER" (:use "CLIM" "CLIM-LISP") (:export #:run-listener #:dev-commands)) (in-package :clim-listener) (eval-when (:load-toplevel) ; (format t "~&~%!@#%^!@#!@ ... ~A~%~%" *load-truename*) (defpara...
Refactor to avoid package undefined error.
(format t "loading xml-rpc...~%") #+allegro (progn (in-package :common-lisp-user) (defvar *xml-rpc-server-id*) (require :xml-rpc) (defun start-xml-rpc-server (port) (let ((start-args (list :port port))) (progn (setq *xml-rpc-server-id* (net.xml-rpc:make-xml-rpc-server :start start-ar...
(format t "loading xml-rpc...~%") #+allegro (require :xml-rpc) #+allegro (progn (in-package :common-lisp-user) (defvar *xml-rpc-server-id*) (defun start-xml-rpc-server (port) (let ((start-args (list :port port))) (progn (setq *xml-rpc-server-id* (net.xml-rpc:make-xml-rpc-server :start...
Add missing dependency on Trivial-features
(defsystem :swap-bytes :serial t :components ((:file "package") #+sbcl (:file "sbcl") (:file "portable")))
(defsystem :swap-bytes :depends-on (:trivial-features) :serial t :components ((:file "package") #+sbcl (:file "sbcl") (:file "portable")))
Make it depend on sicl-compiler-utilities.
(cl:in-package #:common-lisp-user) (asdf:defsystem :sicl-compiler-test-utilities :components ((:file "packages") (:file "test-utilities" :depends-on ("packages"))))
(cl:in-package #:common-lisp-user) (asdf:defsystem :sicl-compiler-test-utilities :depends-on (:sicl-compiler-utilities) :components ((:file "packages") (:file "test-utilities" :depends-on ("packages"))))
Make cffi-toolchain a runtime dependency, too.
;;;; -*- Mode: Lisp; -*- (defsystem "hello" :description "Example Bazel Hello World application" :class program-system :entry-point "hello:main" :depends-on (:alexandria) :components ((:file "hello"))) (defsystem "hello/chello" :description "Example Bazel Hello World application, using C" :class program...
;;;; -*- Mode: Lisp; -*- (defsystem "hello" :description "Example Bazel Hello World application" :class program-system :entry-point "hello:main" :depends-on (:alexandria) :components ((:file "hello"))) (defsystem "hello/chello" :description "Example Bazel Hello World application, using C" :class program...
Revert "[Bugfix] Symbols are too delicate to use at boundaries."
;;;; Readers for reading more easier formats. ;;; Nov. 25th 2012, chiku ;;; This is the last step. (in-package :chiku.genscreenrc) (defun |[-reader| (strm c) (declare (ignore c)) (destructuring-bind (key &rest cmdseq) (read-delimited-list #\] strm t) (list key (multiple-value-bind (result top) ...
;;;; Readers for reading more easier formats. ;;; Nov. 25th 2012, chiku ;;; This is the last step. (in-package :chiku.genscreenrc) (defun |[-reader| (strm c) (declare (ignore c)) (destructuring-bind (key &rest cmdseq) (read-delimited-list #\] strm t) (list key (multiple-value-bind (result top) ...
Simplify system definition by the use of option :SERIAL T.
(cl:in-package #:asdf-user) (defsystem :cleavir-reaching-definitions :depends-on (:cleavir-utilities) :components ((:file "packages") (:file "reaching-definitions" :depends-on ("packages"))))
(cl:in-package #:asdf-user) (defsystem :cleavir-reaching-definitions :depends-on (:cleavir-utilities) :serial t :components ((:file "packages") (:file "reaching-definitions")))
Join all functions into one
(defun make-cd (title artist rating ripped) (list :title title :artist artist :rating rating :ripped ripped)) (defvar *db* nil) (defun add-cd (cd) (push cd *db*)) (defun dump-db () (dolist (cd *db*) (format t "~{~a:~10t~a~%~}~%" cd))) (defun dump-db-short () (format t "~{~{~a:~10t~a~%~}~%~}" *db*)) (de...
(defun make-cd (title artist rating ripped) (list :title title :artist artist :rating rating :ripped ripped)) (defvar *db* nil) (defun add-cd (cd) (push cd *db*)) (defun dump-db () (dolist (cd *db*) (format t "~{~a:~10t~a~%~}~%" cd))) (defun dump-db-short () (format t "~{~{~a:~10t~a~%~}~%~}" *db*)) (de...
Use FiveAM's new random testing for the parse-float test
;;;; -*- lisp -*- (in-package :it.bese.arnesi) (def-suite :it.bese.arnesi.numbers :in :it.bese.arnesi) (in-suite :it.bese.arnesi.numbers) (test mulf (let ((a 0)) (is (= 0 (mulf a 10))) (is (= 0 a))) (let ((a 1)) (is (= 4 (mulf a 4))) (is (= 1 (mulf a (/ 4)))) (is (= 1 a)))) (test minf (l...
;;;; -*- lisp -*- (in-package :it.bese.arnesi) (def-suite :it.bese.arnesi.numbers :in :it.bese.arnesi) (in-suite :it.bese.arnesi.numbers) (test mulf (let ((a 0)) (is (= 0 (mulf a 10))) (is (= 0 a))) (let ((a 1)) (is (= 4 (mulf a 4))) (is (= 1 (mulf a (/ 4)))) (is (= 1 a)))) (test minf (l...
Define ASDF system in package ASDF-USER.
(cl:in-package #:common-lisp-user) (asdf:defsystem :sicl-compiler :depends-on (:cleavir-code-utilities :sicl-global-environment :sicl-reader-simple :sicl-generate-ast :sicl-type :cleavir-ast :cleavir-primop) :serial t :components ((:file "packages") (:file "co...
(cl:in-package #:asdf-user) (defsystem :sicl-compiler :depends-on (:cleavir-code-utilities :sicl-global-environment :sicl-reader-simple :sicl-generate-ast :sicl-type :cleavir-ast :cleavir-primop) :serial t :components ((:file "packages") (:file "compile-file")...
Fix silly loop boundary conditions
;; vector-operations.lisp ;; ;; Copyright (c) 2012 Matt Novenstern <fisxoj@gmail.com> ;; ;; This code is free software; you can redistribute it and/or ;; modify it under the terms of the version 3 of ;; the GNU Affero General Public License as published by ;; the Free Software Foundation. ;; ;; This code is distributed...
;; vector-operations.lisp ;; ;; Copyright (c) 2012 Matt Novenstern <fisxoj@gmail.com> ;; ;; This code is free software; you can redistribute it and/or ;; modify it under the terms of the version 3 of ;; the GNU Affero General Public License as published by ;; the Free Software Foundation. ;; ;; This code is distributed...
Fix license in the ASDF file
;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*- ;;;; Programmer: Kevin Rosenberg (in-package #:cl-user) (defpackage #:puri-system (:use #:cl #:asdf)) (in-package #:puri-system) (defsystem puri :name "cl-puri" :maintainer "Kevin M. Rosenberg <kmr@debian.org>" :licence "GNU Lesser General Public Lic...
;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*- ;;;; Programmer: Kevin Rosenberg (in-package #:cl-user) (defpackage #:puri-system (:use #:cl #:asdf)) (in-package #:puri-system) (defsystem puri :name "cl-puri" :maintainer "Kevin M. Rosenberg <kmr@debian.org>" :licence "Lisp Lesser GNU General Publi...
Use correct order of arguments.
(cl:in-package #:sicl-extrinsic-file-compiler) (defparameter *sicl* (make-instance 'sicl-target-sicl:sicl)) (defparameter *gnu-linux* (make-instance 'sicl-os-gnu-linux:gnu-linux)) (defparameter *x86-64* (make-instance 'sicl-x86-64:x86-64)) (defun ast-from-stream (stream environment) (cleavir-ast:make-progn-ast ...
(cl:in-package #:sicl-extrinsic-file-compiler) (defparameter *sicl* (make-instance 'sicl-target-sicl:sicl)) (defparameter *gnu-linux* (make-instance 'sicl-os-gnu-linux:gnu-linux)) (defparameter *x86-64* (make-instance 'sicl-x86-64:x86-64)) (defun ast-from-stream (stream environment) (cleavir-ast:make-progn-ast ...
Make CLOSE of DUAL-CHANNEL-FD-MIXIN a primary method
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- ;;; ;;; --- FD mixin definitions ;;; (in-package :iolib.streams) (defmethod shared-initialize :around ((stream dual-channel-fd-mixin) slot-names &key) (declare (ignore slot-names)) (call-next-method) (setf (isys:fd-nonblock-p (fd-of stream)) t)) ;;;; CLOSE (defme...
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- ;;; ;;; --- FD mixin definitions ;;; (in-package :iolib.streams) (defmethod shared-initialize :around ((stream dual-channel-fd-mixin) slot-names &key) (declare (ignore slot-names)) (call-next-method) (setf (isys:fd-nonblock-p (fd-of stream)) t)) ;;;; CLOSE (defme...
Support :centered, :undefined for :x and :y
(in-package #:sdl2) (defbitfield-from-cenum (sdl-window-flags sdl2-ffi:sdl-windowflags "SDL-WINDOW-") (:centered #x0)) (defun create-window (&key (title "SDL2 Window") (x windowpos-centered) (y windowpos-centered) ...
(in-package #:sdl2) (defbitfield-from-cenum (sdl-window-flags sdl2-ffi:sdl-windowflags "SDL-WINDOW-") (:centered #x0)) (defun windowpos-undefined (&optional (display 0)) (logior sdl2-ffi:+sdl-windowpos-undefined-mask+ display)) (defun windowpos-centered...
Update quicklisp dist version to 2018-12-10
(defvar *dist-url* "http://beta.quicklisp.org/dist/quicklisp/2018-07-11/distinfo.txt") (load "quicklisp.lisp") (quicklisp-quickstart:install :path "/opt/app-root/quicklisp/" :dist-url *dist-url*) ; Pre-load/compile useful content... (ql:quickload :hunchentoot) (ql:quickload :swank) (with-open-file (out "/opt/app-ro...
(defvar *dist-url* "http://beta.quicklisp.org/dist/quicklisp/2018-12-10/distinfo.txt") (load "quicklisp.lisp") (quicklisp-quickstart:install :path "/opt/app-root/quicklisp/" :dist-url *dist-url*) ; Pre-load/compile useful content... (ql:quickload :hunchentoot) (ql:quickload :swank) (with-open-file (out "/opt/app-ro...
Add copyright dates and license statement.
(cl:in-package #:sicl-clos) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; FUNCALLABLE-STANDARD-CLASS. (defclass funcallable-standard-class (regular-class) ())
;;;; Copyright (c) 2010 - 2015 ;;;; ;;;; Robert Strandh (robert.strandh@gmail.com) ;;;; ;;;; All rights reserved. ;;;; ;;;; Redistribution and use in source and binary forms, with or ;;;; without modification, are permitted provided that the following ;;;; conditions are met: ;;;; ;;;; 1. Redistributions of source ...
Insert trap instructions into the assembly trampolines.
;;;; Copyright (c) 2016 Henry Harrington <henry.harrington@gmail.com> ;;;; This code is licensed under the MIT license. (in-package :cold-generator.arm64) (defparameter *undefined-function-thunk* `((:comment todo)) "Code for the undefined function thunk.") (defparameter *closure-trampoline* `((:comment todo)) ...
;;;; Copyright (c) 2016 Henry Harrington <henry.harrington@gmail.com> ;;;; This code is licensed under the MIT license. (in-package :cold-generator.arm64) (defparameter *undefined-function-thunk* `((:comment todo) (mezzano.lap.arm64:hlt 123)) "Code for the undefined function thunk.") (defparameter *closure-t...
Make the compiler depend on the reader.
(cl:in-package #:common-lisp-user) (asdf:defsystem :sicl-compiler :depends-on (:sicl-code-utilities :sicl-compiler-utilities :sicl-compiler-basic-blocks :sicl-compiler-dominance :sicl-compiler-liveness :sicl-compiler-reaching-definitions :sicl-compiler-def-use-chains ...
(cl:in-package #:common-lisp-user) (asdf:defsystem :sicl-compiler :depends-on (:sicl-code-utilities :sicl-compiler-utilities :sicl-compiler-basic-blocks :sicl-compiler-dominance :sicl-compiler-liveness :sicl-compiler-reaching-definitions :sicl-compiler-def-use-chains ...
Define types at both compile and run time
;; Common Lisp bindings for GTK+ v2.0 ;; Copyright (C) 2001 Espen S. Johnsen <esj@stud.cs.uit.no> ;; ;; This library is free software; you can redistribute it and/or ;; modify it under the terms of the GNU Lesser General Public ;; License as published by the Free Software Foundation; either ;; version 2 of the License,...
;; Common Lisp bindings for GTK+ v2.0 ;; Copyright (C) 2001 Espen S. Johnsen <esj@stud.cs.uit.no> ;; ;; This library is free software; you can redistribute it and/or ;; modify it under the terms of the GNU Lesser General Public ;; License as published by the Free Software Foundation; either ;; version 2 of the License,...
Simplify and use recently introduced Cleavir PRIMOPs.
(cl:in-package #:sicl-cons) (declaim (inline consp car cdr rplaca rplacd)) ;;; It might seem backward to define CONSP in terms of TYPEP, but ;;; TYPEP with a quoted arguments is transformed by a compiler macro ;;; into (SICL-TYPE:TYPEQ OBJECT CONS), which is processed by the type ;;; inference mechanism. Should ther...
(cl:in-package #:sicl-cons) (defun car (list) (declare (type list list)) (if (consp list) (cleavir-primop:car list) nil)) (defun cdr (list) (declare (type list list)) (if (consp list) (cleavir-primop:cdr list) nil)) (defun rplaca (cons object) (declare (type cons cons)) (cleavir...
TEST ist a keyword argument.
;;;; TRE environment ;;;; Copyright (c) 2007-2008 Sven Klose <pixel@copei.de> (defun remove-if (fun x) (when x (if (funcall fun (car x)) (remove-if fun (cdr x)) (cons (car x) (remove-if fun (cdr x)))))) (defun remove-if-not (fun x) (remove-if (fn not (funcall fun _)) x)) (defun remov...
;;;; TRE environment ;;;; Copyright (c) 2007-2009 Sven Klose <pixel@copei.de> (defun remove-if (fun x) (when x (if (funcall fun (car x)) (remove-if fun (cdr x)) (cons (car x) (remove-if fun (cdr x)))))) (defun remove-if-not (fun x) (remove-if (fn not (funcall fun _)) x)) (defun remov...
Add a special branch for (= timeout 0) to ERLANGEN.ALGORITHMS:WITH-POLL-TIMEOUT, effectively causing a timeout of 0 to mean non-blocking.
;;;; Reusable algorithms. (defpackage erlangen.algorithms (:documentation "Reusable algorithms.") (:use :cl) (:export :with-poll-timeout)) (in-package :erlangen.algorithms) (defun poll-timeout% (predicate timeout poll-interval success-fn fail-fn) (loop for elapsed = 0 then (+ elapsed poll-interval) do ...
;;;; Reusable algorithms. (defpackage erlangen.algorithms (:documentation "Reusable algorithms.") (:use :cl) (:export :with-poll-timeout)) (in-package :erlangen.algorithms) (defun poll-timeout% (predicate timeout poll-interval success-fn fail-fn) (when (= timeout 0) (if (funcall predicate) (retur...
Make it possible to transmit values to CATCH.
(cl:in-package #:sicl-extrinsic-hir-compiler) (defclass dynamic-environment-entry () ()) (defclass variable-binding (dynamic-environment-entry) ((%symbol :initarg :symbol :reader symbol) (%value :initarg :value :reader value))) (defclass unwind-protect (dynamic-environment-entry) ((%thunk :initarg :thunk :rea...
(cl:in-package #:sicl-extrinsic-hir-compiler) (defclass dynamic-environment-entry () ()) (defclass variable-binding (dynamic-environment-entry) ((%symbol :initarg :symbol :reader symbol) (%value :initarg :value :reader value))) (defclass unwind-protect (dynamic-environment-entry) ((%thunk :initarg :thunk :rea...
Add method on ROTATE-RIGHT specialized to NODE.
(cl:in-package #:clump-binary-tree) (defgeneric rotate-left (tree)) (defgeneric rotate-right (tree)) (defmethod rotate-left (tree) (error 'invalid-binary-tree :tree tree)) ;;; Given a tree with the following shape: ;;; ;;; tree ;;; / \ ;;; / \ ;;; l r ;;; / \ ;;...
(cl:in-package #:clump-binary-tree) (defgeneric rotate-left (tree)) (defgeneric rotate-right (tree)) (defmethod rotate-left (tree) (error 'invalid-binary-tree :tree tree)) ;;; Given a tree with the following shape: ;;; ;;; tree ;;; / \ ;;; / \ ;;; l r ;;; / \ ;;; ...
Add :local-time to asd file
;;;; site-generator.asd (asdf:defsystem #:site-generator :serial t :description "Describe site-generator here" :author "Alex Charlton <alex.n.charlton@gmail.com>" :license "BSD-2" :depends-on (:let-plus :alexandria :iterate :hunchentoot :com.dvlsoft.clon :cl-ppcre :cl-fad :bordeaux-threads :osicat :cl-who) ...
;;;; site-generator.asd (asdf:defsystem #:site-generator :serial t :description "Describe site-generator here" :author "Alex Charlton <alex.n.charlton@gmail.com>" :license "BSD-2" :depends-on (:let-plus :alexandria :iterate :hunchentoot :com.dvlsoft.clon :cl-ppcre :cl-fad :bordeaux-threads :osicat :cl-who :l...
Add OpenCL framework on OSX.
#| This file is a part of cl-oclapi project. Copyright (c) 2015 gos-k (mag4.elan@gmail.com) |# (in-package :cl-user) (defpackage cl-oclapi (:use :cl :cffi :cl-reexport)) (in-package :cl-oclapi) (reexport-from :cl-oclapi.constants) (reexport-from :cl-oclapi.types) (reexport-from :cl-oclapi.functi...
#| This file is a part of cl-oclapi project. Copyright (c) 2015 gos-k (mag4.elan@gmail.com) |# (in-package :cl-user) (defpackage cl-oclapi (:use :cl :cffi :cl-reexport)) (in-package :cl-oclapi) (reexport-from :cl-oclapi.constants) (reexport-from :cl-oclapi.types) (reexport-from :cl-oclapi.functi...
Use new generic function in main function.
(cl:in-package #:cleavir-remove-useless-instructions) (defgeneric instruction-may-be-removed-p (instruction)) (defmethod instruction-may-be-removed-p (instruction) (and (= (length (cleavir-ir:successors instruction)) 1) (loop for output in (cleavir-ir:outputs instruction) always (null (cleavir-ir:using...
(cl:in-package #:cleavir-remove-useless-instructions) (defgeneric instruction-may-be-removed-p (instruction)) (defmethod instruction-may-be-removed-p (instruction) (and (= (length (cleavir-ir:successors instruction)) 1) (loop for output in (cleavir-ir:outputs instruction) always (null (cleavir-ir:using...
Remove duplicate export entry for FACULATIVE-PARAMETER.
(cl:in-package #:common-lisp-user) (defpackage #:cleavir-cst (:use #:common-lisp) (:export #:canonicalize-declaration-specifier #:cst-is-declaration-p #:cst-is-literal-string-p #:separate-ordinary-body #:separate-function-body #:facultative-parameter #:variables-cst #:init-form-cst #:sup...
(cl:in-package #:common-lisp-user) (defpackage #:cleavir-cst (:use #:common-lisp) (:export #:canonicalize-declaration-specifier #:cst-is-declaration-p #:cst-is-literal-string-p #:separate-ordinary-body #:separate-function-body #:variables-cst #:init-form-cst #:supplied-p-parameter-cst #:...
Load swank before running it
(defvar *dist-url* "http://beta.quicklisp.org/dist/quicklisp/2016-08-25/distinfo.txt") (load "quicklisp.lisp") (quicklisp-quickstart:install :path "/opt/app-root/quicklisp/" :dist-url *dist-url*) ; Pre-load/compile useful content... (ql:quickload :hunchentoot) (ql:quickload :swank) (with-open-file (out "/opt/app-ro...
(defvar *dist-url* "http://beta.quicklisp.org/dist/quicklisp/2016-08-25/distinfo.txt") (load "quicklisp.lisp") (quicklisp-quickstart:install :path "/opt/app-root/quicklisp/" :dist-url *dist-url*) ; Pre-load/compile useful content... (ql:quickload :hunchentoot) (ql:quickload :swank) (with-open-file (out "/opt/app-ro...
Use option :SERIAL T to simplify system.
(cl:in-package #:asdf-user) (defsystem :cleavir-basic-blocks :depends-on (:cleavir-utilities :cleavir-hir) :components ((:file "packages") (:file "basic-blocks" :depends-on ("packages"))))
(cl:in-package #:asdf-user) (defsystem :cleavir-basic-blocks :depends-on (:cleavir-utilities :cleavir-hir) :serial t :components ((:file "packages") (:file "basic-blocks")))
Use package ASDF-USER for system definition.
;;;; Copyright (c) 2014 ;;;; ;;;; Robert Strandh (robert.strandh@gmail.com) ;;;; ;;;; all rights reserved. ;;;; ;;;; Permission is hereby granted to use this software for any ;;;; purpose, including using, modifying, and redistributing it. ;;;; ;;;; The software is provided "as-is" with no warranty. The user of ...
;;;; Copyright (c) 2014 ;;;; ;;;; Robert Strandh (robert.strandh@gmail.com) ;;;; ;;;; all rights reserved. ;;;; ;;;; Permission is hereby granted to use this software for any ;;;; purpose, including using, modifying, and redistributing it. ;;;; ;;;; The software is provided "as-is" with no warranty. The user of ...
Use function GLOBAL-ENVIRONMENT rather than deprecated variable *GLOBAL-ENVIRONMENT*.
(cl:in-package #:sicl-clos) ;;; For the specification of this function, see ;;; http://metamodular.com/CLOS-MOP/ensure-generic-function.html ;;; ;;; This function is also specified in the CLHS. ;;; http://www.lispworks.com/documentation/HyperSpec/Body/f_ensure.htm#ensure-generic-function (defun ensure-generic-functio...
(cl:in-package #:sicl-clos) ;;; For the specification of this function, see ;;; http://metamodular.com/CLOS-MOP/ensure-generic-function.html ;;; ;;; This function is also specified in the CLHS. ;;; http://www.lispworks.com/documentation/HyperSpec/Body/f_ensure.htm#ensure-generic-function (defun ensure-generic-functio...
Remove test package and don't shadow LOOP.
;;; The symbols that are shadowed from the COMMON-LISP package ;;; are also symbols that we want to export. To avoid repeating ;;; that list of symbols, we use the reader macros #= and ##. ;;; It is interesting to note that we would normally write ;;; (:shadow <string1> <string2> ...), but in order to put a ;;; re...
;;;; Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 ;;;; ;;;; Robert Strandh (robert.strandh@gmail.com) ;;;; ;;;; Copyright (c) 2010, 2011 ;;;; ;;;; Matthieu Villeneuve (matthieu.villeneuve@gmail.com) ;;;; ;;;; all rights reserved. ;;;; ;;;; Permission is hereby granted to use this software for any ;;;; pu...
Load a file containing the definition of STANDARD-DIRECT-SLOT-DEFINITION.
(cl:in-package #:sicl-boot) (defun create-bridge-classes (boot) (let ((c (c1 boot)) (r (r2 boot))) (ld "../CLOS/t-defclass.lisp" c r) (ld "../CLOS/standard-object-defclass.lisp" c r) (ld "../CLOS/metaobject-defclass.lisp" c r) (ld "../CLOS/method-combination-defclass.lisp" c r) (ld "../CLOS/slot...
(cl:in-package #:sicl-boot) (defun create-bridge-classes (boot) (let ((c (c1 boot)) (r (r2 boot))) (ld "../CLOS/t-defclass.lisp" c r) (ld "../CLOS/standard-object-defclass.lisp" c r) (ld "../CLOS/metaobject-defclass.lisp" c r) (ld "../CLOS/method-combination-defclass.lisp" c r) (ld "../CLOS/slot...
Load a file containing the definition of the class REGULAR-CLASS.
(cl:in-package #:sicl-boot) (defun create-bridge-classes (boot) (let ((c (c1 boot)) (r (r2 boot))) (ld "../CLOS/t-defclass.lisp" c r) (ld "../CLOS/standard-object-defclass.lisp" c r) (ld "../CLOS/metaobject-defclass.lisp" c r) (ld "../CLOS/specializer-defclass.lisp" c r) (ld "../CLOS/class-defcl...
(cl:in-package #:sicl-boot) (defun create-bridge-classes (boot) (let ((c (c1 boot)) (r (r2 boot))) (ld "../CLOS/t-defclass.lisp" c r) (ld "../CLOS/standard-object-defclass.lisp" c r) (ld "../CLOS/metaobject-defclass.lisp" c r) (ld "../CLOS/specializer-defclass.lisp" c r) (ld "../CLOS/class-defcl...
Rename square-of-sums to square-of-sum to match the tests
(defpackage #:squares (:use #:cl) (:export #:sum-of-squares #:square-of-sums #:difference)) (in-package #:squares)
(defpackage #:squares (:use #:cl) (:export #:sum-of-squares #:square-of-sum #:difference)) (in-package #:squares)
Add comment explaining the need for primops and what their purpose is.
(cl:in-package #:asdf-user) (defsystem :cleavir-primop :components ((:file "packages")))
;;;; Primitive operations (or primops for short) are similar to Common ;;;; Lisp special operators in that the compiler handles them ;;;; specially. They are different from Common Lisp special operators ;;;; in that a primop does not necessarily have an evaluation rule ;;;; that is different from that of a function ca...
Make add-string work with complex-string types.
(in-package :de.anvi.croatoan) (defun add-string (window string &key attributes color-pair y x n) "Add the unrendered string to the window. If n is given, write at most n chars from the string. If n is -1, as many chars will be added that will fit on the line. If the coordinates y and x are given, move to the dest...
(in-package :de.anvi.croatoan) (defun add-string (window string &key attributes color-pair y x n) "Add the unrendered string to the window. If n is given, write at most n chars from the string. If n is -1, as many chars will be added that will fit on the line. If the coordinates y and x are given, move to the dest...
Define ASDF system in package ASDF-USER.
(asdf:defsystem :sicl :name "sicl" :components ((:file "packages") (:file "tags" :depends-on ("packages")) (:file "cons" :depends-on ("tags")) (:file "backends-cl" :depends-on ("packages" "tags"))))
(cl:in-package #:asdf-user) (defsystem :sicl :name "sicl" :components ((:file "packages") (:file "tags" :depends-on ("packages")) (:file "cons" :depends-on ("tags")) (:file "backends-cl" :depends-on ("packages" "tags"))))
Rename the system/package in the system definition.
(in-package :cl-user) (defpackage :js.system (:use :cl :asdf)) (in-package :js.system) (defsystem :js :name "js" :author "Manuel Odendahl <manuel@bl0rg.net>" :version "0" :maintainer "Manuel Odendahl <manuel@bl0rg.net>" :licence "BSD" :description "js - javascript compiler" :depends-on...
;;;; -*- lisp -*- (in-package :cl-user) (defpackage :parenscript.system (:use :cl :asdf)) (in-package :parenscript.system) (defsystem :parenscript :name "parenscript" :author "Manuel Odendahl <manuel@bl0rg.net>" :version "0" :maintainer "Manuel Odendahl <manuel@bl0rg.net>" :licence "BSD" :...
Fix names of individual parsers.
;;;; Copyright (c) 2014 ;;;; ;;;; Robert Strandh (robert.strandh@gmail.com) ;;;; ;;;; all rights reserved. ;;;; ;;;; Permission is hereby granted to use this software for any ;;;; purpose, including using, modifying, and redistributing it. ;;;; ;;;; The software is provided "as-is" with no warranty. The user of ...
;;;; Copyright (c) 2014 ;;;; ;;;; Robert Strandh (robert.strandh@gmail.com) ;;;; ;;;; all rights reserved. ;;;; ;;;; Permission is hereby granted to use this software for any ;;;; purpose, including using, modifying, and redistributing it. ;;;; ;;;; The software is provided "as-is" with no warranty. The user of ...
Add update and render timers.
(in-package #:turtle-geometry) (defun initialize () (initialize-shaders *shader-directory*)) (defun handle-input () (when (key-pressed-p :escape) (close-window))) (defun render ()) (defun update ()) (defun cleanup ()) (defun run () (err-run "turtle geometry" :init-code (initialize) :i...
(in-package #:turtle-geometry) (defun initialize () (initialize-shaders *shader-directory*)) (defun handle-input () (when (key-pressed-p :escape) (close-window))) (let ((render-timer (make-timer :end (/ 1.0 60.0)))) (defun render () (timer-update render-timer) (when (timer-ended-p render-timer) ...
Replace obsolete package prefix with correct one.
(cl:in-package #:clump-test) ;;; We know that the SPLAY operation preserves an in-order traversal ;;; of the tree. Therefore, we test the SPLAY operation by the ;;; following steps: ;;; ;;; 1. Generate a random tree ;;; 2. Make an in-order traversal of that tree, saving the result ;;; 3. Select a random node of th...
(cl:in-package #:clump-test) ;;; We know that the SPLAY operation preserves an in-order traversal ;;; of the tree. Therefore, we test the SPLAY operation by the ;;; following steps: ;;; ;;; 1. Generate a random tree ;;; 2. Make an in-order traversal of that tree, saving the result ;;; 3. Select a random node of th...
Remove useless dependency on ``bordeaux-threads''
#| This file is a part of cl-transmission project. Copyright (c) 2017 Thomas Schaper (Thomas@libremail.nl) |# #| Author: Thomas Schaper (Thomas@libremail.nl) |# (asdf:defsystem "cl-transmission" :version "0.1" :author "Thomas Schaper" :license "MIT" :depends-on ("rutils" "drakma" ...
#| This file is a part of cl-transmission project. Copyright (c) 2017 Thomas Schaper (Thomas@libremail.nl) |# #| Author: Thomas Schaper (Thomas@libremail.nl) |# (asdf:defsystem "cl-transmission" :version "0.1" :author "Thomas Schaper" :license "MIT" :depends-on ("rutils" "drakma" ...
Fix the type inference rule of COERCE.
;;;; © 2016-2019 Marco Heisig - license: GNU AGPLv3 -*- coding: utf-8 -*- (in-package #:petalisp.type-inference) (define-rule coerce (object result-type) (let ((object-ntype (wrapper-ntype object)) (result-ntype (wrapper-ntype result-type))) (with-constant-folding (coerce (object-ntype t) ...
;;;; © 2016-2019 Marco Heisig - license: GNU AGPLv3 -*- coding: utf-8 -*- (in-package #:petalisp.type-inference) (define-rule coerce (object result-type) (let ((object-ntype (wrapper-ntype object)) (result-ntype (wrapper-ntype result-type))) (with-constant-folding (coerce (object-ntype t) ...
Define method on DELETE-CHILD specialized to 3-NODE.
(cl:in-package #:clump-2-3-tree) (defgeneric delete (leaf)) (defgeneric delete-child (parent child)) (defgeneric replace-and-shrink (parent child)) (defmethod delete ((leaf leaf)) (delete-child (parent leaf) leaf)) (defmethod delete-child ((tree tree) child) (declare (ignore child)) (setf (contents tree) nil...
(cl:in-package #:clump-2-3-tree) (defgeneric delete (leaf)) (defgeneric delete-child (parent child)) (defgeneric replace-and-shrink (parent child)) (defmethod delete ((leaf leaf)) (delete-child (parent leaf) leaf)) (defmethod delete-child ((tree tree) child) (declare (ignore child)) (setf (contents tree) nil...
Put code in specific package.
(cl:in-package #:sicl-reader) (defun make-contents () (make-array 10 :fill-pointer 0 :element-type 'character :adjustable t)) (defclass source-tracking-stream (trivial-gray-streams:fundamental-character-input-stream) ((%original :initarg :original :reader original) (%contents :initform...
(cl:in-package #:sicl-source-tracking-reader) (defun make-contents () (make-array 10 :fill-pointer 0 :element-type 'character :adjustable t)) (defclass source-tracking-stream (trivial-gray-streams:fundamental-character-input-stream) ((%original :initarg :original :reader original) (%co...
Add myself as current maintainer
(defpackage :sdl2-image.asdf (:use #:cl #:asdf)) (in-package :sdl2-image.asdf) (defsystem :sdl2-image :description "Bindings for sdl2_image using autowrap" :author "Ryan Pavlik" :license "MIT" :version "1.0" :depends-on (:alexandria :defpackage-plus :cl-autowrap :sdl2 :trivial-garbage) :pathname "src" ...
(defpackage :sdl2-image.asdf (:use #:cl #:asdf)) (in-package :sdl2-image.asdf) (defsystem :sdl2-image :description "Bindings for sdl2_image using autowrap" :author "Ryan Pavlik" :maintainer ("Michael Fiano <mail@michaelfiano.com>") :license "MIT" :version "1.0" :depends-on (:alexandria :defpackage-plus...
Use keyword to specify cffi-grovel file class
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- (defsystem :static-vectors :description "Create vectors allocated in static memory." :author "Stelian Ionescu <sionescu@cddr.org>" :version "1.1" :licence "MIT" :defsystem-depends-on (#+(or allegro cmu ecl sbcl) :cffi-grovel) :depends-on (:alexandria :cffi) ...
;;;; -*- Mode: Lisp; indent-tabs-mode: nil -*- (defsystem :static-vectors :description "Create vectors allocated in static memory." :author "Stelian Ionescu <sionescu@cddr.org>" :version "1.1" :licence "MIT" :defsystem-depends-on (#+(or allegro cmu ecl sbcl) :cffi-grovel) :depends-on (:alexandria :cffi) ...
Add explicit dependency on CFFI to provide a call to CFFI-SYS:NATIVE-NAMESTRING in decorators.lisp for LispWorks.
;;;; restas.asd ;;;; ;;;; This file is part of the RESTAS library, released under Lisp-LGPL. ;;;; See file COPYING for details. ;;;; ;;;; Author: Moskvitin Andrey <archimag@gmail.com> (defsystem #:restas :depends-on (#:hunchentoot #:bordeaux-threads #:routes #:alexandria #:data-sift) :pathname "src" :compo...
;;;; restas.asd ;;;; ;;;; This file is part of the RESTAS library, released under Lisp-LGPL. ;;;; See file COPYING for details. ;;;; ;;;; Author: Moskvitin Andrey <archimag@gmail.com> (defsystem #:restas :depends-on (#:cffi #:hunchentoot #:bordeaux-threads #:routes #:alexandria #:data-sift) :p...
Define system in package ASDF-USER.
(cl:in-package #:common-lisp-user) (asdf:defsystem :cleavir-loops :depends-on (:cleavir-utilities) :components ((:file "packages") (:file "loops" :depends-on ("packages"))))
(cl:in-package #:asdf-user) (defsystem :cleavir-loops :depends-on (:cleavir-utilities) :components ((:file "packages") (:file "loops" :depends-on ("packages"))))
Update how characters are written to the end of the buffer.
(in-package :med) (defclass buffer-stream (sys.gray::fundamental-character-output-stream) ((buffer :initarg :buffer-name :reader buffer-stream-buffer-name))) (defmethod sys.gray::stream-line-column ((stream buffer-stream)) (col-index-of stream)) (defmethod sys.gray::stream-write-char ((stream buffer-stream) char...
(in-package :med) (defclass buffer-stream (sys.gray::fundamental-character-output-stream) ((buffer :initarg :buffer-name :reader buffer-stream-buffer-name))) (defmethod sys.gray::stream-line-column ((stream buffer-stream)) (col-index-of stream)) (defmethod sys.gray::stream-write-char ((stream buffer-stream) char...
Use a more generic feature flag
(require :asdf) (defparameter *vlime-home* (make-pathname :directory (pathname-directory *load-truename*))) (defun load-vlime () (asdf/find-system:initialize-source-registry `(:source-registry (:directory ,*vlime-home*) :inherit-configuration)) (asdf/operate:load-system :vlime-sbcl)) (load-vlim...
(require :asdf) (defparameter *vlime-home* (make-pathname :directory (pathname-directory *load-truename*))) (defun load-vlime () (asdf/find-system:initialize-source-registry `(:source-registry (:directory ,*vlime-home*) :inherit-configuration)) (asdf/operate:load-system :vlime-sbcl)) (load-vlim...
Fix system :uiop dependency of markdown-doscstrings
(asdf:defsystem markdown-docstrings :author "Gregory Tod <lisp@gtod.net>" :version "0.2.0" :license "MIT" :description "Horrible little docstrings to Markdown converter" :depends-on (#:alexandria #:uiop/filesystem #:cl-ppcre) :components ((:file "markdown-docstrings")))
(asdf:defsystem markdown-docstrings :author "Gregory Tod <lisp@gtod.net>" :version "0.2.0" :license "MIT" :description "Horrible little docstrings to Markdown converter" :depends-on (#:alexandria #:uiop #:cl-ppcre) :components ((:file "markdown-docstrings")))
Include recently added symbolic links as components.
(cl:in-package #:common-lisp-user) (asdf:defsystem :sicl-clos-phase3 :depends-on (:sicl-clos-phase1 :sicl-clos-phase2) ;; We use :SERIAL T so as to reduce the clutter with respect to the ;; dependencies, and to make the order completely predictable. :serial t :components ((:file "heap-instance") (:file ...
(cl:in-package #:common-lisp-user) (asdf:defsystem :sicl-clos-phase3 :depends-on (:sicl-clos-phase1 :sicl-clos-phase2) ;; We use :SERIAL T so as to reduce the clutter with respect to the ;; dependencies, and to make the order completely predictable. :serial t :components ((:file "heap-instance") (:file ...
Fix typo (copy-paste single quotes).
(describe simple-let (== (let ()) nil) (== (let () 42) 42)) (describe let-with-multiple-expr-body (== (let () 1 2) 2)) (describe let-bindings (== (let* ((x 1) (y 2)) ...
(describe simple-let (== (let ()) nil) (== (let () 42) 42)) (describe let-with-multiple-expr-body (== (let () 1 2) 2)) (describe let-bindings (== (let* ((x 1) (y 2)) ...
Fix package wrt newer fare-utils.
#+xcvb (module ()) (in-package :cl) (defpackage :inferior-shell (:use :cl :fare-utils :fare-matcher :xcvb-driver :named-readtables :fare-mop) (:export #:run #:run/s #:run/ss #:run/lines #:simple-command-line-token #:token-string #:process-spec #:command-spec #:pipe-spec #:or-spec #:and-spec #:progn-sp...
#+xcvb (module ()) (in-package :cl) (defpackage :inferior-shell (:use :cl :fare-utils :fare-matcher :xcvb-driver :named-readtables :fare-mop :alexandria) (:shadowing-import-from :xcvb-driver #:emptyp) ;; also in alexandria (:shadowing-import-from :fare-matcher #:of-type) ;; also in alexandria (:export #:ru...
Make :Lisp function more readable
(in-package :cl-user) (ql:quickload :arrow-macros) (defpackage #:lisp-interface (:use #:cl #:cl-neovim #:arrow-macros) (:shadowing-import-from #:cl #:defun #:eval)) (in-package :lisp-interface) (nvim:defcommand/s lisp (&rest form) (declare (opts nargs)) (let ((output (with-output-to-string (*standard-output*)...
(in-package :cl-user) (defpackage #:lisp-interface (:use #:cl #:cl-neovim) (:shadowing-import-from #:cl #:defun #:eval)) (in-package :lisp-interface) (defmacro echo-output (&body forms) (let ((output (gensym))) `(let ((,output (with-output-to-string (*standard-output*) ,@forms))) ...
Fix library name on unix (needs .so extension).
(defpackage #:sodium (:use :cl :cffi) (:nicknames :cr)) (defpackage #:sodium.accessors (:use :cl :cffi :sodium) (:nicknames :cr-a)) (in-package :sodium) (eval-when (:load-toplevel) (unless (cffi:foreign-symbol-pointer "sodium_init") (define-foreign-library libsodium (:darwin (:or "libsodium.dylib...
(defpackage #:sodium (:use :cl :cffi) (:nicknames :cr)) (defpackage #:sodium.accessors (:use :cl :cffi :sodium) (:nicknames :cr-a)) (in-package :sodium) (eval-when (:load-toplevel) (unless (cffi:foreign-symbol-pointer "sodium_init") (define-foreign-library libsodium (:darwin (:or "libsodium.dylib...
Use new function for satiating a generic function.
(cl:in-package #:sicl-clos) (loop for entry in *bridge-generic-functions* do (load-call-history (cdr entry)))
(cl:in-package #:sicl-clos) (loop for entry in *bridge-generic-functions* do (satiate-generic-function (cdr entry)))
Add new component to system definition.
(cl:in-package #:asdf-user) (defsystem sicl-source-tracking-reader :depends-on (:sicl-reader-simple :cleavir-cst) :serial t :components ())
(cl:in-package #:asdf-user) (defsystem sicl-source-tracking-reader :depends-on (:sicl-reader-simple :cleavir-cst) :serial t :components ((:file "read")))
Use slot writer rather than REINITIALIZE-INSTANCE.
(cl:in-package #:clump-test) (defclass size-mixin () ((%size :initarg :size :reader size))) (defclass leaf-size (size-mixin clump-2-3-tree:leaf) () (:default-initargs :size 1)) (defclass 2-node-size (size-mixin clump-2-3-tree:2-node) ()) (defgeneric recompute-size (node)) (defmethod recompute-size ((node 2...
(cl:in-package #:clump-test) (defclass size-mixin () ((%size :initarg :size :accessor size))) (defclass leaf-size (size-mixin clump-2-3-tree:leaf) () (:default-initargs :size 1)) (defclass 2-node-size (size-mixin clump-2-3-tree:2-node) ()) (defgeneric recompute-size (node)) (defmethod recompute-size ((node...