freenode/lisp - IRC Chatlog
Search
6:04:51
ebzzry
Is there a way to temporarily disable the package reader when reading the symbol X:Y ?
6:09:53
pjb
ebzzry: you can put a reader macro on all the consituent characters, and from there, read the syntax you want.
6:18:29
White_Flame
ebzzry: if you only converted colon to a constituent, you'd get the symbol named "X:Y"
6:23:31
beach
ebzzry: I recommend you use Eclector. It lets you interpret tokens whatever way you like.
6:40:16
ebzzry
pjb: I agree. However, the syntax of the language is that there can be embedded colons inside it, like foo:bar.
7:01:06
beach
ebzzry: READ is meant for reading Common Lisp expressions. If you want to read something else, it is usually a better idea to write a parser for it, rather than trying to twist READ into something that it was not meant for.
9:23:30
splittist
For hysterical raisins I am a (the?) moderator of the beirc-devel mailing list. There is a bit of spam that needs deleting in the moderation queue, but I can't for the life of me recover my password to do so. Could some kind common-lisp.net admin assist?
9:25:48
jackdaniel
splittist: if you ask at #common-lisp.net channel you are more likely to get a response
9:33:23
montaropdf
Any pointer to a document or package to use the LISP syntax as a database format?
9:34:04
montaropdf
I wnat to use LISP to keep records of transaction and to store various types of data in simple tables.
9:37:36
montaropdf
both datfly nd postmodern are libraries to work with database, I am looking for a database format made of LISP strings.
9:46:51
montaropdf
My idea was to have one table per file, with the table definition at the top and transaction records or data records following the definition. the definition and records should be stored as LISP string: a record could look like (insert record-date field1 field2 field3...)
9:48:50
jackdaniel
maybe defining a class and treating class = table, instance = record, slot = field would suffice?
9:49:38
montaropdf
This would allow me to use a simple text editor to edit the DB and use a companion library to create reports or transfert the whole stuff into a more traditional database format.
10:45:13
jackdaniel
tagbody estabilishes lexical tags to which you may go (as you do with goto in C)
10:46:23
jackdaniel
it is usually the most useful when you write looping macros, not something you often encounter in hand-written code
11:01:23
pjb
(do ((i 0 (1+ i))) ((< 10 i)) (if (evenp i) (go nope)) (format t "~A " i) nope) #| 1 3 5 7 9 --> nil |#
11:38:09
jackdaniel
montaropdf: the part pjb did not mention is that do estabilishes an implicit tagbody
12:16:49
Cymew
Someone posted some code written by Greenblatt. He seemed to have liked PROG and GO. It did look a bit like Fortran. ;)
12:22:07
splittist
I have seen PROG described as the facility for allowing FORTRAN (as it was) programmers to code LISP (as it was)
12:24:35
lieven
CL even can do tricks like handing out closures over GO tags. (tagbody .... tag .... (f 1 #'(lambda () (go tag)) ...) and the function f can funcall the closure to return to the tag
12:25:38
splittist
aap: true. How else would you write computer programs than in units directly translatable to short runs of machine code?
12:34:56
montaropdf
With regard to my lisp db idea, I have published an org file describing my thought on the subject: https://github.com/montaropdf/reve-workshop/tree/dev/docs/notes
13:25:11
montaropdf
jmercouris: as I foresee it its primary use will be through a text editor to add transactions or modify data record, so you could already try it to verify it is as editor and programming language friendly as it seems as of now.
13:30:13
montaropdf
jmercouris: I was speaking about trying the file format to hold data, not coding anything that could act on the data.
13:58:44
montaropdf
BTW, any comments about the syntax consistency of the various forms/expressions described?
14:01:41
jmercouris
the only thing that comes to mind is this; the table definition need not contain sort information