jackdaniel 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.5, CMUCL 21b, ECL 16.1.3, CCL 1.11.5, ABCL 1.5.0
fikka has quit [Ping timeout: 260 seconds]
fikka has joined #lisp
EvW has joined #lisp
thelounge18 has joined #lisp
dented42 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fikka has quit [Ping timeout: 260 seconds]
jach[m] is now known as Jachy
dented42 has joined #lisp
fikka has joined #lisp
housel has joined #lisp
nowhere_man has quit [Remote host closed the connection]
mareskeg has quit [Ping timeout: 265 seconds]
nowhere_man has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
Jach[m]1 has left #lisp ["User left"]
markoong has quit [Ping timeout: 256 seconds]
fikka has joined #lisp
super_beginner has joined #lisp
gabiruh has quit [Ping timeout: 248 seconds]
fikka has quit [Ping timeout: 264 seconds]
eli_oat has joined #lisp
zachk has quit [Quit: Leaving]
vhost- has joined #lisp
<White_Flame> Are there examples of binary websockets served by CL somewhere?
dddddd has quit [Remote host closed the connection]
fikka has joined #lisp
EvW has quit [Ping timeout: 256 seconds]
fikka has quit [Ping timeout: 256 seconds]
wigust- has joined #lisp
wigust has quit [Ping timeout: 260 seconds]
fikka has joined #lisp
johnvonneumann has joined #lisp
johnvonneumann is now known as Guest11899
fikka has quit [Ping timeout: 276 seconds]
bailon has quit [Ping timeout: 245 seconds]
bailon has joined #lisp
fikka has joined #lisp
Ukari has quit [Read error: Connection timed out]
fikka has quit [Ping timeout: 264 seconds]
<LdBeth> Any recommendations on persistent object store implementations
<akkad> LdBeth: sure, leveldb, lmdb, and manardb
<akkad> the first two use cffi and external libs, but manardb only uses osicat
<akkad> manardb uses clos, and is the more lispy
<LdBeth> Thanks, I will have a look
orivej has quit [Ping timeout: 248 seconds]
<LdBeth> akkad: I saw manardb only support Linux
eli_oat has quit [Quit: Leaving.]
<akkad> it works on macos too
<akkad> https://github.com/danlentz/manardb might work on bsds as well
fikka has joined #lisp
Oladon has joined #lisp
<LdBeth> akkad: Got it.
gabiruh has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
nowhere_man has quit [Ping timeout: 245 seconds]
nowhere_man has joined #lisp
fikka has joined #lisp
thelounge18 has quit [Quit: The Lounge - https://thelounge.chat]
buffergn0me has joined #lisp
fikka has quit [Ping timeout: 260 seconds]
brendyn has joined #lisp
dented42 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fikka has joined #lisp
schoppenhauer has quit [Ping timeout: 265 seconds]
fikka has quit [Ping timeout: 248 seconds]
robotoad has quit [Quit: robotoad]
fisxoj has quit [Quit: fisxoj]
fikka has joined #lisp
fikka has quit [Ping timeout: 245 seconds]
zooey_ has joined #lisp
fikka has joined #lisp
zooey has quit [Ping timeout: 250 seconds]
asarch has joined #lisp
fikka has quit [Ping timeout: 265 seconds]
buffergn0me has quit [Ping timeout: 256 seconds]
fikka has joined #lisp
fikka has quit [Ping timeout: 256 seconds]
eli_oat has joined #lisp
fikka has joined #lisp
dented42 has joined #lisp
fikka has quit [Ping timeout: 245 seconds]
eli_oat has quit [Quit: Leaving.]
eli_oat has joined #lisp
fikka has joined #lisp
fikka has quit [Ping timeout: 245 seconds]
fikka has joined #lisp
robotoad has joined #lisp
pierpa has quit [Quit: Page closed]
eli_oat has quit [Quit: Leaving.]
fikka has quit [Ping timeout: 276 seconds]
eli_oat has joined #lisp
fikka has joined #lisp
AetherWind has joined #lisp
fikka has quit [Ping timeout: 265 seconds]
dented42_ has joined #lisp
fikka has joined #lisp
dented42 has quit [Ping timeout: 240 seconds]
fikka has quit [Ping timeout: 240 seconds]
shka_ has joined #lisp
fikka has joined #lisp
Bike has quit [Quit: Lost terminal]
fikka has quit [Ping timeout: 256 seconds]
eli_oat has quit [Quit: Leaving.]
fikka has joined #lisp
eli_oat has joined #lisp
fikka has quit [Ping timeout: 256 seconds]
igemnace has joined #lisp
smurfrobot has quit [Remote host closed the connection]
smurfrobot has joined #lisp
mareskeg has joined #lisp
eli_oat has quit [Client Quit]
eli_oat has joined #lisp
fikka has joined #lisp
Fare has joined #lisp
fikka has quit [Ping timeout: 256 seconds]
igemnace has quit [Ping timeout: 256 seconds]
shifty has joined #lisp
fikka has joined #lisp
AetherWind has quit [Remote host closed the connection]
AetherWind has joined #lisp
eli_oat has quit [Quit: Leaving.]
fikka has quit [Ping timeout: 240 seconds]
pierpal has quit [Quit: Poof]
pierpal has joined #lisp
smurfrobot has quit [Remote host closed the connection]
fikka has joined #lisp
mingus``` has joined #lisp
asarch has quit [Quit: Leaving]
shwouchk has joined #lisp
Pixel_Outlaw has quit [Quit: Leaving]
pjb has quit [Remote host closed the connection]
mingus`` has quit [Ping timeout: 248 seconds]
wheelsucker has quit [Ping timeout: 256 seconds]
pjb has joined #lisp
nickenchuggets has quit [Quit: Leaving]
fikka has quit [Ping timeout: 264 seconds]
Lauven has joined #lisp
smasta has quit [Ping timeout: 264 seconds]
karlosz has quit [Ping timeout: 255 seconds]
skapata has quit [Remote host closed the connection]
shachaf has quit [Ping timeout: 248 seconds]
fikka has joined #lisp
sukaeto has quit [Ping timeout: 268 seconds]
matchray has quit [Ping timeout: 256 seconds]
brandonz has quit [Ping timeout: 240 seconds]
cyberlard has quit [Ping timeout: 256 seconds]
greaser|q has quit [Ping timeout: 276 seconds]
fikka has quit [Ping timeout: 256 seconds]
mareskeg has quit [Quit: mareskeg]
Fare has quit [Ping timeout: 248 seconds]
jmsb has quit [Ping timeout: 276 seconds]
dcluna has quit [Ping timeout: 268 seconds]
fikka has joined #lisp
makomo has joined #lisp
<akkad> manard is a lot faster than the other two, but not very acid complaint.
dcluna has joined #lisp
fikka has quit [Ping timeout: 260 seconds]
fikka has joined #lisp
azimut has quit [Ping timeout: 276 seconds]
fikka has quit [Ping timeout: 256 seconds]
smurfrobot has joined #lisp
fikka has joined #lisp
<knobo> In my slime buffer, at the top, I have a line saying "SBCL Port: ... Pid: ...". How can I add (machine-instance) to that line?
<akkad> M-x customize-group RET slime
<akkad> should be in there, otherwise might have to check the slime elisp code
fikka has quit [Ping timeout: 256 seconds]
<knobo> Ah... it's called header-line
shangul has joined #lisp
fikka has joined #lisp
sauvin has joined #lisp
sauvin has quit [Max SendQ exceeded]
fikka has quit [Ping timeout: 240 seconds]
nowhere_man has quit [Ping timeout: 256 seconds]
nowhere_man has joined #lisp
super_beginner has quit []
Oladon has quit [Quit: Leaving.]
<beach> Good morning everyone!
fikka has joined #lisp
nowhere_man has quit [Remote host closed the connection]
froggey has quit [Ping timeout: 248 seconds]
nowhere_man has joined #lisp
<akkad> morning beach
<akkad> how's the wife and kids?
mangul has joined #lisp
vlatkoB has joined #lisp
fikka has quit [Ping timeout: 265 seconds]
shangul has quit [Ping timeout: 240 seconds]
Murii has quit [Remote host closed the connection]
fikka has joined #lisp
Murii has joined #lisp
fraya has joined #lisp
fikka has quit [Ping timeout: 260 seconds]
mangul has quit [Ping timeout: 264 seconds]
flamebeard has joined #lisp
sauvin has joined #lisp
elephanter has joined #lisp
fikka has joined #lisp
elephanter has quit [Remote host closed the connection]
elephanter has joined #lisp
_krator44 has quit [Ping timeout: 260 seconds]
elephanter has quit [Remote host closed the connection]
elephanter has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
Inline has quit [Quit: Leaving]
fikka has joined #lisp
smasta has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
smasta has quit [Ping timeout: 256 seconds]
fikka has joined #lisp
elephant_ has joined #lisp
orivej has joined #lisp
elephanter has quit [Ping timeout: 240 seconds]
fikka has quit [Ping timeout: 245 seconds]
shachaf has joined #lisp
shachaf has quit [Changing host]
shachaf has joined #lisp
Lauven has quit [Quit: leaving]
fikka has joined #lisp
elephanter has joined #lisp
MichaelRaskin has quit [Quit: MichaelRaskin]
elephant_ has quit [Ping timeout: 276 seconds]
elephant_ has joined #lisp
elephanter has quit [Ping timeout: 256 seconds]
shrdlu68 has joined #lisp
starman_jr has quit [Read error: Connection reset by peer]
exit70 has quit [Ping timeout: 256 seconds]
\u has joined #lisp
\u has joined #lisp
\u has quit [Changing host]
starman_jr has joined #lisp
exit70 has joined #lisp
exit70 has quit [Max SendQ exceeded]
exit70 has joined #lisp
exit70 has quit [Max SendQ exceeded]
terrorjack has quit [Read error: Connection reset by peer]
doesthiswork has quit [Quit: Leaving.]
Smokitch has joined #lisp
rann has quit [Ping timeout: 276 seconds]
starman_jr has quit [Ping timeout: 256 seconds]
makomo has quit [Ping timeout: 264 seconds]
slyrus has quit [Remote host closed the connection]
pjb has quit [Remote host closed the connection]
slyrus has joined #lisp
pjb has joined #lisp
elephant_ has quit [Ping timeout: 264 seconds]
aijony has quit [Ping timeout: 264 seconds]
exit70 has joined #lisp
exit70 has quit [Max SendQ exceeded]
aijony has joined #lisp
rann has joined #lisp
robotoad has quit [Quit: robotoad]
rann has quit [Max SendQ exceeded]
elephanter has joined #lisp
greaser|q has joined #lisp
starman_jr has joined #lisp
rann has joined #lisp
exit70 has joined #lisp
terrorjack has joined #lisp
elephant_ has joined #lisp
elephanter has quit [Ping timeout: 248 seconds]
Cymew has joined #lisp
elephanter has joined #lisp
elephant_ has quit [Ping timeout: 256 seconds]
MoziM has quit [Ping timeout: 240 seconds]
elephant_ has joined #lisp
elephanter has quit [Ping timeout: 240 seconds]
pjb has quit [Remote host closed the connection]
Folkol_ has joined #lisp
elephanter has joined #lisp
elephant_ has quit [Ping timeout: 264 seconds]
shka_ has quit [Ping timeout: 240 seconds]
\u is now known as matchray
froggey has joined #lisp
SaganMan has quit [Ping timeout: 245 seconds]
milanj has joined #lisp
rumbler31 has joined #lisp
mflem has quit [Read error: Connection reset by peer]
SaganMan has joined #lisp
fikka has quit [Ping timeout: 268 seconds]
smurfrobot has quit [Remote host closed the connection]
rumbler31 has quit [Ping timeout: 264 seconds]
smurfrobot has joined #lisp
random-nick has joined #lisp
varjag has joined #lisp
smasta has joined #lisp
fikka has joined #lisp
igemnace has joined #lisp
smasta has quit [Ping timeout: 240 seconds]
wigust- has quit [Ping timeout: 276 seconds]
dddddd has joined #lisp
elephanter has quit [Ping timeout: 256 seconds]
DemolitionMan has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Folkol_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Trystam has joined #lisp
Folkol_ has joined #lisp
Tristam has quit [Ping timeout: 245 seconds]
Trystam is now known as Tristam
elephanter has joined #lisp
shrdlu68 has quit [Ping timeout: 256 seconds]
shrdlu68 has joined #lisp
fikka has quit [Ping timeout: 276 seconds]
elephant_ has joined #lisp
_cosmonaut_ has joined #lisp
shrdlu68 has quit [Ping timeout: 240 seconds]
elephanter has quit [Ping timeout: 264 seconds]
shrdlu68 has joined #lisp
smurfrobot has quit [Remote host closed the connection]
fikka has joined #lisp
igemnace has quit [Remote host closed the connection]
schweers has joined #lisp
shrdlu68 has quit [Ping timeout: 265 seconds]
shrdlu68 has joined #lisp
daniel-s has joined #lisp
housel has quit [Read error: Connection reset by peer]
shrdlu68 has quit [Ping timeout: 264 seconds]
shrdlu68 has joined #lisp
orivej has quit [Ping timeout: 260 seconds]
elephant_ has quit [Ping timeout: 255 seconds]
shangul has joined #lisp
<loke> Is there a reasonably widely-available mechanism to find the arglist of a function?
elephanter has joined #lisp
<loke> There is an SBCL-specific call in the CL-CLTL2 package, but is there some library that attempts to expose this?
<jackdaniel> there is a portability library trivial-arguments
<loke> ah
<loke> Sounds good
<jackdaniel> however it has this "artistic license", I don't know what that means
<jackdaniel> (and what are the implications)
<loke> jackdaniel: Similar to Apache license, if I';m not mistaken
<loke> Isn't it the license used for Perl?
<jackdaniel> I don't know and at this moment I'm not particularily interested in examining it
<loke> jackdaniel: a reasonable stance
<jackdaniel> according to spdx it is not a libre license, so I'd personally avoid it (https://spdx.org/licenses/)
<jackdaniel> ftr, apache is different along that axis
<jackdaniel> sorry, 2.0 is libre, I've read it wrong
<loke> Yeah, I just read the license
<loke> Seems reasonable
<loke> It seems if I change it and distibute the changed version I need to change the package name. I can live with that.
fikka has quit [Ping timeout: 256 seconds]
elephant_ has joined #lisp
mangul has joined #lisp
elephanter has quit [Ping timeout: 255 seconds]
smurfrobot has joined #lisp
shangul has quit [Ping timeout: 260 seconds]
fikka has joined #lisp
skeuomorf has joined #lisp
mangul is now known as shangul
sbwhitecap2 has joined #lisp
elephant_ has quit [Remote host closed the connection]
elephanter has joined #lisp
shrdlu68 has quit [Ping timeout: 240 seconds]
shrdlu68 has joined #lisp
sbwhitecap has quit [Ping timeout: 245 seconds]
Folkol_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
smurfrobot has quit [Remote host closed the connection]
smurfrobot has joined #lisp
elephanter has quit [Remote host closed the connection]
elephanter has joined #lisp
elephant_ has joined #lisp
elephanter has quit [Ping timeout: 276 seconds]
rumbler31 has joined #lisp
smurfrobot has quit [Remote host closed the connection]
elephant_ has quit [Ping timeout: 276 seconds]
m00natic has joined #lisp
rumbler31 has quit [Ping timeout: 256 seconds]
orivej has joined #lisp
smurfrobot has joined #lisp
smurfrobot has quit [Remote host closed the connection]
smurfrobot has joined #lisp
elephanter has joined #lisp
random-nick has quit [Quit: quit]
elephanter has quit [Client Quit]
housel has joined #lisp
random-nick has joined #lisp
attila_lendvai has joined #lisp
attila_lendvai has joined #lisp
attila_lendvai has quit [Changing host]
scymtym has quit [Ping timeout: 240 seconds]
smurfrobot has quit [Remote host closed the connection]
doesthiswork has joined #lisp
fikka has quit [Ping timeout: 256 seconds]
doesthiswork has quit [Ping timeout: 265 seconds]
AetherWind has quit [Quit: Leaving]
scymtym has joined #lisp
JuanDaugherty has joined #lisp
attila_lendvai has quit [Quit: Leaving.]
fikka has joined #lisp
dented42_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fikka has quit [Ping timeout: 260 seconds]
Folkol_ has joined #lisp
fikka has joined #lisp
EvW has joined #lisp
fikka has quit [Ping timeout: 268 seconds]
alphor has quit [Ping timeout: 256 seconds]
smurfrobot has joined #lisp
alphor has joined #lisp
fikka has joined #lisp
raynold has quit [Quit: Connection closed for inactivity]
milanj has quit [Quit: This computer has gone to sleep]
eMBee has quit [Ping timeout: 264 seconds]
ldb has joined #lisp
schoppenhauer has joined #lisp
attila_lendvai has joined #lisp
skapata has joined #lisp
stnutt has quit [Ping timeout: 260 seconds]
jeosol has joined #lisp
<jeosol> morning guys/gals
<beach> Hello jeosol.
stnutt has joined #lisp
<jeosol> I have recently tried to setup an ec2 instance manually CL, it was a pain. Does anyone have an automated setup?
<jeosol> morning beach
<jeosol> primary I use SBCL and had to bootstrap it with CCL, I must be doing something wrong, or not aware of betters ways to set this up
<JuanDaugherty> there's a thing for that (besides quicklisp) roswell or something like that
<_death> use docker?
<jeosol> I would need a better way, I want to essentially, push my setup to the bare aws ec2 and have things almost good to go (of course push lisp code, etc)
<JuanDaugherty> normal thing would be to use the distro's sbcl then build current with that
<jeosol> I have data, other executables (some to run with wine), files, etc to be able to run. Some dude on aws reddit suggested I set up on instance, take a snapshot, then I can replicate that instance. It has been a pain to set up one
<jeosol> Besides setting up SBCL, quicklisp etc, I have to copy over some directories (with data), some other executables, and other minor stuff. e.g., have python available for some ML stuff.
Ukari has joined #lisp
<jeosol> I would like to have a clean way to do this, even if a bit painful to setup. I will then create other instances of this setup for use later. This is my use case.
<JuanDaugherty> yeah roswell, on github
<jeosol> _death: Thanks for the suggestion. at this time, I am not a docker expert, and it is something I am trying to learn, had it recommended a few times.
smurfrobot has quit [Remote host closed the connection]
<shrdlu68> jeosol: ansible?
<jackdaniel> roswell was notriously buggy for me (I had 3 approaches to it)
smurfrobot has joined #lisp
<jackdaniel> putting aside lack of ability to install custom (hand-build lisp) it had problems with installing implementations supplied by itself
<jackdaniel> jeosol: when you download SBCL release tarball you may extract it and call install.sh; prebuilt x86-64 binaries are supplied
<JuanDaugherty> i've not actually used it and i only actually use the tarball + ql
<jackdaniel> s/supplied/included/
<jeosol> I spent so much time trying to install SBCL on the bare ec2 machine, tried cmucl (different versions, had errors), eventually ccl worked. then quicklisp, ..., I rather spend some time on a easier, less error prone set up now
<JuanDaugherty> (plus the distros sbcl)
<jackdaniel> jeosol: I don't know why your instance doesn't work, but I'm succesfully using there extracted sbcl tarball with run_sbcl.sh script (without installing whatsoever)
<jeosol> jackdaniel: yes, I did that intially, but when I run, I was getting some pid error main() function, and landing in ldb debugger or something
<JuanDaugherty> it should just be a few command from a new ec2 instance
<JuanDaugherty> apt-get install sbcl
<jeosol> jackdaniel: not sure, that setup you described worked on my machine
<JuanDaugherty> then run the sbcl make.sh from the tarball
<JuanDaugherty> *commands
<jackdaniel> jeosol: maybe you assign too little of ram to the instance?
housel has quit [Ping timeout: 264 seconds]
<jackdaniel> or something in this spirit
<JuanDaugherty> maybe recreate the instance and start over?
<jeosol> jackdaniel: I see
<jeosol> JuanDua...: haha
<jeosol> oh men, I spent last few hours running around this
<jeosol> I have sbcl working on now.
<JuanDaugherty> don't install slime from the distro, i've never figure out how that's supposed to work
shangul has quit [Remote host closed the connection]
<JuanDaugherty> *figured
<shrdlu68> It oughtn't be painful at all.
rumbler31 has joined #lisp
<jeosol> I copied slime from my local setup, I don't plan to do much remote coding though (hopefully). Just need to move setup, run code there
<jackdaniel> jeosol: what was the problem then?
<shrdlu68> jeosol: You could just compile to executable binaries.
igemnace has joined #lisp
shangul has joined #lisp
<jeosol> jackdaniel: SBCL works now, but the sbcl binary option was landing in ldb debugger with some main() functionstuff .
<jeosol> I was getting error on line 750 of that link.
<jeosol> shrdlu68: not sure I mentioned this, I eventually use the source and compiled with ccl
<JuanDaugherty> *apt-get, yum, whatever
<jeosol> basically, because of the huge dependencies for my setup, I want to have a way to automate most of the work
<shrdlu68> jeosol: I meant that you could deploy your app as an executable.
mangul has joined #lisp
<jeosol> shrdlu68: I see what you mean
rumbler31 has quit [Ping timeout: 248 seconds]
<shrdlu68> jeosol: These days, the fashionable thing is to try and get a single executable if you can, or use tools like ansible or containers.
<jeosol> better I was thinking of having a copy of code on remote. Not a good idea I suppose
<jeosol> I am no devops expert. That makes a lot of sense I guess
daniel-s has quit [Ping timeout: 268 seconds]
daniel-s_ has joined #lisp
shangul has quit [Ping timeout: 240 seconds]
<shrdlu68> jeosol: A bash script will do just fine if you make it error-resilient.
<jeosol> Has anyone had to replicate cloud machine instances, if so what approach do you use. It may be better to setup one, test that it works, and get more instances from that if needed. Is this approach ok?
makomo has joined #lisp
* JuanDaugherty prefers bash script independent of the hosting vendor, ec2-tools there
<JuanDaugherty> (i.e. aws-cli)
trittweiler has joined #lisp
<jeosol> JuanDuag..: ok. Independent setup is nice so I am not tied to provider.
<jeosol> guess I have to do some more digging around.
<jeosol> shrdlu68: what approach (ansible, container) would you recommend.
milanj has joined #lisp
<shrdlu68> Ansible might be more straight-forward. Have your code in some revision control, pull it and build it where you want.
smurfrobot has quit [Remote host closed the connection]
<jeosol> shrdlu68: It seems that is the option closer to what I was thinking. I have a repo on ec2 and can push the code there.
<jeosol> shrdlu68: thx
<jeosol> Thanks. I will look into the suggestions: roswell, ansible, etc. ...
<jeosol> after relaxing, see a soccer game.
mangul has quit [Remote host closed the connection]
<shrdlu68> ool
<shrdlu68> *Cool
makomo has quit [Ping timeout: 265 seconds]
<shrdlu68> Format strings look a bit like APL code.
lumm has joined #lisp
shifty has quit [Ping timeout: 268 seconds]
<schweers> APL looks like format strings?
<shrdlu68> A bit. A cryptic series of symbols.
housel has joined #lisp
<shrdlu68> How do I achieve this: (format t "~{~A,~}" (list 1 2 3 4))
<schweers> I never used it, so I couldn’t properly comment anyway ;)
<shrdlu68> => 1,2,3,4,
<shrdlu68> without the trailing ,
<schweers> huh, it seems like APL uses the ≠ character. Must have been weird back then
<jackdaniel> (format t "~{~A~^,~}" '(1 2 3 4))
<jackdaniel> format is even less intelligible to me than loop tbh
<shrdlu68> All we need is a good way to visualize it. Pretty colors, etc.
<schweers> I guess proper balancing would be a good start
smurfrobot has joined #lisp
smurfrobot has quit [Remote host closed the connection]
smurfrobot has joined #lisp
karswell_ has joined #lisp
makomo has joined #lisp
<splittist> With cl's read-macros etc. it's quite straightforward to annotate format strings. That it's not idiomatic means something. I'm not sure what.
nowhereman_ has joined #lisp
nowhere_man has quit [Ping timeout: 240 seconds]
<_death> (out (:s (list 1 2 3 4) :separator ","))
shangul has joined #lisp
<jackdaniel> _death: is it taken from ytools?
<shrdlu68> jackdaniel: Neat, didn't know about ~^
karswell_ is now known as karswell
<_death> jackdaniel: it kinda started from the ytools one.. https://github.com/death/constantia/blob/master/out.lisp
<shrdlu68> There's a certain appeal to these cryptic, concise things: regex, format, etc. Maybe it's something I'll get over, like one of those funny stages people go through in life.
sjl has joined #lisp
<_death> to me there's no appeal at all for structure in strings
<jackdaniel> _death: thanks
smurfrobot has quit [Remote host closed the connection]
doesthiswork has joined #lisp
jack_rabbit has quit [Ping timeout: 264 seconds]
jmercouris has joined #lisp
<jmercouris> how can I write a new line with (write-sequence ...)?
Arcaelyx has quit [Ping timeout: 245 seconds]
<jmercouris> must I do (write-char ...)?
Bike has joined #lisp
<jmercouris> I can't seem to get a newline to write into my file
<jmercouris> I was writing to the wrong stream...
<dlowe> if you have a string, write-line is pretty useful.
<shrdlu68> #'terpri
<dlowe> you can also use terpri
<dlowe> hah. beat me to it.
<dlowe> see, if they had just made the string argument to write-line optional, there wouldn't be a need for terpri
<dlowe> I guess it'd still be annoying to specify the stream.
<dlowe> (write-line "" stream)
<jmercouris> interesting, didn't know about terpri
<jmercouris> I'll stick with writing #\return
<jmercouris> it seems more obvious to whoever will look at my code
Khisanth has quit [Ping timeout: 264 seconds]
<shrdlu68> #\return? Not #\newline?
<jmercouris> either way
<jmercouris> hold habits die hard
<jmercouris> s/hold/old
orivej has quit [Ping timeout: 248 seconds]
<shrdlu68> May matter to whoever is parsing the file. #\return is ascii 13 whereas #\newline is ascii 10.
ldb has quit [Ping timeout: 256 seconds]
ldb has joined #lisp
housel has quit [Remote host closed the connection]
mareskeg has joined #lisp
orivej has joined #lisp
<dlowe> MacOS used to use 13 for line breaks. I think they switched to 10 on OS X
<flip214> any IRONCLAD maintainers here? I'd appreciate to get the Ethereum version of KECCAK256 included, the difference is in the round constants: https://ethereum.stackexchange.com/questions/30369/difference-between-keccak256-and-sha3
fikka has quit [Ping timeout: 264 seconds]
<Xach> flip214: I think the sharplispers repo is a good place to request that
<flip214> Xach: thanks, will try. I got https://github.com/froydnj/ironclad as master location, which doesn't allow issues to be filed
<Xach> flip214: That is not the master location any more.
mindCrime has joined #lisp
froggey has quit [Remote host closed the connection]
JuanDaugherty has quit [Quit: Exeunt]
froggey has joined #lisp
<jkordani> jmercouris: also on ccl the default newline for streams is unix
Khisanth has joined #lisp
engblom has quit [Changing host]
engblom has joined #lisp
_papachan has joined #lisp
<shrdlu68> #'read-line reads upto #\newline, doesn't consider #\readline a line separator.
<shrdlu68> s/#\readline/#\return
fikka has joined #lisp
<jmercouris> shrdlu68: Yeah, I changed it
<jmercouris> I wasn't trying to imply I wasn't going to change it, just that it was out of habit :)
shrdlu68 has quit [Ping timeout: 256 seconds]
shrdlu68 has joined #lisp
smurfrobot has joined #lisp
fraya has quit [Quit: Leaving]
attila_lendvai has quit [Quit: Leaving.]
Inline has joined #lisp
shrdlu68 has quit [Ping timeout: 248 seconds]
<flip214> Xach: ack.
<flip214> I also pasted a snippet that calculates the round constants... I hope that this will be picked up soon.
<flip214> [hint, hint ;]
shrdlu68 has joined #lisp
MoziM has joined #lisp
fikka has quit [Ping timeout: 265 seconds]
housel has joined #lisp
EvW has quit [Ping timeout: 245 seconds]
EvW has joined #lisp
smurfrobot has quit [Remote host closed the connection]
fikka has joined #lisp
eli_oat1 has joined #lisp
asarch has joined #lisp
attila_lendvai has joined #lisp
attila_lendvai has joined #lisp
attila_lendvai has quit [Changing host]
EvW has quit [Remote host closed the connection]
<asarch> I was looking for the SlackBuild package of clisp and then I realized that it is part of the base installation of Slackware. SBCL actually uses it to compile itself
<asarch> What could you do when you don't have a common Lisp compiler at hand to compile another Lisp compiler?
<asarch> Is there a minimalist version for such as cases?
<beach> asarch: You install a binary version of some existing system.
<asarch> Thank you
<beach> Or you can build CLISP with a C compiler and then SBCL with CLISP.
* asarch takes notes...
<shrdlu68> If you don't have a C compiler...
<shka> some start with abcl instead
<jackdaniel> sbcl builds with abcl?
<Xach> I don't think SBCL builds with ABCL.
<shka> oh
<shka> i thought it does...
fikka has quit [Ping timeout: 260 seconds]
<shka> http://abcl-dev.blogspot.com/2011/08/building-sbcl-with-abcl.html it was capable to do so at some point at least
<shka> don't know what happend in the meantime
<asarch> "Slackware package /tmp/sbcl-1.4.8-x86_64-1_SBo.tgz created.": real 46m52.800s, user 42m57.057s, sys 2m41.174s
<asarch> Yeah!
<asarch> abcl?
<shka> asarch: common lisp on JVM
rumbler31 has joined #lisp
<asarch> Clojure?
<shka> not any lisp
<shka> common lisp
<asarch> I see
slyrus1 has joined #lisp
fikka has joined #lisp
<asarch> CLISP is no longer available in Debian's repository
<_death> 46m?..
<asarch> I could compile it and then build the newest release of SBCL
<shka> i think that debian has sbcl in the repo
<asarch> An older release
eli_oat1 has quit [Quit: Leaving.]
Ukari has quit [Quit: Leaving.]
<shka> i am not sure of anything at this point, but i THINK you can build sbcl with sbcl ;-)
rumbler31 has quit [Ping timeout: 276 seconds]
<asarch> Interesting!
smurfrobot has joined #lisp
lumm has quit [Remote host closed the connection]
daniel-s_ has quit [Ping timeout: 240 seconds]
smurfrobot has quit [Remote host closed the connection]
quazimodo has quit [Ping timeout: 240 seconds]
lumm has joined #lisp
jmercouris has left #lisp ["Exit."]
<loke> shka: Yes. of course you can build sbcl with sbcl
<loke> If you need to bootstrap, the easiest solution is either ABCL or the binary distribution of SBCL
lumm has quit [Ping timeout: 268 seconds]
warweasle has joined #lisp
fikka has quit [Ping timeout: 264 seconds]
asarch has quit [Ping timeout: 256 seconds]
attila_lendvai has quit [Quit: Leaving.]
<beach> loke: Xach seems to think that SBCL can not be built using ABCL.
markoong has joined #lisp
<Xach> I do think that, but not with strong conviction.
kajo has joined #lisp
<Xach> My recollection was that only Clozure CL and CLISP are tested and work. I will look it up to see if that is accurate.
EvW1 has joined #lisp
kajo has quit [Read error: Connection reset by peer]
pierpal has quit [Quit: Poof]
pierpal has joined #lisp
eli_oat1 has joined #lisp
<shrdlu68> Is it the case that SBCL only needs a conforming implementation to build it?
fikka has joined #lisp
<loke> beach: I have built SBCL with ABCL
<loke> It was over a year abo. More lilely 2
<beach> loke: OK.
<loke> ago
sz0 has joined #lisp
scymtym has quit [Ping timeout: 265 seconds]
fikka has quit [Ping timeout: 240 seconds]
smasta has joined #lisp
mangul has joined #lisp
shangul has quit [Disconnected by services]
mangul is now known as shangul
fikka has joined #lisp
milanj has quit [Quit: This computer has gone to sleep]
milanj has joined #lisp
dminuoso has left #lisp ["WeeChat 2.0.1"]
milanj has quit [Client Quit]
<Xach> Ok, I think I was wrong about SBCL and ABCL. Sorry about that.
Cymew has quit [Remote host closed the connection]
fikka has quit [Ping timeout: 276 seconds]
jegaxd26 has joined #lisp
milanj has joined #lisp
<Xach> Well, maybe not. My build process just failed.
nickenchuggets has joined #lisp
nickenchuggets has joined #lisp
nickenchuggets has quit [Changing host]
oni-on-ion has quit [Ping timeout: 264 seconds]
eli_oat1 has quit [Quit: Leaving.]
fikka has joined #lisp
Cymew has joined #lisp
<Xof> I can't remember what the ABCL problem is. We don't build under gcl
jegaxd26 has quit [Read error: Connection reset by peer]
<Xof> for a while, we built under piso's xcl, but now I can't build that any more :-(
<Xof> I think we build under cmucl too
surya has joined #lisp
fikka has quit [Ping timeout: 264 seconds]
Cymew has quit [Ping timeout: 268 seconds]
FreeBirdLjj has joined #lisp
varjag has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
andrei-n has joined #lisp
karlosz has joined #lisp
pierpal has quit [Quit: Poof]
pierpal has joined #lisp
blu3r4d0n has quit [Quit: WeeChat 1.9.1]
robotoad has joined #lisp
oni-on-ion has joined #lisp
fikka has joined #lisp
smurfrobot has joined #lisp
_cosmonaut_ has quit [Ping timeout: 240 seconds]
karlosz has quit [Quit: karlosz]
<loke> Xof: : Does it build on ECL?
<jackdaniel> it does not
<jackdaniel> I've fixed two build offenders 2 months ago, but it fails later in the process
fikka has quit [Ping timeout: 240 seconds]
ldb_ has joined #lisp
_krator44 has joined #lisp
Folkol_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldb has quit [Ping timeout: 276 seconds]
<ebrasca> Hi
fikka has joined #lisp
flamebeard has quit []
cage_ has joined #lisp
asarch has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
<shangul> Hello ebrasca
<beach> loke: Nice!
<ebrasca> I remember someone here suggested me to make my fat32 portable between CL implementations.
oni-on-ion has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
fikka has joined #lisp
<ebrasca> How I can make it? Some ideas?
<beach> Why is it not portable now?
<ebrasca> beach: Now it work with mezzano OS.
oni-on-ion has joined #lisp
<shka> ebrasca: not a answer
<beach> shka: Thanks.
<beach> Isn't it just about reading and interpreting a sequence of bytes as directories and files?
wigust has joined #lisp
<shka> it sounds like part of it
<ebrasca> beach: Uses some mezzano only functions like read-sector and write-sector.
<shka> ebrasca: perhaps you can split it into two parts
<shka> one that is actually file system, second that handles fat32 format
<beach> ebrasca: Isolate those parts in a separate module.
* ebrasca don't undestand.
<beach> ebrasca: I don't know whether this is feasible of course: ...
<beach> ebrasca: Define two generic functions READ-SECTION and WRITE-SECTOR. Let them take an additional argument CLIENT. Create methods specializing on (CLIENT MEZZANO) that call the Mezzano operations with that name.
malice has joined #lisp
<beach> ebrasca: Other clients can then add methods for their particular version of those functions.
<loke> beach: When I create a command table, how do I create a menu divider?
eli_oat has joined #lisp
<beach> loke: As usual, I don't know. I am looking in the specification now to see whether I can find something.
<loke> It's in these menus here I want a divider: https://github.com/lokedhs/maxima-client/blob/master/src/cm
<beach> 404
EvW1 has quit [Remote host closed the connection]
<loke> The documentation suggests there is a special value called :DIVIDER, but if I stick one of those into the list of entries, it doesn't even compile
EvW has joined #lisp
<loke> (copy and paste error)
<beach> ADD-MENU-ITEM-TO-COMMAND-TABLE takes a type :DIVIDER.
<loke> So when I create it inline using an argument to MAKE-COMMAND-TABLE, it can't be done?
<beach> Sounds strange.
<random-nick> hello, is there any way to make a closure of the dynamic environment?
<beach> random-nick: No.
<beach> loke: It says that STRING in (string type value &key ...) does not have to be given when TYPE is :divider, but I don't know whether that means that NIL should be given instead.
shangul has quit [Remote host closed the connection]
<loke> beach: Thanks! It worked.
<beach> random-nick: Scheme has call/cc but Common Lisp doesn't. It could be a very costly thing to implement, plus the semantics can be very strange if, for instance, the same unwind-protect were to be executed more than once.
<beach> loke: with NiL?
<loke> Yes
<beach> NIL?
<beach> Excellent!
<loke> Oh, you can also add a string to divider, and then it becomes a neat label. I wonder if that's standard.
lumm has joined #lisp
<loke> beach: Tried the applicaiton yet?
varjag has joined #lisp
Ukari has joined #lisp
robotoad has quit [Remote host closed the connection]
robotoad has joined #lisp
rumbler31 has joined #lisp
lumm has quit [Read error: Connection reset by peer]
lumm has joined #lisp
EvW has quit [Ping timeout: 276 seconds]
nowhereman_ has quit [Ping timeout: 268 seconds]
rumbler31 has quit [Ping timeout: 260 seconds]
andrei-n has quit [Ping timeout: 268 seconds]
sbwhitecap has joined #lisp
andrei-n has joined #lisp
sbwhitecap2 has quit [Ping timeout: 260 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
shrdlu68 has quit [Ping timeout: 264 seconds]
fikka has quit [Ping timeout: 256 seconds]
lumm_ has joined #lisp
<beach> loke: No. I am not sure what to do with it.
<beach> loke: Yes, the string divider is standard.
<beach> "If STRING is supplied, it will be drawn as the divider instead of a line."
<beach> loke: See ADD-MENU-ITEM-TO-COMMAND-TABLE (unless you are at work of course, but I suspect not at this time).
FreeBirdLjj has joined #lisp
fikka has joined #lisp
lumm has quit [Ping timeout: 260 seconds]
lumm_ is now known as lumm
fikka has quit [Ping timeout: 264 seconds]
pjb has joined #lisp
andrei-n has quit [Ping timeout: 260 seconds]
<random-nick> hm, does anybody know the state of GNU Kawa's Common Lisp implementation? the only thing I could find in Kawa's manual is that it is incomplete
<beach> What are its main characteristics?
<_death> isn't it a scheme
<schweers> random-nick: isn’t kawa kinda-sorta a scheme?
milanj_ has joined #lisp
<random-nick> yes, GNU Kawa is primarily a Scheme implementation for the JVM but it apparently has incomplete support for compiling Common Lisp and Emacs Lisp
<schweers> I didn’t know that. Interesting
EvW1 has joined #lisp
skidd0 has joined #lisp
andrei-n has joined #lisp
milanj has quit [Ping timeout: 256 seconds]
<random-nick> is there some sort of test suite for common lisp implementations?
<pjb> Tes.
<schweers> random-nick: what do you want to test? standard conformance?
<pjb> Yes ;-)
<random-nick> schweers: yes
<jackdaniel> random-nick: there is: https://gitlab.common-lisp.net/ansi-test/ansi-test
<random-nick> thank you
<jackdaniel> note that it doesn't cover everything, but a fair chunk of the issues may come when you test with it
<pjb> You should update the cliki page, it contains outdated urls…
<jackdaniel> it was originally written by Paul Dietz
surya has quit [Ping timeout: 265 seconds]
<random-nick> oh, looks like kawa common lisp is really incomplete
<random-nick> it doesn't even support the #+ reader macro
xlei has joined #lisp
fikka has joined #lisp
mareskeg has quit [Quit: mareskeg]
<Xach> random-nick: where can I learn more about kawa common lisp?
<random-nick> that's what I'm trying to find out
EvW1 has quit [Ping timeout: 265 seconds]
MichaelRaskin has joined #lisp
<makomo> who maintains the common-lisp.net site?
<loke> beach: Thanks a lot!
fikka has quit [Ping timeout: 240 seconds]
<MichaelRaskin> beach: would debug functionality like you have describe as a low-level functionality for clordane be useful if it is implemented as a library on top of SBCL with 10× slowdown for threads under debugging?
<fe[nl]ix> makomo: see the channel #common-lisp.net
<makomo> fe[nl]ix: i see :-)
<fe[nl]ix> you see well
<random-nick> Xach: looks like kawa common lisp really doesn't implement much of common lisp, it's useless for any real world use case
sukaeto has joined #lisp
m00natic has quit [Remote host closed the connection]
<schweers> random-nick: have you asked in any scheme or even kawa specific channels?
grumble has quit [Quit: May your memory be the last of you]
<random-nick> schweers: actually, I haven't done that yet
sz0 has quit [Quit: Connection closed for inactivity]
fikka has joined #lisp
Kaisyu has quit [Quit: Connection closed for inactivity]
grumble has joined #lisp
eli_oat has quit [Quit: Leaving.]
fikka has quit [Ping timeout: 248 seconds]
nickenchuggets has quit [Read error: Connection reset by peer]
nickenchuggets has joined #lisp
shka_ has joined #lisp
Arcaelyx has joined #lisp
smasta has quit [Ping timeout: 256 seconds]
fikka has joined #lisp
<Fade> greetings, fe[nl]ix
smasta has joined #lisp
fraya has joined #lisp
xlei has left #lisp [#lisp]
<fe[nl]ix> hey Fade :)
fikka has quit [Ping timeout: 256 seconds]
<Xach> random-nick: Is there a website?
<Xach> random-nick: I have never heard of kawa common lisp and i really like to learn about common lisps.
fikka has joined #lisp
scymtym has joined #lisp
<random-nick> Xach: it doesn't really have a website, it's just mentioned of the features page of Kawa Scheme
<Xach> random-nick: Ah, ok, interesting.
slyrus1 has quit [Quit: slyrus1]
<Xach> I didn't know it had something like that.
<Xach> (even if it is incomplete)
<dlowe> Pushing that towards completion would be a nice project for someone.
littlelisper has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
jmercouris has joined #lisp
<jmercouris> has anyone investigated using a distributed package manager for CL? https://github.com/whyrusleeping/gx
<aeth> There's a lot of things beyond the standard that libraries assume, too. For instance '(unsigned-byte 8) and 'single-float and 'double-float arrays are de facto standard even though the standard only requires bit and character. And there's probably a dozen portability libraries that express parts of the de facto standard, like bordeaux-threads and cffi.
<aeth> Someone should probably make a complete list for implementors, if it doesn't already exist.
schweers has quit [Ping timeout: 265 seconds]
fikka has joined #lisp
<dlowe> aeth: like in a common document repository?
<Xach> runnable code would work.
milanj_ has quit [Quit: This computer has gone to sleep]
fikka has quit [Ping timeout: 256 seconds]
<aeth> dlowe: CDR isn't up for me (did it move?), but I don't think that ever took off. Just a list of portability libraries and a test suite for some simple things libraries always assume like the array types would probably be better.
<dlowe> heh. some clever person redirected it to Edi Weitz's homepage
<aeth> Portability libraries would cover most things. I don't think there's a popular Unicode one, though.
mareskeg has joined #lisp
<dlowe> cl-unicode?
fikka has joined #lisp
skeuomorf has quit [Ping timeout: 260 seconds]
<aeth> dlowe: I don't think that has as much as sb-unicode
fikka has quit [Ping timeout: 256 seconds]
littlelisper has quit [Ping timeout: 264 seconds]
orivej has quit [Ping timeout: 240 seconds]
fikka has joined #lisp
brendyn has quit [Ping timeout: 256 seconds]
fikka has quit [Ping timeout: 264 seconds]
andrei-n_ has joined #lisp
scymtym has quit [Ping timeout: 264 seconds]
<makomo> if i have a list bound to x and do something like (mapc (lambda (x) <body>) x), what x does "x" refer to within the body?
<pjb> makomo: lexical binding. Check the parentheses.
andrei-n has quit [Ping timeout: 260 seconds]
<makomo> right, so the inner one?
dieggsy has joined #lisp
<makomo> err nevermind, i started worrying about my sanity a little too early
<makomo> found the culprit
<jmercouris> has anyone investigated using a distributed package manager for CL? https://github.com/whyrusleeping/gx
<makomo> pjb: you shouldn't have, but thanks :-). i was only looking for quick sanity check
_papachan has quit [Quit: Page closed]
smurfrobot has quit [Remote host closed the connection]
<beach> MichaelRaskin: I think so yes. Do you have ideas on how to accomplish that?
smurfrobot has joined #lisp
<MichaelRaskin> beach: Yes, because it is a natural extension of what I did with wrapping local variables
<beach> I see.
<Ukari> could same name methods from defmethod have different parameters size?
<beach> MichaelRaskin: Can it be done automatically or does the programmer have to put the wrapping code in manually?
<beach> Ukari: The lambda lists must be congruent.
<MichaelRaskin> You can redefine readtable; for example, one line per file works
lumm has quit [Ping timeout: 245 seconds]
fikka has joined #lisp
<beach> Interesting.
<beach> clhs 7.6.4
<specbot> Congruent Lambda-lists for all Methods of a Generic Function: http://www.lispworks.com/reference/HyperSpec/Body/07_fd.htm
<beach> Ukari: ↑
<beach> MichaelRaskin: So I should start working on the Clordane implementation?
<Ukari> i could specify parameter's type in defmethod's parameter, is it possible to specify a function with it's accept and return type?
<beach> clhs ftype
<jmercouris> Ukari: one cannot define a return-type
<beach> jmercouris: Oh?
scymtym__ has joined #lisp
fikka has quit [Ping timeout: 248 seconds]
<jmercouris> beach: not like in C they can't
<jmercouris> last time I recall, the signature of defmethod didn't include "static void"
<MichaelRaskin> beach: well, you might expect that clordane with Cleavir's first-class support wille be obviously better.
<beach> Right, no curly parentheses.
<beach> jmercouris: Did you see the link about FTYPE?
<jmercouris> Yes I saw that
<MichaelRaskin> And so Clordane for legacy implementations is just not worth the trouble.
<beach> That includes the return type.
<beach> MichaelRaskin: That's what I thought until you told me it was possible with SBCL.
<jmercouris> Show me a defmethod with a specification of return type, and I'll agree
dieggsy has quit [Ping timeout: 255 seconds]
<jmercouris> but I think ftype is something different
<MichaelRaskin> I could write the form wrapper part, but I prefer navigating traces to hand-stepping, so I am not a likely Clordane user… If you can give me a spec for low-level functionality, I might consider writing it just to show off Agnostic Lizard.
<Bike> (declaim (ftype (function * integer) my-gf))
<jmercouris> I am imagining (defmethod name 'string ...)
<Bike> tells the compiler the generic function returns an integer
<beach> MichaelRaskin: I'll give it some thought.
<MichaelRaskin> beach: of course, ther eis a catch
<jmercouris> I guess you could write a macro to do it
<jmercouris> Alright, CL has function return types, you are correct :D
<MichaelRaskin> Namely, this would debug the expansion of the code.
<beach> MichaelRaskin: I see.
<beach> MichaelRaskin: I'll think about it. Right now I am off to spend time with my (admittedly small) family.
<MichaelRaskin> Have a nice evening
<beach> You too.
milanj has joined #lisp
<MichaelRaskin> Thanks
zachk has joined #lisp
zachk has quit [Changing host]
zachk has joined #lisp
sauvin has quit [Remote host closed the connection]
scymtym__ has quit [Ping timeout: 248 seconds]
smasta has quit [Ping timeout: 256 seconds]
smasta has joined #lisp
fikka has joined #lisp
igemnace has quit [Quit: WeeChat 2.1]
FreeBirdLjj has quit [Remote host closed the connection]
fikka has quit [Ping timeout: 256 seconds]
shrdlu68 has joined #lisp
Fare has joined #lisp
smurfrobot has quit [Remote host closed the connection]
fikka has joined #lisp
FareTower has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
Fare has quit [Ping timeout: 268 seconds]
dtornabene has joined #lisp
schoppenhauer has quit [Ping timeout: 245 seconds]
eli_oat has joined #lisp
fikka has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
skeuomorf has joined #lisp
eli_oat has quit [Quit: Leaving.]
dtornabene has quit [Ping timeout: 264 seconds]
dieggsy has joined #lisp
FareTower has quit [Ping timeout: 264 seconds]
fikka has joined #lisp
housel has quit [Remote host closed the connection]
fikka has quit [Ping timeout: 256 seconds]
eli_oat has joined #lisp
fikka has joined #lisp
eli_oat has quit [Quit: Leaving.]
fikka has quit [Ping timeout: 255 seconds]
orivej has joined #lisp
Smokitch has quit []
Naergon has joined #lisp
fikka has joined #lisp
fikka has quit [Ping timeout: 264 seconds]
dieggsy has quit [Ping timeout: 276 seconds]
Guest11899 has quit [Remote host closed the connection]
EvW has joined #lisp
nickenchuggets has quit [Read error: Connection reset by peer]
pierpal has quit [Quit: Poof]
pierpal has joined #lisp
nickenchuggets has joined #lisp
random-nick has quit [Remote host closed the connection]
fikka has joined #lisp
attila_lendvai has joined #lisp
spoken-tales has joined #lisp
random-nick has joined #lisp
zfree has joined #lisp
trittweiler has quit [Ping timeout: 265 seconds]
fikka has quit [Ping timeout: 240 seconds]
zfree has quit [Quit: zfree]
Cymew has joined #lisp
nowhereman_ has joined #lisp
fikka has joined #lisp
rann has quit []
spoken-tales has quit [Remote host closed the connection]
Cymew has quit [Ping timeout: 256 seconds]
cage_ has quit [Quit: Leaving]
rann has joined #lisp
Folkol has quit [Ping timeout: 240 seconds]
fikka has quit [Ping timeout: 256 seconds]
rumbler31 has joined #lisp
fikka has joined #lisp
smurfrobot has joined #lisp
rumbler31 has quit [Ping timeout: 240 seconds]
fikka has quit [Ping timeout: 245 seconds]
defun_car has joined #lisp
stacksmith has quit [Remote host closed the connection]
defun_car has quit [Client Quit]
gabiruh has quit [Ping timeout: 268 seconds]
fikka has joined #lisp
pierpal has quit [Quit: Poof]
pierpal has joined #lisp
pierpal has quit [Client Quit]
spoken-tales has joined #lisp
pierpal has joined #lisp
groovy2shoes has quit [Ping timeout: 260 seconds]
groovy2shoes has joined #lisp
gabiruh has joined #lisp
Folkol has joined #lisp
fikka has quit [Ping timeout: 245 seconds]
DemolitionMan has joined #lisp
fikka has joined #lisp
imjacobclark has joined #lisp
<imjacobclark> Hello - I am trying to hook cl-json and MAKE-ARRAY up to get a JSON object printed to screen, however I keep running into Value #2A((("hello" . "world"))) is not of a type which can be encoded by ENCODE-JSON.
<imjacobclark> This is the code I am trying... (print (json:encode-json (make-array '(1 1) :initial-contents '( (("hello" . "world") )))))
<imjacobclark> Could anybody help me out?
vlatkoB has quit [Remote host closed the connection]
fikka has quit [Ping timeout: 248 seconds]
<Bike> cl-json doesn't have an encoder for multidimensional arrays by default, apparently
<Bike> how do you want them to be encoded?
<imjacobclark> Bike: so my main problem really is when passing encode-json a list that has a variable in it, the variable isn't evaluated, the variables name ends up in the JSON
<imjacobclark> For example the following code... (json:encode-json '#( ((foo . (1 2 3)) (bar . path) (baz . #\!)) "quux" 4/17 4.25 ))
<Bike> that's not "a list that has a variable in it"
<Bike> variables are not things you can pass. do you mean symbols?
<imjacobclark> yes I believe I do
pierpa has joined #lisp
<imjacobclark> Sorry, I'm learning Lisp and this is me trying to solve a real world problem in it
<Bike> Okay, well, see that '
<Bike> that means nothing's getting evaluated
<imjacobclark> Right I see - is there a way to get it to be evaluated? I was thinking make-array could do that
<Bike> You could do, e.g., (json:encode-json (list foo 14)), and then encode-json will be passed a list with two elements, the first of which is whatever value the variable FOO has
<imjacobclark> I see okay
<Bike> This is a matter of lisp semantics with no direct connection to cl-json
<imjacobclark> Thanks for that pointer!
<imjacobclark> Could you explain what the . means in the list ("something" . "something")
<jmercouris> the dot is cons cell notation
<Bike> It means that it's a "dotted list" rather than a "proper list".
<Bike> (cdr '(a b)) => (B), versus (cdr '(a . b)) => B
<Bike> '(a b) is the constant version of (cons 'a (cons 'b nil)), while '(a . b) is (cons 'a 'b)
<jmercouris> damnit you type faster than me
<imjacobclark> Okay I see
<jmercouris> imjacobclark: this will be a very useful chapter for you: http://www.gigamonkeys.com/book/they-called-it-lisp-for-a-reason-list-processing.html
<imjacobclark> Thanks all I'll give that a read
<imjacobclark> Still fighting with this example though, can't settle my mind until I get it working
<imjacobclark> I've tried converting it to a list... (print (json:encode-json (list (("test" . (1 2 3))))))
<imjacobclark> I get illegal function call now though lol
eli_oat has joined #lisp
<jmercouris> yes you've double nested the list
<Bike> I'm not sure what you expected that to do.
<jmercouris> so it is trying to invoke a function ("test" . (1 2 3))
zaquest has quit [Ping timeout: 260 seconds]
shrdlu68 has quit [Ping timeout: 256 seconds]
<imjacobclark> Hmm, so this example
<Bike> You realize that "test" is a string, and not a symbol, so it doesn't mean a variable in any context?
<jmercouris> imjacobclark: describe literally, what you are trying to do
<imjacobclark> (json:encode-json '#( ((foo . (1 2 3)) (bar . path) (baz . #\!)) "quux" 4/17 4.25 ))
<imjacobclark> that returns this json object...
<jmercouris> ignore this example
<jmercouris> simply describe what it is you are trying to do
Naergon has quit [Ping timeout: 260 seconds]
<Bike> #( ...) is also literal syntax, i.e. no variables will have their values looked up.
fikka has joined #lisp
eli_oat has quit [Client Quit]
<imjacobclark> Okay, I'd like a JSON object that looks like this... {"myKey": "myValue"}
<imjacobclark> Where "myValue" is the value of a symbol
<Bike> (list (cons "myKey" my-value)) i think?
<jmercouris> imjacobclark: what do you mean the value of a symbol?
<Bike> the value of a variable
zaquest has joined #lisp
<imjacobclark> yes variable, e.g in javascript I would do... let myvar = "test"... {"myKey": myvar};
<Bike> or (list (cons 'my-key my-value)) maybe.
<imjacobclark> Aha thankyou
<imjacobclark> that worked
<imjacobclark> [clarkj84:~/common-lisp]$ ./make-array.ros (master✱) {"myKey":1}
<White_Flame> man, sometimes the array types can be annoying. clack wants a (simple-array (unsigned-byte 8)), and flexi-streams output returns a (vector (unsigned-byte 8)). Simple-vector always uses element type T, so there's no "simple-vector" type that can be specialized to (unsigned-byte 8)
<imjacobclark> {"myKey":1}
<jmercouris> (cl-json:encode-json (list (cons "myKey" 10))) -> {"myKey":10}
<imjacobclark> thanks for your help all
<imjacobclark> i think it was the cons i needed
<jmercouris> imjacobclark: it was a dotted pair that you needed
<imjacobclark> a dotted pair - right... goes to read up on dotted pairs via http://www.gigamonkeys.com/book/they-called-it-lisp-for-a-reason-list-processing.html
<jmercouris> yes, you should read that section
<imjacobclark> thanks all, this has been bugging me for 2 days
<jmercouris> it's honestly not very exhaustive, but it should give you a head-start
<Bike> White_Flame: i think the conversion is just (coerce flexi-streams-output 'simple-array), though.
<jmercouris> it is as it reads, a practical explanation...
<Bike> i think it copies the element type? not sure
<Bike> mm, nope, has to be specified. bleh
attila_lendvai has quit [Quit: Leaving.]
jmercouris has quit [Remote host closed the connection]
imjacobclark has quit [Quit: Page closed]
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
dented42 has joined #lisp
dented42 has quit [Client Quit]
<White_Flame> Bike: yeah, I have the coerce in there; not sure if it actually performs a data copy. i would nope not, but the extra type checking is annoying in the inner core of I/O
asarch has quit [Remote host closed the connection]
spoken-tales has quit [Ping timeout: 268 seconds]
dented42 has joined #lisp
<_death> it does copy.. maybe flexi-streams should be fixed to return a (simple-array (unsigned-byte 8))
asarch has joined #lisp
<Bike> yes, i'm surprised it doesn't.
<Bike> maybe it's displaced?
<White_Flame> well, which "more defining" of a datatype, the fact that it's simple, or the fact that it's a vector?
<White_Flame> that's what doesn't combine well in the CLHS types
smasta has quit [Ping timeout: 256 seconds]
shka_ has quit [Ping timeout: 256 seconds]
<Bike> maybe flexi streams should be fixed to return a simple array, i mean
<Bike> a (simple-array (unsigned-byte 8) (*))
msb has quit [Ping timeout: 276 seconds]
msb has joined #lisp
fikka has quit [Ping timeout: 260 seconds]
fraya has quit [Remote host closed the connection]
lumm has joined #lisp
andrei-n_ has quit [Ping timeout: 256 seconds]
fikka has joined #lisp
skeuomorf has quit [Ping timeout: 248 seconds]
dented42 has quit [Quit: Textual IRC Client: www.textualapp.com]
Bike has quit [Ping timeout: 260 seconds]
sjl has quit [Ping timeout: 260 seconds]
joast has quit [Ping timeout: 260 seconds]
asarch has quit [Quit: Leaving]
<whartung> while I can dispatch a generic function on a structure type, I can’t “inherit” from a structure, I need to recode them all as classes first in CLOS, right? (I have a bunch of structs and am just lazy enough to not convert them into defclass if I don’t have to)
DemolitionMan has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
joast has joined #lisp
mindCrime has quit [Ping timeout: 276 seconds]
EvW has quit [Ping timeout: 240 seconds]
spoken-tales has joined #lisp
random-nick has quit [Read error: Connection reset by peer]
<White_Flame> structs themselves support single inheritance
<whartung> via include, right?
<White_Flame> yeah
<White_Flame> but if you want more than that, yeah you have to CLOSify
raynold has joined #lisp
Bike has joined #lisp
<whartung> so if I have (defstruct xxx a b c) and (defstruct (yyy (:include xxx)) x y z) and (defmethod m1 (arg1 xxx)) and (defmethod m2 (arg1 xxx)) and (defmethod m2 (arg1 yyy)), will those work as expected? Is there a relationship between xxx and yyy or is it simplty structural?
<Bike> whartung: yes, yyy is a subclass of xxx
Kundry_Wag has joined #lisp
lumm has quit [Remote host closed the connection]
lumm has joined #lisp
<whartung> ah cool! Well, that makes it easy then — I don’t have to class-ify them then…Because I mostly want to specialize behavior, not structure. So I should be able to (defstruct xxx a b c) and then simply (defstruct (yyy (:include xxx))) and method dispatch should Just Work.
<whartung> ty all.
scymtym has joined #lisp
Naergon has joined #lisp
mareskeg has quit [Ping timeout: 268 seconds]
rumbler31 has joined #lisp
groovy2shoes has quit [Ping timeout: 255 seconds]
Folkol has quit [Read error: Connection reset by peer]
groovy2shoes has joined #lisp
varjag has quit [Quit: ERC (IRC client for Emacs 25.2.1)]
nowhereman_ has quit [Ping timeout: 245 seconds]
Folkol has joined #lisp
lumm has quit [Quit: lumm]
vtomole has joined #lisp
eli_oat has joined #lisp
eli_oat has quit [Client Quit]
jmsb has joined #lisp
kajo has joined #lisp
wigust has quit [Quit: ZNC 1.7.0 - https://znc.in]
sbwhitecap has quit [Ping timeout: 265 seconds]
sbwhitecap has joined #lisp
EvW1 has joined #lisp
robotoad has quit [Quit: robotoad]
papachan_ has joined #lisp
mareskeg has joined #lisp
Kaisyu has joined #lisp
mareskeg_ has joined #lisp
mareskeg has quit [Ping timeout: 268 seconds]
mareskeg_ is now known as mareskeg
EvW1 has quit [Ping timeout: 265 seconds]
mareskeg has quit [Quit: mareskeg]
slyrus1 has joined #lisp
robotoad has joined #lisp
fikka has quit [Ping timeout: 240 seconds]
jack_rabbit has joined #lisp
fisxoj has joined #lisp
Kundry_Wag has quit [Remote host closed the connection]
fikka has joined #lisp
Tristam has quit [Ping timeout: 255 seconds]
Tristam has joined #lisp
fikka has quit [Ping timeout: 260 seconds]
nowhereman_ has joined #lisp
gector has joined #lisp
fikka has joined #lisp
smasta has joined #lisp