Skip to content

Instantly share code, notes, and snippets.

View yitzchak's full-sized avatar

Tarn W. Burton yitzchak

  • Georgia, United States
  • 15:15 (UTC -04:00)
View GitHub Profile
@yitzchak
yitzchak / Dockerfile
Created July 21, 2019 17:16
Dockerfile for Maxima-Jupyter and common-lisp-jupyter testing
FROM archlinux/base:latest
ARG D_USER=app
ARG D_PASSWD=
ARG D_UID=1000
ENV USER ${D_USER}
ENV HOME /home/${D_USER}
ENV PATH "${HOME}/.roswell/bin:${PATH}"
@yitzchak
yitzchak / scatter.lisp
Created April 30, 2021 17:16
Scatter Plot for VegaLite in common-lisp-jupyter
(defun scatter-plot (x y &key title id update x-title y-title regression)
(jupyter:vega-lite `(:object-plist "$schema" "https://vega.github.io/schema/vega-lite/v5.json"
,@(when title
(list "title" title))
"data" (:object-plist "values" ,(map 'vector
(lambda (x y)
(list :object-plist
"x" x
"y" y))
x y))
@yitzchak
yitzchak / plot-2d.lisp
Created April 30, 2021 20:15
Plot 2d for VegaLite and common-lisp-jupyter
(defun plot-2d (fn &key title id update x-title y-title x-min x-max (grid 50))
(let* ((x (loop with x-range = (- x-max x-min)
with width = (/ (1- grid))
for i below grid
collect (+ x-min (* x-range i width))))
(y (mapcar fn x)))
(jupyter:vega-lite `(:object-plist "$schema" "https://vega.github.io/schema/vega-lite/v5.json"
,@(when title
(list "title" title))
"data" (:object-plist "values" ,(map 'vector
In file included from ../../include/clasp/clbind/details.h:30:
../../include/clasp/clbind/policies.h:159:48: error: no member named 'm_docstring' in 'clbind::policies<>'
std::string docstring() const { return this->m_docstring; };
~~~~ ^
../../include/clasp/clbind/class.h:392:34: note: in instantiation of member function 'clbind::policies<>::docstring' requested here
this->m_docstring = policies.docstring();
^
../../include/clasp/clbind/class.h:994:26: note: in instantiation of member function 'clbind::detail::memfun_registration<clang::Decl, unsigned int (clang::Decl::*)() const, clbind::policies<>>::memfun_registration' requested here
this->add_member(new detail::memfun_registration<T, F, Policies>(name, fn, policies));
^
../../src/core/lisp.cc:442 There are DEBUG_xxxx flags on - check the top of foundation.h !!!!
Starting cclasp-boehmprecise-0.4.2-4267-g8c38d0fa1-cst ... loading image...
Top level in: #<PROCESS TOP-LEVEL @0x7f0293366f09 (Running)>.
COMMON-LISP-USER> (f)
; caught STYLE-WARNING:
; Undefined function F
; at unknown location
;
;
; compilation unit finished
[186/385] Compiling src/gctools/source_info.cc
[187/385] Compiling extensions/cando/src/chem/topology.cc
../../src/llvmo/llvmoExpose.cc:4497:24: error: incompatible pointer to integer conversion assigning to 'unw_word_t' (aka 'unsigned long') from 'char *'
info.u.pi.name_ptr = saved_name;
^~~~~~~~~~
../../src/llvmo/llvmoExpose.cc:4498:13: error: no member named 'segbase' in 'unw_dyn_proc_info'
info.u.pi.segbase = 0;
~~~~~~~~~ ^
../../src/llvmo/llvmoExpose.cc:4499:13: error: no member named 'table_len' in 'unw_dyn_proc_info'
info.u.pi.table_len = 0;
@yitzchak
yitzchak / clasp-cl.rb
Last active May 10, 2022 20:27
Clasp Formula
class ClaspCl < Formula
desc "Common Lisp implementation that brings Common Lisp and C++ together"
homepage "https://github.com/clasp-developers/clasp"
url "https://github.com/clasp-developers/clasp/archive/refs/heads/main.tar.gz"
version "1.0.0"
sha256 "2da3a418bce90fecaca0c510f8d0fb804c661d1676e963ca11ada2c1eeea7327"
license "GPL-2.0-or-later"
head "https://github.com/clasp-developers/clasp.git"
depends_on "boost" => :build
@yitzchak
yitzchak / cando.rb
Last active May 10, 2022 20:27
Cando Formula
class Cando < Formula
desc "Cando chemisty and Common Lisp implementation that brings Common Lisp and C++ together"
homepage "https://github.com/clasp-developers/clasp"
url "https://github.com/clasp-developers/clasp/archive/refs/heads/main.tar.gz"
version "1.0.0"
sha256 "d0bbebb1f885ad353e69d77f3d8297869d598e2619acebed9daf61c47385e150"
license "GPL-2.0-or-later"
depends_on "boost" => :build
depends_on "libunwind-headers" => :build
@yitzchak
yitzchak / cando-git.rb
Last active May 10, 2022 20:26
Cando Formula (git)
class CandoGit < Formula
desc "Cando chemisty and Common Lisp implementation that brings Common Lisp and C++ together"
homepage "https://github.com/clasp-developers/clasp"
url "https://github.com/clasp-developers/clasp.git",
using: :git,
branch: "main"
version "1.0.0"
sha256 ""
license "GPL-2.0-or-later"
@yitzchak
yitzchak / clasp-cl-git.rb
Last active May 10, 2022 20:27
Clasp Formula (git)
class ClaspCl < Formula
desc "Common Lisp implementation that brings Common Lisp and C++ together"
homepage "https://github.com/clasp-developers/clasp"
url "https://github.com/clasp-developers/clasp.git",
using: :git,
branch: "main"
version "1.0.0"
sha256 ""
license "GPL-2.0-or-later"
head "https://github.com/clasp-developers/clasp.git"