aleph

NullPointerException when lein ring server on Aleph+Ring

♀尐吖头ヾ 提交于 2020-06-17 07:38:27
问题 I am trying to run Aleph on top of Ring and use lein ring server for shorter feedback loop. When I'm invoking lein ring server everything seems to be fine but when I point my browser to an url I get a nasty NullPointerException with the stack trace below. However, when I run (al.app/start 3006) then no NLP shows up. The whole project is available on GitHub. What am I doing wrong? core.clj:107 lamina.core/enqueue app.clj:39 al.app/hello-handler http.clj:79 aleph.http/wrap-aleph-handler[fn]

Using aleph with SWI-prolog: source_sink `library(aleph)' does not exist

坚强是说给别人听的谎言 提交于 2019-12-20 07:18:10
问题 I’m trying to work Aleph with Swi-prolog. When I ran my program I got the error here. What can I do to import the library(aleph)?By the way, I have already downloaded Aleph.pl for my program. Here is my test program, I know there must be something wrong with the library aleph. :- use_module(library(aleph)). :- aleph. I got the error: ERROR: c:/users/mac/desktop/swi-prolog/aleph draft/1.pl:1: source_sink `library(aleph)' does not exist Warning: c:/users/mac/desktop/swi-prolog/aleph draft/1.pl

allocate thread per request clojure

拈花ヽ惹草 提交于 2019-12-11 15:15:37
问题 I am lost with all this async / multithreaded libs and native clojure capabilities. I have a webservice which calls an external API, transforms it response, and gives back to client. Right now is written in Python. I would like to let each client to execute its request in a separate thread so that they don't wait for each other to finish, or the server to be async. There is no heavy calculations involved, only waiting for IO. I thought this would be easy with clojure but I am missing

Using aleph with SWI-prolog: source_sink `library(aleph)' does not exist

寵の児 提交于 2019-12-02 08:16:50
I’m trying to work Aleph with Swi-prolog. When I ran my program I got the error here. What can I do to import the library(aleph)?By the way, I have already downloaded Aleph.pl for my program. Here is my test program, I know there must be something wrong with the library aleph. :- use_module(library(aleph)). :- aleph. I got the error: ERROR: c:/users/mac/desktop/swi-prolog/aleph draft/1.pl:1: source_sink `library(aleph)' does not exist Warning: c:/users/mac/desktop/swi-prolog/aleph draft/1.pl:1: Goal (directive) failed: user:use_module(library(aleph)) ERROR: c:/users/mac/desktop/swi-prolog