tpapp / cl-random Goto Github PK
View Code? Open in Web Editor NEWRandom variates for Common Lisp
Random variates for Common Lisp
No good deed goes unpunished...
It looks like your recent clnu updates have busted cl-random, I get "no symbol named "DISPLACE-ARRAY" in "CL-NUM-UTILS"" today.
Why is there a dependency on cl-rmath?
trying to (ql:quickload :cl-random) throws following error:
The value LLA::+INTEGER+, derived from the initarg :TYPE, can not be used to set the value of the slot TYPE in #<LLA::FORTRAN-ATOM #x302001DC174D>, because it is not of type (MOD
5).
[Condition of type CCL::BAD-SLOT-TYPE-FROM-INITARG]
OS: OS X Mavericks
Implementation: CCL 1.9
I can load libRmath directly with cffi:load-foreign-library
(cffi:load-foreign-library "libRmath.dylib")
but when I try (ql:quickload :cl-random) it fails.
Error opening shared library libRmath.so : dlopen(libRmath.so, 10): image not found.
[Condition of type CFFI:LOAD-FOREIGN-LIBRARY-ERROR]
Maybe it should be looking for the .dylib instead of .so when on Darwin?
Symbol conflicts with alexandria:median prevent cl-random from building.
I tried to load cl-random but I got stuck when libRmath.dll couldn't be found, see here
..................................................
[package cffi-features]...........................
[package cl-rmath]................................
[package cl-rmath].......
Error: Unable to load foreign library (librmath).
Loading libRmath.dll failed.
[condition type: load-foreign-library-error]
Restart actions (select using :continue):
0: Try loading the foreign library again.
1: Use another library instead.
2: retry the load of C:\Users\jans\AppData\Local\common-lisp\cache\acl-8.2m-win-x64\C\Users\jans\quicklisp\dists\quicklisp\software\cl-rmath-20140211-git\cl-rmath.fasl
3: skip loading C:\Users\jans\AppData\Local\common-lisp\cache\acl-8.2m-win-x64\C\Users\jans\quicklisp\dists\quicklisp\software\cl-rmath-20140211-git\cl-rmath.fasl
4: Recompile cl-rmath and try loading it again
5: Retry loading FASL for #<cl-source-file "cl-rmath" "cl-rmath">.
6: Continue, treating
loading FASL for #<cl-source-file "cl-rmath" "cl-rmath"> as having
been successful.
7: Give up on "cl-random"
8: Return to Top Level (an "abort" restart).
9: Abort entirely from this (lisp) process.
[changing package from "common-lisp-user" to "cl-rmath"]
[1] rmath(16):
I'm seeing the following error when compiling cl-random. I'm using the git repos, which is up to date. Debian squeeze, SBCL 1.1.2, slime 1:20120525-2
Error while invoking
(:FORCE-NOT
("quicklisp" "sb-grovel" "sb-posix" "sb-bsd-sockets"
"sb-introspect" "sb-cltl2" "cl-rmath" "cffi" "babel"
"alexandria" "trivial-features" "cl-num-utils" "let-plus"
"anaphora" "iterate" "extended-reals" "ffa" "metabang-bind"
"cl-utilities" "sb-rotate-byte")
:VERBOSE NIL)
{10297A11}>
on #<CL-SOURCE-FILE "cl-random" "basics" "special-functions">
[Condition of type ASDF:COMPILE-ERROR]
Restarts:
0: [RETRY] Retry compiling #<CL-SOURCE-FILE "cl-random" "basics" "special-functions">.
1: [ACCEPT] Continue, treating compiling #<CL-SOURCE-FILE "cl-random" "basics" "special-functions"> as having been successful.
2: [RETRY] Retry SLIME REPL evaluation request.
3: [ABORT] Return to sldb level 1.
4: [*ABORT] Return to SLIME's top level.
5: [ABORT] Abort thread (#<THREAD "repl-thread" RUNNING {C895201}>)
Backtrace:
0: ((SB-PCL::FAST-METHOD ASDF:PERFORM (ASDF:COMPILE-OP ASDF:CL-SOURCE-FILE)) ..)
1: ((SB-PCL::EMF ASDF:PERFORM) ..)
2: ((SB-PCL::FAST-METHOD ASDF::PERFORM-WITH-RESTARTS :AROUND (T T)) ..)
3: ((LAMBDA () :IN ASDF::PERFORM-PLAN))
4: ((FLET SB-C::WITH-IT :IN SB-C::%WITH-COMPILATION-UNIT))
5: ((SB-PCL::FAST-METHOD ASDF::PERFORM-PLAN (LIST)) ..)
6: ((LAMBDA () :IN ASDF:OPERATE))
7: (ASDF::CALL-WITH-SYSTEM-DEFINITIONS #<CLOSURE (LAMBDA # :IN ASDF:OPERATE) {F0386AD}>)
8: ((SB-PCL::FAST-METHOD ASDF:OPERATE (T T)) ..)
9: ((SB-PCL::EMF ASDF:OPERATE) ..)
10: (ASDF:LOAD-SYSTEM #<ASDF:SYSTEM "cl-random"> :FORCE-NOT ("quicklisp" "sb-grovel" "sb-posix" "sb-bsd-sockets" "sb-introspect" "sb-cltl2" ...) :VERBOSE NIL)
11: (ASDF::MODULE-PROVIDE-ASDF CL-RANDOM)
12: ((LAMBDA (#:G32) :IN REQUIRE) ASDF::MODULE-PROVIDE-ASDF)
13: (SB-IMPL::%MAP-FOR-EFFECT-ARITY-1 #<CLOSURE (LAMBDA # :IN REQUIRE) {EEE382D}> (ASDF::MODULE-PROVIDE-ASDF SB-IMPL::MODULE-PROVIDE-CONTRIB))
14: (REQUIRE CL-RANDOM NIL)
15: (SB-INT:SIMPLE-EVAL-IN-LEXENV (REQUIRE 'CL-RANDOM) #)
16: (EVAL (REQUIRE 'CL-RANDOM))
17: (SWANK::EVAL-REGION "(require 'cl-random)\n")
18: ((LAMBDA () :IN SWANK::REPL-EVAL))
19: (SWANK::TRACK-PACKAGE #<CLOSURE (LAMBDA # :IN SWANK::REPL-EVAL) {EEE3435}>)
20: (SWANK::CALL-WITH-RETRY-RESTART "Retry SLIME REPL evaluation request." #<CLOSURE (LAMBDA # :IN SWANK::REPL-EVAL) {EEE33C5}>)
21: (SWANK::CALL-WITH-BUFFER-SYNTAX NIL #<CLOSURE (LAMBDA # :IN SWANK::REPL-EVAL) {EEE33AD}>)
22: (SWANK::REPL-EVAL "(require 'cl-random)\n")
23: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK:LISTENER-EVAL "(require 'cl-random)\n") #)
24: (EVAL (SWANK:LISTENER-EVAL "(require 'cl-random)\n"))
25: (SWANK:EVAL-FOR-EMACS (SWANK:LISTENER-EVAL "(require 'cl-random)\n") "COMMON-LISP-USER" 2243)
26: (SWANK::SLDB-LOOP 1)
27: ((FLET SWANK-BACKEND:CALL-WITH-DEBUGGING-ENVIRONMENT :IN "/usr/share/common-lisp/source/slime/swank-sbcl.lisp") #<FUNCTION (LAMBDA # :IN SWANK::DEBUG-IN-EMACS) {C4A9025}>)
28: (SWANK::DEBUG-IN-EMACS #)
29: (SWANK:INVOKE-SLIME-DEBUGGER #)
30: (SWANK-BACKEND::CALL-WITH-BREAK-HOOK # #<CLOSURE (LAMBDA # :IN SWANK:SWANK-DEBUGGER-HOOK) {EE7DCCD}>)
31: ((FLET SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK :IN "/usr/share/common-lisp/source/slime/swank-sbcl.lisp") ..)
32: (SWANK:SWANK-DEBUGGER-HOOK # #)
33: (SB-DEBUG::RUN-HOOK DEBUGGER-HOOK #)
34: (INVOKE-DEBUGGER #)
35: (ERROR TYPE-ERROR :DATUM NIL :EXPECTED-TYPE STRING)
36: (SB-KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER ..)
37: (SB-KERNEL:INTERNAL-ERROR #.(SB-SYS:INT-SAP #XB54C568C) #)
38: ("foreign function: call_into_lisp")
39: ("foreign function: funcall2")
40: ("foreign function: interrupt_internal_error")
41: ("foreign function: #x80583EC")
42: (SB-IMPL::%READ-FROM-STRING NIL T NIL 0 NIL NIL)[:EXTERNAL]
43: ((LAMBDA () :IN SWANK::FROM-STRING))
44: (SWANK::CALL-WITH-BUFFER-SYNTAX NIL #<CLOSURE (LAMBDA # :IN SWANK::FROM-STRING) {EE7757D}>)
45: ((LAMBDA () :IN SWANK::APPLY-MACRO-EXPANDER))
46: (SWANK::CALL-WITH-BINDINGS ..)
47: (SWANK::CALL-WITH-BUFFER-SYNTAX NIL #<CLOSURE (LAMBDA # :IN SWANK::APPLY-MACRO-EXPANDER) {EE774B5}>)
48: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK:SWANK-EXPAND-1 NIL) #)
49: (EVAL (SWANK:SWANK-EXPAND-1 NIL))
50: (SWANK:EVAL-FOR-EMACS (SWANK:SWANK-EXPAND-1 NIL) "COMMON-LISP-USER" 2173)
51: (SWANK::PROCESS-REQUESTS NIL)
52: ((LAMBDA () :IN SWANK::HANDLE-REQUESTS))
53: ((LAMBDA () :IN SWANK::HANDLE-REQUESTS))
54: (SWANK-BACKEND::CALL-WITH-BREAK-HOOK # #<CLOSURE (LAMBDA # :IN SWANK::HANDLE-REQUESTS) {C8970C5}>)
55: ((FLET SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK :IN "/usr/share/common-lisp/source/slime/swank-sbcl.lisp") ..)
56: (SWANK::CALL-WITH-BINDINGS ..)
--more--
They're all of the form
; file: /home/quicklisp/quicklisp-controller/dist/build-cache/cl-random/c178f034f54d6a1a35fcb23d19d4403e66027bf5/cl-random-20141229-git/src/univariate.lisp
; in: DEFINE-RV R-NORMAL
; (CL-RANDOM:DRAW-STANDARD-NORMAL :RNG CL-RANDOM::RNG)
;
; caught WARNING:
; The function was called with two arguments, but wants exactly zero.
http://report.quicklisp.org/2014-12-29/failure-report/cl-random.html has the build log.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.