This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (definterface ITotalOrdered | |
| (getReadPoint []) | |
| (getCommitPoint []) | |
| (stop [^int status])) | |
| (definterface ILockingTransaction | |
| (tryWriteLock [ref]) | |
| (lock [ref]) | |
| (blockAndBail [info]) | |
| (releaseIfEnsured [ref]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (let [f (ref (fn [] | |
| (println "hello there")))] | |
| (f)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defconstant +element-bit-width+ 4) | |
| (defmacro def-vec (name lambda-list) | |
| (let* ((n (length lambda-list)) | |
| (vec (gensym "vec"))) | |
| `(progn | |
| (declaim (inline ,name)) | |
| (defun ,name ,lambda-list | |
| (declare (optimize (speed 3) (safety 0) (float 0)) | |
| (single-float ,@lambda-list)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (in-package :cl-user) | |
| (enable-ios-syntax) | |
| (objc:define-objc-class view-controller () | |
| () | |
| (:objc-class-name "ViewController") | |
| (:objc-superclass-name "UIViewController")) | |
| (objc:define-objc-method ("viewDidLoad" :void) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;;---------------------------------------------------------------------------- | |
| ;; | |
| ;; ios-swank-loader.lisp | |
| ;; | |
| ;;---------------------------------------------------------------------------- | |
| ;; Copyright (c) 2015 Adrian Medina. All rights reserved. | |
| ;;---------------------------------------------------------------------------- | |
| (in-package :cl-user) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;;---------------------------------------------------------------------------- | |
| ;; | |
| ;; deliver.lisp | |
| ;; | |
| ;;---------------------------------------------------------------------------- | |
| ;; Copyright (c) 2015 Adrian Medina. All rights reserved. | |
| ;;---------------------------------------------------------------------------- | |
| (in-package :cl-user) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; ------------------------------------------ | |
| ;; Foreign Types | |
| ;; ------------------------------------------ | |
| (fli:define-foreign-type id () | |
| 'objc:objc-object-pointer) | |
| ;; ------------------------------------------ | |
| ;; Objective-C Foreign Function Interface | |
| ;; ------------------------------------------ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (in-package :cl-user) | |
| (load-all-patches) | |
| (save-image "/usr/local/bin/lispworks" | |
| :console t | |
| :multiprocessing t | |
| :environment nil) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (require 'cl) | |
| (setq custom-file (expand-file-name "~/.emacs.d/custom.el") | |
| ns-use-srgb-colorspace t | |
| ring-bell-function 'ignore | |
| inhibit-startup-message t | |
| initial-scratch-message nil | |
| initial-buffer-choice #'eshell | |
| indent-tabs-mode nil | |
| make-backup-files nil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defprotocol class | |
| (class-name [this]) | |
| (class-slots [this]) | |
| (class-direct-superclasses [this]) | |
| (class-direct-slots [this]) | |
| (class-direct-subclasses [this]) | |
| (class-precedence-list [this]) | |
| (class-direct-methods [this])) | |
| (defprotocol slot-definition |