Search found 43 matches

by Astrobe
Fri Feb 28, 2014 7:07 pm
Forum: Whither newLISP?
Topic: fexpr issues
Replies: 18
Views: 15649

Re: fexpr issues

May be if you replace (println k) with (println “=====>” k), you can better follow the debug behavior Indeed I thought about this possibilty and did something like that. It seems I didn't put enough dashes in my println. fexprs are functions, so I would argue: the behavior is expected. args should ...
by Astrobe
Fri Feb 28, 2014 9:42 am
Forum: Whither newLISP?
Topic: fexpr issues
Replies: 18
Views: 15649

fexpr issues

Consider this dumbed-down version of do-until: (module "macro.lsp") (define-macro (DO-UNTIL test B) (do-while (not (eval test)) (eval B))) (macro (DO-UNTIL* T B) (do-while (not T) B)) (println "test 1") (define (foo k) (DO-UNTIL (<= k 0) (begin (println k) (dec k)))) (foo 3) (println "test 2") (defi...
by Astrobe
Wed Jan 29, 2014 11:28 am
Forum: newLISP in the real world
Topic: FFI - struct passed by value
Replies: 2
Views: 2262

Re: FFI - struct passed by value

Thanks. (set 'GA "gappw32.dll") (struct 'Rect "int" "int" "int" "int") (import GA "app_new_app" "void*" "int" "void*") (import GA "app_new_window" "void*" "void*" "Rect" "char*" "long") (import GA "app_main_loop" "void" "void*") (import GA "app_show_window" "void" "void*") (import GA "app_new_label"...
by Astrobe
Tue Jan 28, 2014 10:46 pm
Forum: newLISP in the real world
Topic: FFI - struct passed by value
Replies: 2
Views: 2262

FFI - struct passed by value

I'd like to use this nice little GUI library: http://enchantia.com/software/graphapp/ The widget set is not as full featured as other libraries but it's good enough for simple user interfaces. Plus it fits in a single 700K DLL and is portable. The problem is that it passes and returns one of its maj...
by Astrobe
Wed Jan 22, 2014 6:09 pm
Forum: Whither newLISP?
Topic: newLISP thread on Eric Raymond's blog
Replies: 5
Views: 7492

Re: newLISP thread on Eric Raymond's blog

This Jeff Read on the thread gives us a hard time. Unfortunately, it's not the right place for a discussion about newLisp. It seems to me he makes some valid points, but what he misses is that it's all about compromises. Yes, ORO and other features of newLisp bring some limitations, but also carry s...
by Astrobe
Thu Jan 02, 2014 11:35 am
Forum: newLISP in the real world
Topic: (sort) semantics: stable ordering of elements compared '=' ?
Replies: 3
Views: 2158

Re: (sort) semantics: ordering of elements compared '=' ?

This is a property named stability (https://en.wikipedia.org/wiki/Sorting_a ... #Stability), which depends on the sorting algorithm.
by Astrobe
Fri Dec 20, 2013 3:30 pm
Forum: newLISP Graphics & Sound
Topic: HTML Tag functions?
Replies: 10
Views: 11790

Re: HTML Tag functions?

I started to do something along these lines. The technique is similar to the one used by xytroxon, except the tags generate a tree of strings. Then a "render" procedure walks the tree and spit it out. I don't have the code because it's on my PC atm. For tag attributes, after various attempts, I came...
by Astrobe
Thu Dec 19, 2013 9:26 pm
Forum: newLISP in the real world
Topic: What benefits did you get from FOOP?
Replies: 9
Views: 4833

Re: What benefits did you get from FOOP?

The F in FOOP When you do: > (new Class 'Person) Person > (Person "JohnDoe") (Person "JohnDoe") > The statement (Person "JohnDoe") returns the same as an object. The object is the functional statement to create itself. The constructor functor Person is also the class id. I'm sorry but it makes litt...
by Astrobe
Thu Dec 19, 2013 7:54 am
Forum: newLISP in the real world
Topic: What benefits did you get from FOOP?
Replies: 9
Views: 4833

Re: What benefits did you get from FOOP?

What is DUMB about (openFile sourceFile)? It seems so natural to me. Simply that one "visually" repeats that one deals with a file. There are minor implications too: more typing, and on systems that manage a shared pool of strings "openFile" being unique, it takes its own space; whereas if it's jus...
by Astrobe
Wed Dec 18, 2013 10:14 pm
Forum: newLISP in the real world
Topic: What benefits did you get from FOOP?
Replies: 9
Views: 4833

Re: What benefits did you get from FOOP?

I think the real benefit of the features of what is called FOOP is the ability to overload functions. It always feel a little dumb to me to have to write e.g. (openFile sourceFile); FOOP features allow for writing (:open sourceFile) and (:open sourceWindow) and this is great. That said, I don't like...
by Astrobe
Wed Dec 18, 2013 4:23 pm
Forum: newLISP in the real world
Topic: if we can see line number in error message
Replies: 11
Views: 5844

Re: if we can see line number in error message

conan wrote: When you said that, do you mean it is possible to build a debugger which can point to the proper line of code ?
One can write an interpreter of newlisp in newlisp itself. It could load the file and keep track of the line numbers.
by Astrobe
Wed Dec 18, 2013 1:08 pm
Forum: newLISP in the real world
Topic: if we can see line number in error message
Replies: 11
Views: 5844

Re: if we can see line number in error message

I second the suggestion of adding line numbers to error messages. The debugger could also use some improvements. I am an embedded systems programmer, and I'm quite used to debug using only printf, but the lack of support from Newlisp in this area makes things more difficult than it should be. Since ...
by Astrobe
Tue Nov 12, 2013 2:06 pm
Forum: newLISP Graphics & Sound
Topic: 3D game on windows/linux | OpenGL hardware acceleration
Replies: 6
Views: 8552

Re: 3D game on windows/linux | OpenGL hardware acceleration

I think i must have it to develop a real 3D game, not just a proof of concept. You have to be aware that Newlisp is a scripting language. Like most of the scripting languages it is likely to be too slow to perform directly 3D, real time rendering. Rather, you should consider picking up an existing,...
by Astrobe
Tue Jan 15, 2013 11:23 pm
Forum: Whither newLISP?
Topic: How to get newLISP popular?
Replies: 11
Views: 13047

Re: How to get newLISP popular?

I think that trying to be more popular requires a strategy rather than 'stuff' * lower the barrier of entry helps with retaining people who "heard about that newLisp thing" and give it a try. This means better documentation, better tutorials, community management (consider you're ok with that when y...
by Astrobe
Tue Jan 15, 2013 10:19 pm
Forum: Whither newLISP?
Topic: registering C functions to Newlisp
Replies: 0
Views: 5091

registering C functions to Newlisp

I'd like to use Newlisp on system that runs uClinux, which does not support shared libraries. I also would like to use some C++ libraries. My first idea was to hack a bit Newlisp so that one could relatively easily add "foreign" functions to the list of primitives functions. But another difficulty i...
by Astrobe
Tue Jan 12, 2010 10:05 pm
Forum: newLISP newS
Topic: Created newLISP IRC Channel - irc.freenode.net
Replies: 5
Views: 5008

Re: Created newLISP IRC Channel - irc.freenode.net

One may easily connect to IRC from a browser. There's Firefox' Chatzilla extension for instance. There's also the Opera browser which has a built-in IRC client (among other interesting things).
by Astrobe
Mon Jan 11, 2010 10:21 pm
Forum: newLISP newS
Topic: newLISP Advocacy
Replies: 8
Views: 5531

Re: newLISP Advocacy

I recently came to newLisp thanks to this blogpost (via Reddit). Kazimir's blog (in particular its answer to the comments of some diehard Lisper) is indeed convincing (despite of the "I-killz-ur-Iz" theme :-) I'm an embedded systems C/C++ developer in my day job. In my hobby time, I implemented a Fo...