Search found 85 matches

by marcoxa
Wed Jun 28, 2017 8:12 am
Forum: Common Lisp
Topic: Assesing set-macro-character+deftype vs CLOS...
Replies: 5
Views: 8966

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

Hi your problem is that you have LISTs in your hand after you have READ in something via your #[ reader macro. That makes it very cumbersome to interact with the other piece of the CL ecosystem that you need to interact with: the pretty printer and PRINT-OBJECT Essentially you need to use PRINT-OBJE...
by marcoxa
Sat Dec 31, 2016 3:11 am
Forum: Common Lisp
Topic: (R)creational Common Lisp
Replies: 0
Views: 4064

(R)creational Common Lisp

Hi

some of you may be interested in this blog post of mine http://within-parens.blogspot.gr/2016/1 ... -lisp.html about https://www.r-project.org and Common Lisp.

Cheers
MA
by marcoxa
Sat Dec 17, 2016 11:36 am
Forum: Common Lisp
Topic: Trying to understand a closure with unexpected output
Replies: 1
Views: 3791

Re: Trying to understand a closure with unexpected output

It depends on the definition of *AWS-CREDENTIALS*. Was it defined as a DEFVAR or a DEFPARAMETER? If not, you should at least add a

Code: Select all

(declare (special *aws-credentials*))
after the LET that binds it and above the code that uses it.

Cheers

Marco
by marcoxa
Wed May 18, 2016 5:20 am
Forum: Common Lisp
Topic: cl-2dsyntax
Replies: 6
Views: 9569

Re: cl-2dsyntax

Hi.

I can post a link to the irsabol tool if anyone is interested.

Cheers
--
MA
by marcoxa
Tue Feb 09, 2016 7:35 am
Forum: Common Lisp
Topic: Is #S(quux ...) a literal?
Replies: 5
Views: 7037

Re: Is #S(quux ...) a literal?

You should play with CL-UNIFICATION (yep; this is a shameless plug).

Cheers
--
MA
by marcoxa
Tue Jan 12, 2016 12:27 pm
Forum: Common Lisp
Topic: JSON Streaming API Design
Replies: 4
Views: 6159

Re: JSON Streaming API Design

Pretty-printing (generated) html is an anti-pattern, it has real costs, and ephemeral benefits. You should treat it like a data-interchange format (like PNG) and use firebug's DOM inspector instead of mentally parsing the html (it's the DOM you care about after-all). IMHO it is the macro-expanding ...
by marcoxa
Thu Dec 24, 2015 5:26 pm
Forum: Common Lisp
Topic: JSON Streaming API Design
Replies: 4
Views: 6159

Re: JSON Streaming API Design

My suggestion is to avoid mixing up macros and printing. Personally I got bitten very hard (or at least that's the way I felt) by the normal "macro-expanding-into-write" HTML generators out there. Looks to me you are doing the same. I advocate a different approach, which Common Lisp allows you to fo...
by marcoxa
Mon Nov 30, 2015 6:20 am
Forum: Common Lisp
Topic: Is there any decent GUI toolkit for MS Windows?
Replies: 13
Views: 21646

Re: Is there any decent GUI toolkit for MS Windows?

Goheeca wrote:I can't tell, I've only used CommonQt. But after one brief glimpse, the CAPI is lacking native dialogs (eg. file chooser) and simple-tk has it.
CAPI has "native" dialogs (e.g., the File Chooser) everywhere. Look for CAPI:PROMPT-FOR-* (the * stands for pretty much everything).

Cheers

MA
by marcoxa
Mon Nov 30, 2015 5:50 am
Forum: Common Lisp
Topic: Variable reference in structures
Replies: 18
Views: 28119

Re: Variable reference in structures

... It's possible to overwrite the constructor for a self-defined structure to implement LET* behaviour: (defstruct foo a b c) ;; IMPORTANT: save the original MAKE-FOO constructor FIRST! (defparameter *make-foo* (symbol-function 'make-foo)) (defmacro make-foo (&key a b c) ;; create local variables ...
by marcoxa
Tue Jul 28, 2015 5:20 am
Forum: Common Lisp
Topic: Is there any decent GUI toolkit for MS Windows?
Replies: 13
Views: 21646

Re: Is there any decent GUI toolkit for MS Windows?

The correct question re: CAPI and TK/LTk is the following.

What is in CAPI that is not in TK/LTk? :D

BTW. With LW you have a choice of using the GTk-based version of CAPI.

Cheers
MA