p_l changed the topic of #lisp to: Common Lisp, the #1=(programmable . #1#) programming language | <https://irclog.tymoon.eu/freenode/%23lisp> <https://irclog.whitequark.org/lisp> <http://ccl.clozure.com/irc-logs/lisp/> | ASDF 3.3.4
igemnace has joined #lisp
Blukunfando has quit [Ping timeout: 264 seconds]
t58 has joined #lisp
Christ0pher has quit [Ping timeout: 256 seconds]
Christ0pher has joined #lisp
wxie has joined #lisp
wxie has quit [Remote host closed the connection]
t58 has quit [Quit: ah well it was good while it lasted]
nicktick has joined #lisp
Christ0pher has quit [Ping timeout: 240 seconds]
Christ0pher has joined #lisp
KaiLikesLinux has left #lisp [#lisp]
Lycurgus has joined #lisp
akoana has left #lisp ["Leaving"]
axion has joined #lisp
Christ0pher has quit [Ping timeout: 244 seconds]
Christ0pher has joined #lisp
ChoHag has quit [Ping timeout: 240 seconds]
KaiLikesLinux has joined #lisp
Christ0pher has quit [Ping timeout: 256 seconds]
axion has quit [Quit: WeeChat 2.8]
mfiano has joined #lisp
Christ0pher has joined #lisp
mfiano has quit [Client Quit]
mfiano has joined #lisp
bitmapper has quit [Ping timeout: 256 seconds]
terpri_ has joined #lisp
Christ0pher has quit [Ping timeout: 246 seconds]
mfiano has quit [Client Quit]
mfiano has joined #lisp
Christ0pher has joined #lisp
ChoHag has joined #lisp
terpri has quit [Ping timeout: 244 seconds]
ahungry has joined #lisp
Christ0pher has quit [Ping timeout: 240 seconds]
Christ0pher has joined #lisp
DataLinkDroid has joined #lisp
DataLinkDroid has quit [Quit: DataLinkDroid]
Christ0pher has quit [Ping timeout: 246 seconds]
Christ0pher has joined #lisp
Oladon has joined #lisp
jason_m has joined #lisp
EvW has quit [Ping timeout: 256 seconds]
Christ0pher has quit [Ping timeout: 256 seconds]
Christ0pher has joined #lisp
_Ark_ has quit [Ping timeout: 246 seconds]
ark has joined #lisp
Christ0pher has quit [Ping timeout: 264 seconds]
Christ0pher has joined #lisp
user__ has quit [Ping timeout: 260 seconds]
Christ0pher has quit [Ping timeout: 256 seconds]
Christ0pher has joined #lisp
Christ0pher has quit [Ping timeout: 256 seconds]
Christ0pher has joined #lisp
freshpassport has joined #lisp
davsebamse has joined #lisp
bhartrihari has left #lisp ["Disconnected: closed"]
efm_ has quit [Quit: Konversation terminated!]
_roman_ has joined #lisp
slyrus_ has joined #lisp
slyrus has quit [Ping timeout: 260 seconds]
Bike has quit [Quit: leaving]
Lycurgus has quit [Remote host closed the connection]
<beach> Good morning everyone!
dominic34 has joined #lisp
dominic34 has quit [Ping timeout: 244 seconds]
bhartrihari has joined #lisp
gravicappa has joined #lisp
nicktick has quit [Ping timeout: 256 seconds]
shangul has joined #lisp
cosimone_ has quit [Ping timeout: 246 seconds]
Oladon has quit [Quit: Leaving.]
<KaiLikesLinux> Morning, beach
<minion> KaiLikesLinux, memo from phoe: like that, for instance
<KaiLikesLinux> minion memo phoe what?
<KaiLikesLinux> minion: memo for phoe: Like what???
<minion> Remembered. I'll tell phoe when he/she/it next speaks.
cosimone_ has joined #lisp
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
cosimone_ has quit [Read error: Connection reset by peer]
cosimone_ has joined #lisp
<beach> KaiLikesLinux: phoe was just teaching you how to make minion give you a memo. You can look at the channel logs if you like.
Christ0pher has quit [Ping timeout: 240 seconds]
Christ0pher has joined #lisp
<KaiLikesLinux> beach: Ironic, as I figured it out without that xd
<beach> Oh well.
mrcom has quit [Ping timeout: 265 seconds]
mrcom has joined #lisp
gravicappa has quit [Ping timeout: 256 seconds]
cosimone_ is now known as cosimone
bhartrihari has left #lisp ["Disconnected: closed"]
nikkal has joined #lisp
KaiLikesLinux has left #lisp [#lisp]
Oladon has joined #lisp
zaquest has quit [Quit: Leaving]
dominic34 has joined #lisp
gxt has quit [Ping timeout: 240 seconds]
gxt has joined #lisp
OpenZen has quit [Ping timeout: 256 seconds]
cosimone has quit [Quit: Quit.]
Bourne has quit [Ping timeout: 244 seconds]
slyrus__ has joined #lisp
slyrus_ has quit [Ping timeout: 246 seconds]
CrazyEddy has quit [Ping timeout: 260 seconds]
joels has joined #lisp
bocaneri has joined #lisp
dominic34 has quit [Ping timeout: 244 seconds]
kopiyka has quit [Remote host closed the connection]
kopiyka has joined #lisp
nicktick has joined #lisp
ak5 has joined #lisp
Oladon has quit [Quit: Leaving.]
ak5 has quit [Client Quit]
roze has joined #lisp
ak5 has joined #lisp
roze has quit [Client Quit]
roze has joined #lisp
orivej has joined #lisp
bsd4me has quit [Remote host closed the connection]
mankaev__ has joined #lisp
freshpassport has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
simendsjo has joined #lisp
orivej has quit [Ping timeout: 256 seconds]
orivej_ has joined #lisp
nikkal has quit [Ping timeout: 264 seconds]
slyrus has joined #lisp
slyrus__ has quit [Ping timeout: 246 seconds]
nicktick has quit [Ping timeout: 264 seconds]
zaquest has joined #lisp
rgherdt has joined #lisp
ahungry has quit [Remote host closed the connection]
vegai has joined #lisp
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #lisp
<phoe> oh well
<minion> phoe, memo from KaiLikesLinux: Like what???
<phoe> that's good, I suppose!
<beach> Hey phoe.
<phoe> hey hi
liberliver has joined #lisp
Codaraxis_ has joined #lisp
orivej has quit [Ping timeout: 244 seconds]
pve has joined #lisp
Codaraxis has quit [Ping timeout: 256 seconds]
insomnyuk has joined #lisp
bhartrihari has joined #lisp
v3ga has joined #lisp
nicktick has joined #lisp
Cymew has joined #lisp
gaqwas has joined #lisp
gaqwas has quit [Changing host]
gaqwas has joined #lisp
ggole has joined #lisp
rogersm has joined #lisp
bhartrihari has left #lisp ["Disconnected: closed"]
bhartrihari has joined #lisp
julio_ has quit [Ping timeout: 244 seconds]
shangul has quit [Ping timeout: 256 seconds]
jonatack has quit [Ping timeout: 240 seconds]
tich has joined #lisp
roze has quit [Quit: Leaving]
KaiLikesLinux has joined #lisp
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
bhartrihari has joined #lisp
jonatack has joined #lisp
msk__ has quit [Ping timeout: 260 seconds]
<pve> Morning, in the SICL repository, is the "Cleavir2" directory a rewrite of "Cleavir"? So the "Cleavir" dir can be more or less ignored?
<KaiLikesLinux> mornin
shka_ has joined #lisp
<beach> pve: Let's hope so. Let me explain a bit...
joels has quit [Ping timeout: 240 seconds]
<beach> Clasp needed a better compiler, so drmeister wanted to use Cleavir for that, but Cleavir wasn't really ready at the time. Still isn't quite ready.
<beach> So for SICL, I needed to be able to modify Cleavir to adapt it to what SICL needs, and to correct some mistakes I made in Cleavir (v1).
<beach> But I couldn't really do that without breaking Clasp.
<beach> So I made Cleavir version 2.
dddddd has joined #lisp
<pve> ok, thanks, I understand now
<beach> But now, Clasp needs better performance, so Bike and karlosz are working on Cleavir 1 to incorporate some optimizations that are not yet in Cleavir 2.
<pve> just looking at the AST for now
<beach> I don't want them yet in Cleavir 2 because I want to debug as little code as possible while I am working on SICL bootstrapping.
<beach> Cleavir2 is probably better for you then.
<pve> ok, great!
wxie has joined #lisp
ljavorsk has joined #lisp
simendsjo has quit [Ping timeout: 244 seconds]
shangul has joined #lisp
wxie1 has joined #lisp
wxie has quit [Ping timeout: 246 seconds]
wxie1 is now known as wxie
FreeBirdLjj has joined #lisp
<pve> beach: (silly question) when you want to transform your AST into the next representation, do you walk the tree using the "children" function, or by directly recursing down each node's reader functions?
<pve> or is "children" used only for visualization etc
<pve> I ask because I don't have a children function, and now I'm wondering if I'm doing something the hard way
nicktick has quit [Ping timeout: 246 seconds]
karlosz has quit [Quit: karlosz]
<beach> Usually, the transformation uses the specific accessors.
<pve> alright
<beach> CHILDREN is for when you don't really care what the AST is doing.
<beach> Visualization is one such situation, yes.
KaiLikesLinux has quit [Quit: Leaving.]
orivej has joined #lisp
wxie has quit [Ping timeout: 246 seconds]
wxie has joined #lisp
fanta1 has joined #lisp
jonatack has quit [Ping timeout: 244 seconds]
wxie has quit [Remote host closed the connection]
ayuce has joined #lisp
jonatack has joined #lisp
_roman_ has quit [Quit: WeeChat 1.9.1]
orivej_ has joined #lisp
orivej has quit [Ping timeout: 264 seconds]
jonatack has quit [Ping timeout: 244 seconds]
jonatack has joined #lisp
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #lisp
Lycurgus has joined #lisp
aap_ is now known as aap
orivej has quit [Ping timeout: 244 seconds]
gravicappa has joined #lisp
orivej has joined #lisp
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #lisp
FreeBirdLjj has quit [Ping timeout: 256 seconds]
oxum_ has quit [Quit: Leaving...]
funnel has quit [Ping timeout: 256 seconds]
funnel has joined #lisp
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #lisp
nicktick has joined #lisp
joels has joined #lisp
nicktick has quit [Ping timeout: 264 seconds]
cosimone has joined #lisp
v88m has quit [Ping timeout: 260 seconds]
joels has quit [Ping timeout: 256 seconds]
gigetoo has quit [Ping timeout: 258 seconds]
FreeBirdLjj has joined #lisp
joels has joined #lisp
orivej_ has joined #lisp
orivej has quit [Ping timeout: 256 seconds]
FreeBirdLjj has quit [Ping timeout: 260 seconds]
X-Scale` has joined #lisp
X-Scale has quit [Ping timeout: 260 seconds]
X-Scale` is now known as X-Scale
joels has quit [Ping timeout: 246 seconds]
Lord_of_Life_ has joined #lisp
random-nick has joined #lisp
Lord_of_Life has quit [Ping timeout: 246 seconds]
Lord_of_Life_ is now known as Lord_of_Life
simendsjo has joined #lisp
orivej_ has quit [Ping timeout: 246 seconds]
orivej has joined #lisp
X-Scale` has joined #lisp
X-Scale has quit [Ping timeout: 264 seconds]
X-Scale` is now known as X-Scale
Christ0pher has quit [Ping timeout: 246 seconds]
Christ0pher has joined #lisp
KaiLikesLinux has joined #lisp
MidHotaru has joined #lisp
_whitelogger has joined #lisp
orivej has joined #lisp
<jmercouris> I'm trying to do the following: http://dpaste.com/00C4P0G
<jmercouris> the linke that doesn't work is: do (setf index (term-count sentence word)))
<jmercouris> is the only way to set the value of an array with the index?
<jmercouris> I guess arrays are arrays regardless of the language huh :-D
<jackdaniel> "index" is not a pointer to the array cell
<mfiano> index is a variable binding of the value. It is not a place to be set in this context
<jmercouris> that's too bad, I assume it just grabs the value
<jmercouris> OK
<jackdaniel> even original locatives as defined on symbolics lisp machines didn't work with arrays that way
<jmercouris> so I'll have to use AREF then, correct?
<beach> jmercouris: Places are not first-class objects in Common Lisp.
<jmercouris> and I'll have to have another clause to keep a track of the index
<jackdaniel> you may do (make-array (length-dictionary) :initial-contents dictionary)
<jackdaniel> s/length-dictionary/length dictionary/
<jackdaniel> or, if you need to call a function, you may call map-into
<jmercouris> I thought about that
<jmercouris> I was just thinking about map, but I prefer loop
orivej has quit [Ping timeout: 244 seconds]
<jmercouris> at least in this case
ebrasca has joined #lisp
orivej has joined #lisp
<jackdaniel> then use aref (or svref, or row-major-aref)
<jmercouris> yeah, I've replaced it with: do (setf (aref vector-form index) (term-count sentence word)))
wxie has joined #lisp
<jmercouris> and then added the clause for index from 0 to (length vector-form)
<mfiano> That's not correct
<jmercouris> how come?
<mfiano> Use "for index below (length vector form)"
<jmercouris> what is "below"?
nikkal has joined #lisp
<jmercouris> hm, i think it is correct
<jmercouris> because I am using length
<mfiano> (loop :for i :to (length (vector 1 2 3)) :collect i) ; => (0 1 2 3)
<mfiano> (loop :for i :below (length (vector 1 2 3)) :collect i) ;=> (0 1 2)
<jackdaniel> (aref #(1 2 3) 3) ; => 4
<jmercouris> ah, I see
<jmercouris> off by 1 joy
<jackdaniel> (on VICL, that is "value inferring common lisp")
<ebrasca> jmercouris: ":to n" is equal to ":below (1- n)"
<jackdaniel> hm, better would be (aref #(0 1 2) 3) ;4 :)
<ebrasca> sory ":to (1- n)" is equal to ":below n"
<jmercouris> 1
<mfiano> and "from 0" is implied in this context, un-needed if you want to condense it a bit
<jmercouris> final clause form: for index from 0 upto (length vector-form)
<jmercouris> I'll leave the "from 0" for explicitness sake
<jackdaniel> I don't know where did you take this final clause form
<jackdaniel> where you explicitly repeat your error from before :)
<jmercouris> I use upto, it says it is analogous to below
<mfiano> analogous
<jmercouris> son of a
<jmercouris> yes
<ebrasca> jmercouris: I see you are having fun!
<jmercouris> lol, good times today indeed
<jmercouris> I'm doing some eigenvector centrality calculations, and so I decided to use arrays instead of lists for performance
<jmercouris> my first time using arrays in lisp
<jackdaniel> (and loop maybe?)
<jmercouris> no
<jackdaniel> n.b you may create an anaphoric macro
libertyprime has joined #lisp
<jackdaniel> s/anaphoric/symbol/, which captures the loop iterating variable
<jackdaniel> then (setf index foo) will expand to (setf (aref foobar index) foo)
<ebrasca> jmercouris: Try this (loop :for item-n :across (vector 0 1 2 3 4) :do (print item-n))
<jackdaniel> (symbol-macrolet ((index `(aref array i))) (loop for i below (length vector) do (setf index (bla))))
<jmercouris> hm, an interesting idea
<jackdaniel> that way you have a third-class place
<mfiano> Well you don't want the quote there but yeah
<jackdaniel> right, thanks for the correction mfiano
<jackdaniel> that said it is only a fun way to play with things, don't do that
<phoe> jackdaniel: I was about to mention that your irony levels are high today
<jackdaniel> code will be harder to read and benefits are literally 0 from using that
<jmercouris> yeah, I didn't say I would do it
<jmercouris> I just said it was an interesting idea
orivej has quit [Ping timeout: 264 seconds]
<jmercouris> I could also embed an emulator within an flet and make it perform the operations :-D
<jmercouris> an interesting idea, but I don't think I'm going to do it
<jackdaniel> phoe: I like to think about myself as a person who is not ironic at all
<phoe> I'd go (loop for word in dictionary for i from 0 do (setf (aref vector-form i) ...))
orivej has joined #lisp
<phoe> or just (coerce 'dictionary 'vector) since it seems equivalent?
<phoe> this code seems to turn (foo bar baz) info #(foo bar baz) and COERCE is good for that
<mfiano> That would be good too, but I suspect he will be refactoring later to a specialized array since he is after performance
joels has quit [Ping timeout: 244 seconds]
<phoe> uh I mean (coerce dictionary 'vector)
<phoe> or (coerce dictionary '(vector element-type)) for specialization
<phoe> where ELEMENT-TYPE is your element type
wxie has quit [Ping timeout: 244 seconds]
shangul has quit [Ping timeout: 240 seconds]
<phoe> still, even a simple array will give a speed boost when compared to long lists
montxero has joined #lisp
orivej_ has joined #lisp
orivej has quit [Ping timeout: 264 seconds]
<jackdaniel> that depends on how you access them
<jackdaniel> if you butcher arrays to append them and access them only sequentially, then array won't buy you a dim
<phoe> yes, linear scanning over lists is going to be fast
<phoe> but random access will be cheaper for arrays
<jackdaniel> there are other things to consider, that's why I say that it all depends
<jackdaniel> i.e list may hold any type of elements, while with specialized arrays you may inline some operations
<jackdaniel> (that is, compiler may)
Xach has quit [Ping timeout: 256 seconds]
<jackdaniel> also it is not given that sequential access to a list will be faster
<jackdaniel> i.e for array you know its length, so you don't have to check whether the cdr is nil
<ebrasca> Are there alternatives to multiple-value-bind ?
* jackdaniel dives back to presentation type predicates in CLIM
<jackdaniel> s/to/in/
cosimone has quit [Remote host closed the connection]
Xach has joined #lisp
cosimone has joined #lisp
<phoe> ebrasca: why do you ask?
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
<White_Flame> ebrasca: there's multiple-value-list, to grab them all into 1 vallue
<White_Flame> *value
<ebrasca> I have someting like this http://ix.io/2qLI , I don't like nesting multiple-value-binds .
<White_Flame> jackdaniel: arrays need to do a check against the length every iteration, though. likely the same cost
<White_Flame> plus an additional variable compared to the list
<mfiano> There are times when linearly accessing an array can be faster than the same size list
<jackdaniel> White_Flame: my point is that there are not guarantees what is faster
<phoe> ebrasca: there's no standard way around that.
<phoe> there are utilities like bind-star that offer different syntax for that, but they aren't standard
<White_Flame> ebrasca: write your own multiple-multiple-value-bind ;)
<ebrasca> White_Flame: What if I end neding multiple-multiple-multiple-value-bind ?
edgar-rft has quit [Quit: Leaving]
<jackdaniel> I don't recommend it, but you may use uiop's nest, you won't reduce number of forms but you will reduce nesting
<ebrasca> jackdaniel: Ok, I just focus making read-byte/sequence , write-byte/sequence for block based FSs.
<mfiano> golden-utils and serapeum have MVLET and MVLET* for that, which allows you to use m-v-b with a LET-like syntax, which means it can be used to intersperse normal LET bindings in the mix
<phoe> ebrasca: a hack is to do something like (destructuring-bind (a b c d e f) (multiple-value-call #'list (floor 1 2) (floor 3 4) (floor 5 6)) ...)
<phoe> but that is a hack
<ebrasca> This is my monster http://ix.io/2qLP
<phoe> there's just two nested m-v-b there
montxero has quit [Ping timeout: 265 seconds]
<phoe> I was expecting 4+ if you say it's a monster
<mfiano> (mvlet ((one two (values 1 2)) (three four (values 3 4)) (five 5)) (list one two three four five)) ; => (1 2 3 4 5)
shangul has joined #lisp
v88m has joined #lisp
bhartrihari has joined #lisp
<jackdaniel> well, only 5-level nest, but still it looked ugly
<phoe> hah
<mfiano> I should've probably done something similar here :) https://github.com/mfiano/algae/blob/master/src/noise/perlin-improved-4d.lisp#L48-L87
<phoe> haha
<jackdaniel> all I understand is "u lerp fs"
<jackdaniel> and it is probably some kind of insult
<mfiano> :)
<mfiano> 27-30 is an example of MVLET saving 4 levels of nesting btw
<mfiano> The rest are just normal let bindings shoved into that, because 1 return value is no different :)
shangul has quit [Ping timeout: 256 seconds]
jonatack has quit [Ping timeout: 246 seconds]
Codaraxis_ has quit [Read error: Connection reset by peer]
jprajzne has quit [Quit: jprajzne]
jprajzne has joined #lisp
jprajzne has quit [Client Quit]
jprajzne has joined #lisp
orivej_ has quit [Ping timeout: 244 seconds]
gxt has quit [Remote host closed the connection]
orivej has joined #lisp
gxt has joined #lisp
<ebrasca> mfiano: I can't find documentation for golden-utils.
<mfiano> Most functions have docstrings
cosimone has quit [Remote host closed the connection]
<ebrasca> maybe better name is multiple-value-let
<phoe> that's what mvlet stands for
cosimone has joined #lisp
<mfiano> A few libraries use mvlet for concision, and so does golden-utils
<phoe> except that I guess mfiano found the "multiple-value-" prefix too long
scymtym has quit [Remote host closed the connection]
<mfiano> Not really. I prefer descriptive names when appropriate. This was more about convention, though I do use that a fair bit so concision helps.
<ebrasca> Wha I don't like about lisp is its lack of consistency.
<ebrasca> What I don't like about lisp is its lack of consistency.
gxt has quit [Remote host closed the connection]
<shka_> yeah
<phoe> that's the price we pay for having arbitrary syntax
<mfiano> Well it is a language designed to bring multiple Lisps together, but fortunately, they gave us macros so it's a non-issue.
<ebrasca> whey sometimes it is "place item" and others "item place"
<phoe> this one is also a terrible thing
<phoe> and I hope the Hypothetical Future Revision fixes it up in some way
<shka_> HOPE
<phoe> (hopefully via (place item) to make these consistent with their -F versions)
<shka_> what a funny idea :D
jprajzne has quit [Quit: jprajzne]
<phoe> shka_: okay, I'm going to write that revision myself and gain a whole of three users
<ebrasca> I like "place item" like defvar .
simendsj` has joined #lisp
<phoe> one of which is my CI environment
jprajzne has joined #lisp
<ebrasca> of like (setf place item)
<phoe> and the others are me and some random Internet person
simendsjo has quit [Ping timeout: 264 seconds]
<mfiano> Well Lisp is flexible. There will always be inconsistencies in the library space.
scymtym has joined #lisp
<mfiano> I wouldn't consider that a bad thing. After all, code is a projection of ones' own thought processes. It doesn't make sense that a language that provides the power that Lisp does produce code that will be molded for everyone.
<ebrasca> How hard can it be to make cl consistent?
<jackdaniel> we should teach minion a catchphrase spoken when someone talks about reforming the common lisp standard :)
jprajzne has quit [Client Quit]
jprajzne has joined #lisp
<shka_> well, beach has this well specified common lisp project going on
orivej has quit [Quit: No Ping reply in 180 seconds.]
<jackdaniel> like: "it is easy, just take pen and sketch corrections"
<ebrasca> I am going to talk about reforming cl againg.
<phoe> ebrasca: it's easy
<shka_> anything that goes further then this is just a pipe dream
<phoe> the hard thing is to get everyone to use it
<mfiano> I would rather have more choices for conforming implementations than to split the community even more.
<phoe> and by "hard" I mean what shka_ and mfiano said
mankaev__ has quit [Remote host closed the connection]
HighMemoryDaemon has joined #lisp
HighMemoryDaemon has left #lisp [#lisp]
<jackdaniel> phoe: you've ruined it. you should have make the second sentence: "just take the pen and sketch corrections" ;)
orivej has joined #lisp
ym has quit [Quit: Leaving]
igemnace has quit [Quit: WeeChat 2.8]
gravicappa has quit [Ping timeout: 244 seconds]
HighMemoryDaemon has joined #lisp
* ebrasca is thinking about word conquest and forcing his cl vision on all other persons.
Christ0pher has quit [Ping timeout: 256 seconds]
<shka_> ONE VISION, ONE STANDARD
<shka_> no, sorry guys, i just can't take this seriously ;-)
Christ0pher has joined #lisp
montxero has joined #lisp
Bourne has joined #lisp
Christ0pher has quit [Ping timeout: 258 seconds]
Christ0pher has joined #lisp
shangul has joined #lisp
<beach> *sigh*
jonatack has joined #lisp
gravicappa has joined #lisp
<phoe> ebrasca: or else what
enrio has joined #lisp
gravicappa has quit [Ping timeout: 246 seconds]
orivej_ has joined #lisp
orivej has quit [Ping timeout: 246 seconds]
<ebrasca> phoe: No more food for you.
nikkal has quit [Ping timeout: 240 seconds]
<ebrasca> phoe: Hoe are you going?
* ebrasca can't write correctly today...
Blukunfando has joined #lisp
ljavorsk has quit [Ping timeout: 240 seconds]
<phoe> I am okay, doing dayjob things
Bike has joined #lisp
<pve> ebrasca: don't know if it was mentioned, but could you do something like this?
Christ0pher has quit [Ping timeout: 264 seconds]
Christ0pher has joined #lisp
orivej_ has quit [Ping timeout: 246 seconds]
orivej has joined #lisp
<ebrasca> pve: I think mvlet is nise but using some lybrary like golden-utils in Mezzano...
<jmercouris> how to document a defclass form?
<jmercouris> use :documentation at tail of form??
<phoe> jmercouris: yes
<mfiano> That's one way
<phoe> setf documentation too
<phoe> documentation-utils too
orivej has quit [Quit: No Ping reply in 180 seconds.]
Christ0pher has quit [Ping timeout: 244 seconds]
orivej has joined #lisp
Christ0pher has joined #lisp
HighMemoryDaemon has quit [Remote host closed the connection]
mason has left #lisp [#lisp]
userone has joined #lisp
jason_m has quit [Remote host closed the connection]
<jmercouris> how does time know how many processor cycles were required?
<jmercouris> how could any process possibly know that?
<jmercouris> I thought that the binary was just a contract, how the underlying operations are performed, and the amount of cycles is not dependent
<jmercouris> eg mv could take 1 or 1 million cycles, up to the discretion of the CPU
<mfiano> They are estimated, depending on the interfaces the OS provides.
<jmercouris> I see
<mfiano> TIME doesn't require producing that information, though.
wxie has joined #lisp
orivej has quit [Read error: Connection reset by peer]
orivej_ has joined #lisp
bsd4me has joined #lisp
rippa has joined #lisp
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #lisp
slyrus_ has joined #lisp
Christ0pher has quit [Ping timeout: 256 seconds]
slyrus has quit [Ping timeout: 244 seconds]
Christ0pher has joined #lisp
shangul has quit [Read error: Connection reset by peer]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #lisp
EvW1 has joined #lisp
enrioog has joined #lisp
enrio has quit [Ping timeout: 256 seconds]
grumble has quit [Quit: Well, would you look at the time. I've almost missed my ambiguous, non-existent appointment that I have scheduled just when I start to lose interest in my current conversation.]
grumble has joined #lisp
gravicappa has joined #lisp
orivej_ has joined #lisp
orivej has quit [Ping timeout: 244 seconds]
ayuce has quit [Remote host closed the connection]
hiroaki has joined #lisp
<jmercouris> ah, i did not know about that
<jmercouris> very cool Bike
<jmercouris> in any case, first sentence "The Time Stamp Counter was once an excellent high-resolution, low-overhead way for a program to get CPU timing information. With the advent of multi-core/hyper-threaded CPUs, systems with multiple CPUs, and hibernating operating systems, the TSC cannot be relied upon to provide accurate results"
<Bike> sbcl does use it though, i think
<phoe> TIME is single-threaded single-CPU'd though
<phoe> and I guess you cannot expect good results in case of hibernation anyway
<Bike> sbcl also empties the instruction pipeline first to deal with out of order ness
<jmercouris> very clever
<Bike> and "the results are per-processor and not per-process, so are unreliable on multiprocessor machines where processes can migrate between processors."
<Bike> also re "mv could take 1 or 1 million cycles", these things tend to be pretty well documented in architecture manuals or by agner fog
<Bike> but, indeed, trying to estimate how many cycles a given stretch of instructions would take to execute wouldn't work very well
<Bike> plus on a more basic level you'd have to know how many times a loop is going to execute and etc, which makes it outright impossible
orivej_ has quit [Read error: Connection reset by peer]
userone has quit [Quit: Leaving]
orivej has joined #lisp
<phoe> you'd need to have a cycle-perfect CPU emulator
Christ0pher has quit [Ping timeout: 258 seconds]
<phoe> and that requires emulating caches and memory as well
<phoe> and having it map 1-to-1 to the particular CPU model
<mfiano> A cycle-perfect emulator of anything is not possible
Christ0pher has joined #lisp
<phoe> I mean, not mapping 1-to-1 to machine cycles, but being able to count instruction cycles by either literally executing that code or doing some sort of examination on it
<phoe> ugly stuff
<mfiano> Take the case of DICE, the digital integrated circuit emulator. Here is an emulator that works at the transistor level for absolutely perfect recreation of the very first video games ever created. To run Pong at about 5-10fps, DICE requires a 3GHz processor, which wasn't a thing until relatively very recently ago.
ahungry has joined #lisp
orivej has quit [Ping timeout: 256 seconds]
wxie has quit [Ping timeout: 264 seconds]
orivej has joined #lisp
<lonjil> anyone here happen to have a pdf of Baker's paper Lively Linear Lisp? His website seems to be down.
bitmapper has joined #lisp
gravicappa has quit [Ping timeout: 246 seconds]
<jmercouris> anyone know of a implementation of pagerank within CL?
gravicappa has joined #lisp
<jmercouris> well, it seems allegro graph has this...
<jmercouris> cl graph does not seem to have this
<jmercouris> in fact grepping for "centrality" reveals no centrality measures whatsoever
<jmercouris> Hm, I guess I am on my own
<lonjil> Yes
nicktick has joined #lisp
joels has joined #lisp
<lonjil> Thanks
jw4 has quit [Read error: Connection reset by peer]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jw4 has joined #lisp
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
doublex has quit [Read error: Connection reset by peer]
doublex has joined #lisp
cosimone has quit [Quit: Quit.]
orivej_ has joined #lisp
rgherdt has quit [Quit: Leaving]
rumbler31_ has quit [Ping timeout: 260 seconds]
orivej has quit [Ping timeout: 240 seconds]
Christ0pher has quit [Ping timeout: 246 seconds]
rgherdt has joined #lisp
rumbler31_ has joined #lisp
Christ0pher has joined #lisp
enrioog has quit [Ping timeout: 260 seconds]
knuckles has quit [Ping timeout: 256 seconds]
knuckles has joined #lisp
julio_ has joined #lisp
whiteline has joined #lisp
gaqwas has quit [Remote host closed the connection]
Christ0pher has quit [Ping timeout: 264 seconds]
kopiyka has quit [Remote host closed the connection]
kopiyka has joined #lisp
joels has quit [Ping timeout: 246 seconds]
Christ0pher has joined #lisp
OpenZen has joined #lisp
tich has quit [Remote host closed the connection]
orivej_ has quit [Ping timeout: 256 seconds]
orivej has joined #lisp
MidHotaru has quit [Quit: Connection closed for inactivity]
bhartrihari has joined #lisp
Christ0pher has quit [Ping timeout: 240 seconds]
jesse1010 has joined #lisp
Christ0pher has joined #lisp
efm has joined #lisp
ahungry has quit [Remote host closed the connection]
julio_ has quit [Ping timeout: 260 seconds]
Cymew has quit [Ping timeout: 264 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #lisp
rogersm has quit [Quit: Leaving...]
mpontillo_ has joined #lisp
grobe0ba_ has joined #lisp
rme_ has joined #lisp
Christ0pher has quit [Ping timeout: 256 seconds]
selwyn_ has joined #lisp
lansiir has joined #lisp
mpontillo has quit [Ping timeout: 240 seconds]
grobe0ba has quit [Ping timeout: 240 seconds]
rme has quit [Ping timeout: 240 seconds]
loke` has quit [Ping timeout: 240 seconds]
Christ0p1er has joined #lisp
grobe0ba_ is now known as grobe0ba
oldtopman has quit [Ping timeout: 240 seconds]
selwyn has quit [Ping timeout: 240 seconds]
rme_ is now known as rme
mpontillo_ is now known as mpontillo
selwyn_ is now known as selwyn
X-Scale has quit [Ping timeout: 244 seconds]
Oladon has joined #lisp
orivej_ has joined #lisp
orivej has quit [Ping timeout: 264 seconds]
X-Scale has joined #lisp
Christ0p1er has quit [Ping timeout: 240 seconds]
ayuce has joined #lisp
Christ0pher has joined #lisp
Christ0pher has joined #lisp
orivej_ has quit [Ping timeout: 256 seconds]
orivej has joined #lisp
knuckles has quit [Quit: WeeChat 2.8]
edgar-rft has joined #lisp
ahungry has joined #lisp
orivej has quit [Read error: Connection reset by peer]
orivej has joined #lisp
edgar-rft has quit [Quit: Leaving]
EvW1 has quit [Ping timeout: 256 seconds]
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
bhartrihari has joined #lisp
orivej has quit [Ping timeout: 246 seconds]
mankaev has joined #lisp
orivej has joined #lisp
Christ0pher has quit [Ping timeout: 240 seconds]
Christ0pher has joined #lisp
mankaev has quit [Client Quit]
mankaev has joined #lisp
CrazyEddy has joined #lisp
orivej has quit [Ping timeout: 264 seconds]
ak5 has quit [Quit: WeeChat 2.8]
cosimone has joined #lisp
orivej has joined #lisp
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
bhartrihari has joined #lisp
orivej has quit [Ping timeout: 246 seconds]
nikkal has joined #lisp
nckx is now known as ProboskissesXOXO
orivej has joined #lisp
gjulio has joined #lisp
Christ0pher has quit [Ping timeout: 240 seconds]
Christ0pher has joined #lisp
gjulio_ has joined #lisp
rogersm has joined #lisp
ProboskissesXOXO is now known as nck
nck is now known as nckx
gjulio has quit [Ping timeout: 260 seconds]
simendsj` has quit [Ping timeout: 260 seconds]
dddddd has quit [Ping timeout: 256 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #lisp
Oladon has quit [Quit: Leaving.]
gjulio_ has quit [Remote host closed the connection]
msk__ has joined #lisp
msk has joined #lisp
orivej has quit [Ping timeout: 246 seconds]
efm has quit [Read error: Connection reset by peer]
orivej has joined #lisp
v88m has quit [Ping timeout: 256 seconds]
Lycurgus has quit [Quit: Exeunt]
msk__ has quit [Ping timeout: 244 seconds]
Blukunfando has quit []
theseb has joined #lisp
theseb has left #lisp ["Leaving"]
terpri_ is now known as terpri
MidHotaru has joined #lisp
efm has joined #lisp
Christ0pher has quit [Ping timeout: 246 seconds]
Christ0pher has joined #lisp
orivej has quit [Ping timeout: 246 seconds]
slyrus_ has quit [Quit: Leaving]
orivej has joined #lisp
roze has joined #lisp
Oladon has joined #lisp
shymega has quit [Quit: Adiós!]
roze has quit [Quit: Leaving]
dominic34 has joined #lisp
dominic34 has quit [Ping timeout: 244 seconds]
shymega has joined #lisp
cosimone has quit [Quit: Quit.]
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #lisp
<pve> Can anyone recommend a tool for printing CL code, like on paper? So something to convert the source files into .ps or .pdf..
bhartrihari has left #lisp ["Disconnected: Replaced by new connection"]
<pve> I know emacs has some printing stuff, but I've never used it, so I don't know how viable it is
Blukunfando has joined #lisp
<_death> I remember lukego had a blog post about it ( https://lukego.github.io/blog/2012/10/24/readable-programs/ ) but I don't print stuff
<pve> aha, thanks!
orivej_ has joined #lisp
orivej has quit [Ping timeout: 264 seconds]
dominic34 has joined #lisp
Christ0pher has quit [Ping timeout: 244 seconds]
Christ0pher has joined #lisp
dominic34 has quit [Ping timeout: 240 seconds]
<aeth> heh, I was about to say, "That was 2012, but in 2020, we'd probably just use Markdown"... but the blog's already talking about Markdown. I guess everyone cool was already talking about Markdown even by 2010.
orivej_ has quit [Ping timeout: 246 seconds]
orivej has joined #lisp
<_death> recently I reverted (for no good reason) to the intricate comment convention style mentioned in the clhs.. for some years I only used ;;;; and ;; and stopped inserting Page characters .. still don't know if it's worth it
<aeth> pve: You can just add "### filename.lisp~%```common-lisp~%" to the top of a file and "```~%~%" to the bottom and concatenate the files together and use an existing Markdown processor, assuming the comments and docstrings don't need to be handled in a fancy way.
<aeth> (Even a shell script could do this, with \n as the newline marker.)
random-nick has quit [Quit: quit]
Christ0pher has quit [Ping timeout: 256 seconds]
Christ0pher has joined #lisp
random-nick has joined #lisp
gravicappa has quit [Ping timeout: 240 seconds]
<ebrasca> Why?
Christ0pher has quit [Ping timeout: 240 seconds]
Christ0pher has joined #lisp
Blukunfando has quit [Read error: Connection reset by peer]
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #lisp
Volt_ has joined #lisp
catern has quit [Excess Flood]
catern has joined #lisp
<Guest9274> o/ How can I declare function's output value as a composite type? I want to say that a function returns `(or null string)`. I see it's possible to do so for variables, but was wondering if it's possible for function parameters.
<phoe> Guest9274: (declare (ftype (function () (or null string) ...))
<phoe> s/declare/declaim/
_paul0 has quit [Remote host closed the connection]
paul0 has joined #lisp
<pve> aeth: thanks, can a markdown processor give me syntax highlighting?
leb has joined #lisp
orivej has quit [Ping timeout: 256 seconds]
<Guest9274> phoe: thanks!
orivej has joined #lisp
shka_ has quit [Quit: Konversation terminated!]
knuckles has joined #lisp
<aeth> pve: if it recognizes the language name in the code block section
<aeth> probably "common-lisp", but possibly just "lisp"
karlosz has joined #lisp
<pve> all right
dddddd has joined #lisp
rogersm has quit [Quit: Leaving...]
MidHotaru has quit [Quit: Connection closed for inactivity]
scymtym has quit [Remote host closed the connection]
<phoe> What's the simplest way to get a inheritance graph drawn for me? Something McCLIMish?
aeth has quit [Ping timeout: 256 seconds]
aeth has joined #lisp
ebrasca has quit [Remote host closed the connection]
scymtym has joined #lisp
<phoe> oh! i meant something spatial
<_death> not sure what "spatial" means?
leb has quit []
nikkal has quit [Ping timeout: 256 seconds]
leb has joined #lisp
shangul has joined #lisp
<phoe> 2D
<phoe> write-digraph produces a list of arrows
<_death> dot -Tpng foo.dot > foo.png
<phoe> ...if I understand your code correctly that is
<phoe> oh!
<phoe> thanks ;D
<_death> that snippet's from 2008 though :)
mangul has joined #lisp
<_death> for more recent dot stuff I use cl-dot
gjulio has joined #lisp
MichaelRaskin has joined #lisp
shangul has quit [Ping timeout: 264 seconds]
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #lisp
Oladon has quit [Quit: Leaving.]
bsd4me has quit [Remote host closed the connection]
Christ0pher has quit [Ping timeout: 246 seconds]
Christ0pher has joined #lisp
renzhi has quit [Ping timeout: 256 seconds]
<_death> for example https://i.imgur.com/piCKqJd.png from some months ago
rogersm has joined #lisp
jprajzne_ has joined #lisp
jprajzne has quit [Ping timeout: 258 seconds]
jprajzne_ is now known as jprajzne
jprajzne has quit [Client Quit]
jprajzne has joined #lisp
Christ0pher has quit [Ping timeout: 256 seconds]
Christ0pher has joined #lisp
OpenZen has quit [Read error: Connection reset by peer]
OpenZen has joined #lisp
rogersm has quit []
Bourne has quit [Ping timeout: 264 seconds]
mangul has quit [Ping timeout: 264 seconds]
bhartrihari has joined #lisp
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #lisp
v88m has joined #lisp
fanta1 has quit [Quit: fanta1]
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #lisp
bhartrihari has left #lisp ["Disconnected: closed"]
bhartrihari has joined #lisp
borodust has joined #lisp
bhartrihari has left #lisp ["Disconnected: closed"]
xrash has joined #lisp
ayuce has quit [Remote host closed the connection]
jprajzne has quit [Quit: jprajzne]
Oladon has joined #lisp
jprajzne has joined #lisp
orivej_ has joined #lisp
orivej has quit [Ping timeout: 264 seconds]
leb has quit []
jprajzne has quit [Client Quit]
jprajzne has joined #lisp
papachan has joined #lisp
jprajzne has quit [Quit: jprajzne]
orivej_ has quit [Ping timeout: 256 seconds]
ahungry has quit [Remote host closed the connection]
orivej has joined #lisp
jprajzne has joined #lisp
bsd4me has joined #lisp
TwoNotes has joined #lisp
orivej_ has joined #lisp
ggole has quit [Quit: Leaving]
orivej has quit [Ping timeout: 246 seconds]
mbrumlow_ is now known as mbrumlow
catern has quit [Excess Flood]
catern has joined #lisp
terpri_ has joined #lisp
terpri has quit [Ping timeout: 244 seconds]
Christ0pher has quit [Ping timeout: 246 seconds]
Christ0pher has joined #lisp
terpri_ has quit [Remote host closed the connection]
terpri_ has joined #lisp
orivej_ has quit [Ping timeout: 244 seconds]
orivej has joined #lisp
KaiLikesLinux has left #lisp [#lisp]
pve has quit [Quit: leaving]
fanta1 has joined #lisp
nullheroes has quit [Quit: WeeChat 2.8]
nullheroes has joined #lisp
Christ0pher has quit [Ping timeout: 240 seconds]
Christ0pher has joined #lisp
jprajzne has quit [Quit: jprajzne]
jprajzne has joined #lisp
jprajzne has quit [Client Quit]
bsd4me has quit [Ping timeout: 240 seconds]
efm has quit [Ping timeout: 240 seconds]
Lord_of_Life_ has joined #lisp
mgsk_ has quit [Quit: ZNC 1.7.0 - https://znc.in]
mgsk_ has joined #lisp
Lord_of_Life has quit [Ping timeout: 256 seconds]
samebchase has quit [Ping timeout: 246 seconds]
Lord_of_Life_ is now known as Lord_of_Life
samebchase has joined #lisp
edgar-rft has joined #lisp
efm has joined #lisp
efm_ has joined #lisp
efm has quit [Ping timeout: 256 seconds]
Guest21138 has joined #lisp
Guest21138 is now known as hh47
jprajzne has joined #lisp
hh47 is now known as h47
bsd4me has joined #lisp
Christ0pher has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 246 seconds]
random-nick has quit [Ping timeout: 246 seconds]
Christ0pher has joined #lisp
orivej has joined #lisp
orivej has quit [Ping timeout: 246 seconds]
rgherdt has quit [Ping timeout: 260 seconds]
orivej has joined #lisp
Christ0pher has quit [Remote host closed the connection]
hdasch has quit [Ping timeout: 256 seconds]
hdasch has joined #lisp
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #lisp
fanta1 has quit [Quit: fanta1]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #lisp
gjulio has quit [Ping timeout: 244 seconds]
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #lisp
h47 has quit [Quit: Leaving]
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #lisp
jprajzne has quit [Quit: jprajzne]
jprajzne has joined #lisp