jackdaniel changed the topic of #commonlisp to: Common Lisp, the #1=(programmable . #1#) programming language | Wiki: <https://www.cliki.net> | IRC Logs: <https://irclog.tymoon.eu/libera/%23commonlisp> | Cookbook: <https://lispcookbook.github.io/cl-cookbook> | Pastebin: <https://plaster.tymoon.eu/>
surabax has quit [Quit: Leaving]
triffid has quit [Remote host closed the connection]
shawnw has quit [Ping timeout: 268 seconds]
Guest5501 has quit [Quit: WeeChat 4.6.0]
triffid has joined #commonlisp
Ruby has quit [Quit: ZNC - https://znc.in]
Ruby has joined #commonlisp
jonatack has joined #commonlisp
lutherann has quit [Quit: WeeChat 4.4.3]
josrr has quit [Ping timeout: 252 seconds]
igemnace has quit [Quit: ZNC 1.9.0+deb2build3 - https://znc.in]
GalaxyNova has quit [Read error: Connection reset by peer]
wbooze has quit [Quit: Leaving]
nytpu has quit [Ping timeout: 248 seconds]
igemnace has joined #commonlisp
nytpu has joined #commonlisp
X-Scale has joined #commonlisp
shawnw has joined #commonlisp
decweb has quit [Quit: Konversation terminated!]
random-nick has quit [Ping timeout: 272 seconds]
decweb has joined #commonlisp
decweb has quit [Quit: Konversation terminated!]
decweb has joined #commonlisp
akovalenko_ has quit [Ping timeout: 252 seconds]
akovalenko has joined #commonlisp
lutherann has joined #commonlisp
lutherann has quit [Client Quit]
rakka has quit [Remote host closed the connection]
rakka has joined #commonlisp
shka has joined #commonlisp
decweb has quit [Quit: Konversation terminated!]
chomwitt has joined #commonlisp
Guest47 has joined #commonlisp
m5zs7k has quit [Ping timeout: 245 seconds]
chomwitt has quit [Quit: WeeChat 3.8]
m5zs7k has joined #commonlisp
stanrifkin has joined #commonlisp
pve has joined #commonlisp
mgl has joined #commonlisp
wbooze has joined #commonlisp
garlic0x18 has joined #commonlisp
garlic0x1 has quit [Ping timeout: 244 seconds]
garlic0x18 is now known as garlic0x1
edgar-rft has joined #commonlisp
ingeniot has joined #commonlisp
edgar-rft` has quit [Ping timeout: 268 seconds]
veqq has quit [Ping timeout: 248 seconds]
mishoo has joined #commonlisp
bpanthi977 has quit [Ping timeout: 276 seconds]
ecraven- has joined #commonlisp
ecraven has quit [Ping timeout: 244 seconds]
King_julian has joined #commonlisp
Th30n has joined #commonlisp
[1]X-Scale has joined #commonlisp
X-Scale has quit [Ping timeout: 272 seconds]
[1]X-Scale is now known as X-Scale
varjag has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.3)]
istewart has quit [Quit: Konversation terminated!]
garlic0x12 has joined #commonlisp
garlic0x1 has quit [Ping timeout: 248 seconds]
garlic0x12 is now known as garlic0x1
Lord_of_Life_ has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 245 seconds]
Lord_of_Life_ is now known as Lord_of_Life
bpanthi977 has joined #commonlisp
ecraven- has quit [Ping timeout: 265 seconds]
bpanthi977 has quit [Ping timeout: 246 seconds]
ingeniot has quit [Ping timeout: 240 seconds]
manny98 has joined #commonlisp
manny98 has quit [Changing host]
manny98 has joined #commonlisp
mooseball has joined #commonlisp
Pixel_Outlaw has quit [Quit: Leaving]
<fengshaun> is there a better way to keep a hunchentoot web app alive rather than (sleep most-positive-fixnum)?
<fengshaun> I'm thinking bordeaux-threads should be used to join the main hunchentoot thread? not sure how to go about that or where to look
<jackdaniel> something something condition-wait exit-condition is another way to do that
<fengshaun> thanks, I'll looking it
<fengshaun> look into*
ecraven has joined #commonlisp
<jackdaniel> but (loop (sleep most-positive-fixnum)) is not a bad way to do that imo
<fengshaun> doesn't feel right, but I guess nothing is wrong with it
<beach> How does sleeping keep an application alive?
akovalenko has quit [Ping timeout: 246 seconds]
<fengshaun> sb-thread:list-all-threads shows "hunchentoot-listener-*:8080", so I could wait for that thread, but sleep should do.
akovalenko has joined #commonlisp
<fengshaun> beach, hunchentoot runs a thread in the background and returns immediately, so the main thread exits and everything dies
<jackdaniel> beach: if your main thread calls a function like (defun start () (do-something) (spawn-listener) (call-user-function) (exit)) then the way to not exit immedietely is to put something blocking in call-user-function
<beach> I see.
Th30n has quit [Remote host closed the connection]
ecraven- has joined #commonlisp
ecraven has quit [Ping timeout: 252 seconds]
skeemer has joined #commonlisp
<fengshaun> oh nice, asdf:make works too! so close!
ecraven- is now known as ecraven
manny98 has quit [Ping timeout: 276 seconds]
treflip has joined #commonlisp
X-Scale has quit [Ping timeout: 272 seconds]
X-Scale has joined #commonlisp
Guest47 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Guest47 has joined #commonlisp
treflip` has joined #commonlisp
treflip has quit [Ping timeout: 244 seconds]
snoreboar has quit [Ping timeout: 248 seconds]
psilord` has joined #commonlisp
Equill has joined #commonlisp
psilord has quit [Ping timeout: 246 seconds]
ingeniot has joined #commonlisp
[1]X-Scale has joined #commonlisp
ingeniot has quit [Ping timeout: 240 seconds]
[2]X-Scale has joined #commonlisp
X-Scale has quit [Ping timeout: 272 seconds]
[2]X-Scale is now known as X-Scale
[1]X-Scale has quit [Ping timeout: 244 seconds]
skeemer has quit [Ping timeout: 252 seconds]
jonatack has quit [Ping timeout: 245 seconds]
jonatack has joined #commonlisp
ingeniot has joined #commonlisp
snoreboar has joined #commonlisp
jonatack has quit [Ping timeout: 244 seconds]
jonatack has joined #commonlisp
ingeniot has quit [Ping timeout: 240 seconds]
jonatack has quit [Remote host closed the connection]
jonatack has joined #commonlisp
Th30n has joined #commonlisp
jonatack has quit [Ping timeout: 252 seconds]
ingeniot has joined #commonlisp
treflip`` has joined #commonlisp
treflip` has quit [Ping timeout: 252 seconds]
random-nick has joined #commonlisp
tuck has joined #commonlisp
phantomics has quit [Remote host closed the connection]
phantomics has joined #commonlisp
mivanchev has joined #commonlisp
<mivanchev> hey, does anyone know of a CFFI trick to mask a C array as a lisp array?
mooseball has quit [Quit: Leaving]
snoreboar has quit [Quit: The Lounge - https://thelounge.chat]
Equill has quit [Ping timeout: 252 seconds]
waleee has joined #commonlisp
gnoo has quit [Ping timeout: 245 seconds]
gnoo has joined #commonlisp
yazz has quit [Ping timeout: 252 seconds]
<tuck> mivanchev: Perhaps some implementation would be able to do that, but in general, or in portable code, the best you can do is to implement operators named with symbols with the same names as CL array operators, to access the C array thru CFFI, as a C array. Basically, you can hide the fact that you are using CFFI:MEMREF behind a C:AREF at most.
yazz has joined #commonlisp
<tuck> You can also implement C:AREF to fork off to CL:AREF if passed a lisp array, so you can just (:use "CL" "C") (:shadowing-import-from "C" "AREF").
<tuck> mivanchev: it's probably not worth the work in general. Just use cffi:memref.
mivanchev has quit [Remote host closed the connection]
apac has quit [Ping timeout: 252 seconds]
mivanchev has joined #commonlisp
<mivanchev> tuck, that'[s what i end up doing
<mivanchev> but this code is performance critical ;/
<mivanchev> let's see how it goes
<tuck> Typically, what I do, is to define a low-level cffi interface foo-cffi.lisp, and then write a lispier higher level interface foo.lisp . for example: https://github.com/informatimago/lisp/tree/master/clext/pkcs11
<ixelp> lisp/clext/pkcs11 at master · informatimago/lisp
<tuck> For performance, you want to avoid crossing the C-lisp border, since it has to convert all the data arguments everytime. Even simple int must before integer and vice-versa.
<tuck> So you may want to write the performance function in C.
<mivanchev> Hard, I am writing a new StumpWM TTF module based on SDL2_ttf
<mivanchev> can't really write it in C
<mivanchev> let's see how bad it performs
<tuck> Perhaps it's too early to think about performance? Make it work first. And then profile it.
<jackdaniel> mivanchev: are you aware that McCLIM has a native common lisp ttf renderer implemented and working?
<mivanchev> yes
<jackdaniel> (and quite performant at that)
<mivanchev> I am
apac has joined #commonlisp
<jackdaniel> OK, then I won't shill it :)
<mivanchev> thanks though :)
<mivanchev> I believe it's better to use SDL2 (for me) because the whole planet is involved in the dev
<jackdaniel> btw, there's sdl3 released already
decweb has joined #commonlisp
<mivanchev> yes i know jackdaniel :D
<jackdaniel> good!
<jackdaniel> there's nothing I can teach you then, go and change the world ,P
jonatack has joined #commonlisp
shawnw has quit [Ping timeout: 268 seconds]
<mivanchev> jackdaniel, how to specify a dword for an element type?
<mivanchev> this you can teach me
<mivanchev> to get around The value 4323455642275676168 is not of type
<mivanchev>
<mivanchev> (unsigned-byte 4)
<jackdaniel> in common lisp array? the best you can probably do is a fixnum
<jackdaniel> or unsigned-integer 64 / 32 depending on arch
<jackdaniel> scratch the part about depending on arch, braino
<mivanchev> is not of type fixnum now
<mivanchev> too big?
<jackdaniel> that depends on the architecture
<jackdaniel> on my host it is a fixnum
<mivanchev> say it is an unsigned-byte 4
<mivanchev> how to assign that?
<jackdaniel> usurally the fixnum uses width-of-a-pointer minus 2 or 3 bits
<jackdaniel> I don't understand your problem
<mivanchev> I want a lisp array that can hold 32bit dword values
<mivanchev> with colors from SDL2
<jackdaniel> the representation of integers in the foreign land may be and very likely will be different than lisp's
<jackdaniel> you probably want something like (cffi:convert-from-foreign #<your-dword> :unsigned-long)
<jackdaniel> or :unsigned-int etc, depending on what is the C type of the argument
<mivanchev> yes
<mivanchev> this could be it
jfloren4 has joined #commonlisp
apac has quit [Read error: Connection reset by peer]
jfloren has quit [Ping timeout: 276 seconds]
jfloren4 is now known as jfloren
surabax has joined #commonlisp
surabax has quit [Changing host]
surabax has joined #commonlisp
apac has joined #commonlisp
ingeniot has quit [Ping timeout: 240 seconds]
X-Scale has quit [Ping timeout: 272 seconds]
treflip`` has quit [Ping timeout: 248 seconds]
phantomics has quit [Read error: Connection reset by peer]
phantomics has joined #commonlisp
phantomics has quit [Remote host closed the connection]
phantomics has joined #commonlisp
Guest47 has quit [Quit: Textual IRC Client: www.textualapp.com]
mivanchev has quit [Remote host closed the connection]
treflip has joined #commonlisp
JuanDaugherty has joined #commonlisp
phantomics has quit [Remote host closed the connection]
phantomics has joined #commonlisp
phantomics_ has joined #commonlisp
phantomics has quit [Read error: Connection reset by peer]
mgl has quit [Ping timeout: 246 seconds]
<nil> the other way around works well with cffi:with-pointer-to-vector-data
shawnw has joined #commonlisp
cercopith has joined #commonlisp
mgl has joined #commonlisp
yitzi has joined #commonlisp
ingeniot has joined #commonlisp
JuanDaugherty has quit [Quit: praxis.meansofproduction.biz (juan@acm.org)]
smlckz- has quit [Read error: Connection reset by peer]
pranav has quit [Read error: Connection reset by peer]
bpanthi977 has joined #commonlisp
remexre has quit [Remote host closed the connection]
ingeniot has quit [Quit: Client closed]
NotThatRPG has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yitzi has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
veqq has joined #commonlisp
treflip` has joined #commonlisp
treflip has quit [Ping timeout: 260 seconds]
gorignak has quit [Quit: quit]
remexre has joined #commonlisp
pranav has joined #commonlisp
overclucker has quit [Read error: Connection reset by peer]
apac has quit [Read error: Connection reset by peer]
overclucker has joined #commonlisp
apac has joined #commonlisp
apa_c has joined #commonlisp
apac has quit [Ping timeout: 260 seconds]
NotThatRPG has joined #commonlisp
jrm has quit [Ping timeout: 244 seconds]
overclucker has quit [Ping timeout: 248 seconds]
reb has quit [Read error: Connection reset by peer]
reb has joined #commonlisp
bpanthi977 has quit [Remote host closed the connection]
yitzi has joined #commonlisp
zxcvz has joined #commonlisp
skeemer has joined #commonlisp
bpanthi977 has joined #commonlisp
bpanthi977 has quit [Ping timeout: 244 seconds]
khinsen has joined #commonlisp
apa_c has quit [Ping timeout: 265 seconds]
overclucker has joined #commonlisp
Equill has joined #commonlisp
bpanthi977 has joined #commonlisp
bpanthi977 has quit [Remote host closed the connection]
bpanthi977 has joined #commonlisp
X-Scale has joined #commonlisp
treflip`` has joined #commonlisp
treflip` has quit [Ping timeout: 268 seconds]
bpanthi977 has quit [Ping timeout: 245 seconds]
zxcvz has quit [Quit: zxcvz]
bpanthi977 has joined #commonlisp
smlckz- has joined #commonlisp
smlckz- is now known as Guest5412
Guest5412 has quit [Changing host]
Guest5412 has joined #commonlisp
bpanthi977 has quit [Remote host closed the connection]
jonatack has quit [Read error: Connection reset by peer]
jonatack has joined #commonlisp
mgl has quit [Ping timeout: 245 seconds]
Guest5412 is now known as smlckz-
triffid has quit [Remote host closed the connection]
triffid has joined #commonlisp
manny98 has joined #commonlisp
manny98 has quit [Changing host]
manny98 has joined #commonlisp
jrm has joined #commonlisp
Equill has quit [Ping timeout: 244 seconds]
mishoo has quit [Ping timeout: 272 seconds]
psilord` is now known as psilord
manny98 has quit [Quit: manny98]
manny98 has joined #commonlisp
Equill has joined #commonlisp
treflip`` has quit [Ping timeout: 268 seconds]
King_julian has quit [Ping timeout: 252 seconds]
skin has joined #commonlisp
reb has quit [Remote host closed the connection]
JuanDaugherty has joined #commonlisp
reb has joined #commonlisp
kevingal has joined #commonlisp
bpanthi977 has joined #commonlisp
m5zs7k has quit [Ping timeout: 252 seconds]
m5zs7k has joined #commonlisp
mgl has joined #commonlisp
mgl has quit [Ping timeout: 245 seconds]
m5zs7k has quit [Ping timeout: 265 seconds]
bpanthi977 has quit [Ping timeout: 248 seconds]
m5zs7k has joined #commonlisp
manny98 has quit [Ping timeout: 276 seconds]
manny98 has joined #commonlisp
manny98 has quit [Changing host]
manny98 has joined #commonlisp
bpanthi977 has joined #commonlisp
bpanthi977 has quit [Ping timeout: 248 seconds]
mgl has joined #commonlisp
waleee has quit [Ping timeout: 252 seconds]
bpanthi977 has joined #commonlisp
bpanthi977 has quit [Ping timeout: 248 seconds]
yitzi has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
khinsen has left #commonlisp [#commonlisp]
Oladon has joined #commonlisp
bpanthi977 has joined #commonlisp
attila_lendvai has quit [Ping timeout: 245 seconds]
Oladon1 has quit [Ping timeout: 252 seconds]
skyl4rk has quit [Quit: ZNC 1.8.2 - https://znc.in]
skyl4rk has joined #commonlisp
mgl has quit [Ping timeout: 265 seconds]
pve has quit [Quit: leaving]
Equill has quit [Ping timeout: 276 seconds]
chomwitt has joined #commonlisp
JuanDaugherty has quit [Quit: praxis.meansofproduction.biz (juan@acm.org)]
cage has joined #commonlisp
kevingal has quit [Ping timeout: 245 seconds]
istewart has joined #commonlisp
Oladon1 has joined #commonlisp
Oladon has quit [Ping timeout: 252 seconds]
cage has quit [Quit: rcirc on GNU Emacs 30.1]
hineios2306 has joined #commonlisp
hineios230 has quit [Ping timeout: 248 seconds]
hineios2306 is now known as hineios230
bpanthi977 has quit [Ping timeout: 246 seconds]
bpanthi977 has joined #commonlisp
kevingal has joined #commonlisp
shka has quit [Quit: Konversation terminated!]
NotThatRPG has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tuck has quit [Quit: I'll be back]
manny98 has quit [Ping timeout: 248 seconds]
gorignak has joined #commonlisp
decweb has quit [Quit: Konversation terminated!]
stanrifkin has quit [Quit: Leaving]
bpanthi977 has quit [Ping timeout: 248 seconds]
decweb has joined #commonlisp
NotThatRPG has joined #commonlisp
<fart_cat> Do you guys know any FOSS games written with the Sketch framework?
Pixel_Outlaw has joined #commonlisp
reb has quit [Ping timeout: 245 seconds]
manny98 has joined #commonlisp
reb has joined #commonlisp
reb has quit [Remote host closed the connection]
stanrifkin has joined #commonlisp
reb has joined #commonlisp
<TMA> fart_cat: try asking on #lispgames
manny98 has quit [Ping timeout: 248 seconds]
mwnaylor has joined #commonlisp
skeemer has quit [Ping timeout: 244 seconds]
chomwitt has quit [Ping timeout: 244 seconds]
gooba has quit [Ping timeout: 244 seconds]
gooba has joined #commonlisp
ldb has joined #commonlisp
ldb has quit [Changing host]
ldb has joined #commonlisp
skin has quit [Remote host closed the connection]
szkl has joined #commonlisp
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 265 seconds]
NotThatRPG has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ldb has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.4)]
NotThatRPG has joined #commonlisp
bpanthi977 has joined #commonlisp