Search
Friday, 10th of April 2020, 12:52:50 UTC
12:52:53
moewe
currently screening and CTRL+C
12:53:07
moewe
but that's in the future - I just want that thing to work
12:53:30
Xach
Are there other threads running?
12:53:45
moewe
but since I want to liberate it as soon as it is, I need to rework that as later on ^^"
12:54:02
moewe
I don't know what that lib does, but at least I didn't start a different one
12:57:31
Xach
moewe: if you are able it is helpful for you to create a github issue
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))
13:34:49
francogrex
to make the pointer executable
13:35:06
francogrex
_death: mprotect yes but how?
13:35:27
_death
it's not the pointer that is made executable.. it's the memory pointed to
13:36:33
francogrex
yes but from within sbcl. not man mprotect
13:37:02
Bike
you can probably call mprotect from within sbcl
13:39:55
francogrex
mprotect(code,pagesize,PROT_EXEC) I have a pointer with sb-alien:make-alien ...
14:11:19
Shinmera
Colleen: tell francogrex look up mmap
14:11:19
Colleen
francogrex: About mmap https://shinmera.github.io/mmap#about_mmap
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:24:23
phoe
yes, they accept the &environment arg
15:24:46
phoe
but you need a macro to access its value
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.
16:02:13
flip214
beach: yeah, a less-impaired brain perhaps ;)
16:03:57
beach
I was thinking more about some Cleavir processing.
21:39:37
Lord_of_Life_
** NICK Lord_of_Life
Saturday, 11th of April 2020, 0:52:50 UTC