Xach changed the topic of #lisp to: Common Lisp, the #1=(programmable . #1#) programming language | <https://irclog.tymoon.eu/freenode/%23lisp> <https://irclog.whitequark.org/lisp> <http://ccl.clozure.com/irc-logs/lisp/>
Lord_of_Life has quit [Ping timeout: 265 seconds]
Lord_of_Life_ is now known as Lord_of_Life
varjag has quit [Ping timeout: 260 seconds]
cosimone has quit [Ping timeout: 260 seconds]
karlosz has quit [Quit: karlosz]
akoana has joined #lisp
ebrasca has joined #lisp
atgreen has joined #lisp
vap1 has joined #lisp
vaporatorius has quit [Ping timeout: 268 seconds]
pfdietz has quit [Ping timeout: 260 seconds]
zdm has joined #lisp
cyraxjoe has quit [Quit: No Ping reply in 180 seconds.]
cyraxjoe has joined #lisp
terpri has quit [Remote host closed the connection]
terpri has joined #lisp
Kaisyu72 has quit [Quit: ERC (IRC client for Emacs 26.3)]
Kaisyu7 has joined #lisp
hostile_ has joined #lisp
hostile has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
turona_ has quit [Ping timeout: 272 seconds]
bitmapper has quit [Remote host closed the connection]
turona has joined #lisp
bitmapper has joined #lisp
bitmapper has quit [Ping timeout: 272 seconds]
klltkr has quit [Ping timeout: 265 seconds]
klltkr_ has joined #lisp
hostile_ has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net]
bitmapper has joined #lisp
hostile has joined #lisp
marusich has quit [Quit: Leaving]
<asdf_asdf_asdf> Hi. How change value local variable inside function?
<asdf_asdf_asdf> (defun abc (a) (setf a 10)) (let ((a 5)) (abc a) (print a) #| 10 |#)
<no-defun-allowed> You can use a special variable: (defvar *a*) (defun abc () (setf *a* 10)) ... (let ((*a* 5)) ...)
<asdf_asdf_asdf> no-defun-allowed, I want using let.
<no-defun-allowed> Special variables can be bound using LET.
<no-defun-allowed> DEFVAR is required so that the function ABC knows it is going to modify a special variable, but you can also (declare (special *a*)) in every use of the special variable.
<LdBeth> asdf_asdf_asdf: i guess you want to save 10 into a cons
zooey has quit [Ping timeout: 240 seconds]
emaczen` has joined #lisp
<no-defun-allowed> Another option is to use a box (a small structure with one element, or a 0-dimensional array), but then you have to unbox the value to use it and have to setf the value of the box to modify it.
zooey has joined #lisp
<no-defun-allowed> eg (defun abc (b) (setf (box-value b) 10)) (let ((a (box 5))) (abc a) (print (box-value a)))
fengshaun_ has joined #lisp
<no-defun-allowed> (The implementations of BOX, (SETF BOX-VALUE) and BOX-VALUE are left to the reader)
datajerk has quit [Quit: ZNC 1.7.3 - https://znc.in]
CommanderViral has quit [Ping timeout: 265 seconds]
CommanderViral1 has joined #lisp
emaczen has quit [Remote host closed the connection]
fengshaun has quit [Ping timeout: 260 seconds]
Kaisyu7 has quit [Quit: ERC (IRC client for Emacs 26.3)]
mason has quit [Ping timeout: 265 seconds]
ahungry has joined #lisp
mason has joined #lisp
chocimir has joined #lisp
EvW has joined #lisp
<pjb> asdf_asdf_asdf: https://termbin.com/naey
<pjb>
karlosz has joined #lisp
Kaisyu7 has joined #lisp
EvW has quit [Ping timeout: 265 seconds]
bitmapper has quit [Ping timeout: 260 seconds]
datajerk has joined #lisp
<asdf_asdf_asdf> Thanks all. Bu I want simple solution.
<asdf_asdf_asdf> But*
<pjb> asdf_asdf_asdf: write your own defun macro!
<pjb> asdf_asdf_asdf: well, actually the problem is the function call, since it's pass by value.
<no-defun-allowed> I gave you two; you can wrap it in a box or use a special variable.
<no-defun-allowed> Another solution would be to create a closure and have the function call that to set the value: (defun abc (c) (funcall c 10)) (let ((a 5)) (abc (lambda (n) (setf a n))) (print a))
<pjb> asdf_asdf_asdf: you could kludge it with defining defun defmethod let let* progv etc so that all the variables would be symbol-macrolets to closures.
<pjb> asdf_asdf_asdf: you want to code in C.
Josh_2 has joined #lisp
terpri has quit [Remote host closed the connection]
terpri has joined #lisp
gabiruh has joined #lisp
klltkr_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<asdf_asdf_asdf> no-defun-allowed, OK. But I want, that in scope (defun abc (c) value was changed, not in scope (let ((a 5)).
<no-defun-allowed> Modifying the binding for C that ABC gets won't affect the binding for whatever is in the LET.
<no-defun-allowed> You need to pass the value through some kind of "box" as you would in C, or use a special variable to let ABC modify the binding established by LET.
<asdf_asdf_asdf> How look "pass the value through some kind of "box"?
<no-defun-allowed> As I said, (defun abc (b) (setf (box-value b) 10)) (let ((a (box 5))) (abc a) (print (box-value a)))
<no-defun-allowed> The box can be a CONS (and the value its CAR), a structure with one value which is the box's value, or a 0-dimensional array whose only value is the box's value.
orivej has joined #lisp
<pjb> asdf_asdf_asdf: you are being dumb. This is lexical, therefore the variables are know to YOU when you write the fucking code! Just use different variable names!
<pjb> (defun abc (a) (let ((x 5)) (setf a 100) (values a x))) (abc 0) #| --> 100 ; 5 |#
* LdBeth agree
<pjb> and since we have pass by value, don't try to mutate the variable in functions, instead get the result!
<pjb> (defun abc (a) (let ((x 5)) (if (zerop a) (setf a (abc 1)) (setf a 100)) (values a x))) (abc 0) #| --> 100 ; 5 |#
vms14 has quit [Remote host closed the connection]
ebzzry has joined #lisp
<asdf_asdf_asdf> OK, thanks. Maybe I select option 1. How change local var into global var using declare? I (declare (special x)), not working.
torbo has joined #lisp
asdf_asdf_asdf has quit [Quit: asdf_asdf_asdf]
zdm has quit [Quit: WeeChat 2.7]
oni-on-ion has quit [Ping timeout: 252 seconds]
dddddd has quit [Remote host closed the connection]
gabiruh has quit [Ping timeout: 272 seconds]
oni-on-ion has joined #lisp
chocimir has quit [Quit: leaving]
chocimir has joined #lisp
harovali has joined #lisp
Bike has quit [Quit: Lost terminal]
ebrasca has quit [Remote host closed the connection]
holycow has quit [Quit: Lost terminal]
milanj has quit [Quit: This computer has gone to sleep]
ggole has joined #lisp
igemnace has joined #lisp
<beach> Good morning everyone!
<Nilby> Good afternoon.
zdm has joined #lisp
gravicappa has joined #lisp
zdm has quit [Quit: WeeChat 2.7]
chocimir has quit [Ping timeout: 268 seconds]
emys has joined #lisp
zdm has joined #lisp
igemnace has quit [Quit: WeeChat 2.7]
X-Scale has quit [Ping timeout: 268 seconds]
X-Scale` has joined #lisp
igemnace has joined #lisp
bilegeek has quit [Quit: Leaving]
space_otter has joined #lisp
X-Scale` is now known as X-Scale
oxum has quit [Remote host closed the connection]
emys has quit [Ping timeout: 268 seconds]
chocimir has joined #lisp
torbo has quit [Remote host closed the connection]
oxum has joined #lisp
sindan has quit [Remote host closed the connection]
sindan has joined #lisp
oxum has quit [Ping timeout: 258 seconds]
oxum has joined #lisp
narimiran has joined #lisp
mrcom has joined #lisp
zdm has quit [Quit: WeeChat 2.7]
<harovali> hi! How do you exit the (inspect ...) prompt?
<harovali> q or () render 'No input at point'
<harovali> slime/sbcl
jello_pudding has joined #lisp
zdm has joined #lisp
<beach> harovali: I don't know the answer, but when you use SLIME, it is probably better to use the SLIME inspector.
<beach> harovali: Even better, use Clouseau.
nmg has joined #lisp
oxum has quit [Remote host closed the connection]
oxum has joined #lisp
gioyik has quit [Quit: WeeChat 2.7]
brown121408 has quit [Ping timeout: 268 seconds]
brown121408 has joined #lisp
<emaczen`> Did the bounty for passing and returning C structs in SBCL ever get completed?
<no-defun-allowed> harovali: If all else fails in Emacs, usually C-g will get you somewhere that isn't where you are.
<no-defun-allowed> It may also make a lot of beeping, depending on your configuration.
Cymew has joined #lisp
zdm has quit [Quit: WeeChat 2.7]
<emaczen`> Here is the link to the bounty: https://www.bountysource.com/issues/75202399-wanted-by-value-structures-in-sb-alien $365! Surely someone here has a decent status update?
gxt has joined #lisp
<Nilby> I started working on it, but I got too bored.
vlatkoB has joined #lisp
<emaczen`> Nilby: Are you an SBCL developer?
<Nilby> No.
<Nilby> It's actually not that hard for x96_64 because structs are passed fairly simply, but there are a bunch of edge cases, and to do it for all architectures is much harder.
rwcom6 has joined #lisp
<emaczen`> I was just trying to use libffi, but I don't know where I went wrong...
Inline has quit [Quit: Leaving]
<Nilby> CCL can pass structs, but CFFI doesn't know how to use it, so I started by developing a patch for that too.
<Nilby> The only way I got libffi working on windows was to compile it under cygwin and the use it under non-cygwin.
<emaczen`> Nilby: I just want SBCL on linux
rwcom has quit [Ping timeout: 268 seconds]
rwcom6 is now known as rwcom
* beach strongly recommends programming in Common Lisp instead.
<Nilby> Oh. On linux it just works for me. I don't know what I do wrong.
<emaczen`> I can use libffi for other functions, but when it involves a struct, I either defined the C struct for libffi incorrectly or used the C struct incorrectly (probably the definition for libffi since I can use libffi in other cases just fine)
<emaczen`> beach: It really is only a little bit of C I need, than a few wrappers and then +95% lisp!
<emaczen`> Nilby: What do you mean by "it just works"?
shangul has joined #lisp
<Nilby> I just realized maybe I don't really use anything that passes structs on linux. I think opengl interfaces use it though.
<Nilby> Actually I don't even have cffi-libffi loaded on linux, so I must have only been forced to use it on window where you have to for kernel calls.
<Nilby> "on windows" that is.
<emaczen`> Nilby: I'm using GNUStep, and just about 10% of the methods use really only 4 structs NSPoint, NSRange NSSize and NSRect
<emaczen`> there are like 2 or 3 other structs that I am aware of, but they aren't really even used
<Nilby> Ah, right.
ahungry has quit [Remote host closed the connection]
<emaczen`> Is $365 worth it for SBCL devs to solve this?
Cymew has quit [Ping timeout: 260 seconds]
<Nilby> If you're on x86_64, you can try just reading it off the stack yourself. Small structs like NSPoint are usually just sitting on the stack.
<emaczen`> Nilby: How do I get the address of the stack pointer?
raghavgururajan has quit [Remote host closed the connection]
harovali has quit [Read error: Connection reset by peer]
harovali has joined #lisp
<Nilby> There's some way I forgot, but you can basically just do assembly instructions in lisp. I think in CCL it was already in a lisp variable.
<Nilby> I'm probably not the right person to ask, since I hardly ever do such things, and only worked on it for a week during a fit of maddness.
<Nilby> But I found looking at CCL code was very instructive, and it works quite well on MacOS with the objective-C stuff.
<emaczen`> Nilby: Well, you are giving me good alternatives -- finding it on the stack makes sense to me. It is very much a lower-level solution that I am inexperienced with but I am aware of how some of these things work and it makes sense to me
dale has quit [Quit: My computer has gone to sleep]
Codaraxis has quit [Quit: Leaving]
<emaczen`> Nilby: How do you do assembly instructions in Lisp?
<Nilby> There's like a whole SB-ASSEM package that does it.
<Nilby> sbcl mostly does i
<Nilby> sbcl mostly does it with what it calls VOPs, You can see examples in say src/compiler/x86-64/arith.lisp
jello_pudding has quit [Read error: Connection reset by peer]
jellopudding has joined #lisp
zaquest has quit [Quit: Leaving]
<Nilby> It seems like in every Lisp written in Lisp you can write assembly in lisp syntax at some level. ccl and sbcl do so, and even in the lisp machines you can drop down into the microcode.
zaquest has joined #lisp
<emaczen`> Nilby: So from what I am looking at these VOPs define the base assembly instructions like move pop push etc, and then you can then use them in typical lisp prefix syntax?
<Nilby> right
<emaczen`> Nilby: Can I expect externed VOPs to be a "public" unchanging interface?
<Nilby> I doubt it.
<emaczen`> What can I expect, or do to try to achieve an unchanging interface?
<Nilby> But sbcl and lisp interfaces do seem to stay compatible at least 10x longer than most software.
<emaczen`> Yeah, it doesn't seem like something that would change a whole lot in my opinion but I don't really know what these SBCL devs are up to ha
<Nilby> I'm not really the person to ask. Maybe some sbcl devs?
<emaczen`> I guess I'll try it, I'll at least learn a lot about some of the internals of SBCL
<Nilby> I would love to do that patch, but unfortunatly I get filled with disgust and anger when I look at aseembly code too much.
patrixl has quit [Quit: Leaving.]
nika has joined #lisp
oxum_ has joined #lisp
oxum has quit [Read error: Connection reset by peer]
<emaczen`> Nilby: Make a bunch of abstractions first? Or it looks like if you just do a little bit at a time you would finish before anyone else does...
<p_l> Nilby: that goes at least as far back as MACLISP
<Nilby> Yes. Probably also Lisp 1.5 too.
<Nilby> But PDP instructions irk me much less than Intel.
<beach> The "assembler" I am using for SICL doesn't have a surface syntax, so it would be impractical for humans to use it.
<beach> The program would look like (list (make-instance ...) (make-instance ...) ...)
<Nilby> beach: Nice. Can't be forced to program in it if there's no syntax, right? *finger pointing at head meme*
<beach> Exactly. But that's not the main objective. The main objective is to provide a good interface for the code generator of the compiler.
<beach> It seems silly to generate surface syntax, only to have to parse it immediately after.
<beach> Also, if the protocol at this level is well defined, it would be straightforward to provide one or more versions of the surface syntax, should someone feel like programming such a thing.
mangul has joined #lisp
<beach> https://github.com/robert-strandh/Cluster in case someone is interested in this idea.
<beach> In fact, I could probably use some help to add new instructions to the database.
shangul has quit [Ping timeout: 258 seconds]
<beach> Currently, I add instructions incrementally, as I need them for the compiler backend.
shifty has quit [Ping timeout: 258 seconds]
Cymew has joined #lisp
flamebeard has joined #lisp
emys has joined #lisp
Cymew has quit [Ping timeout: 265 seconds]
Duuqnd has joined #lisp
chocimir has quit [Ping timeout: 272 seconds]
jellopudding has quit [Read error: Connection reset by peer]
jellopudding has joined #lisp
nika has quit []
milanj has joined #lisp
emys has quit [Read error: Connection timed out]
bendersteed has quit [Remote host closed the connection]
emys has joined #lisp
karlosz has quit [Quit: karlosz]
cmatei has quit [Ping timeout: 268 seconds]
emys has quit [Ping timeout: 245 seconds]
emaczen` has quit [Ping timeout: 268 seconds]
emys has joined #lisp
gxt has quit [Ping timeout: 240 seconds]
Cymew has joined #lisp
madage has quit [Ping timeout: 240 seconds]
Josh_2 has quit [Ping timeout: 240 seconds]
emys has quit [Ping timeout: 265 seconds]
ebzzry has quit [Ping timeout: 260 seconds]
jonatack has quit [Ping timeout: 246 seconds]
montaropdf has joined #lisp
Cymew has quit [Ping timeout: 265 seconds]
ebzzry has joined #lisp
emys has joined #lisp
hjudt has quit [Quit: leaving]
jonatack has joined #lisp
JohnMS_WORK has joined #lisp
hjudt has joined #lisp
william1 has joined #lisp
madage has joined #lisp
davepdotorg has joined #lisp
emys has quit [Ping timeout: 260 seconds]
emys has joined #lisp
<LdBeth> beach: does it support object relocation?
milanj has quit [Quit: Leaving]
<beach> No, it has no such facility (yet). Not sure whether it will be needed.
<beach> I am using position-independent code, so no relocation required there.
vap1 has quit [Read error: Connection reset by peer]
<beach> And it does not have any facility for defining memory contents other than instructions, because that is not useful for its intended use.
vap1 has joined #lisp
<LdBeth> So it implies that the input has already processed future reference of labels?
<beach> Sort of. It assumes that all labels are already in the program.
hhdave has joined #lisp
<beach> It is not meant for separate compilation followed by linking. Just as a backend for Common Lisp compilers.
<LdBeth> I see
emys has quit [Ping timeout: 265 seconds]
emys has joined #lisp
oldtopman has joined #lisp
emys has quit [Ping timeout: 246 seconds]
hhdave has quit [Ping timeout: 258 seconds]
jonatack has quit [Ping timeout: 260 seconds]
davepdotorg has quit [Read error: Connection reset by peer]
davepdotorg has joined #lisp
hhdave has joined #lisp
mangul has quit [Ping timeout: 265 seconds]
jeosol has joined #lisp
william1 has quit [Ping timeout: 272 seconds]
oxum has joined #lisp
oxum_ has quit [Read error: Connection reset by peer]
gxt has joined #lisp
oxum has quit [Remote host closed the connection]
shangul has joined #lisp
oxum has joined #lisp
Cymew has joined #lisp
jellopudding has quit [Remote host closed the connection]
jellopudding has joined #lisp
oxum has quit [Remote host closed the connection]
space_otter has quit [Remote host closed the connection]
oxum has joined #lisp
<Duuqnd> How do I make cffi-grovel work on Windows?
<Duuqnd> It tells me that it can't find GCC, but when I manually tell it where GCC is, it breaks apart because it can't find "libffi.h".
<galdor> I suspect you need https://github.com/libffi/libffi
<galdor> I'm surprised cffi does not bundle it
JohnMS_WORK has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<galdor> (why does cffi need libffi since it uses implementation ffi layers ?)
<Duuqnd> Well, the problem here is that I don't know where to put it where CFFI will find it.
<Duuqnd> It doesn't find GCC to begin with, so I don't know what more problems will come from that.
shangul has quit [Ping timeout: 258 seconds]
<galdor> you need to find the full gcc command CFFI tries to execute
<galdor> it's already a huge mess on Linux, I cannot imagine what it is on Windows
<galdor> I tried to clean it up once, but it's virtually impossible to modify without breaking obscure platforms
<Duuqnd> I tried to change the Windows PATH environment variable, but it still won't find it.
<Duuqnd> Windows is really strange, I wonder how it's survived this long.
<Nilby> If you're using sbcl I think you can just get a copy of the libffi dll and put it in the sbcl directory.
<galdor> easy: it just works for most users
<Duuqnd> Nilby: Thanks, I'll try that.
<Nilby> But like the libffi dll from mingw not cygwin
<Duuqnd> Yeah, I'm using MinGW.
<Nilby> I usually have to run sbcl under cygwin to get it to grovel, and then you can run it not under cygwin. It's very annoying.
montaropdf has quit [Ping timeout: 268 seconds]
<Duuqnd> It might be easier to modify the library I'm using to not use libffi...
varjag has joined #lisp
nmg has quit [Remote host closed the connection]
<Nilby> That is usually better, but not always possible, since the many things like Windows kernel has struct passing APIs.
<Nilby> There was a discussion on here earlier today about fixing it.
<Duuqnd> It looks like the library doesn't actually use libffi, it just adds it as a dependency and never touches it again.
vaporatorius__ has joined #lisp
jonatack has joined #lisp
vap1 has quit [Ping timeout: 268 seconds]
oxum has quit [Read error: Connection reset by peer]
oxum_ has joined #lisp
<Shinmera> libffi is needed if the C library takes or returns structures as values.
<Shinmera> so there won't be any explicit mention of it in the code.
Khisanth has quit [Ping timeout: 268 seconds]
<Duuqnd> Yeah, I noticed that while trying to load it. Oops. Well, I'm gonna try to compile libffi with MinGW and see if that works.
<Nilby> It seems like you usually have to tell it where to find the C compiler, like: export CC=c:/cygwin64/bin/x86_64-w64-mingw32-gcc.exe or something.
Khisanth has joined #lisp
grabarz has joined #lisp
william1 has joined #lisp
cmatei has joined #lisp
EvW has joined #lisp
shangul has joined #lisp
v88m has quit [Ping timeout: 258 seconds]
jfb4 has joined #lisp
jfb4_ has quit [Ping timeout: 272 seconds]
cosimone has joined #lisp
vap1 has joined #lisp
shangul has quit [Ping timeout: 260 seconds]
vaporatorius__ has quit [Ping timeout: 240 seconds]
oxum_ has quit [Read error: Connection reset by peer]
oxum has joined #lisp
jebes has quit [Ping timeout: 272 seconds]
oxum has quit [Remote host closed the connection]
oxum has joined #lisp
tiwEllien has joined #lisp
cosimone has quit [Remote host closed the connection]
heisig has joined #lisp
papachan has joined #lisp
stepnem has joined #lisp
gareppa has joined #lisp
shifty has joined #lisp
stepnem_ has quit [Ping timeout: 272 seconds]
oxum has quit [Remote host closed the connection]
dddddd has joined #lisp
stepnem_ has joined #lisp
Lord_of_Life_ has joined #lisp
oxum has joined #lisp
Lord_of_Life has quit [Ping timeout: 260 seconds]
stepnem has quit [Ping timeout: 258 seconds]
Lord_of_Life_ is now known as Lord_of_Life
gareppa has quit [Remote host closed the connection]
oxum has quit [Remote host closed the connection]
stepnem has joined #lisp
stepnem_ has quit [Ping timeout: 258 seconds]
akoana has left #lisp ["Leaving"]
EvW has quit [Quit: EvW]
EvW1 has joined #lisp
slyrus has quit [Remote host closed the connection]
slyrus has joined #lisp
avicenna has quit [Read error: Connection reset by peer]
avicenna has joined #lisp
parisienne_ has quit [Ping timeout: 258 seconds]
gjnoonan has quit [Ping timeout: 258 seconds]
jsatk has quit [Ping timeout: 258 seconds]
grobe0ba has quit [Quit: ZNC 1.7.4 - https://znc.in]
mgsk has quit [Read error: Connection reset by peer]
parisienne_ has joined #lisp
grobe0ba_ has joined #lisp
mgsk has joined #lisp
mnmx has joined #lisp
jsatk has joined #lisp
grobe0ba_ is now known as grobe0ba
gjnoonan has joined #lisp
ebzzry has quit [Ping timeout: 240 seconds]
rumpelszn has quit [Ping timeout: 258 seconds]
xkapastel has joined #lisp
gabiruh has joined #lisp
keep_learning has quit [Quit: Ping timeout (120 seconds)]
rumpelszn has joined #lisp
lowryder has quit [Ping timeout: 258 seconds]
oxum has joined #lisp
klltkr has joined #lisp
cg505 has quit [Ping timeout: 258 seconds]
cg505 has joined #lisp
lowryder has joined #lisp
mnmx has quit [Remote host closed the connection]
dddddd has quit [Ping timeout: 240 seconds]
ebzzry has joined #lisp
oxum has quit [Remote host closed the connection]
gabiruh has quit [Ping timeout: 252 seconds]
klltkr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Necktwi_ has joined #lisp
cosimone has joined #lisp
oxum has joined #lisp
gko_ has joined #lisp
gabiruh has joined #lisp
dddddd has joined #lisp
william1 has quit [Quit: WeeChat 1.9.1]
oxum has quit [Remote host closed the connection]
jmercouris has joined #lisp
shangul has joined #lisp
oxum has joined #lisp
oxum has quit [Remote host closed the connection]
seok has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 265 seconds]
asdf_asdf_asdf has joined #lisp
amerlyq has joined #lisp
jmercouris has quit [Remote host closed the connection]
jmercouris has joined #lisp
Nilby has quit [Read error: Connection reset by peer]
random-nick has joined #lisp
amerlyq has quit [Ping timeout: 260 seconds]
samlamamma has joined #lisp
amerlyq has joined #lisp
<samlamamma> I'm doing some work on WebAssembly. It's very frustrating to read non-lisper's WASM, they spread their right parens around like discarded toe nails
EvW1 has quit [Ping timeout: 245 seconds]
_jrjsmrtn has joined #lisp
nika_ has joined #lisp
__jrjsmrtn__ has quit [Ping timeout: 268 seconds]
jonatack has quit [Read error: Connection reset by peer]
lucasb has joined #lisp
<Odin-> "It's the same as block scoping, right?"
oldtopman has quit [Remote host closed the connection]
<Odin-> They need to get their act together on the GC and shared linking stuff.
jonatack has joined #lisp
mercourisj has joined #lisp
jmercouris has quit [Ping timeout: 268 seconds]
Duuqnd has quit [Quit: Leaving]
oxum has joined #lisp
oxum_ has joined #lisp
oxum has quit [Remote host closed the connection]
cosimone has quit [Ping timeout: 268 seconds]
oxum_ has quit [Remote host closed the connection]
oxum has joined #lisp
<harovali> beach: no-defun-allowed: thanks
<harovali> i killed the buffer and restarted slime without creating another inferior lisp
orivej has joined #lisp
amerlyq has quit [Ping timeout: 260 seconds]
<harovali> beach: sure, I'd like to use the best option in the context I am. But I ran (inspect ...) because it was a step in this clim tutorial https://kantz.com/clim-primer/application-frames.htm
amerlyq has joined #lisp
mercourisj is now known as jmercouris
Bike has joined #lisp
<beach> I see.
<beach> What I usually do when I write a CLIM application, I include a command that starts Clouseau on the frame or on a pane.
vaporatorius__ has joined #lisp
<p_l> Odin-: there's a significant benefit if one wants to implement GC themselves in that multivalue is getting actually implemented
vap1 has quit [Ping timeout: 240 seconds]
<Odin-> p_l: As I understand it, that's considered a base for the in-platform GC stuff.
<p_l> it's one of the requirements
<p_l> it's also a requirement for a bunch of other things
<p_l> because it allows to write code that doesn't use `locals`
oxum_ has joined #lisp
oxum has quit [Ping timeout: 265 seconds]
<harovali> beach: interesting , thanks
papachan has quit [Ping timeout: 265 seconds]
FreeBirdLjj has joined #lisp
refpga has joined #lisp
<pjb> minion: memo for emaczen: lisp itself is just an assembler. Just avoid the most sophisticated macros (or consider lisp as a macro assembler and use them!). See for example: https://groups.google.com/forum/#!msg/comp.lang.lisp/T3UZwLoN0lw/4r9q_8cwKoQJ THIS IS YOUR STABLE ASSEMBLER!
<minion> Remembered. I'll tell emaczen when he/she/it next speaks.
papachan has joined #lisp
samlamamma has quit [Ping timeout: 265 seconds]
papachan has quit [Client Quit]
papachan has joined #lisp
heisig has quit [Quit: Leaving]
mangul has joined #lisp
shangul has quit [Ping timeout: 248 seconds]
refpga has quit [Read error: Connection reset by peer]
oxum_ has quit [Remote host closed the connection]
mangul has quit [Ping timeout: 258 seconds]
igemnace has quit [Quit: WeeChat 2.7]
tiwEllien has quit [Ping timeout: 268 seconds]
ebrasca has joined #lisp
brown121408 has quit [Read error: Connection reset by peer]
oxum has joined #lisp
asdf_asdf_asdf has quit [Remote host closed the connection]
brown121407 has joined #lisp
oxum has quit [Ping timeout: 258 seconds]
jonatack has quit [Ping timeout: 268 seconds]
oxum has joined #lisp
oni-on-ion has quit [Remote host closed the connection]
oni-on-ion has joined #lisp
oxum has quit [Ping timeout: 265 seconds]
tiwEllien has joined #lisp
shifty has quit [Ping timeout: 240 seconds]
yottabyte has joined #lisp
yottabyte has left #lisp [#lisp]
asdf_asdf_asdf has joined #lisp
jack_rabbit has joined #lisp
mangul has joined #lisp
ebrasca has quit [Remote host closed the connection]
oxum has joined #lisp
dale_ has joined #lisp
dale_ is now known as dale
v88m has joined #lisp
Cymew has quit [Ping timeout: 268 seconds]
papachan has quit [Ping timeout: 265 seconds]
Odin- has quit [Read error: Connection reset by peer]
oxum has quit [Ping timeout: 268 seconds]
madage has quit [Ping timeout: 240 seconds]
vap1 has joined #lisp
vaporatorius__ has quit [Ping timeout: 240 seconds]
jack_rabbit has quit [Ping timeout: 265 seconds]
EvW has joined #lisp
madage has joined #lisp
amerlyq has quit [Quit: amerlyq]
varjagg has joined #lisp
amerlyq has joined #lisp
varjag has quit [Remote host closed the connection]
varjagg is now known as varjag
pfdietz has joined #lisp
cosimone has joined #lisp
statusf90 has joined #lisp
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #lisp
efm has quit [Read error: Connection reset by peer]
efm has joined #lisp
FreeBirdLjj has quit [Ping timeout: 260 seconds]
pnp has joined #lisp
oxum has joined #lisp
varjag has quit [Quit: ERC (IRC client for Emacs 25.2.2)]
scymtym has joined #lisp
<pnp> is there any way to interrupt a running process in the slime-repl? I have that process that is not terminating and i would like to kill it (stop the running operation) it from Emacs...
<beach> C-c C-c should work.
mingus has quit [Ping timeout: 265 seconds]
<pfdietz> I had some trouble with that running sbcl from slime under WSL.
slyrus_ has joined #lisp
pnp has quit [Remote host closed the connection]
slyrus has quit [Ping timeout: 272 seconds]
cosimone has quit [Quit: Terminated!]
slyrus__ has joined #lisp
smazga has joined #lisp
asarch has joined #lisp
jonatack has joined #lisp
slyrus_ has quit [Ping timeout: 265 seconds]
cosimone has joined #lisp
oxum has quit [Ping timeout: 258 seconds]
gioyik has joined #lisp
oxum has joined #lisp
gko_ has quit [Ping timeout: 265 seconds]
Necktwi_ has quit [Ping timeout: 265 seconds]
gxt has quit [Ping timeout: 240 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
oxum has quit [Ping timeout: 240 seconds]
slyrus_ has joined #lisp
oxum has joined #lisp
amerlyq has quit [Quit: amerlyq]
slyrus__ has quit [Ping timeout: 258 seconds]
mn3m has joined #lisp
amerlyq has joined #lisp
flamebeard has quit []
davepdotorg has quit [Remote host closed the connection]
ym has joined #lisp
oxum has quit [Ping timeout: 260 seconds]
karlosz has joined #lisp
oxum has joined #lisp
varjag has joined #lisp
jellopudding has quit [Remote host closed the connection]
jellopudding has joined #lisp
karlosz has quit [Quit: karlosz]
cosimone_ has joined #lisp
cosimone has quit [Ping timeout: 248 seconds]
tiwEllien has quit [Ping timeout: 268 seconds]
cosimone_ has quit [Client Quit]
hhdave has quit [Quit: hhdave]
slyrus__ has joined #lisp
slyrus_ has quit [Ping timeout: 260 seconds]
Josh_2 has joined #lisp
<jmercouris> pfdietz: OK
<jmercouris> pfdietz: does it work?
papachan has joined #lisp
<jackdaniel> there is a certain medium value of "work" for which it does!
<jmercouris> well well well! perhaps a windows port will never be necessary!
<jackdaniel> you talk as if sbcl were not ported to windows already
<jmercouris> I thought windows support was poor
<pfdietz> It works well enough. If I really need to interrupt it I go to the Ubuntu window and kill -SIGSEGV its pid.
grabarz has quit [Quit: Textual IRC Client: www.textualapp.com]
Caractacus has joined #lisp
p_l has quit [Ping timeout: 265 seconds]
p_l has joined #lisp
Caractacus has quit []
philhunt has joined #lisp
philhunt has left #lisp [#lisp]
orivej has quit [Ping timeout: 258 seconds]
Krystof has joined #lisp
Caractacus has joined #lisp
vap1 has quit [Read error: Connection reset by peer]
vap1 has joined #lisp
Caractacus has quit [Client Quit]
bendersteed has joined #lisp
vibs29 has joined #lisp
clothespin has joined #lisp
harovali1 has joined #lisp
harovali has quit [Ping timeout: 268 seconds]
mangul has quit [Ping timeout: 258 seconds]
Lord_of_Life has quit [Excess Flood]
ebrasca has joined #lisp
Lord_of_Life has joined #lisp
<sjl> TIL that while (round) is required to round half to even, format's ~,VF directive is allowed to use half-to-whatever-it-wants.
harovali1 has quit [Ping timeout: 260 seconds]
mn3m has quit [Remote host closed the connection]
<sjl> $ ccl --eval '(format t "~,3F" 0.5625d0)' --eval '(quit)' # => 0.562
<sjl> $ sbcl --eval '(format t "~,3F" 0.5625d0)' --eval '(quit)' # => 0.563
jellopudding has quit [Remote host closed the connection]
jello_pudding has joined #lisp
efm has quit [Ping timeout: 268 seconds]
nowhere_man has quit [Ping timeout: 272 seconds]
efm has joined #lisp
jellopudding has joined #lisp
znebula has joined #lisp
brown121407 has quit [Ping timeout: 258 seconds]
jello_pudding has quit [Ping timeout: 260 seconds]
jmercouris has quit [Remote host closed the connection]
brown121407 has joined #lisp
rippa has joined #lisp
jellopudding has quit [Ping timeout: 260 seconds]
<galdor> "When rounding up and rounding down would produce printed values equidistant from the scaled value of arg, then the implementation is free to use either one."
<galdor> at least it's clearly specified :)
jello_pudding has joined #lisp
jello_pudding has quit [Read error: Connection reset by peer]
<Bike> i'm more surprised that ccl and sbcl actually give different results
jello_pudding has joined #lisp
<Bike> different float printing algorithms, i guess?
vlatkoB has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<sjl> Must be
Odin- has joined #lisp
nowhere_man has joined #lisp
jello_pudding has quit [Ping timeout: 260 seconds]
brown121407 has quit [Read error: Connection reset by peer]
ggole has quit [Quit: Leaving]
brown121407 has joined #lisp
smazga has quit [Ping timeout: 260 seconds]
jmercouris has joined #lisp
asdf_asdf_asdf has quit [Remote host closed the connection]
sauvin has quit [Ping timeout: 272 seconds]
scymtym has quit [Ping timeout: 248 seconds]
clothespin has quit [Ping timeout: 260 seconds]
brown121407 has quit [Read error: Connection reset by peer]
brown121407 has joined #lisp
nika_ has quit []
asdf_asdf_asdf has joined #lisp
gabiruh has quit [Ping timeout: 246 seconds]
visage_ has joined #lisp
karlosz has joined #lisp
brown121407 has quit [Ping timeout: 265 seconds]
karlosz has quit [Remote host closed the connection]
karlosz has joined #lisp
<phoe> yes
<phoe> very different
<phoe> they both kinda-descent-from-the-same-FORMAT-ancestor, but the codes have diverged
ralt has quit [Quit: Connection closed for inactivity]
clothespin has joined #lisp
gabiruh has joined #lisp
bitmapper has joined #lisp
vibs29 has left #lisp [#lisp]
ted_wroclaw has joined #lisp
jmercouris has quit [Remote host closed the connection]
scymtym has joined #lisp
karlosz has quit [Quit: karlosz]
tiwEllien has joined #lisp
narimiran has quit [Ping timeout: 260 seconds]
ted_wroclaw has quit [Ping timeout: 265 seconds]
slyrus has joined #lisp
adolby has quit [Remote host closed the connection]
adolby has joined #lisp
slyrus__ has quit [Ping timeout: 265 seconds]
harovali has joined #lisp
harovali1 has joined #lisp
aindilis has quit [Remote host closed the connection]
aindilis has joined #lisp
developernotes has joined #lisp
harovali has quit [Ping timeout: 260 seconds]
developernotes has quit [Client Quit]
Codaraxis has joined #lisp
Codaraxis has quit [Read error: Connection reset by peer]
amerlyq has quit [Quit: amerlyq]
ozzloy has joined #lisp
ozzloy has joined #lisp
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
smazga has joined #lisp
cosimone has joined #lisp
smazga has quit [Ping timeout: 265 seconds]
nowhereman_ has joined #lisp
nowhere_man has quit [Ping timeout: 272 seconds]
ArthurStrong has quit [Quit: leaving]
emacsomancer has quit [Ping timeout: 248 seconds]
orivej has joined #lisp
emacsomancer has joined #lisp
gravicappa has quit [Ping timeout: 268 seconds]
clothespin has quit [Ping timeout: 260 seconds]
<pjb> sjl: https://termbin.com/z3fb some use banker's rounding, some don't. See which one you want to avoid rounding hacking…
<pjb> Again, ccl and clisp are the best…
asarch has quit [Quit: Leaving]
harovali1 has quit [Quit: Leaving.]
gioyik has quit [Read error: Connection reset by peer]
gioyik has joined #lisp
quazimodo has quit [Ping timeout: 272 seconds]
quazimodo has joined #lisp
brown121407 has joined #lisp
emys has joined #lisp
EvW has quit [Ping timeout: 248 seconds]
quazimodo has quit [Ping timeout: 258 seconds]
sjl has quit [Quit: WeeChat 2.2-dev]
slyrus_ has joined #lisp
slyrus has quit [Ping timeout: 260 seconds]
shifty has joined #lisp
Codaraxis has joined #lisp
emys has quit [Ping timeout: 240 seconds]
EvW1 has joined #lisp
emys has joined #lisp
tiwEllien has quit [Ping timeout: 265 seconds]
<jackdaniel> is there a good reason /not/ to use stream-file-position from gray streams for gray streams which are not files?
<jackdaniel> unfortunately there is no stream-position in gray protocol afaik (however clisp defines it in gray package)
<jackdaniel> by using I mean: implement
<no-defun-allowed> The first thing that comes into mind is a stream that puts out random values.
<jackdaniel> I don't understand, could you elaborate please?
<no-defun-allowed> It's silly, but one could implement a stream where stream-read-byte returns (random 256), and a position might not be meaningful there; but you could just count the bytes read and use that as a "position"
<jackdaniel> my use is a little more specific. in clim there are standard-extended-input-stream's -- stream-read-gesture moves the position forward, so a next character from the input buffer will be read
<jackdaniel> that seems like a perfect case for stream-position (which doesn't exist)
<jackdaniel> I can create my own function, that is not a problem, I was just wondering if using stream-file-position has some hidden gotchas I'm not aware of
stepnem has quit [Read error: Connection reset by peer]
stepnem has joined #lisp
emys has quit [Ping timeout: 272 seconds]
vms14 has joined #lisp
<Shinmera> jackdaniel: I suppose the expectation might be there that you can change the position to seek, too
<Shinmera> which typically does not apply
gabiruh has quit [Ping timeout: 248 seconds]
<jackdaniel> no-defun-allowed: Shinmera: thank you for your remarks, both points are interesting.
varjag has quit [Quit: ERC (IRC client for Emacs 26.1)]
emys has joined #lisp
madage has quit [Ping timeout: 240 seconds]
madage has joined #lisp
emys has quit [Ping timeout: 268 seconds]
nowhereman_ has quit [Ping timeout: 258 seconds]
Bike has quit [Quit: Bike]
papachan has quit [Ping timeout: 268 seconds]
emys has joined #lisp
random-nick has quit [Ping timeout: 258 seconds]
statusf90 has quit [Quit: statusf90]
statusf90 has joined #lisp
bitmapper has quit [Remote host closed the connection]
emys has quit [Ping timeout: 272 seconds]
bitmapper has joined #lisp
bitmapper has quit [Ping timeout: 258 seconds]
bitmapper has joined #lisp
smazga has joined #lisp
emys has joined #lisp
lucasb has quit [Quit: Connection closed for inactivity]
ebrasca has quit [Remote host closed the connection]
harovali has joined #lisp
harovali1 has joined #lisp
smazga has quit [Ping timeout: 268 seconds]
harovali has quit [Ping timeout: 265 seconds]
emys has quit [Ping timeout: 260 seconds]
quazimodo has joined #lisp
wxie has joined #lisp
Bike has joined #lisp
vms14 has quit [Remote host closed the connection]
sjl has joined #lisp
gabiruh has joined #lisp
wxie has quit [Ping timeout: 260 seconds]
Codaraxis has quit [Read error: Connection reset by peer]
malfort_ has joined #lisp
malfort has quit [Read error: Connection reset by peer]
rwcom2 has joined #lisp
Lord_of_Life_ has joined #lisp