Kurt Pagani wrote: > > Meanwhile I had another idea that looks very promising to me: the few lines > of lisp code below (webserver.lisp) loads the Hunchentoot > <http://weitz.de/hunchentoot/> webserver into fricas (with or without sman) > which runs > quietly in the background and listening on a port for requests (4343 in the > sample below). That > means you still can use the console while the webserver handles GET or POST > requests of > the same session,e.g. using the browser: > http://localhost:4343?eval=integrate(sin(x),x) returns > the result.
I am affraid there are dragons here. IIUC you use FriCAS functions in two different threads. Currently FriCAS is not thread safe and doing this may lead to troubles. More precisely, for performance FriCAS depends on various global caches. Updating them simultanously from independent threads may lead to corruption. This is worst kind of bugs... BTW: Current HyperDoc interface uses 'select' to multiplex between connections. All handling is done by single thread, so it is free from such problems. -- Waldek Hebisch -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To unsubscribe from this group and stop receiving emails from it, send an email to fricas-devel+unsubscr...@googlegroups.com. To post to this group, send email to fricas-devel@googlegroups.com. Visit this group at https://groups.google.com/group/fricas-devel. For more options, visit https://groups.google.com/d/optout.