cl-cookbook-contrib Mailing List for The Common Lisp Cookbook
Brought to you by:
jthing
You can subscribe to this list here.
2002 |
Jan
|
Feb
(1) |
Mar
(17) |
Apr
(27) |
May
(12) |
Jun
(14) |
Jul
(5) |
Aug
(14) |
Sep
(16) |
Oct
(14) |
Nov
(1) |
Dec
(3) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
|
Feb
(1) |
Mar
(11) |
Apr
(3) |
May
(6) |
Jun
(3) |
Jul
(2) |
Aug
(3) |
Sep
(24) |
Oct
(27) |
Nov
(29) |
Dec
(14) |
2004 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
(1) |
Jul
(5) |
Aug
(2) |
Sep
(1) |
Oct
(8) |
Nov
|
Dec
|
2005 |
Jan
|
Feb
|
Mar
(4) |
Apr
(2) |
May
|
Jun
(2) |
Jul
|
Aug
(3) |
Sep
(2) |
Oct
|
Nov
(1) |
Dec
(2) |
2006 |
Jan
|
Feb
|
Mar
(1) |
Apr
(1) |
May
|
Jun
|
Jul
(2) |
Aug
(1) |
Sep
|
Oct
(7) |
Nov
(1) |
Dec
|
2007 |
Jan
(6) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2008 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
From: Alphonse D. <alp...@gm...> - 2013-10-13 08:13:16
|
hello |
From: SourceForge.net <no...@so...> - 2012-05-16 10:15:45
|
Feature Requests item #1541896, was opened at 2006-08-17 04:39 Message generated for change (Settings changed) made by jthing You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447475&aid=1541896&group_id=46815 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: Interface Improvements (example) Group: None >Status: Pending Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) >Assigned to: John Thingstad (jthing) Summary: LOOP Examples Initial Comment: maybe the document found at http://www.ai.sri.com/~pkarp/loop.html is fine as an answer to request 766293 ? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447475&aid=1541896&group_id=46815 |
From: Volkan Y. <yaz...@tt...> - 2008-07-03 14:18:10
|
Hi, Does any moderator check "Tracker > Patches"[1] in project page? If not, where should we submit our patches? Regards. [1] http://sourceforge.net/tracker/?group_id=46815&atid=447474 |
From: SourceForge.net <no...@so...> - 2008-02-06 04:17:46
|
Feature Requests item #1887593, was opened at 2008-02-05 23:17 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447475&aid=1887593&group_id=46815 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Priority: 5 Private: No Submitted By: Roland Krystian Alberciak (alberciak) Assigned to: Nobody/Anonymous (nobody) Summary: Release cookbook as PDF? DVI? Latex? Initial Comment: Hellom Saw the documentation and thought if it was possible to have a mirror copy of the documentation released as pdf, dvi or even latex compatible files Perhaps even generated and stored in cvs, or not. However, you decide. :) Doing a websearch for: "The Common Lisp Cookbook +PDF" doesn't yield any results that I found to be related to what I'm looking for. :( ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447475&aid=1887593&group_id=46815 |
From: SourceForge.net <no...@so...> - 2008-01-12 17:20:51
|
Bugs item #1673404, was opened at 2007-03-04 13:51 Message generated for change (Settings changed) made by skeptomai You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447472&aid=1673404&group_id=46815 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) >Assigned to: Christopher Brown (skeptomai) Summary: misprint in Strings - Example Initial Comment: In Strings - Converting a Number to a String Example * (write-to-string 250.02) "200.02" should be * (write-to-string 250.02) "250.02" or * (write-to-string 200.02) "200.02" ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447472&aid=1673404&group_id=46815 |
From: SourceForge.net <no...@so...> - 2007-12-02 20:26:19
|
Bugs item #1842897, was opened at 2007-12-02 12:26 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447472&aid=1842897&group_id=46815 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Emacs section is badly out of date Initial Comment: I think everybody's moved on to SLIME and SWANK. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447472&aid=1842897&group_id=46815 |
From: SourceForge.net <no...@so...> - 2007-03-04 11:51:31
|
Bugs item #1673404, was opened at 2007-03-04 03:51 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447472&aid=1673404&group_id=46815 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: misprint in Strings - Example Initial Comment: In Strings - Converting a Number to a String Example * (write-to-string 250.02) "200.02" should be * (write-to-string 250.02) "250.02" or * (write-to-string 200.02) "200.02" ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447472&aid=1673404&group_id=46815 |
From: SourceForge.net <no...@so...> - 2007-01-28 10:18:32
|
Feature Requests item #1162129, was opened at 2005-03-12 21:58 Message generated for change (Comment added) made by skeptomai You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447475&aid=1162129&group_id=46815 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) >Assigned to: Christopher Brown (skeptomai) Summary: access command line arguments Initial Comment: How can I access command line arguments from within lisp? I think this information should go to http://cl-cookbook.sourceforge.net/os.html Thanks! Michael ---------------------------------------------------------------------- >Comment By: Christopher Brown (skeptomai) Date: 2007-01-28 12:18 Message: Logged In: YES user_id=1618180 Originator: NO I've added this info in os.html 1.10 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447475&aid=1162129&group_id=46815 |
From: SourceForge.net <no...@so...> - 2007-01-28 08:57:33
|
Bugs item #546193, was opened at 2002-04-19 18:30 Message generated for change (Comment added) made by skeptomai You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447472&aid=546193&group_id=46815 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed Resolution: Fixed Priority: 5 Private: No Submitted By: John Wiseman (jjwiseman) >Assigned to: Christopher Brown (skeptomai) Summary: sockets example newline error Initial Comment: The sockets http example makes a common mistake by using read-line for reading lines and ~% to output newlines. HTTP lines are terminated by CR LF. ~% may output LF on a unix system, CR on a Mac, and CR LF in Windows. Similarly, read-line will consider a line to be terminated by diffrent characters or sequences of characters on different systems. ---------------------------------------------------------------------- >Comment By: Christopher Brown (skeptomai) Date: 2007-01-28 10:57 Message: Logged In: YES user_id=1618180 Originator: NO Fixed in sockets.html 1.10 ---------------------------------------------------------------------- Comment By: John Wiseman (jjwiseman) Date: 2002-06-07 08:31 Message: Logged In: YES user_id=374464 The code still uses read-line to read HTTP requests, and uses #\Newline when sending HTTP requests. I think the most portable replacement for #\Return and #\Newline (which is actually a carriage return on Mac OS before 10, e.g.) is to use (code-char 13) and (code-char 10). I've attached code I've used to read telnet-style CRLF-terminated lines in several lisps, you might want to use something like this. (defun read-telnet-line (stream eof-error-p eof) "Read a CRLF-terminated line" (if (stream-eof-p stream) eof (let ((line (make-array 10 :element-type 'character :adjustable t :fill-pointer 0)) (char nil)) (do () ((or (eq eof (setq char (read-char stream eof-error-p eof))) (and (eql char *cr*) (eql (peek-char nil stream) *lf*))) (when (not (eq char eof)) (read-char stream)) (values line (null char))) (vector-push-extend char line))))) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447472&aid=546193&group_id=46815 |
From: SourceForge.net <no...@so...> - 2007-01-28 08:56:18
|
Bugs item #1275873, was opened at 2005-08-29 19:42 Message generated for change (Comment added) made by skeptomai You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447472&aid=1275873&group_id=46815 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Sam Steingold (sds) Assigned to: Christopher Brown (skeptomai) Summary: link to clisp is obsolete Initial Comment: <http://cl-cookbook.sourceforge.net/windows.html#Installing%20CLISP> links to <http://prdownloads.sourceforge.net/clisp/clisp-2.31-win32.zip> this is an older version. please replace this with a link to <http://sourceforge.net/project/showfiles.php?group_id=1355> thanks! ---------------------------------------------------------------------- >Comment By: Christopher Brown (skeptomai) Date: 2007-01-28 10:56 Message: Logged In: YES user_id=1618180 Originator: NO Fixed in windows.html 1.34 ---------------------------------------------------------------------- Comment By: Christopher Brown (skeptomai) Date: 2006-10-15 11:40 Message: Logged In: YES user_id=1618180 I've updated the link. I'll be checking this in later today. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447472&aid=1275873&group_id=46815 |
From: SourceForge.net <no...@so...> - 2007-01-28 08:55:08
|
Bugs item #1572523, was opened at 2006-10-07 05:27 Message generated for change (Comment added) made by skeptomai You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447472&aid=1572523&group_id=46815 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Christopher Brown (skeptomai) Summary: Strings example parameter order error Initial Comment: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 In the the examples in the Strings section demonstrating that one cannot coerce a single character to a string the order of the parameters is reversed: * (coerce 'string #\y) Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER: #\y is not of type (OR CONS CLASS SYMBOL) The example should be: * (coerce #\y 'string) Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER: #\y is not of type SEQUENCE Submitted by Jesse D. McDonald (nyb...@gm...). -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFJx46AnE5IThH/g8RAo7JAKCoETo8nG0OVhLPgrVhg+f/msf4aACgugHW 73nnXcn4gT79DME+oXr2ixQ= =PX9T -----END PGP SIGNATURE----- ---------------------------------------------------------------------- >Comment By: Christopher Brown (skeptomai) Date: 2007-01-28 10:55 Message: Logged In: YES user_id=1618180 Originator: NO Fixed in strings.html 1.11 ---------------------------------------------------------------------- Comment By: Christopher Brown (skeptomai) Date: 2006-10-15 11:39 Message: Logged In: YES user_id=1618180 Yep. I'm fixing this now. Will be checked in later today. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447472&aid=1572523&group_id=46815 |
From: Genoveffa R. <wes...@la...> - 2007-01-26 21:39:05
|
Good day, Viazzgra $1, 80 Ciazzlis $3, 00 Levizztra $3, 35 http://www.printeryml.*com ( Important ! Remove "*" ) -- across the garden, brandishing his stick and yelling croakily at them. Frank, for his part, believed the boys tormented him because they, like their parents and grandparents, though him a murderer. So when Frank |
From: Todor W. <ran...@ha...> - 2007-01-24 12:55:25
|
Good day, VlA_AGRA $1, 80 ClA_ALIS $3, 00 LEV_VlTRA $3, 35 http://www.printeryml*com ( Important ! Replace "*" with "." ) -- the family name? Theres money involved as well, you know... youd be able to afford some decent robes if you won... What are you talking about? snapped Ron. |
From: Richard M K. <kr...@pr...> - 2006-11-30 03:20:22
|
Hello, In the Hash Tables chapter, it'd be worthwhile to explain a bit about the uses of different tests, especially with an eye toward string-keyed hash tables. Below is a stab at covering this. Regards, Richard M Kreuter --- hashes.html.~1.8.~ 2005-04-17 19:28:34.000000000 -0400 +++ hashes.html 2006-11-29 17:35:13.000000000 -0500 @@ -22,6 +22,7 @@ <li><a href="#del">Deleting from a Hash Table</a> <li><a href="#traverse">Traversing a Hash Table</a> <li><a href="#count">Counting the Entries in a Hash Table</a> +<li><a href="#strings">Strings and Things for Hash Table Keys</a> <li><a href="#size">Performance Issues: The Size of your Hash Table</a> </ul> @@ -44,7 +45,7 @@ <a href="http://www.lispworks.com/documentation/HyperSpec/Body/f_mk_has.htm"><code>MAKE-HASH-TABLE</code></a>. It has no required argument. Its most used optional keyword argument is <code>:TEST</code>, specifying the function used to test the -equality of keys. +equivalence of keys. The default test is <code>EQL</code>. <a name="get"></a> @@ -306,6 +307,86 @@ 0 </pre> +<a name="strings"></a> +<h3>Strings and Things for Hash Table Keys</h3> + +Because the default <code>:TEST</code> argument +to <code>MAKE-HASH-TABLE</code> is <code>EQL</code>, distinct objects +that have equal contents are not equivalent as hash table keys. For +example, + +<pre> +* (defparameter *eql-hash* (make-hash-table)) +*EQL-HASH* +* (setf (gethash "Groucho" *eql-hash*) "Dr. Hugo Hackenbush") +"Dr. Hugo Hackenbush" +* (setf (gethash "Groucho" *eql-hash*) "Rufus T. Firefly") +"Rufus T. Firefly" +* (maphash (lambda (key value) + (format t "~&~A -> ~A~%" key value)) + *eql-hash*) +Groucho -> Dr. Hugo Hackenbush +Groucho -> Rufus T. Firefly +NIL +</pre> + +By passing a more general equality predicate as the <code>:TEST</code> +argument to <code>MAKE-HASH-TABLE</code>, it's possible to treat +distinct objects with similar constituents as equivalent hash table +keys, for certain Lisp types. Of particular note, to construct a hash +table that equates strings whose characters are the same, +use <code>EQUAL</code>: + +<pre> +* (defparameter *equal-hash* (make-hash-table :test #'equal)) +*EQUAL-HASH* +* (setf (gethash "Groucho" *equal-hash*) "Dr. Hugo Hackenbush") +"Dr. Hugo Hackenbush" +* (setf (gethash "Groucho" *equal-hash*) "Rufus T. Firefly") +"Rufus T. Firefly" +* (maphash (lambda (key value) + (format t "~&~A -> ~A~%" key value)) + *equal-hash*) +Groucho -> Rufus T. Firefly +NIL +</pre> + +Performance aside, hash tables whose test is <code>EQUAL</code> are +probably adequate for almost all applications, and are roughly +semantically analogous to the hash tables in several other high level +languages. For a somewhat different equivalence +predicate, <code>EQUALP</code> can be supplied as the hash table test +(but note that EQUALP compares strings and characters +case-insensitively). +<p> + +Because keying on textual data is often important, there's another +approach for using tokens (in an abstract sense) as hash table keys: +to use symbols. + +<pre> +* (defparameter *eq-hash* (make-hash-table :test #'eq)) +*EQ-HASH* +* (setf (gethash :|Groucho| *eq-hash*) "Dr. Hugo Hackenbush") +"Dr. Hugo Hackenbush" +* (setf (gethash :|Groucho| *eq-hash*) "Rufus T. Firefly") +"Rufus T. Firefly" +* (maphash (lambda (key value) + (format t "~&~A -> ~A~%" key value)) + *equal-hash*) +Groucho -> Rufus T. Firefly +NIL +</pre> + +Using symbols instead of strings as hash table keys may result in +faster hashing, which could be of consequence in certain sorts of +programs. However, if the hash table keys are to be derived from the +program's input, then it will be necessary to <code>INTERN</code> +those inputs in order to get symbols to use as hash keys, and to pass +symbols throughout the program, rather than strings. Therefore, this +technique can probably only improve performance in case the domain of +keys for the table changes relatively little during the table's use. + <a name="size"></a> <h3>Performance Issues: The Size of your Hash Table</h3> |
From: SourceForge.net <no...@so...> - 2006-10-30 03:20:18
|
Patches item #1575487, was opened at 2006-10-11 12:16 Message generated for change (Comment added) made by sf-robot You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447474&aid=1575487&group_id=46815 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Christopher Brown (skeptomai) Summary: patch for 'numbers to string' in strings topic Initial Comment: Sorry if this patch doesn't apply correctly. I did this against the current site output rather than the CVS tree. Let me know if it fails and I'll just send the source directly. It's the addition of "How to convert a number to a string" to the strings topic. patch -p0 < strings.patch ought to do it. ---------------------------------------------------------------------- >Comment By: SourceForge Robot (sf-robot) Date: 2006-10-29 19:20 Message: Logged In: YES user_id=1312539 This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker). ---------------------------------------------------------------------- Comment By: Christopher Brown (skeptomai) Date: 2006-10-15 02:37 Message: Logged In: YES user_id=1618180 I'm patching this against the CVS tree now. Expect a checkin later today. ---------------------------------------------------------------------- Comment By: Christopher Brown (skeptomai) Date: 2006-10-11 12:20 Message: Logged In: YES user_id=1618180 Note: this was from ske...@ma.... I failed to notice I wasn't logged in when I submitted it. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447474&aid=1575487&group_id=46815 |
From: SourceForge.net <no...@so...> - 2006-10-15 09:40:28
|
Bugs item #1275873, was opened at 2005-08-29 19:42 Message generated for change (Comment added) made by skeptomai You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447472&aid=1275873&group_id=46815 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Sam Steingold (sds) >Assigned to: Christopher Brown (skeptomai) Summary: link to clisp is obsolete Initial Comment: <http://cl-cookbook.sourceforge.net/windows.html#Installing%20CLISP> links to <http://prdownloads.sourceforge.net/clisp/clisp-2.31-win32.zip> this is an older version. please replace this with a link to <http://sourceforge.net/project/showfiles.php?group_id=1355> thanks! ---------------------------------------------------------------------- >Comment By: Christopher Brown (skeptomai) Date: 2006-10-15 11:40 Message: Logged In: YES user_id=1618180 I've updated the link. I'll be checking this in later today. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447472&aid=1275873&group_id=46815 |
From: SourceForge.net <no...@so...> - 2006-10-15 09:39:19
|
Bugs item #1572523, was opened at 2006-10-07 05:27 Message generated for change (Comment added) made by skeptomai You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447472&aid=1572523&group_id=46815 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) >Assigned to: Christopher Brown (skeptomai) Summary: Strings example parameter order error Initial Comment: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 In the the examples in the Strings section demonstrating that one cannot coerce a single character to a string the order of the parameters is reversed: * (coerce 'string #\y) Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER: #\y is not of type (OR CONS CLASS SYMBOL) The example should be: * (coerce #\y 'string) Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER: #\y is not of type SEQUENCE Submitted by Jesse D. McDonald (nyb...@gm...). -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFJx46AnE5IThH/g8RAo7JAKCoETo8nG0OVhLPgrVhg+f/msf4aACgugHW 73nnXcn4gT79DME+oXr2ixQ= =PX9T -----END PGP SIGNATURE----- ---------------------------------------------------------------------- >Comment By: Christopher Brown (skeptomai) Date: 2006-10-15 11:39 Message: Logged In: YES user_id=1618180 Yep. I'm fixing this now. Will be checked in later today. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447472&aid=1572523&group_id=46815 |
From: SourceForge.net <no...@so...> - 2006-10-15 09:37:14
|
Patches item #1575487, was opened at 2006-10-11 21:16 Message generated for change (Comment added) made by skeptomai You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447474&aid=1575487&group_id=46815 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Pending Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) >Assigned to: Christopher Brown (skeptomai) Summary: patch for 'numbers to string' in strings topic Initial Comment: Sorry if this patch doesn't apply correctly. I did this against the current site output rather than the CVS tree. Let me know if it fails and I'll just send the source directly. It's the addition of "How to convert a number to a string" to the strings topic. patch -p0 < strings.patch ought to do it. ---------------------------------------------------------------------- >Comment By: Christopher Brown (skeptomai) Date: 2006-10-15 11:37 Message: Logged In: YES user_id=1618180 I'm patching this against the CVS tree now. Expect a checkin later today. ---------------------------------------------------------------------- Comment By: Christopher Brown (skeptomai) Date: 2006-10-11 21:20 Message: Logged In: YES user_id=1618180 Note: this was from ske...@ma.... I failed to notice I wasn't logged in when I submitted it. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447474&aid=1575487&group_id=46815 |
From: SourceForge.net <no...@so...> - 2006-10-11 19:20:46
|
Patches item #1575487, was opened at 2006-10-11 21:16 Message generated for change (Comment added) made by skeptomai You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447474&aid=1575487&group_id=46815 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: patch for 'numbers to string' in strings topic Initial Comment: Sorry if this patch doesn't apply correctly. I did this against the current site output rather than the CVS tree. Let me know if it fails and I'll just send the source directly. It's the addition of "How to convert a number to a string" to the strings topic. patch -p0 < strings.patch ought to do it. ---------------------------------------------------------------------- Comment By: Christopher Brown (skeptomai) Date: 2006-10-11 21:20 Message: Logged In: YES user_id=1618180 Note: this was from ske...@ma.... I failed to notice I wasn't logged in when I submitted it. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447474&aid=1575487&group_id=46815 |
From: SourceForge.net <no...@so...> - 2006-10-11 19:17:00
|
Patches item #1575487, was opened at 2006-10-11 12:16 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447474&aid=1575487&group_id=46815 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: patch for 'numbers to string' in strings topic Initial Comment: Sorry if this patch doesn't apply correctly. I did this against the current site output rather than the CVS tree. Let me know if it fails and I'll just send the source directly. It's the addition of "How to convert a number to a string" to the strings topic. patch -p0 < strings.patch ought to do it. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447474&aid=1575487&group_id=46815 |
From: SourceForge.net <no...@so...> - 2006-10-07 03:27:04
|
Bugs item #1572523, was opened at 2006-10-06 20:27 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447472&aid=1572523&group_id=46815 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Strings example parameter order error Initial Comment: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 In the the examples in the Strings section demonstrating that one cannot coerce a single character to a string the order of the parameters is reversed: * (coerce 'string #\y) Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER: #\y is not of type (OR CONS CLASS SYMBOL) The example should be: * (coerce #\y 'string) Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER: #\y is not of type SEQUENCE Submitted by Jesse D. McDonald (nyb...@gm...). -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFJx46AnE5IThH/g8RAo7JAKCoETo8nG0OVhLPgrVhg+f/msf4aACgugHW 73nnXcn4gT79DME+oXr2ixQ= =PX9T -----END PGP SIGNATURE----- ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447472&aid=1572523&group_id=46815 |
From: SourceForge.net <no...@so...> - 2006-08-17 11:39:58
|
Feature Requests item #1541896, was opened at 2006-08-17 04:39 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447475&aid=1541896&group_id=46815 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: LOOP Examples Initial Comment: maybe the document found at http://www.ai.sri.com/~pkarp/loop.html is fine as an answer to request 766293 ? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447475&aid=1541896&group_id=46815 |
From: SourceForge.net <no...@so...> - 2006-07-17 13:09:49
|
Patches item #1522710, was opened at 2006-07-14 11:12 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447474&aid=1522710&group_id=46815 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Widget (example) Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: File Slurping Initial Comment: I looked through the file section of the cookbook and found no simple way to get the string contents from a text file. with the-file being a pathname, this snippet returns the string contents of a file: (with-open-file (f the-file) (let ((seq (make-string (file-length f)))) (read-sequence seq f) (coerce seq 'string)) ) I added the coerce at the bottom, but got the main part from http://www.emmett.ca/~sabetts/slurp.html According to this article, this is also the fastest. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2006-07-17 06:09 Message: Logged In: NO The above leaves extra characters at end of string. From what I read it looks like it has something to do with linefeeds in ms-dos/windows. This code works with the file I'm testing (got it from http://www.codecomments.com/archive274-2006-1-786774.html): (defun slurp-file (name) "Slurps up file <name> and returns the data as a string." (let ((data nil)) (with-open-file (file name :direction :input) (setf data (make-array (file-length file) :element-type 'character :fill-pointer t :adjustable t)) (setf (fill-pointer data) (read-sequence data file)) (values data)))) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447474&aid=1522710&group_id=46815 |
From: SourceForge.net <no...@so...> - 2006-07-14 18:12:34
|
Patches item #1522710, was opened at 2006-07-14 11:12 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447474&aid=1522710&group_id=46815 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Widget (example) Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: File Slurping Initial Comment: I looked through the file section of the cookbook and found no simple way to get the string contents from a text file. with the-file being a pathname, this snippet returns the string contents of a file: (with-open-file (f the-file) (let ((seq (make-string (file-length f)))) (read-sequence seq f) (coerce seq 'string)) ) I added the coerce at the bottom, but got the main part from http://www.emmett.ca/~sabetts/slurp.html According to this article, this is also the fastest. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447474&aid=1522710&group_id=46815 |
From: SourceForge.net <no...@so...> - 2006-04-08 05:53:56
|
Feature Requests item #619966, was opened at 2002-10-07 15:07 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447475&aid=619966&group_id=46815 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Priority: 5 Submitted By: Robert P. Goldman (rpgoldman) Assigned to: Nobody/Anonymous (nobody) Summary: Question/suggestion for hash-table page Initial Comment: I stumbled across this while looking for an answer to a poignant hash-table question. Namely, how does one make a hash-table whose entries are CLOS objects? The spec only requires that hash-tables accept eq, eql, equal, equalp as tests. Unfortunately, these are all equivalent to EQ when applied to CLOS objects. And none are generic functions. An answer to this question would sure be helpful! If I find a good one, I'll submit it. Cheers, R ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2006-04-07 22:53 Message: Logged In: NO Implementation dependant. In CMUCL, do something like (ext:define-hash-table-test 'foo #'foo-t #'foo-h), and then (make-hash-table :test 'foo) makes a hash table that uses (foo-t x y) to compare two items, and (foo-h x) to generate the hash value. [Of course, you have to make sure that (foo-t x y) implies (= (foo-h x) (foo-h y))] ---------------------------------------------------------------------- Comment By: Robert P. Goldman (rpgoldman) Date: 2002-10-08 07:15 Message: Logged In: YES user_id=275595 I wasn't confusing CLOS objects with the ability to use Generic Functions as a test in a hash table. But there is an obvious connection: since none of the existing equality tests are sufficient to test CLOS objects, a generic function is a logical way to implement an equality/equivalence test for CLOS objects in a hash table. Actually, it turns out that I'm NOT stuck. For CMUCL, one can make special-purpose hash tables using the (not well-documented) function define-hash-table-test, which allows you to provide a special hash-function/equality test combination for new kinds of hash tables. [I'm not sure what the situation is for Allegro, since I don't have a license any more, but I'm pretty sure I was able to make hash tables of objects there.] The CMUCL solution is actually just the Right Thing, because it allows you to provide two pretty simple pieces of information, and then use the hash-table functions as they are. Much better than having to do all kind of monkeying around with making lists out of objects, handling buckets and collisions yourself, etc. After all, if I wanted to write C, I could write C. I'm writing CL because (1) I need to do rapid prototyping and experiment with different data structures and (2) my time is more important than my Athlons'! So, with all due respect, *I* would prefer to be the judge of whether my hash table is going to be too inefficient to be usable. Not only do I want to use CL instead of C, I want to use CL instead of Pascal, the language that nags me! :-) I could write up instructions about how to use hash-tables for more ambitious things in CMUCL, but probably I would be better off offering to help fix the CMUCL documentation for this. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2002-10-07 23:16 Message: Logged In: NO I think you might be confusing CLOS objects with the ability to use GFs, so I want to ask: do you want a hash-table whose equality test is a GF, or a table which distinguishes CLOS objects by some means other than the four equality tests you (correctly) listed? If it's the first of these, then you're stuck. If it's the other you could write some code to extact the information you want out of a CLOS structure into - say - a list in such a form that equal would serve you. Hash-tables have to be restricted in this way, otherwise they'd be too inefficient to be usable. Maybe you shouldn't be using a hash-table? What are you trying to achieve? What would your equality test look like? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=447475&aid=619966&group_id=46815 |