Search found 166 matches

by pjstirling
Wed Nov 21, 2018 7:22 am
Forum: Common Lisp
Topic: About single quote, and double parentheses
Replies: 2
Views: 1716

Re: About single quote, and double parentheses

I think you've mis-copied your example, because a) Macros usually use back-quote/tilde (`) rather than single-quote ('), because b) You can't use comma outside of back-quote, and your example includes commas, as you noted Comma is never used as a separator in Common-Lisp, instead it is integral to t...
by pjstirling
Tue Nov 20, 2018 4:36 pm
Forum: Common Lisp
Topic: CLOS objects with many slots
Replies: 8
Views: 2422

Re: CLOS objects with many slots

Hmm, I really can't imagine a use of the ENV parameter that isn't deeply icky. It implies you mucking around with classes in a way that must surely break existing instances in a way that the normal method (evaluating a new DEFCLASS form) would safely navigate. Am I wrong? http://www.lispworks.com/do...
by pjstirling
Tue Nov 06, 2018 9:34 am
Forum: Common Lisp
Topic: Use of "reverse" Function in Lisp for minimax-alpha-beta
Replies: 1
Views: 1634

Re: Use of "reverse" Function in Lisp for minimax-alpha-beta

I'm afraid that I'm struggling a little with following the logic here due to the missing DEFUNs and the Spanish(?) identifiers, but if I'm reading it correctly, you could call REVERSE on the result of HIJOS (which I assume means children?)
by pjstirling
Sat Sep 22, 2018 1:14 am
Forum: Common Lisp
Topic: variable filter-list item
Replies: 3
Views: 2667

Re: variable filter-list item

Because you are using single-quote (') your A symbol is not being evaluated.

Try using back-quote instead:

Code: Select all

(setq ss (ssget "_X" `((2 . ,a)))).
by pjstirling
Sun Sep 09, 2018 5:37 am
Forum: Common Lisp
Topic: Interacting with a web page, searching, drop-downs, buttons
Replies: 3
Views: 2336

Re: Interacting with a web page, searching, drop-downs, butt

You can certainly do this purely in lisp, it's just that you will need to do more work (or use more libraries) drakma will let you fetch a web page, and submit forms, so you will have a function that does the login, and returns the cookie jar so that you stay logged in for the session. You again use...
by pjstirling
Sat Sep 08, 2018 9:57 am
Forum: Common Lisp
Topic: Interacting with a web page, searching, drop-downs, buttons
Replies: 3
Views: 2336

Re: Interacting with a web page, searching, drop-downs, butt

Hmm My first reading of your post assumed you want to write a web-app, that runs on your own machine, that then connects to your school's server in response to your input, because you mentioned the DOM, and parenscript, and because the REPL won't give you things like fancy completion without quite a...
by pjstirling
Thu Sep 06, 2018 4:31 am
Forum: Other Dialects
Topic: instantaneous radius for transition curves every 1 meter
Replies: 1
Views: 4017

Re: instantaneous radius for transition curves every 1 meter

AutoCAD questions bbelong in "other dialects". Common-Lisp is not a catch-all
by pjstirling
Tue May 29, 2018 5:34 pm
Forum: Common Lisp
Topic: using sockets to send a file
Replies: 8
Views: 4973

Re: using sockets to send a file

The sensible thing is to send the length of the file before the file data, of course
by pjstirling
Mon May 14, 2018 5:35 pm
Forum: Common Lisp
Topic: using sockets to send a file
Replies: 8
Views: 4973

Re: using sockets to send a file

Since you haven't provided all of the code that you are using I have to try and make an educated guess: First most likely cause of your hang is that you aren't actually writing a newline to your socket, and so READ-LINE on the other end will hang indefintely. Don't use PRINT when you care about the ...
by pjstirling
Sun Mar 04, 2018 7:27 pm
Forum: Common Lisp
Topic: Tutorial on the installation of CLSQL in GNU CLISP
Replies: 2
Views: 4741

Re: Tutorial on the installation of CLSQL in GNU CLISP

It's rather difficult for me to recommend either clisp or clsql to a newbie.

clisp because it hasn't seen an update since 2010, has no maintainer, and doesn't bundle a recent ASDF (needed by recent libraries).

clsql because of its engineering decisions (this is subjective).

What is your goal?