binghe changed the topic of #lisp to: Common Lisp, the #1=(programmable . #1#) programming language <http://cliki.net/> logs:<https://irclog.whitequark.org/lisp, http://ccl.clozure.com/irc-logs/lisp/> | SBCL 1.4.0, CMUCL 21b, ECL 16.1.3, CCL 1.11.5
FreeBirdLjj has joined #lisp
kajo has quit [Ping timeout: 240 seconds]
kajo has joined #lisp
Cymew has joined #lisp
python476 has quit [Ping timeout: 256 seconds]
FreeBirdLjj has quit [Ping timeout: 248 seconds]
Cymew has quit [Ping timeout: 252 seconds]
juan-reynoso has quit [Ping timeout: 240 seconds]
<borei> hmm, i have delimma. i have function, in some cases argument is just number, but in some cases - list of numbers. passing list of one number - will work but doesn't look good. on the other hand doing type parsing inside function - also not elegant solution. generic function and methods on top of it ?
<attila_lendvai> you can use (defun foo (&rest args) ...)
<pjb> borei: (defun foo (x) (let ((x (ensure-list x))) (process-list x)))
pagnol has quit [Ping timeout: 240 seconds]
<pjb> you find ensure-list in various libraries.
<pjb> &rest is still limited by call-arguments-limit, which can be as low as 50.
<borei> hmm, ensure-list - undefined. is it part of 'standard library' ?
<attila_lendvai> google is your friend
<borei> looking now
<pjb> at least: alexandria:ensure-list com.informatimago.common-lisp.cesarum.list:ensure-list
<attila_lendvai> if you want to wander that way, then get alexandria, preferably using quicklisp.org
FreeBirdLjj has joined #lisp
<borei> source code for it has 5 lines with comments
<pjb> (defun ensure-list (x) (if (listp x) x (list x)))
<borei> i think it worth to implement it
<borei> yeah
<pjb> Of course, you have the choice to write it in your program, or to depends on tens of unspecified libraries.
FreeBirdLjj has quit [Ping timeout: 256 seconds]
<borei> does it make sense to create generic function and couple methods on top of it ?
<pjb> (defgeneric ensure-list (x) (:method ((x cons)) x) (:method ((x null)) x) (:method ((x t)) (list x)))
<pjb> what do you think?
<borei> no no
clog has quit [Ping timeout: 268 seconds]
<pjb> Notice, you may want: (defgeneric ensure-list (x) (:method ((x cons)) x) (:method ((x null)) x) (:method ((x t)) (list x)) (:method ((x vector)) (coerce x 'list)))
<pjb> and so on. So a generic function may be what you need.
<pjb> (ensure-list "foo") --> (#\f #\o #\o)
FreeBirdLjj has joined #lisp
<borei> im thinking about genfun/method for my function, like
<mfiano> (ensure-list "foo") --> ("foo")
<borei> (defgeneric myfun (args)) --> (defmethod myfun ((fixnum arg)), (defmethod myfun ((cons arg)) ?
<pjb> It's the same.
<pjb> borei: one thing you have to consider with CLOS also, is that method dispatching can be done on multiple arguments.
<pjb> (defgeneric f (x y)) (defmethod f ((x integer) (y string)) …) (defmethod ((x string) (y real)) …) etc.
<pjb> Now the point is that you would gather together (perhaps in the same file), functions or methods that are logically related.
<pjb> You don't have to put everything related to a class in the same file. Or everything related to a generic function in the same file.
<pjb> It depends on the internal logic of your program.
pagnol has joined #lisp
<borei> ok, ic, i'll try either-or approaches to see which one looks better
<pjb> Sometimes you just want to define a function with all its methods already defined. Using defgeneric with :method is a nice way to do it.
<pjb> Other times, you want to keep the methods close to a class. A file per class with a defclass and all the defmethod in it.
<pjb> Other times, you want to add a mechanism, so you will have a file with defmethod for all the classes in your system.
zolk3ri has joined #lisp
<pjb> The modularity can be organized according to different axes.
<borei> yeah, im structuring library - that is why all such questions popped-up
<pjb> If you realize that when you have to implement a user story, you must modify all the files in your project, then perhaps something is wrong.
<pjb> Perhaps you should just add a new file gathering all the methods implementing this user story.
safe has joined #lisp
Nouv has quit [Remote host closed the connection]
smasta has quit [Ping timeout: 248 seconds]
attila_lendvai has quit [Ping timeout: 256 seconds]
<borei> for &optional arguments can i specify type, something like (defmethod xyz ((x single-float)(y single-float) &optional (y single-float)) ?
<borei> the &optional one is (z single-float)
<pjb> nope. method dispatch is only on mandatory parameters.
<pjb> borei: you can use check-type to verify it.
<borei> yep
<pjb> (defmethod xyz ((x single-float) (y single-float) &optional z) (check-type z (or null single-float)))
pierpa has joined #lisp
<borei> seems like for now i ran out of questions :-)
<stacksmith> clhs 3.4.2
<specbot> Generic Function Lambda Lists: http://www.lispworks.com/reference/HyperSpec/Body/03_db.htm
<borei> thanks a lot !
terpri has quit [Ping timeout: 240 seconds]
damke has joined #lisp
al-damiri has quit [Quit: Connection closed for inactivity]
damke_ has quit [Ping timeout: 264 seconds]
thodg has quit [Ping timeout: 240 seconds]
milanj has quit [Quit: This computer has gone to sleep]
<emaczen> how do I get documentation strings from functions, methods and classes?
<emaczen> I'm most interested in methods
<pierpa> clhs documentation
<Bike> (documentation the-object t)
<Bike> like (documentation (find-method ...) t)
<whoman> emaczen: ??!?!?
<whoman> i wonder if he caught the link
<whoman> ^ old messages
<whoman> doesnt symbol get it all ?
<Bike> i don't know what that means
smasta has joined #lisp
<emaczen> Thanks Bike, I was confused because emacs doc made it look like documentation only for class slots
dieggsy has quit [Read error: Connection reset by peer]
arescorpio has joined #lisp
<whoman> oh well
Patternmaster has joined #lisp
smasta has quit [Ping timeout: 264 seconds]
pagnol has quit [Ping timeout: 256 seconds]
figurehe4d has joined #lisp
EvW has quit [Ping timeout: 252 seconds]
python476 has joined #lisp
zolk3ri has quit [Remote host closed the connection]
philosaur has quit [Quit: philosaur]
philosaur has joined #lisp
<emaczen> How can I get a list of methods that have a particular class as a specializer?
<emaczen> I don't see anything obvious in closer-mop
<Bike> as a specializer in any position?
<Bike> it's not a common operation
<emaczen> Bike: yes
FreeBirdLjj has quit [Remote host closed the connection]
<emaczen> Bike: Oh wait, I think I see it as a slot for a standard-class
<Bike> (remove-if-not (lambda (method) (find class (method-specializers method))) methods), i think
FreeBirdLjj has joined #lisp
<emaczen> Bike: Yeah, but how do you get all the methods?
<Bike> of a generic function?
<emaczen> no just in general
<emaczen> I need all methods that have as a specializer class x
<Bike> oh, i see
<Bike> specializer-direct-methods
<emaczen> Bike: I just found in ccl, direct-methods is a slot for standard-class
<Bike> specializer-direct-methods is the exported interface
<emaczen> Bike: yep, it returns the same result
FreeBirdLjj has quit [Ping timeout: 252 seconds]
python476 has quit [Ping timeout: 252 seconds]
erikc has quit []
karswell has joined #lisp
fikka has quit [Ping timeout: 264 seconds]
figurehe4d has quit [Ping timeout: 240 seconds]
Oladon has joined #lisp
chiyosaki has joined #lisp
saki has quit [Ping timeout: 248 seconds]
uuplusu has joined #lisp
d4ryus1 has joined #lisp
deng_cn1 has joined #lisp
deng_cn has quit [Ping timeout: 264 seconds]
deng_cn1 is now known as deng_cn
d4ryus has quit [Ping timeout: 268 seconds]
clog has joined #lisp
yaewa has quit [Quit: Leaving...]
mlf has quit [Ping timeout: 240 seconds]
mlf has joined #lisp
dieggsy has joined #lisp
fikka has joined #lisp
__rumbler31 has joined #lisp
goreye has joined #lisp
<goreye> Hi, I'm trying to do `(write-byte (char-code #\A) *standard-output*)` which works fine on SBCL but fails on SLIME.
<goreye> Error is: The stream #<SWANK/GRAY::SLIME-OUTPUT-STREAM {10042AFB33}> has
<goreye> no suitable method for STREAM-WRITE-BYTE, and so has fallen
<goreye> through to this method.
<Bike> standard output is probably a acharacter stream, so write byte is a problem
<goreye> So is it different from the standard-output of sbcl? Some wrapper provided by Slime?
<Bike> slime wraps, yes.
<goreye> Any way I can test write-bytes on stdout? Though I'm writing the function for generic streams, but I'm testing it on standard output
<goreye> Noob here, just in case :)
__rumbler31 has quit [Ping timeout: 240 seconds]
terpri has joined #lisp
damke_ has joined #lisp
smasta has joined #lisp
damke has quit [Ping timeout: 264 seconds]
smasta has quit [Ping timeout: 264 seconds]
fikka has quit [Ping timeout: 252 seconds]
fdund has joined #lisp
fikka has joined #lisp
juan-reynoso has joined #lisp
<stacksmith> goreye: pls go to #clnoobs
arescorpio has quit [Read error: No route to host]
<nydel> at sdf.org pubnix we try to build sbcl for all users on netbsd8. if there is any special bsd unix instructions, the system op wants me to pass them on. thanks in advance if you know anything!
pjb has quit [Remote host closed the connection]
pjb has joined #lisp
deng_cn has quit [Read error: Connection reset by peer]
pjb has quit [Remote host closed the connection]
goreye has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 265 seconds]
stacksmith has quit [Ping timeout: 260 seconds]
<emaczen> how do I find a generic-function given a name?
<Bike> fdefinition
<emaczen> Bike: strange that it is not find-generic-function or find-function
<Bike> why would it be
<Bike> generic functions are just functions
<emaczen> because we have find-class and find-method
<emaczen> I said "or" becuase I thought so
<Bike> those names actually arenj't great because they're also setfs
<Bike> well, find class is
<Bike> find method is not
fikka has quit [Ping timeout: 240 seconds]
deng_cn has joined #lisp
fikka has joined #lisp
deng_cn has quit [Read error: Connection reset by peer]
deng_cn has joined #lisp
schoppenhauer has quit [Ping timeout: 260 seconds]
schoppenhauer has joined #lisp
Karl_Dscc has joined #lisp
fdund has quit [Quit: .]
zooey has quit [Remote host closed the connection]
zooey has joined #lisp
sysfault has joined #lisp
stacksmith has joined #lisp
sysfault has quit [Client Quit]
sysfault has joined #lisp
stacksmith has quit [Ping timeout: 252 seconds]
fikka has quit [Ping timeout: 252 seconds]
jsn` has joined #lisp
<Guest16495> pjb, sjl, Shinmera: thank you for the answers about ctrl-c in cl-charms/curses development. `stty intr undef` was the magic i needed!
figurehe4d has joined #lisp
fikka has joined #lisp
KarlDscc has joined #lisp
dieggsy has quit [Ping timeout: 240 seconds]
smasta has joined #lisp
fisxoj has joined #lisp
Karl_Dscc has quit [Ping timeout: 252 seconds]
smasta has quit [Ping timeout: 264 seconds]
chiyosaki has quit [Quit: chiyosaki]
saki has joined #lisp
pmc_ has quit [Quit: Leaving]
damke has joined #lisp
damke_ has quit [Ping timeout: 264 seconds]
<beach> Good morning everyone!
saki has quit [Ping timeout: 252 seconds]
<jack_rabbit> 'morning!
KarlDscc has quit [Remote host closed the connection]
dddddd has quit [Remote host closed the connection]
fikka has quit [Ping timeout: 252 seconds]
<nydel> morning
<jack_rabbit> It appears http://sbcl.org/ is giving 502... :/
<jack_rabbit> oh, hello nydel!
<jack_rabbit> How did your work on that machine go?
juan-reynoso has quit [Remote host closed the connection]
pierpa has quit [Quit: Page closed]
smurfrobot has joined #lisp
fikka has joined #lisp
smurfrobot has quit [Ping timeout: 264 seconds]
zooey has quit [Ping timeout: 255 seconds]
zooey has joined #lisp
smasta has joined #lisp
zooey has quit [Remote host closed the connection]
zooey has joined #lisp
AxelAlex has joined #lisp
mlf has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
sysfault has quit [Quit: Leaving]
BitPuffin has joined #lisp
sysfault has joined #lisp
learning has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
smokeink has joined #lisp
epony has quit [Quit: QUIT]
ebzzry_ has quit [Ping timeout: 256 seconds]
fikka has joined #lisp
epony has joined #lisp
shifty has quit [Ping timeout: 240 seconds]
saki has joined #lisp
Arcaelyx_ has joined #lisp
milanj has joined #lisp
<nydel> jack_rabbit: thanks for asking! we got 1.4.1 up on the meta-array which is a red-hat-like linux 2.2 kernel. all my programs work!
<jack_rabbit> YES!
<nydel> but the cluster (the main place - about 5 or 6 machines with a shared user filesystem) runs NetBSD8
<nydel> in fact we're the only live beta of netbsd8. the developers are working on the kernel from 7 on our system. so i guess it is proving difficult to easily install SBCL on the bsd system for all users
<nydel> i'm hoping to find some existing documentation on bsd-specific sbcl building or to begin creating such a thing as we go
Arcaelyx has quit [Ping timeout: 276 seconds]
<jack_rabbit> I know clisp is currently running there. Having an updated version of that might be easier?
<jack_rabbit> The clisp there is (oddly) new enough that I was able to load asdf3 into it and actually compile stuff from quicklisp, which I was not able to do with the old SBCL on MA.
<nydel> savvy jack_rabbit ! i guess clisp can be used to build sbcl. so that's exactly what we're trying, to update clisp (we have a version from 2010! woof.) then the sbcl hopefully will follow
<jack_rabbit> Excellent! :D
<nydel> there is a pkgsrc entry for sbcl 1.3.1 and that is plenty current enough for the general SDF population to be using.
<nydel> :)
<jack_rabbit> definitely.
<jack_rabbit> Very good. I'm excited to play with it.
<nydel> a package i used to rely on called cl-daemonize i guess is no longer listed in quicklisp repository. it's how i backgrounded my hunchentoot-behind-apache webserver (then my sdf website would fetch sdf.org:9903, an arbitrary port running my server)
<jack_rabbit> nydel, I usually just nohup things.
<jack_rabbit> I think that works on bsd.
<nydel> i hadn't considered that. i'd get a cool log of happenings that way as well
<nydel> thanks
<jack_rabbit> Yes indeed. :)
<jack_rabbit> nydel, You can try loading my little gopher client there. https://github.com/knusbaum/cl-gopher
<nydel> oh absolutely, i've been meaning to try that out!
<jack_rabbit> That one's different than the one I showed you before. That one is text based and the other is built on McClim, so it's graphical.
<jack_rabbit> Although, actually, the main branch there won't work there, since I can't load iolib on the cluster.
<jack_rabbit> My test branch 'iolib->usocket+flexi-streams' should work.
<nydel> in an ideal world, a person simply does ./cl-gopher-start.sh from the command line yes?
nika has joined #lisp
<jack_rabbit> ideally, yes.
<nydel> or would a lisp person load this up in a slime instance
<jack_rabbit> This thing is super alpha, though. I haven't made much effort to make it portable yet.
<jack_rabbit> A lisp person may well load it in slime.
<jack_rabbit> however I haven't been able to get slime working with the current clim on the cluster.
<jack_rabbit> s/clim/clisp/
<jack_rabbit> cl-gopher:text-browser is the function to start the interactive browser, though.
<nydel> right away the lsh script gives "system cl-gopher not found" a quicklisp error ... huh
<jack_rabbit> Yeah, you need to manually (load "/some/path/to/cl-gopher.asd") first.
<jack_rabbit> Then you should be able to quickload it.
<nydel> ah that's good
<jack_rabbit> (provided you have loaded asdf3 and quicklisp. :)
<nydel> i mean it's better than "what?"
<jack_rabbit> haha
<nydel> yes quicklisp is up to date and asdf3 & 2 ... let me get cl-gopher in my quicklisp local real quick
<nydel> is placing the git repo in ~/quicklisp/local-projects/ the way to do this?
<nydel> i've gotten so spoiled by quicklisp doing everything so easily hehe
<jack_rabbit> Not sure. That might work! It doesn't matter where you place it if you manually load the .asd file.
<nydel> right. i'll back off the scripts for a minute and just load it up
<jack_rabbit> putting it in local-projects might make the manual load unnecessary.
vaporatorius__ has joined #lisp
<nydel> that was the idea. and the script progressed quite a ways before running into a very long foreign interface problem that i'm just now looking into
<jack_rabbit> nydel, Yes! That's probably because you checked out the main branch.
<jack_rabbit> coming from iolib?
<nydel> it's to do with iolib and grovel, the ffi error
dundee has joined #lisp
milanj has quit [Quit: This computer has gone to sleep]
<jack_rabbit> Yes. iolib requires libfixposix. Instead, check out the 'iolib->usocket+flexi-streams' branch.
<jack_rabbit> (sorry about the horrible branch name, which requires quoting)
vap1 has quit [Ping timeout: 240 seconds]
<dundee> If I were to make a purely functional lisp, would it still be possible to read in code from imperative languages like C via macros?
<phoe> dundee: what do you mean, "read in code"?
<dundee> make a syntax for C and then compile it
<phoe> functional paradigm is equivalent to the imperative one, everything computable in one is computable in the other and vice versa.
<phoe> so you can write C-reading macros in either of them and compile them into something that you can execute.
<nydel> i'm trying on my local machine (not part of SDF) in a slime. having put cl-gopher in quicklisp local-projects, i get a halt at iolib. so i must need to install iolib, with which i am not familiar.
<nydel> this is a debian machine, should iolib be something i retrieve by hand, with a lisp, from linux repo?
<phoe> so you can do even the blasphemy of grabbing a purely imperative language like C and compile it into a purely functional language like your hypothetical Lisp.
<phoe> At a big cost, but you'll do it, sure thing.
Arcaelyx has joined #lisp
zooey has quit [Ping timeout: 255 seconds]
<jack_rabbit> nydel, No, iolib is a common-lisp library. However, it depends on libfixposix, which you should be able to install with 'apt-get libfixposix'
zooey has joined #lisp
<jack_rabbit> nydel, alternatively, check out the other branch on my cl-gopher repo.
<jack_rabbit> 'apt-get install libfixposix' even
<dundee> phoe: but you can do all sorts of data mutation in C functions, for loops, and other control structures. I'm sure any sufficiently smart compiler could optimize a naive translation (see: GHC, Stalin Scheme), but would a set of naive translations consistently produce legal lisp?
rumbler31 has quit [Remote host closed the connection]
<nydel> do i read the other branch correctly as you're moving away from iolib to use usocket?
<jack_rabbit> nydel, That's correct.
<phoe> dundee: it doesn't matter. in imperative programmming, mutable state is contained everywhere; in functional programming, functional state is isolated and contained in function arguments.
<jack_rabbit> sorry, I could have been clearer about that.
<nydel> let's try that then first. i feel like since i haven't used iolib it is probably something i need to spend an hour or two getting learned on.
<phoe> in imperative programming, you mutate this global state; in functional programming, you change the arguments passed from function to function.
<jack_rabbit> nydel, sounds good! :)
<phoe> functions are directly translatable to functional programming, loops can be transformed into recursion, other control structures, like switches, can be turned into pattern matching.
<phoe> and right now I consider only the *possibility* - yes, it is possible. I do not consider whether it's *feasible*.
Arcaelyx_ has quit [Ping timeout: 264 seconds]
<phoe> and here is where the countless optimizations kick in.
<jack_rabbit> Assignment can be captured via some closure magic, I believe.
<phoe> jack_rabbit: or just returning a new state object from a function.
<jack_rabbit> sure.
<phoe> (assign state var new-value) ;=> new-state
<phoe> and in new-state, a functional data structure, the alist or whatever now contains a mapping from var to new-value.
damke_ has joined #lisp
<phoe> state is equal to new-state, sans that assignment.
<jack_rabbit> yes.
<dundee> I suppose passing continuations from new state object returns are a way to consistently achieve what I'm thinking of.
vap1 has joined #lisp
fisxoj has quit [Quit: fisxoj]
damke has quit [Ping timeout: 264 seconds]
vaporatorius__ has quit [Ping timeout: 240 seconds]
Oladon has quit [Quit: Leaving.]
<nydel> jack_rabbit: i clone the other branch (and put it in quicklisp/local-projects for good measure) ... in a slime environment, should i asdf load cl-gopher.asd, or some other action e.g. evaluate cl-gopher.lisp & client.lisp etc?
<jack_rabbit> If it's in local-projects, all you should need to do is (ql:quickload 'cl-gopher)
<jack_rabbit> in fact, the lsh scripts may work.
<nydel> ah of course whoops. let's try that
<jack_rabbit> (if you wanted to do it that way instead. No guarantees though. :) )
<nydel> the same type of error (this is the newer branch not master) condition of type iolib/grovel:grovel::grovel-error ... which happens when apparnetly a call is made to g++
<jack_rabbit> hmmmm :/
<jack_rabbit> It shouldn't be trying to load iolib.
<nydel> right? let me make sure i have the correct branch.
terpri has quit [Ping timeout: 256 seconds]
<nydel> oh here is the problem (my fault) - i am not sure how to clone this branch with git. i didn't read what i coppied, it suggest the main cranch
<nydel> i looked it up i think i see, one moment
<jack_rabbit> should just be git checkout 'iolib->usocket+flexi-streams'
<nydel> jack_rabbit: right i had to do clone -b "io.... you get it. i got it, quicklisp loaded and evaluated it, all set! what do i run to get going (cl-gopher:.....)?
<jack_rabbit> (cl-gopher:text-browser)
<nydel> working!
<nydel> browsing the sdf gopherspace in a slime repl, this is so damn cool!
<jack_rabbit> sweet :)
dundee has quit [Quit: Page closed]
<jack_rabbit> Oh! and if you want to allow it to download files, you can add the keyword :allow-downloads (cl-gopher:text-browser :allow-downloads t)
<jack_rabbit> right now it just dumps them in /tmp
<jack_rabbit> There's currently no 'quit' option, so you just have to interrupt it with C-c C-c and return to toplevel to get out.
<jack_rabbit> niiiiice. :)
<phoe> ooooh
vlatkoB has joined #lisp
<nydel> this is great jack_rabbit i'm reading new phlog entries from today and not in a "hey this a fun novelty" way but in a "this is how i prefer to do this" way
<nydel> great job!
<jack_rabbit> That's awesome. :)
<jack_rabbit> Thanks!
<jack_rabbit> It still needs quite a bit of work. Honestly, the browser was mostly an afterthought. cl-gopher's main intention is to be a protocol library that I'm going to put into clim-gopher and my yet-to-be-named gopher server.
<nydel> i haven't seen a good clim project in a while so i'm excited to try that. there (AFAIK) aren't a lot of good true gopher GUI browsers. there are proxies and extensions for firefox etc
<jack_rabbit> It's available and working now, if you wanted to try it out. It does need iolib currently, but I could switch that over real quick.
<nydel> i'm right now working on getting iolib working locally (and understanding what it is/does for myself) ... just give me a little bit to poke around, i feel like this is something i should know how/why it works
<nydel> then hopefully we can get it on the meta-array and eventually the sdf cluster
<jack_rabbit> I just switched it anyway, sorry. :)
SaganMan has joined #lisp
<jack_rabbit> I prefer having fewer native library dependencies.
mishoo has joined #lisp
zooey has quit [Remote host closed the connection]
zooey has joined #lisp
LocaMocha has joined #lisp
<nydel> it's probably for the best especially for software that can work on multiuser systems without a lot of hassle
<jack_rabbit> That's the hope.
<nydel> the meta-array allows for x11 forwarding. i run 'links2 -g' on it often and sometimes firefox. tomorrow i will try to get your clim client running that way
<nydel> oh the possibilities. if a commonlisp gopher server, you can have a multi-user repl or version control repo. what fun!
fikka has quit [Ping timeout: 264 seconds]
<jack_rabbit> nydel, Yeah! My server currently is translating news articles to plaintext, but the possibilities are large.
<jack_rabbit> nydel, https://gopher.floodgap.com/gopher/gw.lite?gopher://fritterware.org:70/
Bike has quit [Quit: Lost terminal]
smasta has quit [Ping timeout: 268 seconds]
Arcaelyx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
smurfrobot has joined #lisp
_whitelogger has joined #lisp
smurfrobot has quit [Remote host closed the connection]
fikka has joined #lisp
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #lisp
fikka has quit [Ping timeout: 264 seconds]
damke_ has quit [Ping timeout: 264 seconds]
smurfrobot has joined #lisp
damke_ has joined #lisp
shifty has joined #lisp
smurfrobot has quit [Remote host closed the connection]
DonVlad has joined #lisp
quazimodo has joined #lisp
saki has quit [Remote host closed the connection]
kuneco has quit [Ping timeout: 240 seconds]
fikka has joined #lisp
saki has joined #lisp
SaganMan has quit [Ping timeout: 260 seconds]
rumbler31 has joined #lisp
damke has joined #lisp
<phoe> What is the function to insert an element into a list at position N?
Tobbi has joined #lisp
<phoe> (insert-into (list :q :w :e :r :t) :a 2) ;=> (:Q :W :A :E :R :T)
<phoe> Something that behaves like this.
<phoe> Actually not a function but a macro, since this needs to take a place.
<phoe> If we are inserting at position 0, then this macro needs to modify the original place.
rumbler31 has quit [Ping timeout: 264 seconds]
damke_ has quit [Ping timeout: 264 seconds]
<phoe> Oh right, I want this operation to be destructive to avoid consing.
<jack_rabbit> Never found one. I've been in need of one before, but ended up fudging a solution.
<phoe> ...does it mean that I will need to write it
<jack_rabbit> I can't say definitively, but all signs I've seen point to 'yes'
<jack_rabbit> There must be a library that has this functionality...
<phoe> Exactly my line of thoughts, which is why I come here and ask.
terpri has joined #lisp
<phoe> I'll wait a while more, maybe someone knows such a library.
kuneco has joined #lisp
figurehe4d has quit [Ping timeout: 240 seconds]
patrixl has joined #lisp
patrixl has quit [Quit: ERC (IRC client for Emacs 26.0.91)]
patrixl has joined #lisp
heurist_ has joined #lisp
fikka has quit [Ping timeout: 252 seconds]
heurist`_ has quit [Ping timeout: 256 seconds]
smurfrobot has joined #lisp
smurfrobot has quit [Remote host closed the connection]
karswell_ has joined #lisp
karswell has quit [Ping timeout: 240 seconds]
Chream_ has joined #lisp
fikka has joined #lisp
<Shinmera> phoe: you can setf the cdr of the nthcdr.
<phoe> Shinmera: unless I want to insert at position 0, at which point I must modify the place.
<Shinmera> Sure.
<Shinmera> My point is, it's quite trivial.
<phoe> I want an abstraction that will take care of this for me.
<phoe> Yep, but nonetheless SETF CDR NTHCDR CONS CDR NTHCDR is ugly to me.
<phoe> Since that's more or less how that insertion would look like.
<Shinmera> If you want efficient inserting at any place you might want to consider something that isn't a list anyway. Like a skiplist.
<phoe> Shinmera: it does not have to be efficient.
<phoe> And to avoid the NIH syndrome, I'm looking for someone who already encountered that problem and wrote an already existing library function.
<Shinmera> I have and did, but not as part of a utils package.
<phoe> Sure, I can push yet another macro to PHOE-TOOLBOX, but that won't be too elegant.
<Shinmera> Anyway, it's somewhere in my libraries :^)
fikka has quit [Ping timeout: 264 seconds]
<jackdaniel> in case of single utilities NIH doesn't apply, because pulling whole library as a dependency for a single (side-) utility is more absurd than adding 10 lines of code
patrixl has quit [Remote host closed the connection]
Chream_2 has joined #lisp
Chream_ has quit [Read error: Connection reset by peer]
deng_cn has quit [Read error: Connection reset by peer]
Chream_ has joined #lisp
Chream_2 has quit [Read error: Connection reset by peer]
eudoxia has joined #lisp
eudoxia has quit [Client Quit]
deng_cn has joined #lisp
<phoe> jackdaniel: unless it's already in some commonly used library that I am likely to have already pulled in.
<phoe> I duplicated ALEXANDRIA:MAKE-KEYWORD once because I had no idea it is there.
<jackdaniel> that's why I've added `single' word
heurist`_` has joined #lisp
heurist_ has quit [Ping timeout: 252 seconds]
pjb has joined #lisp
smokeink has quit [Remote host closed the connection]
DonVlad has quit [Quit: WeeChat 1.4]
DonVlad has joined #lisp
patrixl has joined #lisp
patrixl has quit [Client Quit]
patrixl has joined #lisp
attila_lendvai has joined #lisp
attila_lendvai has joined #lisp
attila_lendvai has quit [Changing host]
<DonVlad> Hey, can someone look over that ^ and help me out ?
<DonVlad> Thanks
<Shinmera> This channel is for Common Lisp only.
attila_lendvai has quit [Read error: Connection reset by peer]
<DonVlad> I know, hastebin is dumb and though that's scala
<DonVlad> thought*
<jackdaniel> I see some [] which are not valid common lisp as well as various indentation and naming problems
<jackdaniel> if I had to guess, I'd say it is not Common Lisp either way (even if it is not scala)
<DonVlad> Well I tried to copy as much as possible Common Lisp but still add my own unique features, but it's lisp...
<DonVlad> why you say there are naming problems?
<DonVlad> Can you point them out?
<jackdaniel> (= anim:foo …)
<jackdaniel> if it is a global variable, it should have earmuffs (agreed convention)
<DonVlad> module:function
<Shinmera> _makeFrame is doubly wrong
<DonVlad> jackdaniel: earmuffs?
damke_ has joined #lisp
<DonVlad> Shinmera: why?
<DonVlad> how do you name a private function?
<jackdaniel> in common lisp modules are fairly different concept, what you mean is package
<Shinmera> not with camel case that's for sure
<jackdaniel> if something is an atom in non-functional position, then it is not a function (unless it is lisp-1, which Common Lisp is not)
<Shinmera> and typically private functions are just not exported
<pjb> They may be symbol-macros!
<pjb> Since fn seems to be lambda, = is probably setf.
<DonVlad> pjb: yep
<pjb> So it's definitely NOT Common Lisp.
<pjb> Try ##lisp
<DonVlad> alright
<DonVlad> thanks...
<DonVlad> Shinmera: so in the end, how would you define a private function?
damke__ has joined #lisp
<Shinmera> Like any other function
<Shinmera> I just wouldn't export it, like I said.
<whoman> =/
DonVlad has left #lisp ["WeeChat 1.4"]
damke has quit [Ping timeout: 264 seconds]
<jackdaniel> there is also %foo convention for internal/unsafe mechanisms
<Shinmera> He's gone.
rumbler31 has joined #lisp
damke_ has quit [Ping timeout: 264 seconds]
rumbler31 has quit [Read error: Connection reset by peer]
nowhereman_ has joined #lisp
safe has quit [Read error: Connection reset by peer]
nowhere_man has quit [Ping timeout: 264 seconds]
attila_lendvai has joined #lisp
pagnol has joined #lisp
attila_lendvai has quit [Read error: Connection reset by peer]
orivej has joined #lisp
damke has joined #lisp
oleo has quit [Quit: Leaving]
attila_lendvai has joined #lisp
attila_lendvai has quit [Changing host]
attila_lendvai has joined #lisp
damke__ has quit [Ping timeout: 264 seconds]
pagnol has quit [Quit: Ex-Chat]
pagnol has joined #lisp
Karl_Dscc has joined #lisp
attila_lendvai has quit [Read error: Connection reset by peer]
attila_lendvai has joined #lisp
attila_lendvai has quit [Changing host]
attila_lendvai has joined #lisp
attila_lendvai has quit [Read error: Connection reset by peer]
attila_lendvai has joined #lisp
attila_lendvai has joined #lisp
attila_lendvai has quit [Changing host]
varjag has joined #lisp
papachan has joined #lisp
attila_lendvai has quit [Read error: Connection reset by peer]
attila_lendvai has joined #lisp
attila_lendvai has joined #lisp
attila_lendvai has quit [Changing host]
attila_lendvai has quit [Read error: Connection reset by peer]
attila_lendvai has joined #lisp
orivej has quit [Ping timeout: 256 seconds]
python476 has joined #lisp
<fe[nl]ix> jack_rabbit: what kind of cluster is that ?
saki has quit [Remote host closed the connection]
<jack_rabbit> fe[nl]ix, sdf.org
<fe[nl]ix> what is it exactly ?
attila_lendvai has quit [Read error: Connection reset by peer]
<fe[nl]ix> nydel: I have a Debian repository with up-to-date libfixposix
<fe[nl]ix> the one in the official Debian repository was uploaded in 2011 and never updated
attila_lendvai has joined #lisp
attila_lendvai has joined #lisp
attila_lendvai has quit [Changing host]
smurfrobot has joined #lisp
smurfrobot has quit [Remote host closed the connection]
smurfrobot has joined #lisp
ebzzry_ has joined #lisp
nowhereman_ has quit [Ping timeout: 252 seconds]
nowhere_man has joined #lisp
scymtym has quit [Ping timeout: 256 seconds]
trn has quit [Read error: Connection reset by peer]
klltkr has joined #lisp
hhdave has joined #lisp
fikka has joined #lisp
EvW has joined #lisp
EvW has quit [Client Quit]
smurfrobot has quit [Remote host closed the connection]
<jack_rabbit> fe[nl]ix, It's a public-access unix cluster. You can check out the website.
klltkr has quit [Ping timeout: 268 seconds]
<jack_rabbit> Pretty neat. Good community.
<jack_rabbit> fe[nl]ix, http://sdf.org/?faq?BASICS?01
willmichael has quit [Ping timeout: 252 seconds]
EvW has joined #lisp
trn has joined #lisp
shka_ has joined #lisp
<shka_> hi all
smurfrobot has joined #lisp
<shka_> is there standard or de facto standard function for comparing floating point numbers?
<beach> Yes.
<beach> clhs =
<beach> clhs <
<pjb> There are 6 of them.
saki has joined #lisp
<pjb> We get really strange questions…
<shka_> beach: epsilon comparsion
quazimodo has quit [Ping timeout: 240 seconds]
<shka_> obviously
attila_lendvai has quit [Read error: Connection reset by peer]
<shka_> i assume that this means: NO
<_death> correct
<pjb> shka_: notice however decode-float
<pjb> clhs decode-float
<pjb> et al.
<shka_> pjb: didn't think about that!
attila_lendvai has joined #lisp
attila_lendvai has quit [Changing host]
attila_lendvai has joined #lisp
<beach> shka_: Instead of (= a b) you can do (< (abs (- a b)) epsilon)
willmichael has joined #lisp
<shka_> i know that, it would be silly though if I was doing this while alexandria already has function for that
<shka_> anyway, thanks for assistance!
<pjb> the only problem is that you want epsilon to depend on the magnitudes of a and b.
<shka_> pjb: true, but i just need to compare floats in unit test, so I will just that since i know precision beforehand
<shka_> anyway, thanks all, have a good day!
willmichael has quit [Ping timeout: 264 seconds]
oleo has joined #lisp
willmichael has joined #lisp
smurfrobot has quit [Remote host closed the connection]
<fe[nl]ix> jack_rabbit: that site really doesn't make it obvious the OS os NetBSD :D
attila_lendvai has quit [Read error: Connection reset by peer]
<jack_rabbit> fe[nl]ix, what do you mean?
attila_lendvai has joined #lisp
<fe[nl]ix> that main page should say that the OS they're offering is NetBSD
scymtym has joined #lisp
<fe[nl]ix> I had to go down several pages until I found a cursory mention of it
fikka has quit [Ping timeout: 268 seconds]
smurfrobot has joined #lisp
<dim> SBCL through buildapp gives me Fatal SIMPLE-ERROR: Compilation failed: PGLOADER.COPY also uses the following packages: (PGLOADER.PGSQL) ; CCL says nothing about it, and SBCL in SLIME loads pgloader just fine
<dim> I'm all little lost here
<phoe> dim: this errors happen when you redefine the PGLOADER.COPY package.
smurfrobot has quit [Ping timeout: 240 seconds]
scymtym_ has joined #lisp
<phoe> In the new definition, you do not use the PGLOADER.SQL package, but it was used in the previous definition.
hhdave has quit [Quit: hhdave]
damke has quit [Ping timeout: 264 seconds]
<phoe> Search for duplicate DEFPACKAGE PGLOADER.COPY in your code.
<phoe> You probably do *not* want duplicate package definitions, anyway.
<dim> yeah, thanks, having a look
<dim> oh shit, got it.
damke has joined #lisp
<phoe> what was it?
<dim> I have a source type that's named after the PostgreSQL COPY format, and also a CL implementation of the COPY protocol with error handling
<dim> both in a separate package, in theory / in my mind
<dim> but both packages are named pgloader.copy
<dim> oops?
<phoe> yes, oops.
<phoe> that's a package name conflict.
<phoe> (:
<dim> naming, off by ones, etc
scymtym has quit [Ping timeout: 252 seconds]
<dim> at least sbcl saw it
<phoe> dim: you would also see it
<phoe> if you loaded the packages in a proper order or something.
<dim> https://github.com/dimitri/pgloader/blob/master/src/package.lisp --- improvements ideas welcome of course
<phoe> lines 508 and 583 are obviously clashing
<phoe> try compiling this file twice in a row.
<papachan> in lisp, what this means? (modulus (! (1- (length seq)))
<phoe> papachan: I have no idea what ! is.
<papachan> i have never seen this ! before
<phoe> papachan: where have you found it?
<Shinmera> probably factorial
<Shinmera> no idea what modulus is supposed to do though
<phoe> ! is not standard Common Lisp, definitely.
<phoe> neither is MODULUS.
<papachan> ah i found where is coming from
cpt_nemo has quit [Remote host closed the connection]
FreeBirdLjj has joined #lisp
<papachan> Shinmera: yeah it compute a factorial
cpt_nemo has joined #lisp
uuplusu has quit [Read error: Connection reset by peer]
uuplusu_ has joined #lisp
uuplusu has joined #lisp
<borodust> hmm, i generally should be able to load systems via asdf while being in other packages rather than :cl-user, right?
uuplusu_ has quit [Ping timeout: 256 seconds]
<beach> Sure.
<borodust> on sbcl 1.4.0 i'm getting rather weird behavior: if i'm in package that doesn't import anything (not even :cl), asdf fails to load some files that contains macros and at the top of the file i use 'in-package
<borodust> when i change 'in-package to 'cl:in-package (fully qualified symbol name) it works correctly
<beach> Of course.
<beach> If you don't :USE the COMMON-LISP package, it won't find the symbol IN-PACKAGE.
<borodust> so, generally, speaking, i always should use cl:in-package rather than in-package, correct?
<beach> I always do that myself.
Bike has joined #lisp
<beach> So, yes, I recommend it.
<borodust> i thought asdf handles that case so we don't need to use fully qualified names :/
<beach> ASDF just calls COMPILE.
<beach> er, COMPILE-FILE.
<pjb> papachan: in lisp you can interpret a form, only knowing whether the symbols are macros or functions!
<Shinmera> beach: If only that were all it did.
<beach> Heh.
<pjb> papachan: if all your first symbols are fbound to functions, then (modulus (! (1- (length seq)))) means call the function LENGTH in the value of the variable SEQ, then call the function 1- on the result, then call the function ! on the result, then call the function modulus on the result.
<pjb> papachan: but if one of those symbols is bound to a macro, then we can only interpret the subexpressions depending on the macros!
<borodust> shit... i only have this word for that situation D:
<papachan> pjb: thank you for your explanation. very welcome !
<borodust> but alright, i guess i'll just prefix all first 'in-package in sources :/
<pjb> papachan: now, what function is called depend, and can be mostly determined only at run-time.
<pjb> papachan: if length is CL:LENGTH, then it's the length function defined in the hyperspec.
<pjb> papachan: same for 1-.
<papachan> exactly
<pjb> papachan: otherwise, if a function with the same name is defined in the same compilation unit (basically the same file), then it can be this exact same function. (perhaps even inlined).
<pjb> papachan: otherwise, it can be any function fbound at run-time.
<pjb> for functions in the same compilation unit, it is assuming it is not declaimed notinline. If declaimed notinline, then it's determined at run-time.
parjanya has quit [Ping timeout: 256 seconds]
fikka has joined #lisp
Nouv has joined #lisp
FreeBirdLjj has quit [Remote host closed the connection]
knicklux has joined #lisp
<rme> o/
<beach> Hello rme. Are you in Bordeaux now?
<rme> Yes, I am.
<phoe> Uh oh. Common Lisp meeting in Bordeaux in 3... 2... 1...
<rme> it could happen!
<beach> I'll be available starting Tuesday.
fluxit has quit [Quit: ...]
<dim> hehe, I was supposed to spend some days in the Bordeaux area this week… it's a 3h ride train away…
willmichael has quit [Ping timeout: 256 seconds]
<rme> come on down!
willmichael has joined #lisp
<dim> well, how long are you staying there?
<beach> rme: Are you here by yourself?
<rme> I'm leaving on March the 6th.
<rme> beach: yes, just by myself.
uuplusu_ has joined #lisp
dddddd has joined #lisp
<beach> rme: My favorite coauthor is very likely coming to my house for lunch on Wednesday. Would you care to join us?
<rme> Thank you; I would love to.
attila_lendvai has quit [Read error: Connection reset by peer]
<beach> Great!
<beach> How do you get around?
Arcaelyx has joined #lisp
attila_lendvai has joined #lisp
<rme> I have a tram/bus pass.
<beach> OK.
<beach> I'll give you directions by email maybe?
<beach> Where are you staying?
<beach> Hmm, maybe you told me.
<beach> Near the train station?
<rme> I think I still have your address from last time. I'm by the train station.
uuplusu has quit [Ping timeout: 256 seconds]
<beach> OK. We'll figure it out. There is still time.
pagnol has quit [Ping timeout: 264 seconds]
<beach> We typically eat soon after 12, but you can come early if you would like to hang out.
AX31_A13X has joined #lisp
<rme> Great. I'll see you there at noon or a bit before. Thanks again.
<beach> Sure. See you.
fikka has quit [Ping timeout: 240 seconds]
nullman` has joined #lisp
nullman has quit [Ping timeout: 264 seconds]
AxelAlex has quit [Ping timeout: 264 seconds]
hvxgr has joined #lisp
Nouv has quit [Remote host closed the connection]
flak has joined #lisp
Nouv has joined #lisp
arbv_ has joined #lisp
djinni`_ has joined #lisp
d4ryus2 has joined #lisp
angelo|2 has joined #lisp
attila_lendvai1 has joined #lisp
omilu_ has joined #lisp
attila_lendvai has quit [Disconnected by services]
attila_lendvai1 has joined #lisp
attila_lendvai1 has quit [Changing host]
Tordek_ has joined #lisp
damke_ has joined #lisp
papachan_ has joined #lisp
Patternm1ster has joined #lisp
attila_lendvai1 has quit [Read error: Connection reset by peer]
``Erik_ has joined #lisp
chiyosaki has joined #lisp
MochaLoca has joined #lisp
hvxgr_ has quit [Ping timeout: 264 seconds]
saki has quit [Ping timeout: 264 seconds]
arbv has quit [Ping timeout: 264 seconds]
djinni` has quit [Ping timeout: 264 seconds]
arbv_ is now known as arbv
Patternmaster has quit [Ping timeout: 264 seconds]
antismap has quit [Ping timeout: 264 seconds]
omilu has quit [Ping timeout: 264 seconds]
BitPuffin has quit [Ping timeout: 264 seconds]
schoppenhauer has quit [Ping timeout: 264 seconds]
d4ryus1 has quit [Ping timeout: 264 seconds]
angelo has quit [Ping timeout: 264 seconds]
Murii has quit [Ping timeout: 264 seconds]
troydm1 has joined #lisp
lansiir has joined #lisp
rippa has quit [Ping timeout: 264 seconds]
damke has quit [Ping timeout: 264 seconds]
LocaMocha has quit [Ping timeout: 264 seconds]
SamSkulls has quit [Ping timeout: 264 seconds]
troydm has quit [Ping timeout: 264 seconds]
Karl_Dscc has quit [Ping timeout: 264 seconds]
oldtopman has quit [Ping timeout: 264 seconds]
papachan has quit [Ping timeout: 264 seconds]
Tordek has quit [Ping timeout: 264 seconds]
``Erik has quit [Ping timeout: 264 seconds]
lansiir has joined #lisp
lansiir has quit [Changing host]
Murii has joined #lisp
antismap has joined #lisp
attila_lendvai has joined #lisp
attila_lendvai has quit [Changing host]
attila_lendvai has joined #lisp
EvW has quit [Ping timeout: 240 seconds]
fikka has joined #lisp
jmercouris has joined #lisp
attila_lendvai has quit [Read error: Connection reset by peer]
attila_lendvai has joined #lisp
dmiles has quit [Ping timeout: 256 seconds]
schoppenhauer has joined #lisp
<papachan_> I just wish i would be at Bordeaux today to attend CL Meeting :p
<papachan_> i hope there will be a lot of cool people there
<rme> I'm not that cool, so that's one down.
edgar-rft has joined #lisp
<beach> Same here.
<beach> My favorite coauthor is not that cool either.
<beach> papachan_: I think you'll have to wait until ELS.
<papachan_> beach: but ELS its at spain?
<beach> It is in Marbella in Spain, yes. But there will be lots more and lots cooler people there.
<papachan_> so you will be there? in may?
<beach> If so, I would have missed ELS. :)
<beach> ELS is mid April.
<beach> But yeah, I have tickets and hotel reservations.
attila_lendvai has quit [Read error: Connection reset by peer]
<papachan_> :) great
<papachan_> have to go see you later ...
papachan_ has quit [Quit: WeeChat 2.0.1]
dmiles has joined #lisp
<flip214> phoe: again, this SETF depends on the value *package* when it is called, not _where_ it is called from.
<flip214> during runtime *package* won't tell you which function/package/system/library etc. the caller comes from.
<flip214> you could use TRIVIAL-BACKTRACE and look at the package of the function symbol in the parent frame, though.
edgar-rft has left #lisp ["Leaving"]
edgar-rft has joined #lisp
edgar--rft has joined #lisp
edgar--rft has quit [Client Quit]
edgar-rft has quit [Client Quit]
edgar-rft has joined #lisp
<phoe> flip214: again, I wasn't serious at all. (:
<flip214> yeah, I understood that.
<jmercouris> I read that "set" might be deprecated
<jmercouris> in that case, is there community favor to replace setf with the set keyword
<jmercouris> or would that just cause confusion?
<Shinmera> what?
<jmercouris> maybe the post I read was wrong
<flip214> hmmm, T-B even provides local variables.... cool
<beach> jmercouris: You can't change the standard.
edgar-rft has quit [Client Quit]
<Shinmera> flip214: trivial-backtrace only provides a string though. Better use dissect.
<phoe> jmercouris: it wouldn't be Common Lisp then.
<jmercouris> beach: The standard will never ever change in the future?
edgar-rft has joined #lisp
<flip214> clhs set
<phoe> jmercouris: it might.
<Shinmera> It's incredibly unlikely that it ever will.
<flip214> set symbol value => value
<rme> set does a special thing.
<phoe> As long as a) someone writes a new standard, b) it gains enough popularity and adoption.
<flip214> set changes the contents of the value cell of symbol to the given value.
<jmercouris> so is common lisp tied to a standard?
<phoe> And a) is trivial compared to b).
<jmercouris> that is
<jmercouris> if we were to release a new standard, we could not call it common lisp?
<phoe> jmercouris: Common Lisp *is* a standard.
<flip214> jmercouris: you could ask CL21 to use CL21:SET.
<rme> some suggest always using setf and never setq. maybe that is what you are thinking of.
<phoe> A standard called ANSI Common Lisp.
<jmercouris> ANSI C has changed with time, right?
<phoe> jmercouris: yep, there were several revisions of the standard.
<jmercouris> So why might ANSI common lisp not change with time?
<Shinmera> Because of the money
<phoe> No one cares enough to do it.
<phoe> No one has the money to spend on it.
<phoe> No one has the time to organize it.
<jmercouris> ok so it is purely a money problem
<Shinmera> And even if so, no one cares to implement it
<phoe> ^
<beach> jmercouris: Money and time.
<phoe> And people and will.
<jmercouris> Right
<jmercouris> ok
<phoe> The existing standard is simply good enough for a lot of Lispers.
<Shinmera> CL happened because several big players decided they /wanted/ to collaborate and implement a common lisp
<jmercouris> Are Common Lisp companies today relatively more poor, or more wealthy than in the past?
<phoe> The language defined by it is extensible enough to not need new standards. Usually new standards happen when some new syntax is needed.
<jmercouris> I'm leaning towards more poor since it seems there would not be momentum or money to redefine the standard
<phoe> In Lisp, syntax changes are a part of the language.
<phoe> jmercouris: Or they just don't want to, since CL is good enough for them.
<jmercouris> phoe: Yeah, definitely, I remember the first time I asked about this beach explained it so
<phoe> "good enough" being the key here.
<phoe> Previously, you had several major Lisps, and they were incompatible with each other.
<phoe> So there was need for a Lisp that was Common.
<jmercouris> and now we have lots of lisp packages that are incompatible with different implementations :D
<jmercouris> is this becuase of edge cases, or incomplete implementations, or because of implementation specific features?
<phoe> that's the problem of packages and not the standard
<phoe> implementation-defined features, most often.
<phoe> not all implementations have atomic compare-and-swaps for example.
<phoe> which are required for lockless concurrency.
<jmercouris> so basically, the standard should probably be expanded, but it is too expensive to do so?
<phoe> s/concurrency/parallelism/
<phoe> jmercouris: more or less, with a wide meaning of "expensive".
<Shinmera> Why do we gotta have this damn conversation every fucking month
<phoe> Shinmera: people come and go, and all people who encounter Lisp have two questions, eventually
<phoe> 1) why the syntax is so fucking weird
<phoe> 2) why the standard was not updated since 1994
<Shinmera> I for one never asked this question
<Shinmera> Neither of them actually
<jmercouris> perhaps you read about it
<phoe> well, s/everyone/everyone enough/
<jmercouris> before you had a chance to ask it
<Shinmera> More people could, too.
<Shinmera> It's been done to death and beyond.
<jmercouris> if you are annoyed by the repetitiveness of questions, why not make an extension to your chatbot that persists this conversation and reproduces it when it gets brought up again
<Shinmera> Because it wouldn't help.
<jmercouris> IRC is a place for discussion, not documentation
<jmercouris> I think you are mistaken
<jmercouris> it is a "CHAT RELAY" not "ARCHIVE RELAY"
<Shinmera> Look man I've done this dance. People aren't happy with the answers we give them. It always devolves into an endless, tedious argument about nothing that wastes everyone's time.
<Shinmera> An automated answer would not help.
<jmercouris> Now you are actually changing your argument though
<jmercouris> I did accept the answer, and I understood it
<phoe> someone write a blog post related to 2) that describes everything that could be described
<jmercouris> phoe: what do you mean?
<fe[nl]ix> nydel: you can use this script to setup the libfixposix repository and install it: https://github.com/sionescu/iolib/blob/master/install-repo.bash
<jmercouris> Ah, your earler point above
<loke> Could anyone try to git clone maxima from this addres for me? It hangs when I try and I want to know if it's just me:
nowhereman_ has joined #lisp
<easye> loke: sf.net was "upgrading servers" in the past couple days from what I ambiently inferred.
<loke> easye: Yeah. I couldn't reach the main web page yesterday
<loke> It cam eback up now, so what's why I'm trying to sync
<easye> I can't resolve sf.net from common-lisp.net (Amsterdam, NL)
<loke> I see
<loke> maxima.sf.net resolves though
nowhere_man has quit [Ping timeout: 240 seconds]
<easye> err, I can resolve, not your respository. https connection fails.
<loke> Ah yes
<loke> So same problem as me
<easye> So, confirmed.
<easye> Sorry.
<loke> sf is really not very good
<easye> Not this decade, anyways.
<loke> yeah
<loke> I still have one project there.
<loke> I should really move it out
<loke> I haven't committed anything to it since the lates 90's though :-)
<easye> I usually stash things on two repos (github.com and bitbucket.org these days)
* easye still updates the MacPorts math/maxima/Portfile every time he updates lang/sbcl
<easye> So, something is still working.
<loke> I consider my workstations (usually 3 differnt machines) to be my backups, so I only use a single remote repository (usually github, but also a personal server as well as Keybase)
<loke> easye: What's the url you're using?
<easye> loke: what you posted <https://git.code.sf.net/p/maxima/code>
<loke> ah I see
<easye> <https://git.code.sf.net/p/maxima/code> --> 2018-02-24 15:03:32 ERROR 404: Not Found.
uuplusu_ has quit [Remote host closed the connection]
damke has joined #lisp
damke_ has quit [Ping timeout: 260 seconds]
edgar-rft has quit [Quit: Don't Cry for Me, Argentina...]
heurist__ has joined #lisp
heurist`_` has quit [Ping timeout: 248 seconds]
comborico1611 has joined #lisp
asarch has joined #lisp
raynold has quit [Quit: Connection closed for inactivity]
Chream_ has quit [Ping timeout: 252 seconds]
Chream_ has joined #lisp
<borodust> lets say i have a macro that generates some defstruct
<borodust> is there a way to force all those symbols generated to be in a certain package? is switching in and out of a package with in-package the only solution?
<Bike> defstruct makes symbols based on the value of *package* when the defstruct is expanded
<borodust> those symbols generated by :include are most pesky ones
<Bike> so basically, yes
<Bike> :include generates symbols?
<borodust> yup, when you include it takes all parent slots and generates accessors for them :|
mareskeg has joined #lisp
patrixl has quit [Ping timeout: 252 seconds]
<Bike> oh, that. right.
<borodust> those the only symbols i don't have control over, basically
Chream_ has quit [Read error: Connection reset by peer]
<Shinmera> You can copy the fdefinition over to your preferred symbol and fmakunbound the old ones.
<borodust> yeah, although now i need to know all parents and their slots
<borodust> doable, but sounds a bit mundane :/
<Bike> mundane is okay
<Bike> welcome to defstruct, though. it's not a great interface
Chream_ has joined #lisp
comborico1611 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
pagnol has joined #lisp
learning has quit [Remote host closed the connection]
learning has joined #lisp
random-nick has joined #lisp
pagnol has quit [Ping timeout: 240 seconds]
pagnol has joined #lisp
heurist has joined #lisp
heurist__ has quit [Ping timeout: 256 seconds]
attila_lendvai has joined #lisp
attila_lendvai has joined #lisp
attila_lendvai has quit [Changing host]
Arcaelyx_ has joined #lisp
dieggsy has joined #lisp
Arcaelyx has quit [Ping timeout: 252 seconds]
mareskeg has quit [Quit: mareskeg]
dtornabene has joined #lisp
chiyosaki has quit [Ping timeout: 268 seconds]
<pjb> borodust: you're a filthy liar! https://codeshare.io/GqQ7Jz
<borodust> pjb: am i D:
<borodust> pjb: not sure what example shows me
<pjb> It shows you that you perfectly control where defstruct makes symbols, based on the value of *package*, including the :include generated symbols, as Bike said.
<pjb> So you have control over them.
<borodust> that's what i asked :) if in-package is the only solution or not
<borodust> but generating in-package form in the macro is quite bad
<pjb> And won't work.
Chream_ has quit [Read error: Connection reset by peer]
<borodust> all the more :)
Chream_ has joined #lisp
fourier has joined #lisp
Chream_2 has joined #lisp
<pjb> borodust: if you fine control on the symbols, use defclass.
<pjb> +want
Blkt has quit [Remote host closed the connection]
fe[nl]ix has quit [Read error: Connection reset by peer]
Blkt has joined #lisp
<borodust> pjb: i'm working on a legacy software
fe[nl]ix has joined #lisp
<borodust> turning everything into class is possible, but i prefere less radical ways if possible :)
<borodust> if you are interested, here's the form in question: https://github.com/rpav/cl-autowrap/blob/master/autowrap/sffi.lisp#L1015-L1022
<borodust> but i guess i'll probably just go with classes there
Chream_ has quit [Ping timeout: 260 seconds]
jmercouris has quit [Ping timeout: 240 seconds]
<borodust> at the moment it pollutes (internally) whatever package it was loaded from
<borodust> while not crucial it bothers me a bit
fikka has quit [Ping timeout: 252 seconds]
shifty has quit [Ping timeout: 240 seconds]
Chream_ has joined #lisp
Chream_2 has quit [Read error: Connection reset by peer]
pagnol has quit [Ping timeout: 240 seconds]
Chream_2 has joined #lisp
Chream_ has quit [Read error: Connection reset by peer]
hel-io has joined #lisp
FreeBirdLjj has joined #lisp
FreeBirdLjj has quit [Ping timeout: 248 seconds]
<borodust> oh, heh, adding in-package form helped (not gonna use this approach anyway, just an experiment)
FreeBirdLjj has joined #lisp
wigust has joined #lisp
rumbler31 has joined #lisp
random-nick has quit [Remote host closed the connection]
jmercouris has joined #lisp
FreeBirdLjj has quit [Ping timeout: 240 seconds]
<borodust> actually, i would, but that would be inserted and inverted in the different place, sorry ;p
saki has joined #lisp
random-nick has joined #lisp
fikka has joined #lisp
nowhere_man has joined #lisp
Oladon has joined #lisp
<Nouv> Is there a specific guide I should use to learn sbcl lisp or is it just common lisp?
FreeBirdLjj has joined #lisp
<loke> Nouv: All CL's are pretty much the same in terms of what they support. They all implement the same satndard.
<Nouv> okay, thank you :)
nowhereman_ has quit [Ping timeout: 252 seconds]
heurist` has joined #lisp
FreeBirdLjj has quit [Ping timeout: 240 seconds]
heurist has quit [Ping timeout: 248 seconds]
oleo has quit [Ping timeout: 252 seconds]
<fourier> Nouv: there are some differences between implementation - compilation time, included features/additional APIs which are not in standard etc; sbcl though looks the most popular implementation nowadays
<Nouv> Is there anywhere I can see all of the functions I can use?
<whoman> how do you learn stuff.. ?
<whoman> like how did you learn irc or computers
oleo has joined #lisp
<Nouv> I don't know what to search for though, like common lisp api doesn't show anything relevant, sbcl documentation shows me mostly differences between sbcl and the standard
Chream_ has joined #lisp
<phoe> Nouv: Practical Common Lisp is a good book of choice.
<phoe> ...for learning CL, that is.
<phoe> If you open CLHS, there are dictionary pages that list all symbols relevant to that dictionary's topic.
<phoe> Such as http://clhs.lisp.se/Body/c_arrays.htm <- all symbols related to arrays.
<whoman> Nouv: true.. what about 'common lisp tutorials'? i found that gigamonkeys helped me the most.
<Nouv> Ahh CLHS looks like what I'm looking for, thank you phoe
<whoman> oh! thatls practical common lisp =) http://gigamonkeys.com/book/
<whoman> emacs and slime has good ways of inspecting stuff as well, if you use those
<whoman> for eg. it does CLHS lookup
Chream_2 has quit [Ping timeout: 256 seconds]
jstypo has quit [Read error: Connection reset by peer]
FreeBirdLjj has joined #lisp
<fourier> alternatively you can use LispWorks Personal IDE, its free with limitations
saki has quit [Ping timeout: 245 seconds]
FreeBirdLjj has quit [Ping timeout: 260 seconds]
gko_ has quit [Quit: ZNC - http://znc.in]
damke_ has joined #lisp
jsn` has joined #lisp
gko has joined #lisp
damke has quit [Ping timeout: 260 seconds]
FreeBirdLjj has joined #lisp
<rumbler31> Nouv: when you are in your repl, (apropos "thing") will show you all symbols, functions, and things with that name
<rumbler31> so if you want to explore a library or your own code, you can discover what has been loaded into the image
lnostdal has joined #lisp
jstypo has joined #lisp
axg has joined #lisp
FreeBirdLjj has quit [Ping timeout: 240 seconds]
edgar-rft has joined #lisp
attila_lendvai has quit [Quit: Leaving.]
FreeBirdLjj has joined #lisp
jmercouris has quit [Ping timeout: 252 seconds]
FreeBirdLjj has quit [Ping timeout: 245 seconds]
milanj has joined #lisp
Chream_2 has joined #lisp
Chream_ has quit [Read error: Connection reset by peer]
<koisoke> olette->oletteko ehk
<koisoke> sorry wrong window
willmichael has quit [Ping timeout: 256 seconds]
smurfrobot has joined #lisp
willmichael has joined #lisp
hel-io has quit [Ping timeout: 256 seconds]
smurfrobot has quit [Ping timeout: 240 seconds]
hel-io has joined #lisp
smurfrobot has joined #lisp
smurfrobot has quit [Remote host closed the connection]
Chream_2 has quit [Ping timeout: 245 seconds]
jmercouris has joined #lisp
<jmercouris> I got Lisp and Objective C to talk over over sockets! Yay!
saki has joined #lisp
edgar-rft has quit [Quit: Don't Cry for Me, Argentina...]
FreeBirdLjj has joined #lisp
deba5e12 has quit [Quit: WeeChat 1.9.1]
deba5e12 has joined #lisp
smasta has joined #lisp
mlf has joined #lisp
FreeBirdLjj has quit [Ping timeout: 248 seconds]
scymtym_ has quit [Ping timeout: 252 seconds]
FreeBirdLjj has joined #lisp
q-u-a-n1 has joined #lisp
FreeBirdLjj has quit [Ping timeout: 245 seconds]
nika has quit [Quit: Leaving...]
stacksmith has joined #lisp
lnostdal has quit [Remote host closed the connection]
random-nick has quit [Remote host closed the connection]
willmichael has quit [Read error: Connection reset by peer]
jmercouris has quit [Ping timeout: 240 seconds]
Fare has joined #lisp
willmichael has joined #lisp
learning has quit [Remote host closed the connection]
smasta has quit [Ping timeout: 260 seconds]
Xal has quit [Ping timeout: 256 seconds]
<Xach> Shinmera: your export of FORMATTER causes clashes in cepl, because it has (:use :cl :documentation-utils) and there's a clash with formatter. Do you feel like this is something to fix on the cepl side?
<whoman> jme
<whoman> where did he go!
<Shinmera> Xach: Arguably it was never meant for :use-ing, but I can see either way.
<Shinmera> I'll talk to Baggers when he shows up next.
FreeBirdLjj has joined #lisp
Xal has joined #lisp
random-nick has joined #lisp
FreeBirdLjj has quit [Ping timeout: 248 seconds]
smasta has joined #lisp
learning has joined #lisp
dtornabene has quit [Quit: Leaving]
fourier has quit [Ping timeout: 248 seconds]
FreeBirdLjj has joined #lisp
Karl_Dscc has joined #lisp
funnel has quit [Ping timeout: 256 seconds]
terpri has quit [Ping timeout: 256 seconds]
damke has joined #lisp
funnel has joined #lisp
FreeBirdLjj has quit [Ping timeout: 240 seconds]
damke_ has quit [Ping timeout: 264 seconds]
raynold has joined #lisp
saki has quit [Ping timeout: 252 seconds]
FreeBirdLjj has joined #lisp
saki has joined #lisp
<stylewarning> i've been meaning to get to that but this ELS paper is sucking up all my time
FreeBirdLjj has quit [Ping timeout: 248 seconds]
<Xach> ok
<whoman> who is com-informatigo ?
<Shinmera> pjb
jmarciano has joined #lisp
<whoman> ah thought so but wasnt sure , thanks =)
knicklux has quit [Ping timeout: 252 seconds]
learning has quit [Remote host closed the connection]
learning has joined #lisp
Nouv has quit [Remote host closed the connection]
FreeBirdLjj has joined #lisp
EvW has joined #lisp
fikka has quit [Ping timeout: 245 seconds]
erikc has joined #lisp
FreeBirdLjj has quit [Ping timeout: 245 seconds]
AX31_A13X has quit [Quit: AX31_A13X]
fourier has joined #lisp
knicklux has joined #lisp
<Xach> Hmm
<Xach> i wonder if it would be advisable to have poison pill symbols exported from packages not meant to be inherited
<phoe> poison pill symbols?
<phoe> such as foo:+dont-use-this-package+ ?
<Xach> no, like foo:car foo:cdr or similar. something likely to clash by default.
<Bike> if you shadow it you can't write in that package without a redefinition tho. better pick something more useless... /// say
<Xach> the three slashes of no inheritance
fourier has quit [Ping timeout: 260 seconds]
<stacksmith> Greetings. Is there a clever idiom for not expanding a symbol if its value is null inside a quasiquote, but skipping it altogether? Or do I need to abandon quasiquote and build a list by hand?
<Bike> ,@(when whatever (list whatever))
<stacksmith> That does not leave a null?
<Bike> nah
<Bike> it splices
FreeBirdLjj has joined #lisp
<stacksmith> Great. Thanks Bike:.
<Bike> `(a ,@(when whatever (list whatever)) b) = (append '(a) (when whatever (list whatever)) '(b))
<phoe> stacksmith: the variant of this idiom that I use is generally ,@(when foo `(,foo))
<phoe> inside a backquote, if foo is null, it will disappear; otherwise, it'll be spliced into the list.
<phoe> you can add your own conditionals by replacing FOO with (BAR-P FOO) for any BAR-P of your liking.
<stacksmith> phoe: very helpful, thanks.
<whoman> i hear that Dylan is also multiple-dispatch
FreeBirdLjj has quit [Ping timeout: 245 seconds]
Fare has quit [Ping timeout: 260 seconds]
krwq has joined #lisp
disumu has joined #lisp
<drmeister> What latex fonts/emphasis are acceptable for software names like SLIME, Clasp, SBCL, Jupyter for ELS submissions?
<phoe> drmeister: I never saw them emphasized in the submissions that I saw.
<phoe> I only was advised by beach to annotate them with hyperlinks to websites that annotate these softwares.
<phoe> Like, SBCL[1], and on the bottom, [1] https://sbcl.org
<phoe> And this only for the first occurrence of each.
Yemeni-Dark has joined #lisp
FreeBirdLjj has joined #lisp
Vicfred has joined #lisp
fikka has joined #lisp
omilu_ has quit [Remote host closed the connection]
<phoe> Yemeni-Dark: wtf?
<phoe> this is not related to Lisp in the slightest.
<aeth> Every channel should have a YouTube title bot.
<aeth> It's otherwise impossible to tell the content of a YouTube link before clicking, which is a huge problem.
scymtym has joined #lisp
<whoman> phoe your red flag should go up when someone unfamiliar joins and instantly posts a youtube link
<phoe> whoman: it did.
<Yemeni-Dark> sorry
<pjb> whoman: /whois pjb
<whoman> unbeknownst to others, hence my response.
<pjb> Right, freenode doesn't show the email :-(
<pjb> mailto:pjb@informatimago.com
FreeBirdLjj has quit [Ping timeout: 248 seconds]
fikka has quit [Ping timeout: 252 seconds]
<whoman> pjb: thanks =) its not really i thing i would do, to /whois everyone
<pjb> Internet pre-web was the golden period of the Internet.
<whoman> pjb: just wanted to ask, whats your most 'proud' code on your repo? i want to browse and be inspired, vicariously
smurfrobot has joined #lisp
<aeth> pjb: Internet pre-Facebook was the golden period of the Internet
<whoman> aeth: oh so was the time of plato, aristotle, ... wearing togas and chiseling some pillars
<pjb> whoman: well, there are several parts. It would depend on what you're looking for. You may have a look at the cl-stepper.
<phoe> aeth: Internet pre-neural network interface was the golden period of the Internet
* phoe shushes
<whoman> pjb: just some nice heavy duty solid lisp code
<pjb> Yeah, when you start receiving advertisements in your dreams, it really deteriorates from then.
<pjb> All my lisp code is heavy dury :-)
<pjb> duty
<whoman> pjb: ok, cool =)
<whoman> heh. duty
<pjb> have also a look at com.informatimago.clext.pipe
<whoman> heh i was at queueueue, close ~
<pfdietz> They differ in stuff that isn't in the standard, though.
<pfdietz> Wait, I needed to scroll this window.
smurfrobot has quit [Ping timeout: 240 seconds]
<whoman> hm whats all this code for anyway, pjb is it just libs of all your stuff for things ?
<pjb> Yes, it's all library.
fikka has joined #lisp
<pjb> You have small programs in com.informatimago.small-cl-pgms.*
<whoman> i was asking umm is this your util libs. i know its all library
<pjb> Yes, it is.
<whoman> because of namespace com.informatimago.*
<whoman> okay =)
<whoman> theres a lot of stuff in here. c++ parser , pipes, ...
<whoman> i dont know what to think right now. got to meditate
q-u-a-n1 has quit [Remote host closed the connection]
fikka has quit [Ping timeout: 245 seconds]
edgar-rft has joined #lisp
scymtym has quit [Remote host closed the connection]
scymtym has joined #lisp
<aeth> Heavy duty? Meanwhile, I don't even have a presentable file in my code. I'll have nice, clean code for the first 1/3 or 1/2 and then messy ugly hacks written years ago in the bottom half.
FreeBirdLjj has joined #lisp
dieggsy has quit [Remote host closed the connection]
fikka has joined #lisp
comborico1611 has joined #lisp
edgar-rft has quit [Remote host closed the connection]
edgar-rft has joined #lisp
stacksmith has quit [Ping timeout: 252 seconds]
FreeBirdLjj has quit [Ping timeout: 245 seconds]
asarch has quit [Quit: Leaving]
<whoman> first ? bottom half.. ?
asarch has joined #lisp
fikka has quit [Ping timeout: 256 seconds]
EvW has quit [Ping timeout: 252 seconds]
<comborico1611> Is a property list considered a hash table? If not, what feature is it missing to make it so?
orivej has joined #lisp
<Bike> hashing
<comborico1611> I suppose I never got that far into hashes, then. I was only aware of the keyword-value relationship, not anything other than that. Thank you.
<aeth> whoman: ((foo = 1/3) or (foo = 1/2)) and ((1 - foo) = 1/2) => (foo = 1/2); no logical contradiction.
<phoe> comborico1611: no, it is not.
<phoe> a plist is a list, a hash-table is a hash-table.
<phoe> they are of different types.
<phoe> and have different underlying mechanics.
random-nick has quit [Ping timeout: 260 seconds]
khisanth_ has quit [Ping timeout: 260 seconds]
<_death> both are associative data structures
<aeth> There are three things that roughly do the same thing. plist, alist, and hash-table. plists and alists are very similar (just different ways of handling the same concept in a list form), but hash-tables are a proper data structure of their own, not made up of conses like the list-based ones.
<aeth> And, yeah, the concept is "associative data structure"
<comborico1611> Very good. Thank you.
<Shinmera> aeth: Colleen can do title lookup for URLs automatically, but I don't know if this channel would like that.
<_death> doubt it's a good idea.. many of the links are clhs links where the title is also provided
<_death> or pastes, and who cares about titles there
<aeth> alists are ((key-1 . value-1) (key-2 . value-2) ...) and plists are (:key-1 value-1 :key-2 value-2 ...) and hash tables use some unknown, implementation-specific data format that is probably more efficient for large number of items. How large that number of items is varies. It could be 5 or so. It could be dozens. It depends on the implementation.
<whoman> aeth: ah ok =)
<aeth> It might also depend on the access pattern. Maybe alists or plists will always be more efficient than hash-tables' maphash if you're just iterating over them. You'd have to benchmark.
dessm has joined #lisp
<aeth> Shinmera: I agree with _death. Although it could still be useful just for places with ambiguous URLs like YouTube. There are lots of on-topic Lisp videos on YouTube that I wouldn't click on because I simply don't know what that video is.
jmarciano has quit [Read error: Connection reset by peer]
jmarciano has joined #lisp
khisanth_ has joined #lisp
fikka has joined #lisp
fisxoj has joined #lisp
<dim> mmm, seems that cl-csv doesn't accept NIL as the *quote* char anymore
<dim> it was pretty useful to implement fields not enclosed in pgloader
parjanya has joined #lisp
asarch has quit [Quit: Leaving]
terpri has joined #lisp
damke_ has joined #lisp
damke has quit [Ping timeout: 264 seconds]
edgar-rft has quit [Quit: Don't Cry for Me, Argentina...]
random-nick has joined #lisp
mareskeg has joined #lisp
nowhere_man has quit [Quit: Konversation terminated!]
nowhere_man has joined #lisp
Xal has left #lisp ["ERC (IRC client for Emacs 25.3.1)"]
mishoo has quit [Ping timeout: 240 seconds]
asarch has joined #lisp
fikka has quit [Ping timeout: 252 seconds]
Oladon has quit [Quit: Leaving.]
zooey has quit [Ping timeout: 255 seconds]
zooey has joined #lisp
fikka has joined #lisp
Karl_Dscc has quit [Remote host closed the connection]
asarch has quit [Quit: Leaving]
fourier has joined #lisp
Yemeni-Dark has quit [Ping timeout: 252 seconds]
Karl_Dscc has joined #lisp
Karl_Dscc has quit [Remote host closed the connection]
Baggers has joined #lisp
stacksmith has joined #lisp
shka_ has quit [Ping timeout: 252 seconds]
ramus has quit [Ping timeout: 260 seconds]
ramus has joined #lisp
arbv has quit [Ping timeout: 240 seconds]
arbv has joined #lisp
hel-io has quit [Remote host closed the connection]
learning has quit [Remote host closed the connection]
hel-io has joined #lisp
python476 has quit [Read error: Connection reset by peer]
hel-io has quit [Remote host closed the connection]
<borei> hi all
python476 has joined #lisp
<phoe> hei borei
hel-io has joined #lisp
vlatkoB has quit [Remote host closed the connection]
<borei> if i want to force compiler to use integer of fixed size will it be correct form - (integer 0 16) - im expecting that var will be unsigend integer with max 2^^16 -1 ?
hel-io_ has joined #lisp
shifty has joined #lisp
<Bike> no, that means an integer between 0 and 16
<Bike> you want (unsigned-byte 16)
jsn` has quit [Ping timeout: 245 seconds]
<dim> cl-csv read table is pretty flexible, that's nice
<borei> tks !
<dim> it's possible to provide one's own read table, with some tweaking, and implement the *quote* nil behaviour from before
hel-io has quit [Ping timeout: 240 seconds]
FreeBirdLjj has joined #lisp
arbv has quit [Ping timeout: 245 seconds]
learning has joined #lisp
EvW1 has joined #lisp
mishoo has joined #lisp
arbv has joined #lisp
FreeBirdLjj has quit [Ping timeout: 260 seconds]
Pixel_Outlaw has joined #lisp
Baggers has left #lisp ["rcirc on GNU Emacs 25.2.2"]
<dim> (or (find-symbol "MAKE-DEFAULT-CSV-READER" pkg) (find-symbol "MAKE-DEFAULT-CSV-DISPATCH-TABLE" pkg)) ; I don't much like having to do that
<dim> but well I guess that's part of the game?
jsn` has joined #lisp
shifty has quit [Ping timeout: 252 seconds]
<whoman> hmm, doesnt seem right, dim
FreeBirdLjj has joined #lisp
<dim> it gets worse, there's an &key parameter that changed too
<dim> so I need to either call (cl-csv:read-csv stream :table ...) or (cl-csv:read-csv stream :csv-reader ...), so now I have that test too
<whoman> =/ hm is that for different versions of the library ?
<dim> yeah
<dim> latest from QL and current git
jsn`` has joined #lisp
<whoman> why support both? if current supercedes
<dim> because I don't know when current git is going to make it to QL, and I'm already bitten by the problem in my dev environment (which I could fix, but) and I don't want pgloader users to have to deal with anything like that
FreeBirdLjj has quit [Ping timeout: 248 seconds]
jsn` has quit [Ping timeout: 245 seconds]
jsn`` has quit [Ping timeout: 240 seconds]
fourier has quit [Ping timeout: 240 seconds]
jsn`` has joined #lisp
FreeBirdLjj has joined #lisp
<whoman> dim: ahh true, hmm
elderK has joined #lisp
elderK has quit [Changing host]
elderK has joined #lisp
mishoo has quit [Ping timeout: 240 seconds]
FreeBirdLjj has quit [Ping timeout: 240 seconds]
learning has quit [Remote host closed the connection]
FreeBirdLjj has joined #lisp
learning has joined #lisp
FreeBirdLjj has quit [Ping timeout: 245 seconds]
disumu has left #lisp ["..."]
FreeBirdLjj has joined #lisp
jibanes has quit [Ping timeout: 240 seconds]
jibanes has joined #lisp
fisxoj has quit [Quit: fisxoj]
FreeBirdLjj has quit [Ping timeout: 245 seconds]
z3t0 has joined #lisp
sysfault has quit [Quit: Leaving]
zolk3ri has joined #lisp
z3t0 has quit [Remote host closed the connection]
z3t0 has joined #lisp
axg has quit [Ping timeout: 256 seconds]
<dim> well it seems like cl-csv newer releases are breaking pgloader
<dim> not at the API level, I could fix that, at the csv parsing facilities
edgar-rft has joined #lisp
<dim> maybe pgloader users are asking too much flexibility, but what used to work doesn't anymore... I think I'll sleep on that and see about reporting issues tomorrow
damke has joined #lisp
z3t0_ has joined #lisp
z3t0 has quit [Ping timeout: 252 seconds]
damke_ has quit [Ping timeout: 264 seconds]
<whoman> pg? dim rest well, i hope it works out =)
<whoman> i guess emacs lisp has multimethods as well. https://github.com/VincentToups/emacs-utils/blob/master/multi-methods.el
z3t0_ has quit [Client Quit]
figurehe4d has joined #lisp
<krwq> is it possible to open file for :io, read/write some bytes and then truncate the rest of the file?
<Xach> krwq: not in a standard way
<krwq> Xach: any way to resize the stream? I assume setting the file-position doesn't change the stream size as well, right?
<krwq> is there any library which could do that?
<pjb> It's not even a POSIX operation! But a unix specific one.
<Xach> krwq: I don't know, sorry.
<pjb> The portable way to do it, is to copy the data.
<krwq> Xach: all right, thanks
<krwq> pjb: the thing is when you implement fuse operations it removes flags truncate flag and instead calls open, truncate
<krwq> removes `truncate` flag*
<krwq> so trying to implement the truncate part
<krwq> I was gonna do everything on streams but not sure if I can use streams anymore
<pillton> From chls 25.1.4.1: "An integer indicating the year A.D. However, if this integer is between 0 and 99, the ``obvious'' year is used; more precisely, that year is assumed that is equal to the integer modulo 100 and within fifty years of the current year (inclusive backwards and exclusive forwards). Thus, in the year 1978, year 28 is 1928 but year 27 is 2027. (Functions that return time in this format always return a full year number.) "
<pillton> Weird.
stacksmith has quit [Quit: stacksmith]
stacksmith has joined #lisp
<krwq> actually i can just recreate the node but kinda annoying on both fuse and CL that they make me do such weird workarounds
mareskeg has quit [Quit: mareskeg]
djuber has quit [Remote host closed the connection]
pierpa has joined #lisp
random-nick has quit [Ping timeout: 260 seconds]
hhdave has joined #lisp
FreeBirdLjj has joined #lisp
patrixl has joined #lisp
smasta has quit [Ping timeout: 240 seconds]
comborico has joined #lisp
comborico1611 has quit [Ping timeout: 256 seconds]
FreeBirdLjj has quit [Ping timeout: 245 seconds]
wxie has joined #lisp
willmichael has quit [Read error: Connection reset by peer]
FreeBirdLjj has joined #lisp
willmichael has joined #lisp
hel-io_ has quit [Remote host closed the connection]
thallia has quit [Ping timeout: 256 seconds]
hel-io has joined #lisp
smasta has joined #lisp
EvW1 has quit [Ping timeout: 240 seconds]
hel-io has quit [Remote host closed the connection]
hel-io has joined #lisp
thallia has joined #lisp
hel-io has quit [Remote host closed the connection]
hel-io has joined #lisp
edgar-rft has quit [Remote host closed the connection]
krwq has quit [Ping timeout: 256 seconds]
hel-io has quit [Remote host closed the connection]
edgar-rft has joined #lisp
hel-io has joined #lisp
marusich has quit [Ping timeout: 256 seconds]
edgar-rft has quit [Client Quit]
FreeBirdLjj has quit [Ping timeout: 248 seconds]