Search found 104 matches

by hsmyers
Sun Jul 12, 2009 8:11 pm
Forum: Whither newLISP?
Topic: Values and void
Replies: 8
Views: 2195

Ah! Bad me for not RTFM-ing!! 'silent' will do quite nicely. Thanks!

--hsm
by hsmyers
Sun Jul 12, 2009 8:30 am
Forum: newLISP newS
Topic: Typo in newLISP Introduction, pdf version
Replies: 2
Views: 1314

Typo in newLISP Introduction, pdf version

On page 40 in bullet list underneath Building Lists, "cons prepends an element to a list or make a list" should be "...makes a list".

--hsm
by hsmyers
Sun Jul 12, 2009 8:27 am
Forum: newLISP newS
Topic: Typo in the User Manual pdf version
Replies: 0
Views: 1195

Typo in the User Manual pdf version

Page 270, last line of the displayed code, RREPLACE_ONCE should be REPLACE_ONCE.

--hsm
by hsmyers
Sun Jul 12, 2009 8:24 am
Forum: newLISP Graphics & Sound
Topic: Parenthesis matching in IDE
Replies: 0
Views: 2854

Parenthesis matching in IDE

Normally when I'm coding I depend on the bouncing cursor to tell me which expression I'm closing up, but I noticed that the cursor will match lines that have been commented out. I suspect that this is not intended?

--hsm
by hsmyers
Sun Jul 12, 2009 8:21 am
Forum: Whither newLISP?
Topic: Values and void
Replies: 8
Views: 2195

Of course. So could we have one--- pretty please?

--hsm
by hsmyers
Sat Jul 11, 2009 4:03 am
Forum: Whither newLISP?
Topic: Values and void
Replies: 8
Views: 2195

Values and void

In CL and scheme empty version of values and void are used to indicate nothing is returned.

Code: Select all

(define (f)
  (print 5)
  (newline)
  (void))
or

Code: Select all

(defun f ()
  (format #t "~d~%" 5)
  (values))
Is there a newLISP equivalent? If not could there be?

--hsm
by hsmyers
Fri Jul 10, 2009 10:18 pm
Forum: newLISP Graphics & Sound
Topic: Cut, Paste etc. in IDE
Replies: 0
Views: 2879

Cut, Paste etc. in IDE

Under Windows XP with the latest code, ^Z, ^V, ^X don't seem to set the 'this file has changed flag'.

--hsm
by hsmyers
Thu Jul 09, 2009 8:46 pm
Forum: newLISP newS
Topic: Simple macros
Replies: 2
Views: 1227

I like your rule of "macros should be used only if one cannot use functions". I think that this is where programmers coming from other languages and more C/C++ style 'macros' possibly get confused. They are thinking of text replacement where as lisp is more like language replacement.


--hsm
by hsmyers
Thu Jul 09, 2009 1:37 pm
Forum: newLISP newS
Topic: Simple macros
Replies: 2
Views: 1227

Simple macros

Are there advantages/dis-advantages to implementing simple one-liners as macros? For instance

Code: Select all

 (define (even? n)
   (zero? (% n 2)))
versus the macro definition.

--hsm[/code]
by hsmyers
Thu Jul 09, 2009 4:08 am
Forum: newLISP newS
Topic: Docs and PDF
Replies: 0
Views: 1172

Docs and PDF

I know you are working (or were) on PDF files for the new documentation. Could you include the doc on the GUI as well?

--hsm
by hsmyers
Sat Aug 30, 2008 7:29 am
Forum: newLISP newS
Topic: Introduction to newLISP updated for 9.4
Replies: 8
Views: 1915

Excellent! Can't have too much documentation about a computer language— more is always better. Cormullion, a job well done, thank you!

--hsm
by hsmyers
Fri Aug 29, 2008 3:39 am
Forum: newLISP and the O.S.
Topic: Write to file without changin Date modified
Replies: 11
Views: 4030

While I suppose you could go through the Win32 API, here is all you really need: INT 21 Function 5701h:SET FILE'S LAST-WRITTEN DATE AND TIME AX = 5701h BX = file handle CX = new time DX = new date Return: CF clear if successful CF set on error AX = error code (01h,06h) Bitfields for file time: Bit(s...
by hsmyers
Thu Aug 28, 2008 4:20 pm
Forum: newLISP and the O.S.
Topic: Write to file without changin Date modified
Replies: 11
Views: 4030

aron, Actually I'd do both--- first acquire a working 'touch'. The one you point to is a good one, as are the rest of their Unix tools; get them all, you will need them sooner or later. Second, see if newLISP can solve your problem by trying the other suggestions made here. It will teach you more ab...
by hsmyers
Tue Aug 26, 2008 8:01 pm
Forum: newLISP newS
Topic: Curious about using quote in set
Replies: 14
Views: 2669

HPW, If you are going to blame setq on someone, that would be David Betz author of the Lisp implementation that John Walker used to provide an embedded language. That said, I believe that setq is older than that--- I think(could certainly be wrong) that Soft Warehouse's muLisp had a setq which if so...
by hsmyers
Tue Aug 26, 2008 7:54 pm
Forum: newLISP and the O.S.
Topic: Write to file without changin Date modified
Replies: 11
Views: 4030

Windows doesn't come with 'touch'--- but it is widely available on the net. I've never thought about it since I've always had it in my toolkit as a developer. It is trivial to write. Seems to me that in the long ago days one came with the Borland dev kits. Not having it is sort of like not having gr...
by hsmyers
Tue Aug 26, 2008 5:14 pm
Forum: newLISP and the O.S.
Topic: Write to file without changin Date modified
Replies: 11
Views: 4030

I've no clue of how to do it in newLisp, but since the 'touch' utility does it all of the time, I don't think you would have to 'rewrite' the OS...

--hsm
by hsmyers
Sat Aug 16, 2008 3:30 pm
Forum: Anything else we might add?
Topic: Unbalanced parenthesis
Replies: 5
Views: 2858

One of the best plugins for FireFox is Firebug. I'd be interested to know if it would have found the missing character?

--hsm
by hsmyers
Tue Aug 12, 2008 2:11 am
Forum: newLISP newS
Topic: development release newLISP v.9.4.6
Replies: 1
Views: 921

Lutz,

Much thanks for the new option on the install...

--hsm
by hsmyers
Fri Aug 08, 2008 2:56 pm
Forum: newLISP newS
Topic: Tweaks to the install package...
Replies: 0
Views: 1048

Tweaks to the install package...

Each time I install a new version, the software offers to add newLISP to the path. Would it actually duplicate the original addition if I leave this checked? On a similar note, could creating a shortcut be and option and not forced?

--hsm
by hsmyers
Fri Jul 04, 2008 3:28 pm
Forum: newLISP newS
Topic: Release newLISP v 9.4.0
Replies: 16
Views: 4305

As long as I have multiple processor boxes and do not have the ability to benefit from them, I'm hardly likely to enjoy second class citizen ship. Regards date and time parsing, precisely what is the problem--- lack of an existing library? Given that there is very little if anything about time and d...
by hsmyers
Fri Jul 04, 2008 6:59 am
Forum: newLISP newS
Topic: Release newLISP v 9.4.0
Replies: 16
Views: 4305

Given the number of things not implemented for windows I think it is about time that you abandoned the platform.

--hsm
by hsmyers
Sat Jun 21, 2008 8:44 pm
Forum: newLISP Graphics & Sound
Topic: Pixel editing
Replies: 5
Views: 3029

Ah but to do it well, the thing to do would be to add libmpfr and libmpc to the gmp module. This would give us fast unlimited(memory limit) complex math.

--hsm
by hsmyers
Sat Jun 21, 2008 5:30 pm
Forum: newLISP Graphics & Sound
Topic: Pixel editing
Replies: 5
Views: 3029

The work around for ampersand escapes that I've found useful is to use the alternate &#; form.

Code: Select all

<like this>
--hsm
by hsmyers
Wed Jun 04, 2008 6:23 am
Forum: Anything else we might add?
Topic: newLISP's Story Is Fun!
Replies: 1
Views: 1518

Great blog post. Finally something said that doesn't say it at the expense of something else. I get so tired of juvenile posts about the 'one true language'! There is no such thing and it is nice to see something celebrate what were are all ultimately in the game for— fun, what most call 'programmin...
by hsmyers
Tue Jun 03, 2008 6:39 pm
Forum: Anything else we might add?
Topic: How did you find newLISP?
Replies: 35
Views: 16380

I got here from a URL on Hacker News. I've been quite happy ever since. And while I'm implementing my current project(porting my CPAN PGN: modules) in both newLisp and common lisp(clisp via slime and emacs) and will eventually get around to scheme, ruby and python, I've got to tell you that newLisp ...