tynet-lichat/shirakumo - IRC Chatlog
Search
11:10:06
shinmera
And currently cl-mixed crashes with: 1) a segfault on the vm and 2) an overcommit error on my macbook
12:54:33
shinmera
I have no idea how but the tester shows no issues whatsoever when running the async buffer read/write, even for many, many iterations
16:38:23
shinmera
I'm also getting a weird thing where the semaphore appears to be incremented even without me seeing any print message associated with it being incremented.
16:44:41
shinmera
weird thing where the mac callback has a "queue" pointer as an arg, but that's apparently /not/ the queue we should be using.
16:48:12
shinmera
Also some changes recently have started windows to fuck up with null-refs somewhere in the UI render code
17:08:18
shinmera
Got things to a point where it pretends its playing stuff back but I can't actually hear anything.
17:13:37
shinmera
ok, if I don't do internal resampling I can get it to play, but it's still crusty as fuck.
17:34:04
tomelam@gmail.com
I couldn't get the example module's CSS file to match the path specified in the HTML.
17:34:24
tomelam@gmail.com
thomaselam@Thomass-MBP example % tree
.
├── example.asd
├── example.lisp
├── static
│ └── example.css
└── template
2 directories, 4 files
17:34:59
tomelam@gmail.com
For the tutorial, I tried this on a MacBook Pro (M1 chip) running Big Sur:
(ql:register-local-projects)
(ql:quickload :radiance)
(ql:quickload :plaster)
(radiance:startup)
(ql:quickload :lass)
(lass:generate (asdf:system-relative-pathname :plaster "static/plaster.lass"))
(in-package #:plaster)
(define-page edit "plaster/edit" (:clip "edit.ctml")
(r-clip:process T))
(define-page view "plaster/view/(.*)" (:uri-groups (id) :clip "view.ctml")
(r-clip:process T))
I didn't see any errors in the REPL, but when I visited localhost:8080/plaster/edit I got the Radiance welcome page.
17:35:44
tomelam@gmail.com
Here's what happens on an iMac running macOS Catalina:
; All Lisp interaction in SBCL 2.1.5. (Also re-tried in SBCL 2.1.6.)
; Preliminaries:
(ql:update-dist "quicklisp")
[lots of messages]
(ql:update-client)
[a few messages]
(ql:add-to-init-file)
; I quit SBCL and restarted it, then:
(ql:quickload :radiance)
...
(radiance:startup)
...
[package ironclad-vm];
; caught ERROR:
; READ error during COMPILE-FILE:
;
; Lock on package SB-VM violated when interning MAKE-EA while in package
; IRONCLAD-VM.
; See also:
; The SBCL Manual, Node "Package Locks"
;
; (in form starting at line: 34, column: 0, position: 1344)
debugger invoked on a UIOP/LISP-BUILD:COMPILE-FILE-ERROR in thread
#<THREAD "main thread" RUNNING {10015382C3}>:
COMPILE-FILE-ERROR while
compiling #<IRONCLAD-SOURCE-FILE "ironclad" "src" "opt" "sbcl" "x86oid-vm">
17:38:26
shinmera
for the second problem, there's no route to plaster on that url. Try localhost:8080/!/plaster/edit instead to virtualise the domain.
17:40:28
tomelam@gmail.com
Did you say (ql:update-dist "quicklisp") will update my packages? I did that.
17:41:22
tomelam@gmail.com
Hmm. I will try tearing down my Lisp setup on that system and redoing it.
17:42:01
tomelam@gmail.com
Anyhow, you've given me some confidence that, more or less, I'm on the right track.
17:45:27
tomelam@gmail.com
thomaselam@Thomass-MBP example % cat example.lisp
(in-package #:rad-user)
(define-module #:example
(:use #:cl #:radiance))
(in-package #:example)
(define-page example "/example" ()
(cl-who:with-html-output-to-string (o)
(cl-who:htm
(:html
(:head (:title "Example Page")
(:link :rel "stylesheet" :type "text/css"
:href (uri-to-url "/static/example/example.css" :representation :external)))
(:body (:header (:h1 "Couldn't Be Simpler."))
(:main (:p "Trust me on this one.")))))))
17:47:55
tomelam@gmail.com
(uri-to-url "/static/example/example.css" ...) does not match my directory tree. Then should I change the uri to "/example/static/example.css"?
17:49:37
tomelam@gmail.com
Maybe I don't understand uri-to-url then. I'll read up. It's just not working for me. The CSS is not found (404 error). Any suggestions, please?
17:51:47
shinmera
In Radiance /static/ is special. It decomposes the url by looking at /static/{module}/{path..} and then turns that into {path-to-module-root}/static/{path...}
17:52:28
shinmera
But in order for that to work it needs to know where this module root is, and for that to work the ASD needs to be set up as a 'virtual module', and it has to be seen by ASDF (you can't C-c C-c the definition, for instance)
17:54:44
tomelam@gmail.com
Alright, I think I have enough to go on. I will check the ASD file. Is there any way I can set whether 'example' has been set up as a 'virtual module'?
17:56:51
tomelam@gmail.com
Alright. Now, in the documentation I don't think I saw that 'example' was quickloaded. Am I missing something? Should I just go ahead and try quickloading it?
18:00:35
tomelam@gmail.com
Could I be having the path problem if I forgot to (create-module "example")?
18:02:34
tomelam@gmail.com
Alright, thanks for all your help! I'll go away for a while and try this tonight or early tomorrow. Good night! Stay safe.
20:43:43
tomelam@gmail.com
@shinmera I'm beginning to understand Radiance better now, but I'm getting bumped into the debugger with the error 'The system example has no version specified, so Radiance does not know how to migrate it to the latest point.' Have I done it wrong? How can I avoid getting that error when I follow the simple tutorial?