Search found 98 matches

by JamesF
Sat Feb 18, 2017 11:17 am
Forum: Common Lisp
Topic: Neo4j schema and API project: Restagraph
Replies: 0
Views: 3674

Neo4j schema and API project: Restagraph

If anybody's using Neo4j, and wishes it had an enforceable schema and a REST API based on that schema, Restagraph delivers most of that. I can't push a schema into the database itself, but I did provide the means for defining one in there, from which an API is generated on the fly. It's a long way f...
by JamesF
Mon Jan 05, 2015 8:35 am
Forum: Common Lisp
Topic: Which utilities do you use?
Replies: 9
Views: 11606

Re: Which utilities do you use?

I'm in Edgar's camp: I only write utilities if I can't find anything pre-existing that somebody else is maintaining. It's a maintainability thing, both for myself and for anybody else who needs to maintain my code in the future. This includes myself after enough time has passed that I've lost all th...
by JamesF
Mon Jan 05, 2015 8:08 am
Forum: Common Lisp
Topic: Franz AllegroCL Express 9.0 in OSX/XQuartz shows only square
Replies: 1
Views: 3557

Re: Franz AllegroCL Express 9.0 in OSX/XQuartz shows only sq

Hi Ged,

At first glance, it looks to me like a character-set problem.
However, as Allegro already provide support for their own product, you'll most likely get faster and more accurate feedback directly from them.


Best regards,
James
by JamesF
Tue Dec 10, 2013 7:15 am
Forum: Homework
Topic: CLISP Programming
Replies: 3
Views: 6983

Re: CLISP Programming

So, what you need to do is iterate over the factbase and, for each entry in it, extract two elements, and then incorporate those two elements into text output that you send to the screen. For the second bit, look into print and format; the latter is particularly good for this kind of thing. For iter...
by JamesF
Mon Mar 25, 2013 7:20 am
Forum: Common Lisp
Topic: CLOS vs closures
Replies: 7
Views: 11574

Re: CLOS vs closures

Shouldn't CLOS be used only if you have a real need for features you can't easily get with closures, like multiple inheritance and access to the internal state? It seems like so much unnecessary baggage otherwise. I think it's mostly a matter of taste and preference, though I think CLOS can help wi...
by JamesF
Sun Mar 17, 2013 5:59 am
Forum: Common Lisp
Topic: ANN: cl-4store, a SPARQL client library for RDF manipulation
Replies: 1
Views: 2661

ANN: cl-4store, a SPARQL client library for RDF manipulation

I've been chipping away at a project that turned out to really want a triplestore as its backend. One thing led to another, I clambered onto the shoulders of a couple of guys that did most of the spadework for me, and now there's a handy client library for querying a triplestore, as well as adding t...
by JamesF
Thu Jan 31, 2013 3:00 am
Forum: Common Lisp
Topic: #\ vs '
Replies: 6
Views: 6256

Re: #\ vs '

If you want to return the character itself, (format nil "~A" char) would be the most convenient way to convert it into a string, which I'm guessing is the effect you want. If char has the value #\y, it will return the string "y". The problem with returning 'y is that this is a symbol. In Lisp, this ...
by JamesF
Fri Jan 18, 2013 1:19 am
Forum: Common Lisp
Topic: User-defined functions in macros
Replies: 9
Views: 9815

Re: User-defined functions in macros

I've struck the same problem in the past; I fixed it by putting the prerequisite function into a different file that got compiled before the one containing the macro. This guaranteed that it was available when the call to defmacro occurred, and made me appreciate the convenience of ASDF even more. N...
by JamesF
Thu Dec 13, 2012 4:23 am
Forum: Common Lisp
Topic: Lispworks
Replies: 1
Views: 2720

Re: Lispworks

I expect it's the same for Lispworks as for other lisps: you need to evaluate the file, to define that function in the running image, then call the function.
by JamesF
Thu Nov 22, 2012 2:02 am
Forum: Common Lisp
Topic: Apply a method
Replies: 4
Views: 4116

Re: Apply a method

Hi. Can someone tell me if a method can be used outside of a generic function? Short answers: - no, but you can pretend that it can, because invoking a generic function looks exactly the same as invoking a regular function (this is not a coincidence) - yes, you should be able to do what you describ...