thanks a lotLutz wrote:Here is an example how wrap a library for the PPC CPU on older Mac OS X systems, where the normal newLISP FFI does not work because of non cdecl calling conventions:
http://www.newlisp.org/code/wrapper.c
Search found 16 matches
- Mon May 11, 2009 1:13 pm
- Forum: newLISP Graphics & Sound
- Topic: OpegnGL on OSX PPC
- Replies: 8
- Views: 9704
- Sun May 10, 2009 2:56 pm
- Forum: newLISP Graphics & Sound
- Topic: OpegnGL on OSX PPC
- Replies: 8
- Views: 9704
ok, i must admit that i don't have understood the 100% of the replies; i have little knowledge in C and newlisp, two thing that i'm start using because i want to learn more about programming (right now i'm a java programmer) So, from the start, what a bridge would look like? In my mind it would simp...
- Wed May 06, 2009 1:09 pm
- Forum: newLISP Graphics & Sound
- Topic: OpegnGL on OSX PPC
- Replies: 8
- Views: 9704
- Tue May 05, 2009 9:53 pm
- Forum: newLISP Graphics & Sound
- Topic: OpegnGL on OSX PPC
- Replies: 8
- Views: 9704
OpegnGL on OSX PPC
Reading the comment on the opengl demo (http://www.newlisp.org/syntax.cgi?downloads/OpenGL/opengl-demo-lsp.txt) i've read that on ppc i'm not able to see the drawing, and that's true, but could someone explain me why? It's because float and double are passed correctly only on x86 as i read here? htt...
- Mon May 04, 2009 8:56 pm
- Forum: newLISP Graphics & Sound
- Topic: OpenGL => GLFW context
- Replies: 7
- Views: 10301
Lutz, with 'callback all works great !! here is example code using OpenGL and GLUT for registering callbacks: http://www.newlisp.org/syntax.cgi?downloads/OpenGL/opengl-demo-lsp.txt it works well on Mac OS X (Intel processor required) with nothing additional to be installed and works with the GLUT Fr...
- Sun May 03, 2009 9:16 pm
- Forum: newLISP Graphics & Sound
- Topic: OpenGL => GLFW context
- Replies: 7
- Views: 10301
hi newdep, can you have some example code using glfw? I'm using newlisp + glfw 2.6 + osx, i've made a little test to see the how "key listener callback" could work, but when i type sometingh the application crash... so i don't understand if i made some mistake ... here is the code: (load "glfw.lsp" ...
- Mon Feb 11, 2008 10:04 am
- Forum: Anything else we might add?
- Topic: about Vim syntax file
- Replies: 3
- Views: 4695
- Sun Feb 10, 2008 12:50 pm
- Forum: Anything else we might add?
- Topic: about Vim syntax file
- Replies: 3
- Views: 4695
about Vim syntax file
wondering if is possible to have the function name with a different color;
today the function name and its arguments are all in the same color,
if is possible (asking because i don't know vim syntax well)
would be nice to have "visual" separation between the two ...
today the function name and its arguments are all in the same color,
if is possible (asking because i don't know vim syntax well)
would be nice to have "visual" separation between the two ...
- Mon Dec 03, 2007 8:33 am
- Forum: newLISP Graphics & Sound
- Topic: [Tool] Nlist - remote content/code-browsing -
- Replies: 48
- Views: 46336
WinXP and newLISP 9.2.0 here
it return an error:
on my default installation (env "NEWLISPDIR") return nil
it return an error:
Code: Select all
array, list or string expected : (env "NEWLISPDIR")
- Sat Dec 01, 2007 5:30 pm
- Forum: newLISP newS
- Topic: question about apply
- Replies: 3
- Views: 3294
- Sat Dec 01, 2007 4:35 pm
- Forum: newLISP newS
- Topic: question about apply
- Replies: 3
- Views: 3294
question about apply
How can i "call" a function and get back the result? Here an examples to explain: (set 'my-func 'integer?) (apply my-func 1) => nil How can i "apply" my-func and get back the return value? (true in this case) I've found that this works (set 'my-func 'integer?) (apply my-func (list 1)) =>true but is ...
- Tue Nov 20, 2007 11:05 pm
- Forum: newLISP newS
- Topic: Question about process
- Replies: 3
- Views: 3270
thanks cormullion, you're right. I need also to change this line in my script (while (read-line myin) (write-line)) with this (println (read-line myin)) because with the "while" launching the script ends with the same "new line waiting input" Is "bc" that doesn't end the "communication" with a line-...
- Tue Nov 20, 2007 9:19 pm
- Forum: newLISP newS
- Topic: Question about process
- Replies: 3
- Views: 3270
Question about process
I'm trying to run the example found in the documentation about process (map set '(myin bcout) (pipe)) (map set '(bcin myout) (pipe)) (process "bc" bcin bcout) (write-buffer myout "3 + 4\n") ; bc expects a linefeed (while (read-line myin) (write-line)) (exit) I've added a write-line and an exit call....
- Mon Nov 12, 2007 5:54 pm
- Forum: newLISP newS
- Topic: About math operators
- Replies: 5
- Views: 4447
@Lutz it would give you back an integer but everything coming out of floating point has only about 15 digits of precision, while with int yuu get to about 18 digit. Casting to an int doesn't give you back precision and will cut off all decimals. thanks Lutz, didn't know about the difference in the d...
- Mon Nov 12, 2007 2:06 pm
- Forum: newLISP newS
- Topic: About math operators
- Replies: 5
- Views: 4447
- Mon Nov 12, 2007 1:11 pm
- Forum: newLISP newS
- Topic: About math operators
- Replies: 5
- Views: 4447
About math operators
Hi all,
i'm movig my first step with newLISP and Lisp in general,
I'm just curious about the +,-,*,/, ecc...
why they return only integer number?
i'm movig my first step with newLISP and Lisp in general,
I'm just curious about the +,-,*,/, ecc...
why they return only integer number?