IRC channel logs

2017-03-19.log

back to list of logs

<amz3>my product proc is obviously wrong
<amz3> http://stackoverflow.com/questions/2485226/cartesian-product-in-scheme#2485242
<ArneBab>amz3: I tried my hand at making the elegant solution of mark_weaver easier to understand: http://stackoverflow.com/a/42881649/7666
<thomassgn>Hi guile; is there something along the lines of https://robotgame.net/ - basicly a game world where one can plug in bots (ai) and turn by turn compete in some way.
<thomassgn>Started learning c++ this way, and would to get into guile with something like it too.
<amz3>so gnu texmacs use guile
<amz3>that's what I've been wondering
<amz3>that said my context free grammar parser is incomplete
<amz3>It only does validation
<amz3>I stumbled upon a nice procedure that allows to create a lset out of a regular list
<amz3>(define (unify lst)
<amz3> (apply lset-adjoin equal? '() lst))
<amz3>it makes the content of 'lst' appear once in the output according to 'equal?'
<amz3>basically it construct a lset according to 'equal?'
<amz3>erf, I just discovered that 5 years ago (actually) I solved a non trivial problem regarding earley parser
<amz3>apparently only the recognize part of the algorithm works bullet proof
<amz3>in cubic time
<amz3>it's unlikely that will guess the correct algorithm myself, even it seems i did find something 5 years ago...
<amz3>so I need to read some papers about the subject
<amz3>something I am very proud of, is the debug output of my python version https://github.com/amirouche/python-earley-parser/blob/master/earleyparser/output.pdf
<amz3>which seems to be the equivalent of the trees displayed in http://www.sciencedirect.com/science/article/pii/S1571066108001497
<amz3>meh... they use the same name for the parse result construction procedure in the paper as in my python implementation
<wferi>Hi! When I (display) an argument passed to my function, it gives something like
<wferi>(#<procedure x (l p a)> ((#<procedure y (l p a)>)))
<wferi>what's this thing?
<wferi>the procedure? predicate says #f
<wferi>which one would return #t?
<artyom-poptsov>wferi: Could you please provide the context, e.g. the procedure source and code that calls it? IMO, It's hard to guess what the problem you experiencing w/o seeing the code.
<wferi>artyom-poptsov: well, not easily. I'm no scheme coder, I'm just trying to add some scheme code to Lilypond. I create this object by some higher level means, and just trying to handle it somehow...
<wferi>do you happen to know what Lilypond is?
<jmd>wferi: It is a system for rendereing music scores.
<wferi>yes, jmd, and it embeds guile, it's partly written in scheme
<jmd>I think that is correct.
<wferi>but it has its own input syntax, a user like me does not meet scheme most of the time
<wferi>but it has some hooks
<CharlieBrown>wferi: Lilypond is the stuff.
<wferi>and now I created an object by Lilypond's syntax, and have to handle it from scheme
<CharlieBrown>wferi: Didn't Lilypond used to be in Python?
<wferi>but I don't know the Lilypond internals
<jmd>CharlieBrown: Not that I recall. In fact I think lilypond has existed longer than Python.
<wferi>so I don't know what the heck this scheme object is
<wferi>its full representation is longer, though
<wferi>so, could you please identify the type of this object based on its written representation?
<wferi>so that I know what to read up on...
<wferi>CharlieBrown: Lilypond never met Python, as far as I know
<wferi>ok, it turned out to be a pair
<spk121>civodul: in i18n, a bug because proc 'locale-monetary-grouping' is sometimes called 'locale-monetary-digit-grouping'
<spk121>civodul: if you pick one or the other, I'll fix it.
<spk121>wingo: ditto ^
<MoronicAcid>Has anyone built a PPA for Guile 2.2?
<MoronicAcid>Or working on making one for that matter?
<civodul>spk121: oh, unbound variable?
<spk121>civodul: Exported at 'locale-monetary-grouping'. Documented as 'locale-monetary-grouping'. Coded as 'locale-monetary-digit-grouping'.
<civodul>oh, ok
<civodul>good catch
<civodul>terrible
<paroneayea>MoronicAcid: I haven't seen anyone talk of it
<MoronicAcid>paroneayea: Yeah, doing a quick Google search doesn't turn up anything.
<daviid>heya!