<paroneayea>"let's use statprof to find out what the slowest procedure in 8sync is" <paroneayea>(statprof is pretty great in general! no idea where to find that closure though) <paroneayea>well looking at the 'tree display style gives some clues, maybe <paroneayea>wingo: fibers only exposes time delays via sleep, but I assume usleep must be planned... ***logicmoo is now known as dmiles
<jmd>I want to create a soft-port which maintains some state. Any ideas where I can keep the state data? <wingo>paroneayea: fibers' sleep procedure takes a real, not an integer <wingo>so you can sleep for 1e-5 or whatever <wingo>guile's sleep procedure should also do the same at some point; ArneBab had a patch <paroneayea>I've become distracted from doc-writing by cutting down 8sync's agenda <paroneayea>I've sure learned a lot about programming in scheme since I started 8sync about a year ago <wingo>throwing away code is the best <wingo>i have a work-stealing patch to land soon in fibers so that we will get automatic parallelism <wingo>i mean that you can just allocate N cores for fibers and mostly you get to take advantage of all cores <wingo>devil is in the details of course <paroneayea>I left a lot of unused code in 8sync for the potential future where the agenda would be completely functional / immutable <paroneayea>in reality, I should have added that code when I was adding the feature <paroneayea>not when I was speculatively possibly going to add it <paroneayea>wingo: cool about automatic parallelism in fibers <paroneayea>myseterious bug in my code, still thrashing CPU even after cleanup ***holomorph is now known as Guest71080
***holomorp1 is now known as holomorph
<paroneayea>something about aborting to the prompt is what's slowing things down, but that makes no sense to me. <paroneayea>yep I'm pretty sure that's what's happening. harrrrr.... <paroneayea>and such an easy fix now that I'm less of a moron than I was when I started doing this stuff. <paroneayea>wow, I sure didn't understand dynamic foo when I started 8sync :) <amz3>#wiiiiiiiiiiiiiiiiiiinnnnnnnnnnnnnnnnnnnnnnnn <amz3>there is a new version of the reasoned schemer coming out