Search found 733 matches

by pjot
Tue Jan 06, 2009 8:39 am
Forum: newLISP and the O.S.
Topic: GTK2 has been ported to MacOS X
Replies: 9
Views: 7571

Yes 8 arguments is absolutely necessary, look for example at the "drag-data-received" signal in GTK: http://library.gnome.org/devel/gtk/stable/GtkWidget.html#GtkWidget-drag-data-received The user function (=callback function) receives 8 arguments here. Numbering the callbacks allows for less code, f...
by pjot
Mon Jan 05, 2009 10:51 pm
Forum: newLISP and the O.S.
Topic: GTK2 has been ported to MacOS X
Replies: 9
Views: 7571

(I don't know why am spamming so much tonight, but this will be my last post ;-) ) Anyway, I have studied your 'nl-import.c' a little and it is clear to me how the callback stuff was implemented. So now for some remarks, skipping the 'with-all-due-respect' stuff. ;-) In my humble view the housekeepi...
by pjot
Mon Jan 05, 2009 8:25 pm
Forum: newLISP and the O.S.
Topic: GTK2 has been ported to MacOS X
Replies: 9
Views: 7571

Besides, newLisp does not need GTK-server anyway. #!/usr/bin/newlisp # # DirectGTK using (callback). # # PvE, january 2009. No need for GTK-server. # #---------------------------------------------------------------------------------------------- # Define libraries for each platform (case ostype ("Wi...
by pjot
Mon Jan 05, 2009 5:32 pm
Forum: newLISP Graphics & Sound
Topic: 64 bit compilation succeeds... OpenGL does not work anymore!
Replies: 2
Views: 3789

It turns out to be a problem with the (flt) function in 64bit mode. I made a library (32 and 64 bit) and ran it with 32bit and 64bit versions of newLisp. This was the code: #include <stdio> void show(float f, double d) { fprintf(stdout, "Float: %f\nDouble: %f\n", f, d); } 32bit compilation $ gcc -sh...
by pjot
Mon Jan 05, 2009 4:03 pm
Forum: newLISP Graphics & Sound
Topic: 64 bit compilation succeeds... OpenGL does not work anymore!
Replies: 2
Views: 3789

I have a MUI program running OK with my FreeGLUT port. Other programs do not show anything either. The MUI program however only passes INTEGER values as arguments to imported GL functions, and no doubles or floats. Maybe there is an issue with passing doubles and floats in 64bit compilation? Regards
by pjot
Mon Jan 05, 2009 3:57 pm
Forum: newLISP in the real world
Topic: How to map newLisp datatypes in C
Replies: 6
Views: 2574

Any results?

Are you using 64bit or 32bit of newLisp?
by pjot
Mon Jan 05, 2009 3:53 pm
Forum: newLISP Graphics & Sound
Topic: 64 bit compilation succeeds... OpenGL does not work anymore!
Replies: 2
Views: 3789

64 bit compilation succeeds... OpenGL does not work anymore!

The 64bit compilation works fine: peter@AsteroidRider:~/installation/newlisp-10.0.0$ make -f makefile_linux64LP64 gcc -Wall -pedantic -Wno-uninitialized -Wno-strict-aliasing -Wno-long-long -c -O2 -g -DLINUX -DNEWLISP64 -DREADLINE newlisp.c gcc -Wall -pedantic -Wno-uninitialized -Wno-strict-aliasing ...
by pjot
Mon Jan 05, 2009 3:27 pm
Forum: newLISP and the O.S.
Topic: newLisp multi thread in Windows
Replies: 8
Views: 5735

You can also try to use my 'winfork' from here: http://www.turtle.dds.nl/newlisp/winfork.lsp (context 'winfork) # Capture newLisp internal symbols (constant 'winfork_SYMBOLS (symbols 'MAIN)) # Setup environment for FORK (define (winfork:winfork winfork_ARG) # Let the total result start with 'silent'...
by pjot
Sun Jan 04, 2009 3:37 pm
Forum: newLISP in the real world
Topic: How to map newLisp datatypes in C
Replies: 6
Views: 2574

Good!

BTW, don't get confused with the newLisp (float) statement, in fact this will convert a string or a number to float syntax, but in reality it is a double of 8 bytes.

The (flt) statement however converts a number to a C float which comprises 4 bytes.

Regards
by pjot
Sun Jan 04, 2009 3:16 pm
Forum: newLISP in the real world
Topic: How to map newLisp datatypes in C
Replies: 6
Views: 2574

Hi,

newLisp makes a distinction between DOUBLE and FLOAT.

By default newLisp uses DOUBLE internally.

If you need FLOAT in newLisp make sure to cast your value using the (flt) statement.

Hope this helps....
Peter
by pjot
Sun Dec 28, 2008 12:18 am
Forum: newLISP and the O.S.
Topic: 'link.lsp' does not work on MacOSX?
Replies: 4
Views: 3816

That did the trick, thanks!

Peter
by pjot
Sat Dec 27, 2008 9:00 pm
Forum: newLISP and the O.S.
Topic: 'link.lsp' does not work on MacOSX?
Replies: 4
Views: 3816

'link.lsp' does not work on MacOSX?

Hi Lutz, It seems the link.lsp does not work? [peter:apps]$ cat test.lsp (println "Hello world") (exit) [peter:apps]$ [peter:apps]$ newlisp test.lsp Hello world [peter:apps]$ newlisp /usr/share/newlisp/util/link.lsp newLISP v.10.0.0 on OSX IPv4, execute 'newlisp -h' for more info. > (link "/usr/bin/...
by pjot
Thu Dec 25, 2008 11:52 pm
Forum: newLISP newS
Topic: release newLISP version 10.0
Replies: 26
Views: 13915

After some days of testing and trying really hard to find a bug, I couldn't find anything.... One moment I thought there was something with the UTF-8 stuff but it appeared to be a bug on my side :-)

So congrats! I will convert my old stuff to newLisp10 :-)

Peter
by pjot
Thu Dec 25, 2008 11:48 pm
Forum: newLISP and the O.S.
Topic: GTK2 has been ported to MacOS X
Replies: 9
Views: 7571

There also was a rumor some time ago, that Apple would include the GTK framework in the normal factory install of OSX That would be nice indeed! The installbase of GTK is quite small compared to Java or wxWidgets which is an advantage. The major work for GTK-server and MacOSX has been done, MacOSX ...
by pjot
Wed Dec 24, 2008 5:03 pm
Forum: newLISP and the O.S.
Topic: GTK2 has been ported to MacOS X
Replies: 9
Views: 7571

Well, you are right. Currently I am porting the GTK-server to MacOSX. Most of the stuff is running already as you can see from the screenshot below :-) http://www.turtle.dds.nl/newlisp/forum/GTK_on_OSX.jpg The schreenshot shows two genuine newLisp programs! I hope to release a DMG package soon! Cheers
by pjot
Fri Dec 19, 2008 9:35 pm
Forum: Anything else we might add?
Topic: newLisp competition 2007
Replies: 68
Views: 47097

The comicbook reader was updated to newLisp 10 :-)

Grab it from here:

http://www.turtle.dds.nl/newlisp/index.html#comic

Greetings,
Peter
by pjot
Wed Oct 15, 2008 6:15 pm
Forum: newLISP and the O.S.
Topic: GTK2 has been ported to MacOS X
Replies: 9
Views: 7571

GTK2 has been ported to MacOS X

All, Now also the Mac is able to run GTK applications. The GTK port does not require an additional X-server, but completely depends on Quartz. Website: http://gtk-osx.sourceforge.net/ Further notes can be found here: http://developer.imendio.com/projects/gtk-macosx It opens the possibility for newLi...
by pjot
Wed Sep 03, 2008 7:25 pm
Forum: newLISP and the O.S.
Topic: environment variables
Replies: 5
Views: 4563

Which version of newLisp are you using? Because in my Linux environment: peter[~]$ echo $USER peter peter[~]$ echo $HOSTNAME solarstriker.thuis.nl peter[~]$ newlisp newLISP v.9.4.5 on Linux IPv4, execute 'newlisp -h' for more info. > (env "USER") "peter" > (env "HOSTNAME") "solarstriker.thuis.nl" > ...
by pjot
Mon Jul 07, 2008 12:58 pm
Forum: newLISP newS
Topic: update release newLISP 9.4.1
Replies: 5
Views: 2890

how did you come up with the -1 in 'cons'? 'cons' does not have a third parameter. It should ignore the third parameter. Perhaps you mean 'push'. No, I have copied that line from your own 'qa-dot' testfile, line 540. The 'make -f makefile_linux64LP64' now works, except for this: peter@AsteroidRider...
by pjot
Mon Jul 07, 2008 12:18 pm
Forum: newLISP newS
Topic: update release newLISP 9.4.1
Replies: 5
Views: 2890

OK I couldn't wait. These are the results for (cons): Tru64Unix newLISP v.9.4.1 64-bit on Tru64Unix IPv4, execute 'newlisp -h' for more info. > (= (cons 'c '(a b) -1) '(a b c)) true > (cons 'c '(a b) -1) (a b c) Linux 64 bit newLISP v.9.4.1 on Linux IPv4, execute 'newlisp -h' for more info. > (= (co...
by pjot
Mon Jul 07, 2008 11:29 am
Forum: newLISP newS
Topic: update release newLISP 9.4.1
Replies: 5
Views: 2890

Compiles without any errors on Tru64 Unix. Only one test in 'qa-dot' fails: olga> ./qa-dot Testing built-in functions ... Testing contexts as objects and scoping rules ... total time: 6464 >>>>> TESTING: newlisp FINISHED WITH ERRORS: >>>> share failed ERR: not enough memory in function share called ...
by pjot
Thu Jun 19, 2008 8:27 pm
Forum: newLISP and the O.S.
Topic: enabling readline support
Replies: 7
Views: 5751

Well, for you it's easier compiling newLisp anyway.... no fuzz with editing Makefiles. In the future just run 'make' to compile newLisp, and let 'rlwrap' do all the work. It will create a '.newlisp_history' in your homedir with the complete history of commands entered in all your interactive newLisp...
by pjot
Thu Jun 19, 2008 5:54 pm
Forum: newLISP and the O.S.
Topic: enabling readline support
Replies: 7
Views: 5751

Or you can get 'rlwrap' from here: http://utopia.knoware.nl/~hlub/uck/software/ Start your newlisp prompt as follows: rlwrap newlisp In your KSH/CSH/BASH profile add an alias which aliases newlisp always: alias newlisp='rlwrap newlisp' The nice thing about this wrapper is, that it also points to ope...
by pjot
Sat Jun 14, 2008 1:15 pm
Forum: Anything else we might add?
Topic: Timeout in (get-url)
Replies: 2
Views: 2434

Never mind, the waiting is for the DNS server to translate the IP address to a domain...
by pjot
Sat Jun 14, 2008 1:04 pm
Forum: Anything else we might add?
Topic: Timeout in (get-url)
Replies: 2
Views: 2434

Timeout in (get-url)

Hi, According to the manual: (get-url "http://www.nuevatec.com" 3000) The optional argument int-timeout can specify a value in milliseconds. If no data is available from the host after the specified timeout, get-url returns the string ERR: timeout. When other error conditions occur, get-url returns ...