Search
Thursday, 20th of September 2018, 17:45:53 UTC
17:46:30
dlowe
it looks like https://github.com/sile/cl-asm will do x86 assembly and will execute it in an image with sbcl
17:46:37
AeroNotix
Kind of wish the VOP stuff was more documented with a few more examples/tutorials
17:47:50
pfdietz
You don't want it to (just) be documented, you want it to be specified and formally delivered, so it won't change out from under you.
17:48:41
Shinmera
anyhow, might be easier to just write the asm separately, compile to a shared object and then use cffi
17:48:50
AeroNotix
Shinmera: it's an option for sure
17:49:04
AeroNotix
just would like to see how far it's possible to go within just CL itself rather than resorting to that
17:49:17
dlowe
I'm kinda digging this cl-asm thing. Wish it were better documented, though.
17:49:52
Shinmera
from what I can see the cl-asm basically does that but within lisp
17:50:05
Shinmera
as in, uses sb-alien to call into an asm routine
17:50:23
AeroNotix
I seriously have no idea what sb-vm:define-vop is doing
17:51:09
Shinmera
defines a Virtual OPeration
17:51:41
AeroNotix
sure, I just mean all the fields and set up of it all.
17:52:48
Shinmera
well, since you're adding a new operator to the compiler, it needs quite a bit of information to know how and when to use it.
17:53:16
_death
played with sb-assem a while ago.. https://gist.github.com/death/5ec259ef473b982898a3c5e36b21b1cd
17:53:22
AeroNotix
Shinmera: interesting.
17:54:59
Shinmera
I did some experiments with the ssa stuff but never took it beyond experiments https://github.com/Shinmera/3d-vectors/blob/master/ssa.lisp
17:55:15
Shinmera
mostly just adapted from pkhuong's blogs
17:57:02
_death
what does "ssa" mean? to me it flashes up as "single static assignment", but here it looks like "sse"
17:58:14
Shinmera
yea it's sse I'm just continuously misremembering the term
17:59:21
AeroNotix
https://www.pvk.ca/Blog/2014/08/16/how-to-define-new-intrinsics-in-sbcl/ <- useful
18:12:46
phoe
AeroNotix: https://www.pvk.ca/Blog/2014/03/15/sbcl-the-ultimate-assembly-code-breadboard/ <- same author, other interesting post
18:20:43
AeroNotix
phoe: thanks regardless
18:28:04
phoe
woops - sorry, didn't read that far
Friday, 21st of September 2018, 5:45:53 UTC