Is anyone using core.async with FileReader to get something that looks like plain old synchronous file i/o avoiding callback hell? Is there any code you could share? (Is this a stupid idea?)
Details: I'm looking for a way to read and parse binary files of a sometimes-very-large format (DICOM medical imaging data) in a browser. It's been done, sort of, in plain JS, but that code (which reads the whole file and parses from the blob) works okay for 120kB-ish files and bursts into flame for 300MB-ish files. The format doesn't include any sort of index, so while I only ever need to have a few kB in memory at a time, I can't just pick an offset and go there; I really need to read and parse everything up to the piece that I'm looking for. I started down this path in JS a few months ago but ran away when the n+3rd-order callbacks made me cry. Thanks, Kevin -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript.
