Re: Pengine - the Prolog engine running SWISH

Michael Hendricks <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <CAFHuXuYuEr_ZDpBW9iVGqjAV4AxExA9s3KhmNLFtdfkAfbbf_g@mail.gmail.com>
On Fri, Aug 16, 2013 at 9:48 AM, Jan Wielemaker <[email protected]> wrote:

> On 08/16/2013 04:53 PM, Michael Hendricks wrote:
>
>> That's an intriguing idea.  Our next quarterly roadmap at work requires
>> us to run Prolog in the browser.  We need solutions in well under 100ms,
>> so network latency prevents server-side code.  We had planned to write a
>>
>
> Well, on fairly well connected networks 100ms should be easy.


I wish all our visitors were on well connected networks :-)  90th
percentile load time for a hot cache page on our site is often close to
3,000 ms.  Perhaps 10% of that network latency is under our control,
including protocol changes like SPDY and websockets.


> That is embedding SWI-Prolog in JavaScript if I understand you correctly.
>  If that is possible, it might be a quite nice platform
> for some scripting tasks.  Its not `just open your browser' though ...
>

I spent a couple hours tinkering this morning and have a working version of
BinProlog compiled to 227KB of JavaScript via Emscripten.  That seems
promising.  Some other day, as time permits, I'll try it with SWI-Prolog
too.

It was surprisingly fun to compile a C project into JavaScript and then see
it running in the browser :-)

-- 
Michael
-------------- next part --------------
HTML attachment scrubbed and removed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.