https://github.com/aartaka/trivial-inspect Skip to content Navigation Menu Toggle navigation Sign in * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Resources + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} aartaka / trivial-inspect Public * Notifications * Fork 0 * Star 20 * A portable Common Lisp toolkit for building inspectors License BSD-2-Clause license 20 stars 0 forks Branches Tags Activity Star Notifications * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Security * Insights Additional navigation options * Code * Issues * Pull requests * Actions * Projects * Security * Insights aartaka/trivial-inspect This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. master BranchesTags Go to file Code Folders and files Name Name Last commit Last commit message date Latest commit History 2 Commits .github .github source source .gitignore .gitignore LICENSE LICENSE README.org README.org guix.scm guix.scm trivial-inspect.asd trivial-inspect.asd View all files Repository files navigation * README * BSD-2-Clause license trivial-inspect A portable toolkit for building inspectors trivial-inspect exposes a set of utils useful in building inspectors akin to standard inspect and describe. The goal is to provide as much information as possible. Including the implementation-specific info. Getting Started Clone the Git repository: git clone --recursive https://github.com/aartaka/trivial-inspect ~/common-lisp/ And then load :trivial-inspect in the REPL: (asdf:load-system :trivial-inspect) ;; or, if you use Quicklisp (ql:quickload :trivial-inspect) You can also use the bundled guix.scm to install it on Guix. APIs Two main entry points of this library are fields: (trivial-inspect:fields #'identity) ;; ((0 :self #) (1 :id 1407351035) ;; (2 class-of # #) ;; (3 type-of compiled-function) (4 :name identity) (5 :arguments (sb-impl::thing)) ;; (6 compiled-function-p t) (7 :ftype (function # #)) ;; (8 :expression nil) ;; (9 lambda-list-keywords (&allow-other-keys &aux &body &environment &key sb-int:&more &optional &rest &whole)) ;; (10 call-arguments-limit 1073741824) (11 lambda-parameters-limit 1073741824)) (trivial-inspect:fields nil) ;; ((0 :self nil) (1 :id 1342177559) ;; (2 class-of # nil) ;; (3 type-of null) (4 length 0) ;; (5 symbol-name "NIL") (6 symbol-package #) ;; (7 :visibility :external #) ;; (8 symbol-value nil #) (9 symbol-plist nil)) (trivial-inspect:fields (find-class 'standard-object)) ;; ((0 :self #) (1 :id 68721940739) ;; (2 class-of # ;; #) ;; (3 :slot-definitions ;; (# # ..))) and description: (trivial-inspect:description #'+ t) ;; Compiled-function + (&REST NUMBERS) ;; : (&REST NUMBER) -> (VALUES NUMBER &OPTIONAL) ;; Return the sum of its arguments. With no args, returns 0. (trivial-inspect:description 'standard-class t) ;; Symbol STANDARD-CLASS (EXTERNAL to COMMON-LISP) [class] (trivial-inspect:description (find-class 'standard-class) t) ;; Standard-class # About A portable Common Lisp toolkit for building inspectors Resources Readme License BSD-2-Clause license Activity Stars 20 stars Watchers 2 watching Forks 0 forks Report repository Releases No releases published Packages 0 No packages published Languages * Common Lisp 93.5% * Scheme 6.5% Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.