Thanks Dave.

That looks painful, but I look forward to seeing your implementation.

On Tue, Mar 3, 2015 at 6:29 PM, Loyall, David <david.loy...@nebraska.gov>
wrote:

> > From: Alexander Williams
> [...]
> > I also wrote a tutorial explaining the code, to help other
> > newbies understand some useful features of PicoLisp:
> >
> >   https://github.com/aw/picolisp-nanomsg/blob/master/EXPLAIN.md
>
> This is great, Alexander!
>
> I really like this part:
>
> >     (setq Result (12 104 101 108 108 111 0 0 8 0 0 0 0 0 0 0))
> >     -> (12 104 101 108 108 111 0 0 8 0 0 0 0 0 0 0)
> >     : (head (car Result) (cdr Result))
> >     -> (104 101 108 108 111 0 0 8 0 0 0 0)
> >
> >     [...]
> >
> >     : (pack (mapcar char (head (car Result) (cdr Result))))
> >     -> "hello^H"
> >
> >     **Note:** What this means is it receives the 8K buffer which
> >     contains a bunch of zeros at the end (assuming you didn't
> >     fill the buffer), it maps over the list, sets the zeros to
> >     NIL, packs it and you end up with a nice friendly string.
>
> Now, I can go back to some (failed) hobby code I made to interface with
> https://www.gnu.org/software/libc/manual/html_node/Regular-Expressions.html
> .
>
> In my first attempt, I got stuck at the point where I need to handle the
> Result struct...
>
> Thank you,
> --Dave
>

Reply via email to