freenode/#lisp - IRC Chatlog
Search
12:34:14
moewe
When I'm inside a package -> (in-package), I obviously can't access outside symbols, especially (true). I can't find how to access that inside a package? I also tried to simply exit the package namespace and execute it there, but the internet said to simply use the lisp namespace. But at least in sbcl it doesn't exist.
12:36:36
moewe
I wanted to just let the script wait forever, so I did (sleep (true)), but apparently sbcl just crashed at that moment, and that doesnt even exist
12:37:11
moewe
Is there a way to not let a script exit on the end? I need to keep it alive so a thread can continue working
12:49:19
no-defun-allowed
"arithmetic error FLOATING-POINT-INVALID-OPERATION signalled" time to report this bug in SBCL /s
12:51:36
moewe
I actually just sent you an E-Mail for inclusion about that :D I try to create a telegram bot, and that creates a thread in the background to listen for messages, so that thread never finishes
12:52:34
_death
maybe it would be a good idea to have a way to signal the thread that it needs to die
12:53:45
moewe
but since I want to liberate it as soon as it is, I need to rework that as later on ^^"
13:32:00
francogrex
Hi, does anyone know how to make a pointer executable in memory, using sb-posix? (sbcl)?
13:34:35
francogrex
on windows I used something like that (cffi:with-foreign-object (oldprotect 'dword) (VIRTUAL-PROTECT pointer 8 #x40 oldprotect))
15:12:09
flip214
when using MACROEXPAND(-ALL), can I tell sbcl to use the environment it's currently running the form in, so that the currently active bindings are seen by the macros?
15:29:25
flip214
I tried to copy CAPTURE-ENV from the SBCL tests... but it seems to capture only local functions, and not special variables
15:33:22
pjb
(defmacro expand (&environment env expression) (macroexpand expression env)) (macrolet ((moo (x) `'(in moo ,x))) (expand (moo 42))) #| --> (in moo 42) |#
15:54:42
flip214
yeah, right, I could try to expand in a macro and return the expansion from it... does that match my needs?
15:57:14
beach
flip214: Have you explained what it is you are trying to accomplish? I must have missed it. But it sounds like you need some other tools.