Search found 297 matches

by ale870
Sun Jul 17, 2011 9:59 pm
Forum: newLISP in the real world
Topic: How to create a sandbox for newLisp?
Replies: 8
Views: 3335

Re: How to create a sandbox for newLisp?

systrace could be fine, but it is not cross-platform, and I miss one of the most important OS: Windows (I don't like it, but is "famous" and the most used).

I think the best idea is still remapping native newLisp functions, disabling even cpymem and similar.
For me, cross platform, is a key-feature.
by ale870
Sun Jul 17, 2011 1:38 pm
Forum: newLISP in the real world
Topic: How to create a sandbox for newLisp?
Replies: 8
Views: 3335

Re: How to create a sandbox for newLisp?

Very nice, thank you!
One question: can someone (using a trick) "restore" a function inside a "safe" session?

For example, in a newLisp session I set this:
(constant 'write-line "Error")

Well, can someone, in that session, restore the original write-line behavior?
Is yes, how?

Thank you!
by ale870
Sat Jul 16, 2011 10:25 pm
Forum: newLISP in the real world
Topic: How to create a sandbox for newLisp?
Replies: 8
Views: 3335

Re: How to create a sandbox for newLisp?

Yes, I understood that it is a mess!
Thank you, I'm reading about FUSE.

I didn't understand the topic related to cormullion.

THank you again!
by ale870
Fri Jul 15, 2011 3:42 pm
Forum: newLISP in the real world
Topic: How to create a sandbox for newLisp?
Replies: 8
Views: 3335

How to create a sandbox for newLisp?

Hello, is there any way to eliminate (or disable) some I/O functions from newLisp? I wish to embed newLisp scripts inside some files downloaded from internet: imagine when you download an HTML page from internet, which contains Javascript. Well i want to create some specific pages containing newLisp...
by ale870
Mon Jul 11, 2011 10:36 pm
Forum: newLISP in the real world
Topic: 2D game engine with newLisp
Replies: 29
Views: 12624

Re: 2D game engine with newLisp

Hello, I made several steps forward in 2D Game engine side. Now newLisp directly maps engine functions (no ICP communication or socket communication, but direct call, like a DLL). Now I'm working to fix some issues, and I'm creating some conventions and fix function names structure. I will open a de...
by ale870
Sat Jul 02, 2011 1:49 pm
Forum: newLISP in the real world
Topic: 2D game engine with newLisp
Replies: 29
Views: 12624

Re: 2D game engine with newLisp

I'm using 3 technologies:

1) newLisp for scripting :-)
2) BLitzmax for application engine (manage GUI, 2D and more) http://www.blitzbasic.com
3) LiveCode (ex Runtime Revolution) to create the IDE http://www.runrev.com/
by ale870
Sat Jul 02, 2011 8:50 am
Forum: newLISP in the real world
Topic: 2D game engine with newLisp
Replies: 29
Views: 12624

Re: 2D game engine with newLisp

Thank you for the link, I will read it immediately :-) Some questions: On which OS ? Cross platform: Linux, Mac & Win Do you use other development systems for the GUI or native system calls? This new environment will contain functions to build a GUI (so unrelated to 2D game engine self). IN that way...
by ale870
Fri Jul 01, 2011 9:55 pm
Forum: newLISP in the real world
Topic: 2D game engine with newLisp
Replies: 29
Views: 12624

2D game engine with newLisp

Hello, after several months of absence, I restarted to work with newLisp. In this time I made a lot of experience making 2D and 3D games. Now I wanted to make "a big step": I'm working to create a program to make GUI and 2D games using newLisp as scripting language. I'm working also to create an IDE...
by ale870
Tue Apr 12, 2011 7:41 am
Forum: newLISP in the real world
Topic: newLisp,database,Linux,Oracle
Replies: 4
Views: 2145

Re: newLisp,database,Linux,Oracle

Thank you. Even if I don't like ODBC, I can even stay on that, even on Linux, just to simplify porting. Anyone knows if LINUX->newLisp->ODBC (for linux) work well with native newLisp code? (I need to spend time to install odb c on linux, and I wish to know newlisp works well there or if there are is...
by ale870
Fri Apr 08, 2011 1:31 pm
Forum: newLISP in the real world
Topic: newLisp,database,Linux,Oracle
Replies: 4
Views: 2145

Re: newLisp,database,Linux,Oracle

No help :'( ?
You mean I will be obliged to "live" inside Win?
Nooo!!!!!!!! I want to die!!! :-) :-) :-)
by ale870
Thu Apr 07, 2011 12:52 pm
Forum: newLISP in the real world
Topic: newLisp,database,Linux,Oracle
Replies: 4
Views: 2145

newLisp,database,Linux,Oracle

Hello, I wish to use newLisp in Linux, to access to Oracle database on a remote machine. Currently I do this in Windows, using ODBC. Can you give me hints, guidelines, or an example how to do that in Linux (I use Ubuntu server 10). I wish to migrate newLisp Apache CGI programs in Linux environment. ...
by ale870
Thu Apr 07, 2011 12:41 pm
Forum: Anything else we might add?
Topic: Announcing an Exciting Merger!
Replies: 4
Views: 3924

Re: Announcing an Exciting Merger!

OMG! I red this post now! You mean that, in future, we will have a newLisp engine in Java? And about PL/SQL? Can you merge also with Mr. M$ so we can have a newLisp engine in .NET and Mono? One thing more: can you quickly merge with SAP, since I need to make a script for that environment also? :-) P...
by ale870
Thu Jan 27, 2011 6:14 pm
Forum: newLISP newS
Topic: new forum look
Replies: 7
Views: 5750

Re: new forum look

Nice update, thank you!! :-)
by ale870
Thu Jan 27, 2011 6:13 pm
Forum: Anything else we might add?
Topic: One million lambda expressions
Replies: 3
Views: 3653

Re: One million lambda expressions

OMG!!!!!!!!!

Are they dynamically created?! Automatically generated?!
Simply amazing and crazy!
by ale870
Sat Dec 18, 2010 9:52 pm
Forum: newLISP newS
Topic: New site for newLisp and Live Code
Replies: 8
Views: 5949

Re: New site for newLisp and Live Code

Thank you @Kazimir!
I will add your site also (I not yet made since I'm still finishing it). I still need to add categories, more links, etc...
by ale870
Sat Dec 18, 2010 9:44 pm
Forum: Whither newLISP?
Topic: newLisp without collateral effects
Replies: 23
Views: 14987

Re: newLisp without collateral effects

Hello, your posts are really interesting. I think @Kazimir's solution is good, since it creates variables only for the needed time, and it is a more "classic programming" approach. About @Lutz's solution, that is the one I was looking for, in fact the only way to eliminate side-effects was to implem...
by ale870
Fri Dec 17, 2010 11:56 pm
Forum: Whither newLISP?
Topic: newLisp without collateral effects
Replies: 23
Views: 14987

Re: newLisp without collateral effects

@Lutz can you explain me this one:

Code: Select all

(define (sum (x 0)) (inc 0 x))
OK I tried it and works, but I don't understand HOW it works!
by ale870
Fri Dec 17, 2010 11:39 pm
Forum: Whither newLISP?
Topic: newLisp without collateral effects
Replies: 23
Views: 14987

Re: newLisp without collateral effects

Nice info @Lutz, thank you! I will check them immediately!
by ale870
Fri Dec 17, 2010 11:38 pm
Forum: newLISP newS
Topic: New site for newLisp and Live Code
Replies: 8
Views: 5949

Re: New site for newLisp and Live Code

Thank you @Kazimir, I hope you will take a look to my site and give me some hits! Your suggestions are always appreciated!
by ale870
Fri Dec 17, 2010 2:03 pm
Forum: Whither newLISP?
Topic: newLisp without collateral effects
Replies: 23
Views: 14987

Re: newLisp without collateral effects

Ciao @cormullion, I tried it but does not solve side-effects problems. Maybe you need to use (copy) but assigning the result to a new local variable: (map (fn (x) (setq myCounter (inc (copy counter)) ) ; @@@@@@@@@@@@@@@@@@@ (bad-boy) (println $idx " - " "Value: " myCounter " --> " (upper-case x)) ) ...
by ale870
Fri Dec 17, 2010 11:38 am
Forum: Whither newLISP?
Topic: newLisp without collateral effects
Replies: 23
Views: 14987

Re: newLisp without collateral effects

Ok, I have another solution. Even this one is not so clean, but I like it: (define (bad-boy) (inc counter 100) ) (let ( (counter 0) ) (map (fn (x) (inc counter) (bad-boy) (println $idx " - " "Value: " counter " --> " (upper-case x)) ) '("a" "b" "c") ) ) I used a (let) function to create a local vari...
by ale870
Fri Dec 17, 2010 11:12 am
Forum: Whither newLISP?
Topic: newLisp without collateral effects
Replies: 23
Views: 14987

Re: newLisp without collateral effects

I found a workaround to limit the "damages" that a global function can do. See the following code: (setq counter 0) (define (bad-boy) (setq counter 2000) ) (map (fn (x) (let ( (myCounter counter) ) (inc myCounter) (bad-boy) (println "Value: " myCounter " --> " (upper-case x)) (setq counter myCounter...
by ale870
Fri Dec 17, 2010 10:29 am
Forum: Whither newLISP?
Topic: newLisp without collateral effects
Replies: 23
Views: 14987

Re: newLisp without collateral effects

That variable is an internal loop counter, and its usage is really limited. In our example it works, but I don't think that is a good generic solution.
That is a tricky workaround however!
by ale870
Fri Dec 17, 2010 8:53 am
Forum: newLISP in the real world
Topic: Freelance, discreet code clean-up and review?
Replies: 3
Views: 2237

Re: Freelance, discreet code clean-up and review?

What do you mean for "clean-up"?
Rewrite code to be faster?
Rewrite code to eliminate wrong newLisp functions/structures?
Simply reindent/reformat the code?

Or.... ?
by ale870
Fri Dec 17, 2010 8:45 am
Forum: Whither newLISP?
Topic: newLisp without collateral effects
Replies: 23
Views: 14987

Re: newLisp without collateral effects

As per my knowledge, every example you made "suffers" the side-effects. In order to eliminate a side-effect, one must only call a function passing all values as parameters, and get the function results. No global variable should be used. For example, this is the wrong approach ("counter" introduces ...