Search found 171 matches

by m35
Tue May 27, 2008 6:09 pm
Forum: newLISP newS
Topic: malloc error in append/mappend/k-permutations/Hansoncode
Replies: 8
Views: 4410

wow...
by m35
Fri Apr 18, 2008 5:20 pm
Forum: newLISP newS
Topic: Firefox downloads index.php
Replies: 3
Views: 2245

Firefox downloads index.php

Running Firefox 2.0.0.14 on WinXP SP2. Going to the main phpBB page (http://www.alh.net/newlisp/phpbb/index.php) Firefox downloads the index.php file instead of seeing the generated html. I tried this in Firefox 'Safe Mode' with the same result. Internet Explorer 6 displays the board properly, as do...
by m35
Mon Apr 14, 2008 5:52 pm
Forum: newLISP Graphics & Sound
Topic: OpenGL => GLFW context
Replies: 7
Views: 7084

Thanks for putting this together. I've recently been working with OpenGL, so this is interesting to see.

Have you tested the multi-threading abilities of the library with newlisp? I can't imagine how that would even work.
by m35
Tue Mar 04, 2008 5:49 pm
Forum: Anything else we might add?
Topic: Streams in newLISP
Replies: 38
Views: 22470

Thank you for sharing this Elica
by m35
Wed Feb 27, 2008 5:43 pm
Forum: Anything else we might add?
Topic: Another newLISP-like language :)
Replies: 49
Views: 34158

Here are two ways to implement memoization in newLISP. The first without contexts: (define (mysqrt x ()) (or (lookup x (nth (mysqrt 0 1))) (last (push (list x (sqrt x)) mysqrt '(0 1 0))))) > (mysqrt 10) 3.16227766 > (mysqrt 10) 3.16227766 > (mysqrt 20) 4.472135955 > (mysqrt 30) 5.477225575 > mysqrt...
by m35
Mon Feb 18, 2008 6:16 pm
Forum: newLISP and the O.S.
Topic: 1 dime tip for today: Console2
Replies: 6
Views: 6963

Neat, even can be semi-transparent :D
Do you know if it can do unicode? I've never seen any console programs for windows before, let alone any that can use unicode in the command line.
by m35
Thu Feb 07, 2008 5:57 pm
Forum: Anything else we might add?
Topic: To read an expression from a file or string?
Replies: 10
Views: 5592

I wanted to do the same thing for the 'newLINT' idea--load a .lsp file as a list instead of executing it. Long after I gave up on making it, it occurred to me that perhaps doing

Code: Select all

(eval-string (append "(quote " (read-file "file.lsp") ")"))
might do the trick. I never actually tested it though.
by m35
Fri Feb 01, 2008 4:48 pm
Forum: Anything else we might add?
Topic: Name for a macro?
Replies: 13
Views: 7055

Abstracting streams is probably my favorite use of OOP. I suppose the lispy way of doing it is to pass a function that performs the write?

I haven't used FOOP at all yet. I wonder how it would look using that.
by m35
Fri Jan 25, 2008 12:46 am
Forum: newLISP newS
Topic: development release newLISP 9.2.17
Replies: 18
Views: 7929

Always amazing work Lutz :)

I just noticed in the newLISP manual (v9.2.0) that the description for read-line never mentions that it will ever return nil (although the example suggests that it will).
by m35
Thu Jan 24, 2008 6:53 pm
Forum: newLISP and the O.S.
Topic: All the console goodies you ever wanted
Replies: 11
Views: 13883

Welcome xytroxon. I find it interesting that this module creates functions in the MAIN context. All other modules I've seen keep everything in its own context. In any case, if I change ;; Move cursor. (def-new 'CONSOLE:at-xy) to ;; Move cursor. (define at-xy CONSOLE:at-xy) the test will run. I can't...
by m35
Thu Jan 24, 2008 4:01 pm
Forum: newLISP and the O.S.
Topic: COM in newLISP
Replies: 25
Views: 21766

winscript v0.21

-Added some missing cleanup if failure during initialization.

winscript.lsp
by m35
Fri Jan 11, 2008 9:40 pm
Forum: newLISP and the O.S.
Topic: COM in newLISP
Replies: 25
Views: 21766

winscript v0.20 Memory leaks fixed, and errors better handled. No change to the interface, except added (WINSCRIPT:LastResult) function to get verbose details on errors and internal win32api function results. winscript.lsp I can't say I'm super happy with how the new code design turned out, but it ...
by m35
Fri Jan 11, 2008 6:19 pm
Forum: newLISP and the O.S.
Topic: process on windows
Replies: 5
Views: 5080

Like Lutz said, it seems that if you start a command-line program from a command-line program, it uses the same console window. e.g. cmd starting cmd C:\>cmd.exe Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\> e.g. newlisp starting newlisp > (process "newlisp.exe...
by m35
Fri Jan 11, 2008 3:12 am
Forum: newLISP and the O.S.
Topic: process on windows
Replies: 5
Views: 5080

#!newlisp (setq _P_WAIT 0) (setq _P_NOWAIT 1) (setq _P_OVERLAY 2) (import "crtdll.dll" "_spawnvp") ;(setq cmd "cmd.exe") ; starts cmd.exe ;(setq cmd "c:/WINDOWS/system32/notepad.exe") ; starts notepad ;(setq cmd "c:\\windows\\system32\\cmd.exe") ; starts cmd.exe (setq cmd "c:/windows/system32/cmd.e...
by m35
Thu Dec 20, 2007 6:16 pm
Forum: newLISP and the O.S.
Topic: COM in newLISP
Replies: 25
Views: 21766

In case anyone is actually using the winscript module, a quick warning about the current version (v0.12): Looking again at winscript.lsp, I see there are a number of memory leaks. These occur in places where a (throw) skips the code to finish the memory handling. The script needs to be corrected wit...
by m35
Thu Dec 06, 2007 2:42 am
Forum: newLISP and the O.S.
Topic: COM in newLISP
Replies: 25
Views: 21766

Lutz wrote:put a location header pointing to the original.
No problem Lutz.

I made yet another update to fix another bug.

v0.12
http://www.autohotkey.net/~easycom/winscript.lsp
by m35
Tue Dec 04, 2007 5:47 am
Forum: newLISP and the O.S.
Topic: COM in newLISP
Replies: 25
Views: 21766

New version fixes memory leak and has the better get-short and get-single functions.

http://www.autohotkey.net/~easycom/winscript.lsp
by m35
Tue Dec 04, 2007 2:50 am
Forum: newLISP and the O.S.
Topic: COM in newLISP
Replies: 25
Views: 21766

Sorry, I guess I should have explained what I was trying to do. For get-short , I'm trying to duplicate the behavior of get-int, but I just want 16-bits instead of 32-bits. For get-single , I'm trying to duplicate the behavior of get-float, but I want a 32-bit floating point number instead of a 64-b...
by m35
Mon Dec 03, 2007 10:42 pm
Forum: newLISP and the O.S.
Topic: COM in newLISP
Replies: 25
Views: 21766

Thanks newdep. I found a memory leak, so I'll upload a new version later. But I wanted to ask if anyone can think of a better way to do these get-short and get-single (i.e. float) functions. These seem sloppy, but nothing is coming to me. (define (get-short int-address , s) (setq s " ") (cpymem int-...
by m35
Sun Dec 02, 2007 7:40 pm
Forum: newLISP and the O.S.
Topic: COM in newLISP
Replies: 25
Views: 21766

While codernwo gets to mull over my crazy code, I made a quick port of the ws4ahk script to newLISP. It's not as complete, and may even be a little incorrect, but my brief tests seemed to work. Just throwing this out here in case anyone is interested. http://www.autohotkey.net/~easycom/winscript.lsp...
by m35
Fri Nov 30, 2007 6:07 pm
Forum: Anything else we might add?
Topic: How did you find newLISP?
Replies: 35
Views: 25628

Now I'm using aUCBLogo , Elica Logo , FBSL (Freestyle Basic Script Language) and NewLISP . Thanks newBert! I like checking out these lesser-known languages. And WOW, Nothing has been clearer than the 5 minutes I spent reading this elica paper . This might finally get me into Logo like newLISP got m...
by m35
Tue Nov 13, 2007 9:52 pm
Forum: Anything else we might add?
Topic: newLisp competition 2007
Replies: 68
Views: 44995

rickyboy wrote:I actually can't bring myself to steal anything, unless I put the outfit on. :-)
rofl that's the funniest thing I've seen all week XD
by m35
Tue Nov 13, 2007 9:46 pm
Forum: newLISP and the O.S.
Topic: COM in newLISP
Replies: 25
Views: 21766

Excuse my ignorance but does that mean that the interface to the Microsoft Scripting Control can be written in Newlisp script by interfacing with the dll or does it mean some sort of external interface in c or something. Sorry, I misunderstood what you were asking. COM can be directly accessed by a...
by m35
Tue Nov 13, 2007 8:30 pm
Forum: newLISP and the O.S.
Topic: COM in newLISP
Replies: 25
Views: 21766

SHX

newLISP does not currently have access to the Microsoft Scripting Control. However, by creating a newLISP interface to it (such as "ws4ahk" does for Autohotkey), then yes, you can execute VBScript or JScript code directly in your newLISP code. Thus you can gain easy access to COM.
by m35
Mon Nov 12, 2007 6:36 pm
Forum: newLISP and the O.S.
Topic: COM in newLISP
Replies: 25
Views: 21766

You may be interested in the COM work over at the Autohotkey scripting language: http://www.autohotkey.com/forum/topic22923.html http://www.autohotkey.com/forum/topic21674.html I spent a month or so working on COM inclusion in newLISP, but eventually dropped it for the better " Easycom.dll " program...