jackdaniel changed the topic of #lisp to: Common Lisp, the #1=(programmable . #1#) programming language | <http://cliki.net/> <https://irclog.tymoon.eu/freenode/%23lisp> <https://irclog.whitequark.org/lisp> <http://ccl.clozure.com/irc-logs/lisp/> | SBCL 1.5.4, CMUCL 21b, ECL 16.1.3, CCL 1.11.5, ABCL 1.5.0
longshi has joined #lisp
t58 has quit [Quit: Leaving]
moldybits has joined #lisp
longshi has quit [Ping timeout: 245 seconds]
sjl has joined #lisp
khisanth_ has quit [Ping timeout: 240 seconds]
Kevslinger has quit [Quit: Connection closed for inactivity]
lxbarbosa has quit [Remote host closed the connection]
khisanth_ has joined #lisp
karlosz has joined #lisp
leb has quit []
stepnem has quit [Ping timeout: 265 seconds]
stepnem has joined #lisp
semz has quit [Ping timeout: 264 seconds]
karlosz has quit [Quit: karlosz]
mulk has quit [Ping timeout: 246 seconds]
mulk has joined #lisp
semz has joined #lisp
semz has quit [Changing host]
semz has joined #lisp
quazimodo has quit [Read error: Connection reset by peer]
ravenousmoose has joined #lisp
d4ryus1 has joined #lisp
rople has joined #lisp
d4ryus has quit [Ping timeout: 276 seconds]
ravenousmoose has quit [Ping timeout: 276 seconds]
anewuser has joined #lisp
dale has quit [Quit: My computer has gone to sleep]
superkumasan has quit [Ping timeout: 240 seconds]
leb has joined #lisp
lucasb has quit [Quit: Connection closed for inactivity]
space_otter has joined #lisp
akoana has left #lisp ["Leaving"]
leb has quit []
__jrjsmrtn__ has quit [Ping timeout: 240 seconds]
__jrjsmrtn__ has joined #lisp
igemnace has joined #lisp
vaporatorius has quit [Read error: Connection reset by peer]
vaporatorius has joined #lisp
Bike has quit [Quit: Lost terminal]
akoana has joined #lisp
dddddd has quit [Remote host closed the connection]
anewuser has quit [Ping timeout: 264 seconds]
clothespin has joined #lisp
ebzzry has joined #lisp
Lord_of_Life_ has joined #lisp
Lord_of_Life has quit [Ping timeout: 245 seconds]
Lord_of_Life_ is now known as Lord_of_Life
fengshaun has quit [Quit: bibi!]
ahungry has joined #lisp
space_otter has quit [Remote host closed the connection]
igemnace has quit [Ping timeout: 265 seconds]
hh47 has quit [Ping timeout: 245 seconds]
karlosz has joined #lisp
fengshaun has joined #lisp
yoja has quit [Remote host closed the connection]
quazimodo has joined #lisp
igemnace has joined #lisp
FreeBirdLjj has joined #lisp
andrei-n has joined #lisp
ltriant has quit [Read error: Connection reset by peer]
ltriant has joined #lisp
ahungry has quit [Remote host closed the connection]
gravicappa has joined #lisp
<beach> Good morning everyone!
zaquest has quit [Remote host closed the connection]
<Josh_2> Mornin'
Nomenclatura has quit [Quit: q]
zaquest has joined #lisp
FreeBirdLjj has quit [Remote host closed the connection]
<patrixl> heya all
<beach> Hello patrixl.
ravenousmoose has joined #lisp
ravenousmoose has quit [Ping timeout: 276 seconds]
ravenousmoose has joined #lisp
Inline has quit [Quit: Leaving]
ravenousmoose has quit [Ping timeout: 245 seconds]
khisanth_ has quit [Ping timeout: 245 seconds]
orivej has joined #lisp
yoeljacobsen has joined #lisp
khisanth_ has joined #lisp
akoana has left #lisp ["Leaving"]
hdasch has joined #lisp
yoeljacobsen has quit [Ping timeout: 240 seconds]
ravenousmoose has joined #lisp
flamebeard has joined #lisp
Necktwi has joined #lisp
sigjuice has quit [Quit: ZNC - http://znc.in]
ravenousmoose has quit [Ping timeout: 276 seconds]
shka_ has joined #lisp
jprajzne has joined #lisp
gxt has joined #lisp
yoeljacobsen has joined #lisp
ltriant has quit [Quit: leaving]
gareppa has joined #lisp
<yoeljacobsen> Is there a way to see every bound variables in SLDB with SBCL (like CCL's default behavior when entering a frame)?
shka_ has quit [Ping timeout: 240 seconds]
JohnMS_WORK has joined #lisp
scymtym has quit [Ping timeout: 268 seconds]
mange has quit [Quit: Farewell!]
<Shinmera> yoeljacobsen: If they're not there they have been optimised out. You can try compiling your function with debug 3 (C-u C-c C-c) to retain them, but if they're not used at all they still won't show up even then.
<yoeljacobsen> Thanks. I'll keep developing with CCL then.
enrio has joined #lisp
karlosz has quit [Quit: karlosz]
karlosz has joined #lisp
karlosz has quit [Remote host closed the connection]
yoeljacobsen has quit [Ping timeout: 276 seconds]
yoja has joined #lisp
karlosz has joined #lisp
yoja has quit [Ping timeout: 260 seconds]
fanta1 has joined #lisp
frgo has quit [Ping timeout: 240 seconds]
d4ryus1 is now known as d4ryus
nwoob has joined #lisp
<nwoob> Not exactly a lisp question but I want to seek some guidance. I am not a smart person, i can't come up to solutions quickly. So what can I do to become a good programmer like people here
<Shinmera> Same as with any skill. practise, reflect, correct, repeat.
<nwoob> So it is possible to counted as a good programmer even when a person is not smart to be start with
<nwoob> I read all those fairy tales like stuff about lisp that it is magical and will open your mind and all that stuff, maybe I'm looking at it wrong
<Shinmera> Lisp offers different perspectives on writing programs. These perspectives can be valuable and useful to building good software.
<Shinmera> There's plenty of languages out there that are very different, and each come with their own perspectives. Ideally you learn them all.
<Shinmera> Variety is the spice of life, and all that.
karlosz has quit [Quit: karlosz]
gareppa has quit [Quit: Leaving]
<nwoob> Hmm ok
scymtym has joined #lisp
schweers has joined #lisp
<beach> nwoob: I often recommend a book entitled "Peak" by Anders Ericsson.
<beach> nwoob: His research shows that expertise is the result of hard work and not of any sort of intrinsic concept of intelligence.
leedleLoo has joined #lisp
<scymtym> when i install screamer via quicklisp, i get screamer-20190710-git. however, looking at https://github.com/quicklisp/quicklisp-projects/blob/master/projects/screamer/source.txt and https://github.com/nikodemus/screamer , it seems the most recent change was in 2015. does anybody know why that is?
varjag has joined #lisp
frgo has joined #lisp
yoeljacobsen has joined #lisp
isBEKaml has joined #lisp
Lycurgus has joined #lisp
wusticality has joined #lisp
<nwoob> beach Book named peak secrets from the new science of expertise ?
ralt has joined #lisp
yoeljacobsen has quit [Ping timeout: 252 seconds]
akoana has joined #lisp
akoana has left #lisp [#lisp]
<leedleLoo> I recently read richard gabriel's paper here where he distinguishes between languages and systems: https://www.dreamsongs.com/Files/Incommensurability.pdf. Is there other reading making this distinction? When folks have asked why I prefer CL, especially over other lisps, I've always pointed out that the environment exposed through lisp/slime is unparalleled and I feel that the paper kinda touches on this
hhdave has joined #lisp
seok has joined #lisp
<seok> is there a limit on how much memory sbcl will use with portacle setup?
<seok> it seems to hang when I try to read a large csv
<Lycurgus> u need to set the heap size it won't grow beyond the configed limit, though the hang being a loop is suspect
<seok> How do I set it?
<Lycurgus> command line parm
<seok> It reads a csv with 41k rows fine
<seok> but hangs when reading 740k rows csv
<Lycurgus> dynamic space and stack size
<seok> Is there a guide somewhere?
<Lycurgus> man sbcl
<seok> I do not have understanding of those concepts
<Lycurgus> those are literally the names of the parms
<seok> so I found this command for emacs
<seok> (setq inferior-lisp-program "sbcl --dynamic-space-size 1024")
<seok> but what does that 1024 mean?
longshi has joined #lisp
<Lycurgus> prolly 1 GB
<seok> so it means sbcl will use maximum 1gb ram?
<Lycurgus> correct
<seok> nice, thanks
<Lycurgus> so set to 8192 and give it a whirl
mn3m has joined #lisp
ggole has joined #lisp
Lycurgus has quit [Quit: Exeunt]
wusticality has quit [Remote host closed the connection]
yoeljacobsen has joined #lisp
wusticality has joined #lisp
cosimone has joined #lisp
<seok> hm.. setting .emacs did not work for me
anewuser has joined #lisp
yoeljacobsen has quit [Ping timeout: 245 seconds]
EvW has joined #lisp
yoeljacobsen has joined #lisp
jonatack has quit [Ping timeout: 276 seconds]
EvW has quit [Ping timeout: 264 seconds]
<beach> nwoob: Yes, that one.
<beach> leedleLoo: That is a pretty standard distinction.
isBEKaml has quit [Quit: leaving]
maxxcan has joined #lisp
<beach> leedleLoo: See for instance https://en.wikipedia.org/wiki/Programming_language
<leedleLoo> beach: I'm not sure which section in the wiki is relevant to the lang vs system distinction
maxxcan has quit [Quit: maxxcan]
<schweers> seok: Did you re-evaluate the setq form? Also, did you restart your lisp?
<beach> leedleLoo: A language is "just" a (usually infinite) set of phrases. By "system", I assume that Gabriel meant some kind of software.
<seok> Yeah
<seok> schweers: I edited .emacs and restarted portacle
<schweers> As I have no idea what portacle does, I’m afraid I can’t tell you where portacle gets its configuration. Does it start an emacs instance?
flamebeard has quit []
froggey has quit [Ping timeout: 240 seconds]
lxbarbosa has joined #lisp
wusticality has quit [Remote host closed the connection]
<leedleLoo> beach: Gabriel defined his use of Language and System on page 11 of the paper. I'm still not sure what part of wikipedia is relevant, though
EvW has joined #lisp
shifty has joined #lisp
<beach> leedleLoo: OK, too bad.
froggey has joined #lisp
m00natic has joined #lisp
gareppa has joined #lisp
dddddd has joined #lisp
manualcrank has quit [Quit: WeeChat 1.9.1]
EvW has quit [Ping timeout: 240 seconds]
<_death> leedleLoo: maybe you'll be interested in http://www.nhplace.com/kent/PS/Hindsight.html
<seok> schweers, yeah it does. It's just an all in one emacs-slime-sbcl package
<leedleLoo> _death: I skimmed over the headings and will read later on, but this is great, thanks :)
<_death> it doesn't go too deep, just the first thing that occurred to me in relation to the RPG paper
gareppa has quit [Quit: Leaving]
pyericz has joined #lisp
shifty has quit [Ping timeout: 265 seconds]
<schweers> seok: That’s weird. I use the same variable to set my heap size and it works just fine. I don’t use portacle though.
<leedleLoo> The page seems to focus on the repl-experience instead of just talking about the language itself, and that's what I was interested in. I've always felt that folks comparing CL to other languages/lisps have tended to focus on the language and the not development experience as a whole
Posterdati has quit [Ping timeout: 265 seconds]
jonatack has joined #lisp
EvW1 has joined #lisp
vaporatorius has quit [Read error: Connection reset by peer]
EvW1 has quit [Ping timeout: 240 seconds]
<_death> leedleLoo: correct.. there are other communities also taking the system view seriously, such as the Smalltalk community..
longshi has quit [Ping timeout: 250 seconds]
<leedleLoo> _death: I haven't really dabbled in Smalltalk myself, but from what I've read, that's absolutely true. I haven't seen other communities with this viewpoint though, and it's really the main reason why I write CL
<_death> leedleLoo: I found it interesting that the target paper critiqued by RPG was written by a Smalltalk guy
reggie_ has quit [Ping timeout: 240 seconds]
reggie_ has joined #lisp
nwoob has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
cosimone has quit [Quit: Terminated!]
Posterdati has joined #lisp
<Shinmera> seok: .emacs does not apply to Portacle. Use user.el in the config/ directory instead.
<Shinmera> The help file explains this.
ljavorsk has joined #lisp
ljavorsk has quit [Remote host closed the connection]
ljavorsk has joined #lisp
duuqnd has joined #lisp
red-dot has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<thijso> _death: that hindsight link seems to touch on quite a few things in common with PAIP, which I'm reading through for the first time now
<thijso> which I should have done a long time ago...
<thijso> can't say I'm able to follow all of it on first read, though... info density is quite high
<_death> thijso: yes, it's worth multiple readings
<thijso> I'm afraid it'll be a bit like physics in high school... you follow the explanation during class, and think, oh right, I understand that... then, when you need to figure out the stuff yourself during a test, you're totally lost and unable to make the leap from problem to solution...
<thijso> or is that not a universal thing... ;)
<_death> well, it also has exercises
<thijso> Yeah... I'm skipping those on the first read through... have to save something for later, right?
<thijso> maybe not the smartest decision, though...
ljavorsk has quit [Ping timeout: 264 seconds]
<_death> it's not a critical one anyway.. before or after matters less as long as at some point you get some practice
<thijso> yep
<_death> it's not a race, take it easy :)
<_death> incidentally, Norvig also wrote the Teach Yourself Programming in Ten Years paper
rople has quit [Read error: Connection reset by peer]
red-dot has joined #lisp
heisig has joined #lisp
papachan has joined #lisp
jonatack has quit [Read error: Connection reset by peer]
zaquest has quit [Ping timeout: 240 seconds]
clothespin_ has joined #lisp
jonatack has joined #lisp
clothespin has quit [Ping timeout: 276 seconds]
fanta1 has quit [Ping timeout: 264 seconds]
adatzer has joined #lisp
flamebeard has joined #lisp
zaquest has joined #lisp
tim has joined #lisp
tim is now known as Guest72134
Guest72134 is now known as very_high_nunchi
jonatack has quit [Ping timeout: 240 seconds]
jonatack has joined #lisp
adatzer has left #lisp [#lisp]
gareppa has joined #lisp
anewuser has quit [Quit: anewuser]
jonatack has quit [Client Quit]
lxbarbosa has quit [Read error: Connection reset by peer]
gareppa has quit [Remote host closed the connection]
lxbarbosa has joined #lisp
asdf_asdf_asdf has joined #lisp
igemnace has quit [Ping timeout: 265 seconds]
tehidiot has quit [Quit: Connection closed for inactivity]
igemnace has joined #lisp
very_high_nunchi has quit [Remote host closed the connection]
cosimone has joined #lisp
Posterdati has quit [Ping timeout: 265 seconds]
vaporatorius has joined #lisp
milanj has joined #lisp
leedleLoo has left #lisp [#lisp]
icov0x29a has joined #lisp
icov0x29a has quit [Remote host closed the connection]
gabiruh has joined #lisp
g_o has joined #lisp
<drmeister> Hello lispers
Posterdati has joined #lisp
kajo has joined #lisp
ebrasca has joined #lisp
ebrasca has quit [Remote host closed the connection]
ebrasca has joined #lisp
<moldybits> hello
andrei-n has quit [Read error: Connection reset by peer]
flamebeard has quit []
<papachan> hello
EvW has joined #lisp
zagain has joined #lisp
zagain has left #lisp [#lisp]
papachan has quit [Quit: Leaving]
Bike has joined #lisp
cosimone has quit [Remote host closed the connection]
cosimone has joined #lisp
Colleen has quit [Read error: Connection reset by peer]
zdm has joined #lisp
Colleen has joined #lisp
g_o has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
Necktwi has quit [Ping timeout: 276 seconds]
<beach> Since many people here hang out neither in #sicl nor in #clim, let me just encourage anyone who regularly uses an inspector during development to try the new version of Clouseau. I am currently using its extension API in order to inspect SICL bootstrapping objects, something that was not possible with the old Clouseau. The new version is a total rewrite (by scymtym) and I thing he did a fantastic job.
toorevitimirp has joined #lisp
<beach> s/thing/think/
EvW has quit [Ping timeout: 245 seconds]
asdf_asdf_asdf has quit [Remote host closed the connection]
gravicappa has quit [Ping timeout: 265 seconds]
gravicappa has joined #lisp
<yoeljacobsen> beach - I couldn't find much info on Clouseau - may you please provide more information on how to try it?
lucasb has joined #lisp
ravenousmoose has joined #lisp
ravenousmoose has quit [Client Quit]
bitmapper has joined #lisp
<edgar-rft> yoeljacobsen: see https://www.cliki.net/Clouseau
<yoeljacobsen> thanks
<edgar-rft> yoeljacobsen: don't thank me too early, the link leads to a ten year old version :-(
<scymtym> i updated the wiki page to link to the current source (i.e. https://github.com/McCLIM/McCLIM/tree/master/Apps/Clouseau ). the documentation is here: https://common-lisp.net/project/mcclim/static/manual/mcclim.html#Inspector
<edgar-rft> scymtym: thank you :-)
jansc has joined #lisp
ravenousmoose has joined #lisp
hh47 has joined #lisp
wxie has joined #lisp
toorevitimirp has quit [Ping timeout: 240 seconds]
toorevitimirp has joined #lisp
EvW has joined #lisp
Necktwi has joined #lisp
clothespin_ has quit [Ping timeout: 264 seconds]
shifty has joined #lisp
JohnMS_WORK has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
toorevitimirp has quit [Ping timeout: 252 seconds]
yoeljacobsen has quit [Ping timeout: 264 seconds]
asdf_asdf_asdf has joined #lisp
jansc has quit [Quit: WeeChat 2.5]
decent-username has joined #lisp
<asdf_asdf_asdf> Hello folks, hello there, hello all, hello wholes, hello You. Hi, hey, hello!
<decent-username> geez, I think your name is even more retarded than mine.
<decent-username> hi asdf_asdf_asdf
<asdf_asdf_asdf> Ask a question and wait already on the answer.
<shinohai> At least his name isn't quicklisp_quicklisp_quicklisp.
<Bike> kicked but not banned. well, the banlist is clear enough for it now
wxie has quit [Ping timeout: 250 seconds]
clothespin has joined #lisp
bitmapper has quit [Remote host closed the connection]
<pjb> at least, it's not asdfy-mcasdface !
hh47 has quit [Ping timeout: 265 seconds]
FreeBirdLjj has joined #lisp
ebrasca` has joined #lisp
ebrasca has quit [Read error: Connection reset by peer]
ravenousmoose has quit [Ping timeout: 252 seconds]
decent-username has quit [Ping timeout: 240 seconds]
mindCrime has joined #lisp
heisig has quit [Quit: Leaving]
davercc has joined #lisp
_atomik has quit [Read error: Connection reset by peer]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #lisp
scymtym has quit [Ping timeout: 245 seconds]
Posterdati has quit [Ping timeout: 268 seconds]
smazga has joined #lisp
FreeBirdLjj has quit [Ping timeout: 265 seconds]
hh47 has joined #lisp
dale_ has joined #lisp
dale_ is now known as dale
asdf_asdf_asdf has quit [Ping timeout: 264 seconds]
EvW has quit [Ping timeout: 245 seconds]
EvW1 has joined #lisp
Posterdati has joined #lisp
pritambaral has quit [Ping timeout: 264 seconds]
nika_ has joined #lisp
varjag has quit [Quit: ERC (IRC client for Emacs 25.2.2)]
xrash has joined #lisp
decent-username has joined #lisp
FreeBirdLjj has joined #lisp
decent-u` has joined #lisp
kajo has quit [Ping timeout: 276 seconds]
decent-username has quit [Ping timeout: 246 seconds]
Inline has joined #lisp
edgar-rft has quit [Quit: Leaving]
jonatack has joined #lisp
Oladon_wfh has joined #lisp
red-dot has quit [Quit: Going offline, see ya! (www.adiirc.com)]
Lord_of_Life_ has joined #lisp
Lord_of_Life has quit [Ping timeout: 240 seconds]
Lord_of_Life_ is now known as Lord_of_Life
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #lisp
``Erik has joined #lisp
LiamH has joined #lisp
clothespin has quit [Ping timeout: 246 seconds]
red-dot has joined #lisp
jonatack has quit [Ping timeout: 276 seconds]
jonatack has joined #lisp
schweers has quit [Ping timeout: 264 seconds]
pritambaral has joined #lisp
scymtym has joined #lisp
hh47 has quit [Quit: hh47]
EvW1 has quit [Ping timeout: 276 seconds]
manualcrank has joined #lisp
enrio has quit [Ping timeout: 240 seconds]
m00natic has quit [Remote host closed the connection]
jeosol has quit [Ping timeout: 260 seconds]
cosimone has quit [Quit: Terminated!]
ggole has quit [Quit: Leaving]
kajo has joined #lisp
gareppa has joined #lisp
hhdave has quit [Quit: hhdave]
enrio has joined #lisp
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #lisp
vms14 has joined #lisp
<vms14> does format sabe the "index" number when is looping over a list?
<vms14> like dolist (i list), I want the i
<vms14> /sabe/save
longshi has joined #lisp
<White_Flame> dolist would set I to the element of the list, not the index number
FreeBirdLjj has quit [Ping timeout: 264 seconds]
asdf_asdf_asdf has joined #lisp
<vms14> I want to format a numbered list with 1. something
<asdf_asdf_asdf> Hello everybody. The latest version ERC is 5.3 - this is stable version?
<vms14> I'd like to use something like (format t "~{~a~}" '("rule 1" "rule 2"))
<vms14> White_Flame: right, sorry, dotimes*
longshi has quit [Client Quit]
gxt has quit [Remote host closed the connection]
Lycurgus has joined #lisp
<vms14> there is no directive in format to print the current number of iterations inside a list?
<Bike> vms14: it does not save the index number.
<Bike> no.
<vms14> oh
gxt has joined #lisp
<vms14> then I'll make a wrapper
<vms14> ty
<White_Flame> isn't there a format escape that will evaluate a form? can you shove an INCF in there?
* White_Flame can't find one at the moment
<Bike> no.
<Bike> format is just a normal function, it doesn't evaluate anything.
<Bike> to evaluate an incf it would have to know about the local environment.
<White_Flame> yeah, tilde slash, that was it
<pfdietz> In which I discover both Optima and Trivia can take exponential time to compile a pattern.
<dlowe> you can make it call a global function
<vms14> (defun ordered-list (list)
<vms14> (format t "~a. ~a~%" (1+ i) (nth i list))))
<vms14> (dotimes (i (length list))
<vms14>
<dlowe> vms14: you would be much better off using DO or LOOP for that
<dlowe> vms14: that call to NTH is giong to traverse the list for every element
frgo_ has joined #lisp
<pjb> vms14: (format nil "~2,1@/fmt-index/~:*~{~,/fmt-index/~:* ~(~A~)~^~%~}." '("rule 1" "rule 2")) #| --> "1 rule 1 ; 2 rule 2." |#
<White_Flame> stupid hack: https://pastebin.com/RXNr23Qk
decent-u` has quit [Ping timeout: 246 seconds]
<White_Flame> would have to reset the counter on each use
decent-u` has joined #lisp
<White_Flame> an easier-to-write but less memory efficient version would be to map* up a list of data with calculated counters in it, then pass that to FORMAT
<dlowe> (loop for e in list as i from 0 do (format t "~a. ~a~%" i e)) seems more than reasonable
<White_Flame> yeah, if the challenge isn't just calling FORMAT once
frgo has quit [Ping timeout: 265 seconds]
<pjb> Remember that the control string is an argument to format. It can come from a configuration file or a localization file.
<dlowe> I suspect this isn't a challenge but a newbie making things difficult for themselves
<vms14> pjb: I've stolen your code
<vms14> and I'm testing
<vms14> you gave me this link some time before because I remember trying it
<vms14> the ftm-index function is very big for just count numbers in a list
asdf_asdf_asdf has quit [Quit: asdf_asdf_asdf]
frgo_ has quit [Ping timeout: 240 seconds]
<vms14> but it's an interesting case and a good example to learn how to create functions for format
<vms14> so thanks
FreeBirdLjj has joined #lisp
cosimone has joined #lisp
jgodbout has joined #lisp
gareppa has quit [Quit: Leaving]
cosimone has quit [Quit: Terminated!]
cosimone has joined #lisp
decent-u` has quit [Ping timeout: 276 seconds]
gareppa has joined #lisp
<pjb> vms14: format is also a very big function for just writing an integer and a string.
<pjb> vms14: try to eliminate all the very big functions. That's a good aim.
varjag has joined #lisp
gareppa has quit [Client Quit]
gareppa has joined #lisp
<vms14> pjb: I'll never "eliminate" format
<vms14> is the best "printing" function I've seen
<vms14> I have this
<White_Flame> one of the more interesting output construction facilities I've seen is in Erlang
<vms14> there is a friend "refactoring" some other's bash scripts
<vms14> and I thought it could be a good exercise for a noob like me to create a lisp version of this script
<White_Flame> you build up nested lists of strings (or byte values), and then the final output call loops through, flattening all the output into the stream
<vms14> atm I just have (show-menu) xD
<White_Flame> so things like (list "(" contents ")") are easy
<vms14> but I like it because you give a list of options and a list of functions
<White_Flame> without having to muck about with what's actually in the contents
<vms14> and "associates" options with functions by order
gareppa has quit [Quit: Leaving]
<vms14> I want to make my friend learn lisp, he is kinda interesting due to emacs & elisp
<vms14> s/interesting/interested
karlosz has joined #lisp
lxbarbosa has quit [Ping timeout: 252 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #lisp
cosimone has quit [Quit: Terminated!]
joast has quit [Ping timeout: 240 seconds]
FreeBirdLjj has quit [Ping timeout: 240 seconds]
cosimone has joined #lisp
frgo has joined #lisp
seok has quit [Remote host closed the connection]
cosimone has quit [Client Quit]
joast has joined #lisp
paul0 has joined #lisp
karlosz has quit [Quit: karlosz]
ebrasca` is now known as ebrasca
gxt has quit [Ping timeout: 260 seconds]
karlosz has joined #lisp
cosimone has joined #lisp
karlosz has quit [Client Quit]
gareppa has joined #lisp
Necktwi has quit [Quit: leaving]
nika_ has quit []
nullman has quit [Ping timeout: 240 seconds]
hiroaki_ has joined #lisp
ravenousmoose has joined #lisp
edgar-rft has joined #lisp
gareppa has quit [Quit: Leaving]
gareppa has joined #lisp
paul0 has quit [Read error: Connection reset by peer]
notzmv has quit [Ping timeout: 240 seconds]
paul0 has joined #lisp
jonatack has quit [Ping timeout: 265 seconds]
paul0 has quit [Read error: Connection reset by peer]
paul0 has joined #lisp
paul0 has quit [Client Quit]
jgodbout has quit [Remote host closed the connection]
<aeth> the only problem with format is that there isn't a (standard) deformat for parsing so you could (stream "~F" variable) and get a variable out
<aeth> s/stream/deformat stream/
<Bike> you should use an actual parser
cosimone has quit [Quit: Terminated!]
mn3m has quit [Ping timeout: 240 seconds]
jgodbout has joined #lisp
Lycurgus has quit [Quit: Exeunt]
shifty has quit [Ping timeout: 252 seconds]
milanj has quit [Quit: This computer has gone to sleep]
shka_ has joined #lisp
davercc has quit [Remote host closed the connection]
rippa has joined #lisp
jonatack has joined #lisp
doublex_ has quit [Ping timeout: 240 seconds]
doublex has joined #lisp
clothespin has joined #lisp
pritambaral has quit [Ping timeout: 250 seconds]
catalinbostan has joined #lisp
EvW has joined #lisp
cosimone has joined #lisp
karlosz has joined #lisp
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hiroaki_ has quit [Ping timeout: 252 seconds]
karlosz has quit [Quit: karlosz]
duuqnd has quit []
wooden has quit [Remote host closed the connection]
vms14 has quit [Remote host closed the connection]
karlosz has joined #lisp
milanj has joined #lisp
catalinbostan has quit [Quit: Textual IRC Client: www.textualapp.com]
<pjb> aeth: format is quite complex, with ~{ an ~/; it would be difficult to write a symetric scan function.
gravicappa has quit [Ping timeout: 252 seconds]
karlosz has quit [Quit: karlosz]
karlosz has joined #lisp
karlosz has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 276 seconds]
gigetoo has joined #lisp
shka_ has quit [Ping timeout: 245 seconds]
EvW has quit [Quit: EvW]
permagreen has quit [Remote host closed the connection]
pritambaral has joined #lisp
nowhere_man has joined #lisp
ltriant has joined #lisp
vms14 has joined #lisp
hjudt has quit [Ping timeout: 245 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
vms14 has quit [Remote host closed the connection]
hjudt has joined #lisp
enrio has quit [Ping timeout: 240 seconds]
clothespin_ has joined #lisp
asdf_asdf_asdf has joined #lisp
clothespin has quit [Ping timeout: 252 seconds]
clothespin_ is now known as clothespin
karlosz has joined #lisp
nowhereman has joined #lisp
nowhere_man has quit [Ping timeout: 276 seconds]
vms14 has joined #lisp
<vms14> how can I achieve this in a macro?
<vms14> where I should put the backquoute, or how I need to do it?
<Bike> your example doesn't have what is actually returned
<vms14> yes, it should return the list
<Bike> the list of what
<vms14> a list of lambdas created on the fly
<vms14> I want to make amacro like (code-lambda-list ('(+ 3 2) '(format t "oh")))
<vms14> and have a list of lambdas created with this code in the body
<vms14> accepting 0 arguments
<vms14> but I don't know how to create the macro for that
<Bike> So writing (code-lambda-list (+ 3 2) (format t "oh")) is equivalent to writing (list (lambda () (+ 3 2)) (lambda () (format t "oh")))?
<vms14> yes
raghavgururajan has quit [Read error: Connection reset by peer]
<Bike> That's what you need to convey in your example and think about when you're writing a macro. The expansion.
<Bike> You're expanding into a call to list, so you'll want `(list ...)
<vms14> but I need to use ,@ for the body of the lambda
<Bike> take a step back here.
<vms14> the problem is I need the @, of every argument
<Bike> You actually don't need to use the ,@ construct at all, if you think about it.
<Bike> Don't think in terms of backquoting, think in terms of inputs and outputs. You're just constructing a form.
clothespin has quit [Ping timeout: 250 seconds]
<vms14> I have no idea how
<vms14> xD
<vms14> give me a hint
<Bike> (defmacro code-lambda-list (&rest forms) `(list ,@(loop for form in forms collect `(lambda () ,form)))) is how i'd write it. no ,@ of the forms.
<vms14> oh
<vms14> thanks
<Bike> try to understand how it works
gareppa has quit [Quit: Leaving]
<vms14> `(lambda () ,'(+ 3 2)) I'm trying to understand it with this
<vms14> (funcall (eval `(lambda () ,'(+ 3 2))))
<Bike> What don't you understand?
<vms14> the loop macro
<vms14> I mean
<vms14> using ,@ with the loopmacro
<vms14> this is why I'm isolating stuff
<Bike> ,@ doesn't care, it just gets a list.
<Bike> `(-2 -1 ,@(loop for i below 5 collect i) 6 7)
<Bike> er, upto i, whatever.
<Bike> (defmacro code-lambda-list (&rest forms) (cons 'list (loop for form in forms collect (list lambda () form)))) works too.
<Bike> er, 'lambda
<vms14> (dolist (oh (list "oh" "my" "cat")) (push `(lambda () ,oh)) flist) why this isn't working
<Bike> You probably meant (push `(lambda () ,oh) flist)?
<vms14> oh lol
<Bike> I get an error like "Too few arguments supplied to a macro or a destructuring-bind form", don't you?
<vms14> oh so it worked
clothespin has joined #lisp
varjag has quit [Ping timeout: 276 seconds]
<vms14> this is why I didn't understand why loop worked
<Bike> What?
<vms14> nvm tried this (dolist (oh (list "oh" "my" "cat")) (push `(lambda () ,oh) flist))
<vms14> but I had a parent in a bad position
<vms14> and I thought it was because i wasn't allowed todo that instead of a "typo"
<vms14> but it works
<Bike> (defmacro code-lambda-list (&rest forms) (cons 'list (let ((elems nil)) (dolist (form forms (nreverse elems)) (push (list 'lambda () form) elems)))))
<vms14> thanks a lot for your help Bike
<Bike> no problem
<vms14> I don't even need a macro
red-dot has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<Bike> that happens sometimes.
nowhereman has quit [Ping timeout: 265 seconds]
nowhereman has joined #lisp
<vms14> oh thanks for this macro
<vms14> <3
<vms14> I have a function that associates options with functions and calls a function depending on the option the user chooses
Bike has quit [Quit: Bike]
<vms14> my funcion expects a list of strings for the options, and a list of lambdas
mindCrime has quit [Ping timeout: 268 seconds]
<vms14> now I can just (show-menu '("option1" "option2") (code-lambda-list (print "option1") (print "option2")))
quazimodo has quit [Read error: Connection reset by peer]
karlosz has quit [Quit: karlosz]
jprajzne has quit [Quit: jprajzne]
jprajzne has joined #lisp
karlosz has joined #lisp
karlosz has quit [Remote host closed the connection]
LiamH has quit [Quit: Leaving.]
jprajzne has quit [Client Quit]
jprajzne has joined #lisp
red-dot has joined #lisp
teeeay has joined #lisp
jprajzne has quit [Quit: jprajzne]
<teeeay> might be the wrong place to ask, but does anyone here have any experience with the vecto library for common-lisp?
jprajzne has joined #lisp
karlosz has joined #lisp
karlosz has quit [Client Quit]
jprajzne has quit [Client Quit]
jprajzne has joined #lisp
Bike has joined #lisp
igemnace has quit [Ping timeout: 240 seconds]
clothespin has quit [Ping timeout: 240 seconds]
smazga has quit [Quit: leaving]
igemnace has joined #lisp
cosimone has quit [Ping timeout: 250 seconds]
jmercouris has joined #lisp
gigetoo has quit [Ping timeout: 276 seconds]
jmercouris has quit [Remote host closed the connection]
gigetoo has joined #lisp
clothespin has joined #lisp
<dlowe> This is a great place to ask, but maybe the wrong time of day
moldybits has quit [Ping timeout: 240 seconds]
vms14 has quit [Remote host closed the connection]
moldybits has joined #lisp
Danishman has joined #lisp
zdm has quit [Remote host closed the connection]
ebrasca has quit [Remote host closed the connection]
analogue has joined #lisp
PuercoPope has quit [Remote host closed the connection]
<pjb> teeeay: ∀l ∃u library(l) ∧ user(u) ∧ has_experience_with(u,l)
<pjb> teeeay: it's a theorem, assuming author(u,l) ⇒ has_experience_with(u,l)
GloriaReed has joined #lisp