From: Jan Wedekind <jan@wedesoft.de>
To: Nala Ginrut <nalaginrut@gmail.com>
Cc: guile-user@gnu.org
Subject: Re: Artanis web REPL
Date: Sat, 25 Jun 2016 21:09:45 +0100 (BST) [thread overview]
Message-ID: <alpine.DEB.2.11.1606252108410.6596@wedemob> (raw)
In-Reply-To: <CAPjoZoeHCPGJY0vtw4nM96fd0Sp4zCOde8HAUOchTPNxQ7vcVA@mail.gmail.com>
Ah, sorry. I didn't understand earlier.
No problem, I'll wait with the changes then.
On Sat, 25 Jun 2016, Nala Ginrut wrote:
> Yes, that's what I said emberrass bugs. I will fix it next release. Please
> use the old method for a while.
>
> Best regard.
>
> Jan Wedekind <jan@wedesoft.de>于2016年6月25日周六 05:51写道:
>
>> Actually I had to revert the ":from-post" code as well, because it was
>> always giving the same result for "line" after the first post event.
>>
>> (post "/"
>> (lambda (rc)
>> (let* [(session (cookie-ref (rc-cookie rc) "sid"))
>> (post-data (map dot (generate-kv-from-post-qstr (rc-body
>> rc))))
>> (line (uri-decode (assoc-ref post-data "line")))]
>> (repl session line)
>> (editor session))))
>>
>> On Sat, 25 Jun 2016, Nala Ginrut wrote:
>>
>>> Hi Jan!
>>> First, thanks for sharing this code.
>>> I've tried, it's sweet that I love it!
>>> And I'm looking forward to someone could finish it as a complete
>>> project just like IPython notebook or similar.
>>>
>>> On Fri, 2016-06-24 at 12:43 +0100, Jan Wedekind wrote:
>>>>
>>> (post "/"
>>>> (lambda (rc)
>>>> (let* [(session (cookie-ref (rc-cookie rc) "sid"))
>>>> (post-data (map dot (generate-kv-from-post-qstr (rc-
>>>> body rc))))
>>>> (line (uri-decode (assoc-ref post-data
>>>> "line")))]
>>>> (repl session line)
>>>> (editor session))))
>>>
>>>
>>> It is embarrassing when I'm trying to point out the fancy "shortcut"
>>> for saving code, but finally I realized there're bugs. ;-(
>>> Anyway, they're just syntax sugar for convenience, it won't be harm if
>>> you dismiss it. I'm working on the server core of Artanis, so I may fix
>>> it next release.
>>> But I still put my code here to shed some light. ;-P
>>>
>>> =========================code=================================
>>> (post "/" #:from-post #t #:cookie '(name repl)
>>> (lambda (rc)
>>> (let [(session (:cookies-ref rc 'repl "sid"))
>>> (line (uri-decode (:from-post rc 'get "line")))]
>>> (repl session line)
>>> (editor session))))
>>> =========================end==================================
>>>
>>>
>>> Best regards.
>>>
>>>
>
prev parent reply other threads:[~2016-06-25 20:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-24 11:43 Artanis web REPL Jan Wedekind
2016-06-24 17:20 ` Nala Ginrut
2016-06-24 21:40 ` Jan Wedekind
2016-06-24 21:51 ` Jan Wedekind
2016-06-25 1:14 ` Nala Ginrut
2016-06-25 20:09 ` Jan Wedekind [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.11.1606252108410.6596@wedemob \
--to=jan@wedesoft.de \
--cc=guile-user@gnu.org \
--cc=nalaginrut@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).