Search found 171 matches
- Tue May 27, 2008 6:09 pm
- Forum: newLISP newS
- Topic: malloc error in append/mappend/k-permutations/Hansoncode
- Replies: 8
- Views: 4410
- 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...
- Mon Apr 14, 2008 5:52 pm
- Forum: newLISP Graphics & Sound
- Topic: OpenGL => GLFW context
- Replies: 7
- Views: 7084
- Tue Mar 04, 2008 5:49 pm
- Forum: Anything else we might add?
- Topic: Streams in newLISP
- Replies: 38
- Views: 22470
- 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...
- Mon Feb 18, 2008 6:16 pm
- Forum: newLISP and the O.S.
- Topic: 1 dime tip for today: Console2
- Replies: 6
- Views: 6963
- 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
might do the trick. I never actually tested it though.
Code: Select all
(eval-string (append "(quote " (read-file "file.lsp") ")"))
- Fri Feb 01, 2008 4:48 pm
- Forum: Anything else we might add?
- Topic: Name for a macro?
- Replies: 13
- Views: 7055
- Fri Jan 25, 2008 12:46 am
- Forum: newLISP newS
- Topic: development release newLISP 9.2.17
- Replies: 18
- Views: 7929
- 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...
- Thu Jan 24, 2008 4:01 pm
- Forum: newLISP and the O.S.
- Topic: COM in newLISP
- Replies: 25
- Views: 21766
- 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 ...
- 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...
- 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...
- 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...
- Thu Dec 06, 2007 2:42 am
- Forum: newLISP and the O.S.
- Topic: COM in newLISP
- Replies: 25
- Views: 21766
No problem Lutz.Lutz wrote:put a location header pointing to the original.
I made yet another update to fix another bug.
v0.12
http://www.autohotkey.net/~easycom/winscript.lsp
- 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
http://www.autohotkey.net/~easycom/winscript.lsp
- 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...
- 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-...
- 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...
- 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...
- Tue Nov 13, 2007 9:52 pm
- Forum: Anything else we might add?
- Topic: newLisp competition 2007
- Replies: 68
- Views: 44995
- 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...
- Tue Nov 13, 2007 8:30 pm
- Forum: newLISP and the O.S.
- Topic: COM in newLISP
- Replies: 25
- Views: 21766
- 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...