Search found 166 matches

by pjstirling
Wed Nov 09, 2016 9:10 pm
Forum: Common Lisp
Topic: Using a symbol at the same time its package is created
Replies: 3
Views: 5453

Re: Using a symbol at the same time its package is created

I'm sorry for not being more specific on the side-effects issue, it's not that all side-effects should be banned in the host lisp, it's that you must ensure that any side-effects are executed in the target lisp. I came across this issue myself when in my html generation library I wanted to save some...
by pjstirling
Tue Nov 08, 2016 4:37 pm
Forum: Common Lisp
Topic: Using a symbol at the same time its package is created
Replies: 3
Views: 5453

Using a symbol at the same time its package is created

Hi, I've been doing some network programming this weekend and I've hit an issue on which I'd like some suggestions. I send a number of tyes of message between nodes ("Hi", "Here's a job", "Success", etc), which means that each message sent needs to carry a sentinel to identify what type it is, and, ...
by pjstirling
Tue Nov 08, 2016 4:35 pm
Forum: Common Lisp
Topic: CLISP
Replies: 3
Views: 5104

Re: CLISP

The fact that you haven't even attemted this makes it sound like a homework assignment. Building an array of random numbers will involve the symbols MAKE-ARRAY DOTIMES RANDOM AREF, and SETF. Finding the sub-lists that sum to a total is a naturally recursive problem, your first step would be to sort ...
by pjstirling
Sun Oct 30, 2016 6:06 pm
Forum: Common Lisp
Topic: CommonQT nontrivial example?
Replies: 5
Views: 7368

Re: CommonQT nontrivial example?

I use web-apps as UI to avoid the FFI tar-pit, sorry :(
by pjstirling
Tue Aug 23, 2016 8:53 am
Forum: Common Lisp
Topic: can sbcl run on a grsecurity hardened kernel?
Replies: 3
Views: 5894

Re: can sbcl run on a grsecurity hardened kernel?

I realise that it doesn't sound great, but buffer-overruns are impossible outside code that is compiled with (DECLARE (OPTIMIZE (SAFETY 0)) which should be the exception, and such code is usually vetted rather more carefully than "normal" code.
by pjstirling
Sun Aug 21, 2016 7:06 am
Forum: Common Lisp
Topic: Lisp - Line,extend
Replies: 1
Views: 3242

Re: Lisp - Line,extend

This code isn't base Common-Lisp, and it's not clear what this code is meant to interact with, is it a library, or some other lisp, like autocad?
by pjstirling
Thu Aug 11, 2016 10:05 am
Forum: Common Lisp
Topic: RFC: mapcar with an index
Replies: 1
Views: 3383

Re: RFC: mapcar with an index

I have a function RANGE that I tend to use for this sort of thing, but yes, there's not a totally convenient way to do this built into Common-Lisp.
by pjstirling
Tue Aug 09, 2016 2:12 pm
Forum: Common Lisp
Topic: Name clash with EXT::EXECUTE
Replies: 1
Views: 3045

Re: Name clash with EXT::EXECUTE

The problem appears to be, on clisp: [1]> (find-package "USER") #<PACKAGE COMMON-LISP-USER> COMMON-LISP-USER is explicitly allowed to include whatever implementation-specific symbols (that don't conflict with those of COMMON-LISP) that the implementation likes, for clisp that includes the symbols fr...
by pjstirling
Tue Aug 09, 2016 1:54 pm
Forum: Common Lisp
Topic: can sbcl run on a grsecurity hardened kernel?
Replies: 3
Views: 5894

Re: can sbcl run on a grsecurity hardened kernel?

sbcl won't run with ASLR. Is there a big problem in running behind a reverse proxy? I did it that way rather than try and get sbcl to try and do the dance required to bind port 443 without running all the time as root (which is obviously a really dumb idea with an interactive code-generation capable...
by pjstirling
Tue Jul 26, 2016 5:09 am
Forum: Common Lisp
Topic: exercism fetch TRACK_ID Error Message
Replies: 3
Views: 4587

Re: exercism fetch TRACK_ID Error Message

I've not used exercism but I've RTFM exercism uses a command-line client to download the exercises. This program is not a lisp program, it's just a binary to install for your platform (windows/linux/macos) and then run from a terminal. Personally I started with CL with "On Lisp" rather than "ANSI Co...