Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - anta40

#1
Dragonfly / Re: newlisp crashes
February 21, 2013, 08:45:22 PM
Hi Lutz,



Thanks for the hint.



I just tried to rebuild v10.4.6 (using gcc 4.7.2 from http://sourceforge.net/projects/mingwbuilds/">mingwbuilds). Got 2 errors.



The first one was:
Quote$ make -f makefile_mingw_utf8

gcc -Wall -pedantic -Wno-uninitialized -Wno-long-long -c -O1 -g -DSUPPORT_UTF8 -DWIN_32 newlisp.c

gcc -Wall -pedantic -Wno-uninitialized -Wno-long-long -c -O1 -g -DSUPPORT_UTF8 -DWIN_32 nl-symbol.c

gcc -Wall -pedantic -Wno-uninitialized -Wno-long-long -c -O1 -g -DSUPPORT_UTF8 -DWIN_32 nl-math.c

nl-math.c:64:5: warning: '_matherr' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]

gcc -Wall -pedantic -Wno-uninitialized -Wno-long-long -c -O1 -g -DSUPPORT_UTF8 -DWIN_32 nl-list.c

gcc -Wall -pedantic -Wno-uninitialized -Wno-long-long -c -O1 -g -DSUPPORT_UTF8 -DWIN_32 nl-liststr.c

gcc -Wall -pedantic -Wno-uninitialized -Wno-long-long -c -O1 -g -DSUPPORT_UTF8 -DWIN_32 nl-string.c

gcc -Wall -pedantic -Wno-uninitialized -Wno-long-long -c -O1 -g -DSUPPORT_UTF8 -DWIN_32 nl-filesys.c

gcc -Wall -pedantic -Wno-uninitialized -Wno-long-long -c -O1 -g -DSUPPORT_UTF8 -DWIN_32 nl-sock.c

gcc -Wall -pedantic -Wno-uninitialized -Wno-long-long -c -O1 -g -DSUPPORT_UTF8 -DWIN_32 nl-import.c

gcc -Wall -pedantic -Wno-uninitialized -Wno-long-long -c -O1 -g -DSUPPORT_UTF8 -DWIN_32 nl-xml.c

gcc -Wall -pedantic -Wno-uninitialized -Wno-long-long -c -O1 -g -DSUPPORT_UTF8 -DWIN_32 nl-web.c

nl-web.c:1430:7: error: conflicting types for 'MEDIA_TYPE'

In file included from c:mingwbin../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/winscard.h:11:

0,

                 from c:mingwbin../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/windows.h:97,

                 from c:mingwbin../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/winsock2.h:23,



                 from nl-web.c:25:

c:mingwbin../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/include/winioctl.h:493:3: note: previous dec

laration of 'MEDIA_TYPE' was here

make: *** [nl-web.o] Error 1


So I applied this fix in nl-web.c in line 1426
typedef struct
    {
    char * extension;
    char * type;
    } T_MEDIA_TYPE;
   
T_MEDIA_TYPE mediaType[] = {


And the second error was:
Quote$ make -f makefile_mingw_utf8

gcc -Wall -pedantic -Wno-uninitialized -Wno-long-long -c -O1 -g -DSUPPORT_UTF8 -DWIN_32 nl-math.c

nl-math.c:64:5: warning: '_matherr' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]

gcc  newlisp.o nl-symbol.o nl-math.o nl-list.o nl-liststr.o nl-string.o nl-filesys.o nl-sock.o nl-import.o nl-xml.o nl-w

eb.o nl-matrix.o nl-debug.o pcre.o nl-utf8.o win32-util.o win32-path.o -lws2_32 -o newlisp.exe

c:/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/lib/../lib/libmingw32.a(lib32_libmingw32_a-m

err.o):merr.c:(.text+0x60): multiple definition of `_matherr'

nl-math.o:c:UsersCSL-NB-064Desktopnewlisp-10.4.6/nl-math.c:64: first defined here

collect2.exe: error: ld returned 1 exit status


Edited nl-math.c line 63 like this:

//#ifdef WIN_32
//int _matherr(struct _exception *e) {return 1;}
//#endif


After those 2 fixes, newlisp would compile, but behaved erroneously like this:
Quote
$ newlisp

newLISP v.10.4.6 on Win32 IPv4/6 UTF-8, execute 'newlisp -h' for options.



> (+ 10 20 30)



ERR: missing parenthesis : "...(+ 10 20 30                          "

> (exit)



ERR: missing parenthesis : "...(exit                                "


Err... I give up. Better wait for your next release :D
#2
Dragonfly / newlisp crashes
February 21, 2013, 07:53:22 AM
I'm using:

- 32-bit Win 7

- newlisp v10.4.6

- http://www.apachelounge.com/download/win32/binaries/httpd-2.4.3-win32.zip">apache 2.4.3



And this is how I did the setup:

1. Put newlisp in C:newlisp

2. Put apache in C:apache24

3. Put the dragonfly framework in C:apache24htdocs.



I ran newlispServerWin.bat, and command prompt printed this:
QuoteIf all goes well visit http://localhost:8080">http://localhost:8080 in your browser


Opened http://localhost:8080">http://localhost:8080 on the browser, and newlisp crashed. Every time.



How to fix this?
#3
Anything else we might add? / Re: Wish list
January 17, 2010, 07:54:51 PM
Quote from: "Kazimir Majorinc"
(I'd repeat my old proposal for +., *. etc for floating point +, * etc.)


like ocaml, right?
#4
Anything else we might add? /
July 04, 2009, 08:52:26 PM
QuoteThis simple, radical restriction means that you are prohibited from taking a GPL project and incorporating it with a closed-source project.


Even if the closed-source project is a private/internal project, which is not intended to be used publicly?



Well, I might be wrong...
#5
Anything else we might add? /
April 17, 2009, 08:05:46 AM
Cool.



BTW, you just reminded me to another "Uroboros": a leech-like creature from http://en.wikipedia.org/wiki/Resident_Evil_5">Resident Evil 5



http://planetmedia.gamespy.com/images/00/20/2036_RE5_GameTrailers_Boss_Footage_normal.jpg">



He he...
#6
Quote from: "xytroxon"Nice work!!!

25MB??? LOL!!!


I just recently made a simple "Hello world" app in SBCL 1.0.25.

Yeah, the executable is about 25 MB, probably because the Lisp system itself is included.



Using strip, the size reduced to 92 KB, but of course don't work properly anymore.
#7
newLISP newS /
November 19, 2008, 01:17:11 AM
Kazimir, what editor you're using ?

The layout is ... interesting.
#8
Anything else we might add? /
October 27, 2008, 07:56:46 AM
Quote from: "Kazimir Majorinc"
So, what is the problem you want to solve?


Well, general problems (AI problems are also OK, but not constrained to these one).
#9
I hope I don't start flame war here ^^



I'm a CL newbie, and I discovered newLISp in a short time after I started learning CL.



My interest in CL is well ..., somewhere between academic & hobby.

I must admit I'm interested in CL due to Paul Graham's essays, and I already learned a bit Haskell in the university, so I think's it's reasonable to learn Lisp.



From what I can see now, Lisp is a very interesting language (praised by some of the famous people in computing world like Peter Norvig, Eric Raymond, or Alan Kay), mature (about 50 years of development history), available in many open source/commercial implementations, supported by lots of 3rd party libraries, etc.



And when I meet newLIsp. I can see newLisp as a 'practical Lisp'. Small, yet includes useful libraries like socket, regex, or GUI (not like CL, in which sometimes you still to find your own).



So, is there any benefit in learning CL, besides the reasons stated above ?
#10
newLISP newS / newLISP built-in documentation ?
April 23, 2008, 11:27:17 PM
Does newLISP has a built-in documentation ?



I mean, a documentation built within the interpreter.

So when you are running newLISP, you can do something like this :



> help reverse
"In the first form, reverse reverses and returns the list. Note that reverse is destructive and changes the original list."

> help unique
"Returns a unique version of list with all duplicates removed."


Yes I know, there's a good documentation http://www.newlisp.org/downloads/manual_frame.html">there, but it's pretty convenient not to open too much window :)
#11
Anything else we might add? / newLISP & Haskell
January 31, 2008, 01:50:26 AM
I found this interesting language (newLISP) after some googling on LISP.

Well, Haskell is my first functional language and I like it a lot.



I believe each language has its own strength & weakness.

My question is, what's suited best to do in Haskell, and in newLISP ?