IRC channel logs

2016-04-22.log

back to list of logs

***karswell` is now known as karswell
<paroneayea>yow, I could really use a nice number->base64 tool right about now :)
***DeeEff_ is now known as DeeEff
<nalaginrut>well, is this the fact as I ever thought? https://github.com/cisco/ChezScheme
<mario-goulart>O_O
<mario-goulart>No code?
<taylan>created 8 days ago apparently
<taylan>let's hope it will be populated with the code son ^^
<taylan>soon*
<nalaginrut>for such a great company like Cisco, I think it's unreasonable just kidding with it, right? (or it's not Apr 1st anyway)
<nalaginrut>s/or/and
<davexunit>paroneayea: I pushed a commit to make 'haunt serve --watch' not crash the watcher thread if an exception is thrown when building the site.
<paroneayea>davexunit: woot :)
***xieyuheng is now known as singersongwriter
***singersongwriter is now known as xyh
<dsmith-work>Happy Friday, Guilers!!
<paroneayea>hi!
<paroneayea>Anyone have a good name for a *-ref procedure (in the style of assoc-ref) but which throws an error instead of returning a default if nothing fouhnd?
<paroneayea>maybe I could just make my message-ref thing do that by default if nobody supplies a default... I dunno
<paroneayea>maybe message-get instead of message-ref
<paroneayea>-ref seems nicer though
<paroneayea>-fetch? too long though
<davexunit>message-ref/assert ?
<davexunit>or message-ref!
<paroneayea>davexunit: kind of long for what might be default behavior...
<paroneayea>maybe just having mesage-ref *not* have a default and have it as an optional second argument
<paroneayea>is the way to go
<paroneayea>and by default, it errors if nothing is provided
<davexunit>but how will you tell that nothing is provided?
<davexunit>what if the user wants the default to be #f?
<paroneayea>davexunit: like this:
<paroneayea>(define %nothing-provided (gensym))
<paroneayea>(define* (message-ref message key #:optional (dflt %nothing-provided))
<davexunit>paroneayea: better to not use a symbol.
<paroneayea>davexunit: why?
<davexunit>(define %nothing-provided (cons 'nothing 'provided))
<davexunit>that's guaranteed to never conflict
<davexunit>see the srfi-41 implementation for the null stream
<paroneayea>davexunit: hm ok (you'd think a gensym would provide that guarantee though?)
<davexunit>you're unlikely to see a conflict, true.
<paroneayea>davexunit: who passes in gensym'ed values? ;)
<paroneayea>probably either approach is equally fine
<davexunit>they aren't equally fine.
<davexunit>gensym will work in practice, I agree.
<paroneayea>but it grosses you out? :)
<davexunit>but given the way symbols work, there's a flaw if someone constructs the same symbol.
<davexunit>by constructing a new object, you guarantee that no other object can have its identity.
<paroneayea>there's a flaw if someone passes in (nothing . provided) too :)
<davexunit>no
<paroneayea>oh
<paroneayea>I see
<paroneayea>cons cell
<paroneayea>riiiight
<paroneayea>davexunit: ok, I got it now.
<davexunit>I agree that in practice such a collision is unlikely to happen.
<davexunit>but we can be 100% in the clear just by allocating some memory.
<paroneayea>davexunit: ok, that makes sense!
<paroneayea>thanks for the clarification :)
<davexunit>np
<davexunit>ACTION goes afk
***profan_ is now known as profan
<paroneayea>hello #guile!
<ozzloy>mroing!
<paroneayea>now that I have ftp access, time to stop goofing around on this actor model stuff and push out the GNU 8sync 0.1 release :)
<davexunit>yay!
<davexunit>I'm going to write some minimal amount of documentation for Haunt and then 0.2 will be out the door
<paroneayea>yayyyy!
<paroneayea>I love Haunt :)
<paroneayea>I'm considering switching dustycloud.org over, but that'd be a huuuuuuuge rewrite unless I get a restructured text reader
<paroneayea>which is feasible, but probably not soon
<davexunit>paroneayea: that's what I face now with my site
<davexunit>I have a theme and a bunch of posts migrated to skribe
<davexunit>but I'm having some lingering issues
***karswell` is now known as karswell
<random-nick>does GOOPS have subtype polymorphism?
<paroneayea>random-nick: what do you mean?
<random-nick>if classes B and C inherit from A, can generic functions that operate on A operate on B and C too or do I have to define that generic function for B and C too?
<paroneayea>random-nick: yes it does that
<paroneayea>random-nick: give it a try:
<paroneayea>random-nick: http://pamrel.lu/d5cca/
<random-nick>paroneayea: thanks
<paroneayea>random-nick: yup!
<paroneayea>8sync 0.1.0 released! http://www.gnu.org/software/8sync/news/8sync-01-released.html
<ArneBab_>paroneayea: nice!