Search found 8 matches

by starfleet
Sun Jun 25, 2017 12:08 pm
Forum: Common Lisp
Topic: Assesing set-macro-character+deftype vs CLOS...
Replies: 5
Views: 8960

Re: Assesing set-macro-character+deftype vs CLOS...

A brief update... So, as Pjstirling suggested, i started modeling APC CLOSS-style and I ran into the following which I consider related enough to the original post, that i deserves to be in the same post... It is easy to write a selector class with a print-object method that instead of something awk...
by starfleet
Sat Jun 24, 2017 5:03 pm
Forum: Common Lisp
Topic: Assesing set-macro-character+deftype vs CLOS...
Replies: 5
Views: 8960

Re: Assesing set-macro-character+deftype vs CLOS...

I see... Pjstirling , I have studied the solution you suggested, it seems to me that indeed I can tweak the pretty printer for the sample task but, in the end, my goal is to program fully functional selectors, complexes, stars, and all the other kind of objects in the Annotated Predicate Calculus (A...
by starfleet
Fri Jun 23, 2017 6:42 pm
Forum: Common Lisp
Topic: Assesing set-macro-character+deftype vs CLOS...
Replies: 5
Views: 8960

Assesing set-macro-character+deftype vs CLOS...

Greetings! I'm trying to write an Annotated Predicate Calculus (APC) manager. Fundamental units in this manager are called selectors and have the structure: [<var> <op> <val>] For example, [color = red] , [size >= 35] , [age IN 20..40] With Set-Macro-Character I can get the Lisp reader to correctly ...
by starfleet
Wed Apr 12, 2017 11:50 am
Forum: Homework
Topic: Constant terms in macro parameters...
Replies: 2
Views: 6507

Constant terms in macro parameters...

Greetings, this is not homework, but I felt it would be here the best place to post... I'm trying to program a common-lisp macro (sbcl) to set the syntax for defining a rule in a rule-based system. My goal is to allow users to specify rules in a syntax like this: (defrule "name of the rule" :when (s...
by starfleet
Tue Jul 29, 2014 4:23 pm
Forum: Common Lisp
Topic: Managing displaced arrays...
Replies: 5
Views: 5918

Re: Managing displaced arrays...

I see... I'm not sure if "conformal displacement" is what I need , yet... but ROW-MAJOR-AREF looks promising as the base for a wrap class that allows the processing of "slices" (either columns or rows) in matrices... It really doesn't matter if the arrays contain numeric data... it's just a matter o...
by starfleet
Tue Jul 29, 2014 1:02 pm
Forum: Common Lisp
Topic: Managing displaced arrays...
Replies: 5
Views: 5918

Re: Managing displaced arrays...

Thanks LOGXOR... I hadn't think about ROTATEF... and looks like it is a very good point to start with these reordering functions... As I can see now, the problem seems to be tackling the column-wise operations...But your code is definitely a solid start-point... Just to clraify a little, what I need...
by starfleet
Sun Jul 27, 2014 5:46 pm
Forum: Common Lisp
Topic: Managing displaced arrays...
Replies: 5
Views: 5918

Managing displaced arrays...

Greetings everyone, I need to write a small program for handling numeric 2D arrays... As a special requirement I need to reorder certain rows and columns within an array... I think the right way to do it is by creating a new displaced array but I don't have the expertise needed for the task... :( I'...
by starfleet
Sun Jun 30, 2013 12:50 pm
Forum: Common Lisp
Topic: How can I model multi-vector arrays? ...
Replies: 1
Views: 2201

How can I model multi-vector arrays? ...

Greetings everyone, I know this sounds very newbie... and it definitely is... I need to define a type of 2D matrix of bits, of size mxn (m rows by n columns), that can be used, either as a vector of rows, or as a vector of columns ... Common Lisp's ability to define bit sequences like #*011011 seems...