From: Arthur N. <ac...@ca...> - 2025-03-28 17:22:08
|
OK you raise two issues. The first is javascript. Quite a few years ago there was a demo build using javascript and stuck in a directory "jslisp". Note that the README file there dates it to 2011 and has a comment: "While the code is stabilising here there really are NO guarantees that it will all even build!". So that is only potentially useful for individuals willing to dive deep into it and resolve problems mostly for themselves. And since that starts with stuff fetched from mathpiper around 14 years ago and I have no ideal at all where mathpiper has got to in the meanwhile, anybody wanting to build on that needs to check there as well as with Reduce people. More recently a spin of Reduce has been built using "emscripten" which turns the C++ code of the CSL kernel for Reduce into webassembly stuff that is expected to hook onto javascript and the web version of Reduce uses that. The source directory relevant is csl/new-embedded but mosly you need to look at https://reduce-algebra.sourceforge.io/web-reduce/about.php?start and I do not know how to rebuild it since that is not my corner of the whole project - Francis Wright is the guru there. But trying that out may give you an idea of whether things would behave and do what you need. Re building a regular version, I note that the main place where Reduce sources live is https://sourceforge.net/projects/reduce-algebra/ and I do not know how any github mirror is maintained or whether files from there will always be complete or up to date. I hope they are but againb because there are things that are "my business" and others that are not I do not even know who set up a github mirror. So I can not provide support for anything fetched from there rathar than using svn checkout https://svn.code.sf.net/p/reduce-algebra/code/trunk reduce-algebra I have just now been configuring and building everything on an Ubuntu Linux based on a sources synchronised with sourceforge and I do not observe the odd diagnostic that you see.... but the complaint you see suggests that in version.h the symbol VERSION_ID has not got set properly. The value that gets is derived from the way that subversion updates an "$Id:" record when one makes a checkin so as to record the revision number, date and the identity of the person making the checkin, so you may like to look at your version of csl/cslbase/version.h to see if it looks good. For MINE I see #define VERSION_ID "$Id: version.h 7055 2025-03-25 21:40:11Z arthurcnorman $" Apologies if this does not instantly resolve all your issues, but I hope it helps you in the right direction! Arthur On Fri, 28 Mar 2025, Michael Shulman via Reduce-algebra-developers wrote: > Hi, > > My goal is to use the javascript version of reduce in a web > application; so if there are known problems with that at the moment, > please let me know. However, at the moment I think I'm stuck on even > just compiling the base system, before converting it to JS. I have > cloned the github mirror from > https://github.com/reduce-algebra/reduce-algebra and run the commands > > scripts/ubuntu-sanity-check.sh > ./configure --with-csl > scripts/csl-sanity-check.sh > make > > and I get the error message > > In file included from /home/shulman/reduce-algebra/csl/cslbase/fns1.cpp:40: > /home/shulman/reduce-algebra/csl/cslbase/version.h:60:6: in > ‘constexpr’ expansion of ‘<lambda closure > object><lambda()>{}.<lambda()>()’ > /home/shulman/reduce-algebra/csl/cslbase/version.h:60:7: error: array > subscript value ‘5’ is outside the bounds of array type ‘const char > [5]’ > 60 | }(); > | ^ > > This is a weird message and doesn't suggest a solution like installing > some missing library. Do I have the wrong version of some compiler or > library perhaps? > > Thanks for any help, > Mike > > > _______________________________________________ > Reduce-algebra-developers mailing list > Red...@li... > https://lists.sourceforge.net/lists/listinfo/reduce-algebra-developers |