... C ... original ... whole ... ARRAY ... Thanks for the pointers, Marco & Rudi. I now have READ-SEQUENCE reading an entire 1920*1088 bytes into an array. ...
1230
Pavel Grozman
pavel_grozman
Mar 1, 2003 3:38 pm
... Corman Lisp cannot read from file directly to Lisp data because blocks of Lisp data may be moved by garbage collector. Corman Lisp first reads to a...
1231
JP Massar
jpmassar
Mar 1, 2003 6:29 pm
... Out of curiosity, it is theoretically possible to do (expressed in psuedocode): (without-interrupts (without-gc (move-buffer-block-into-lisp-array-block...
1232
Chris Double
doublecnz
Mar 1, 2003 10:05 pm
... It is possible to turn off the garbage collector for very short periods of time in assembler. The idea being when you are doing an 'unsafe39; operation you...
1233
Edi Weitz
nhabedi
Mar 1, 2003 10:22 pm
Hi! This message will show my complete ignorance about Windows issues and is probaly only marginally related to Corman Lisp but, anyway, here it goes... I...
1234
Pavel Grozman
pavel_grozman
Mar 1, 2003 10:48 pm
... It is not safe to call functions in this situation. There is another possibility: to use functions EnterCriticalSection and LeaveCriticalSection with the...
1235
Edi Weitz
nhabedi
Mar 1, 2003 10:50 pm
... Just tried this with Lispworks and (deliver 'main "foo" 0 :console t) and at least 2. and 3. from above work fine there. The generated EXE also isn't slow...
1236
JP Massar
jpmassar
Mar 2, 2003 1:44 am
... If you can turn the GC off at all, then why can't you turn it off for an indefinite amount of time, as long as you never cons (i.e., allocate memory), and...
1237
Chris Double
doublecnz
Mar 2, 2003 2:34 am
... I forget the exact reasons, I'm sure Roger can expand on it. The flag for turning the GC off is an assembler register I think. So you can 'clear39; and ...
1238
JP Massar
jpmassar
Mar 2, 2003 2:34 am
... So I was playing with this a bit, and created FOO.EXE using the above incantation. It creates a FOO.EXE in the Corman toplevel directory. If I click on...
1239
SmallHairyTroll <l...
SmallHairyTroll
Mar 2, 2003 2:53 am
... for ... allocate ... into ... a block ... Corman ... me ... This would still be much slower than the C/C++ equvalient due to the inability to use DMA to...
1240
Roger Corman
rgcorman
Mar 2, 2003 10:41 am
You can use: ccl:map-file ccl:unmap-file "Usage: (MAP-FILE pathname) Returns (1) address of the memory mapped file (or null if an error occurred) (2) the...
1241
SmallHairyTroll <l...
SmallHairyTroll
Mar 2, 2003 12:38 pm
I have opened a file of :element-type 'unsigned-byte, but need to write a header containing several ASCII characters, including line feeds. (FORMAT "~B"...
1242
Eduardo Muñoz
lisp-cormanlisp@...
Mar 2, 2003 1:20 pm
... I am no expert with CormanLisp, but see \examples92;touch.lisp within your CormanLisp dir. It has a little command line utility. -- Eduardo Muñoz ...
1243
SmallHairyTroll <l...
SmallHairyTroll
Mar 2, 2003 7:05 pm
... of ... It's amazing how easily one finds the answer after taking a break. Just mapcar CHAR-INT or CHAR-CODE across each character in the string. -Luke...
1244
Edi Weitz
nhabedi
Mar 2, 2003 10:09 pm
... Thanks. That's a good example for a console application that I wasn't aware of. However, it doesn't address my issues with EOF which are still unsolved...
1245
Kenny Tilton
true_that_2000
Mar 3, 2003 2:14 am
I am having great fun with Corman's C parser, but I tend to make this mistake: (ct:transcribe-file "in" "out" :package :option-you-idiot!) ie, I keep thinking...
1246
Kenny Tilton
true_that_2000
Mar 3, 2003 5:41 pm
I am diving in anyway to see if I can make this work: typedef struct { float x, y; } Vertex2d; just guessing at the above syntax, the key is that...
1247
Kenny Tilton
true_that_2000
Mar 3, 2003 5:59 pm
... would that be because, in the first case, the ~A sends (eventually) format after the next token, which is a symbol not known in the current (null) package?...
1248
JP Massar
jpmassar
Mar 3, 2003 5:59 pm
A ... Binding *package* to NIL could be considered a bad idea ... For instance, this hangs (let ((*package* nil)) (intern "FOO")) and this hangs (let...
1249
Roger Corman
rgcorman
Mar 4, 2003 8:59 am
For now, the best way to get good performance in reading large blocks of data is to allocate a foreign block of sufficient size and read into that via foreign...
1250
JP Massar
jpmassar
Mar 4, 2003 5:07 pm
Thanks for the superb writeup! ... You'd still need efficient READ-SEQUENCE code, yes? ... That's what I was thinking of with my psuedocode as the inner-inner ...
1251
åŒ—å· å¸Œ
kaanapari2001
Mar 5, 2003 10:01 am
Hi, Corman Lisp Gurus, I've noticed the following when I was doing a excercise in Paul Graham's ANSI Common Lisp: [Corman Common Lisp 2.01] (or 13 (/ 1 0)) ;;;...
1252
Pavel Grozman
pavel_grozman
Mar 5, 2003 11:37 am
CormanLisp tries to evaluate constant subexpressions. Without constants it works as it should: (setq x 0) 0 (or 13 (/ 1 x)) 13 Pavel Grozman...
1253
JP Massar
jpmassar
Mar 5, 2003 8:07 pm
... More precisely, Corman is not doing evaluation. Corman always compiles everything, even things you type into it interactively. So the Corman compiler is...
1254
xenophonf
Mar 7, 2003 3:42 pm
SUBSEQ doesn't return the proper values when operating on simple bit vectors. For example, Corman Lisp 2.01: ? (subseq (copy-seq #8*01101001) 0 4) #*0000 ...
1255
Pavel Grozman
pavel_grozman
Mar 7, 2003 5:42 pm
... The error is in function cl::setelt that is used in subseq. This function is used instead of (setf elt) before (setf elt) is defined. But setq was defined...
1256
Kenny Tilton
true_that_2000
Mar 8, 2003 1:28 am
This works in ACL and LispWorks: (defun (setf md-slot-value) (newvalue self slot-spec) <snip> (when (c-setting-p c) (return-from md-slot-value newvalue)) ......
1257
Kenny Tilton
true_that_2000
Mar 8, 2003 1:50 am
Whoa. This: (defmethod c-link-ex ((used c-user-notifying) &aux (user (car *c-calculators*))) ...etc.... produces this in CormanLisp: ;;; An error occurred in...
1258
JP Massar
jpmassar
Mar 8, 2003 7:50 pm
... It is a bug. &KEY and &ALLOW-OTHER-KEYS must come before &AUX in a lambda list. Something is constructing the lambda-list incorrectly. I poked around a...