-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Catchup to Vitor #8
Conversation
Hi Douglas Just to say I'll be cooling off now, though I still have
otherwise, I'd like to have the core stable :) There is a stupid leak I Excellent that you managed to compile yap and the cli interface. I can have My feeling is that it is something not initialized (ok, that's usually the Others: Can you use plunit in YAP as it is? My memory of porting :-
Packages: my main problem was the RDF store. I am also thinking that it may clib: there is some nice stuff I want to recover, like UUID. pldoc: I have bad memories, too many hooks and conf files). I am trying to Best Vitor On Mon, Feb 22, 2016 at 1:41 PM, Douglas R. Miles [email protected]
|
Oh the CLI bug at swi-to-yap/swicli#3 ?
Perhaps, I'll dig into it with GDB in the next hour .. There is another issue on master..
See Full log @ http://pastebin.com/yE6TktqG I work around it by reverting just one commit...
I think, because plunit maybe hasn't grown since it was first ported.
Help, what is the secret to getting libYap.so to _dllexport PL_chars_to_term() ? You seem to be using win32? You need to add the X_API macro, either in the body or in the prototpe. In Linux/mac shared objects export every global symbol, dlls are the other way round. Cmake has a discussion on that, basically recent cmakes can export everything in windows too. I'm impressed if you're this on win32. (Adding it to swi.defs wasn't enough .. though, I suppose it was in os.c.o)
SWI's RDF literals are based on blobs which I see you started to implement BLOBs. Deep down rdf literals do not have anything over atoms (unless the those blobs were more than a char* ... but also a linked index over the triples ). From what I was thinking the reasoning behind RDF store itself was to not have repeated assertions. But I've often wondered if there was really any gain over a prolog asserta database. The triple store being implemented in C made sense in the context of SWI I due to memory management/performance reasons according to Jan. However being in C, it didn't have the flexibility I needed. So once I spent no more than a 1/2 hour porting ClioPatria to not use those RDF Stores (instead I use merely the plain prolog database) and it worked very well. The rest of the RDF stuff (parsing) makes sense to be done in a standard xml/rdf parser. cool.
Indeed.. And there is one more thing.. a very recent is that prolog can implement interpreted prolog streams (I think (hope) this is different than the plstreams you mentioned earlier) I had added them via SWICLI a few years ago so. But one project I had 7 months ago it seemed heavy to use SWICLI streams just for a this little piece. So I sent an email to Jan.. low and behold he just created them days before to clib days before I sent the email :) https://groups.google.com/d/msg/swi-prolog/0e-iNq_ojO4/SMxrXFP4BQAJ Here is a use of it: https://github.com/TeamSPoon/PrologMUD/blob/master/pack/logicmoo_base/prolog/logicmoo/util/logicmoo_util_prolog_streams.pl i was thinking of allowing a stream to have its own parser and writer, This seems the same but more complicated? Is it the same idea.
pldoc is sort of a monster that way .. I actually have my own version of a pldocing system that is a runtime web server that htmlizes the listing of the prolog predicates and shows their comments. This includes dynamic predicates. .. It also includes the variable names.. Nice, but doxygen has some advantages too, especiallywith sysgraph working. PlDoc did seem like a lot of hooks but really all we need is one pass thru source creating '$pldoc'/4 assertions of the comments. Part of why pldoc feels so complex (besides the fact that it is) was it is trying to include the Latex docs as well. And provide user code hooks etc.. Yes, also for me this new web stuff is impressive but a lot of stuff ;)
I do see a great hybrid possible The real shizzy is for us is the get SWISH working. Though as luck has it, is pretty much doable without any C other than the clib work I mention above however any version of SWISH from 8 months ago or before doesn't need that What do you need from clib? Sockets? Yap has a c++ interface that could be used straight with node.js or via the swig gateway too. It is mostly similar to the swi interface. Best Vitor |
I take that back.. we have .. https://github.com/vscosta/doxygen-yap |
Yes, doxygen-yap, it has some difficulties with operators and not quite To be honest, it may be easy to integrate with PlDoc too, and there is a I am now trying to bring back from the dead my small sysgraph Sometimes, we in the LP community get ourselves in our little world (SWI is Best Vitor On Mon, Feb 22, 2016 at 9:37 PM, Douglas R. Miles [email protected]
|
No description provided.