Recent posts

#91
Whither newLISP? / Searching on array
Last post by cameyo - February 01, 2023, 07:06:15 AM
How to search a value in array ?

Use array-list and then find, ref, etc ?
#92
So, what can you actually DO with newLISP? / chatGPT
Last post by cameyo - January 21, 2023, 12:24:36 AM
chatGPT is able to write code in newlisp!!!

Some errors, but it is fun.

Try: "write code in newlisp to solve quadratic equation"
#93
Thanks Ralph
#94
maybe check out

https://web.archive.org/web/20230000000000*/http://www.newlisp.org/downloads/manual_frame.html">https://web.archive.org/web/20230000000 ... frame.html">https://web.archive.org/web/20230000000000*/http://www.newlisp.org/downloads/manual_frame.html
#95
So, what can you actually DO with newLISP? / newLISP manual (old version)
Last post by cameyo - January 10, 2023, 08:50:46 AM
I'm looking for old versions of newLISP manual (historic reasons).

Any version is appreciated.

Thank you

cameyo
#96
newLISP newS / Read-Eval-Print Loop with newL...
Last post by Wolf-Dieter Busch - January 08, 2023, 12:58:21 AM
Tcl/Tk provides easy GUI creation. Connection between newLISP and Tcl/Tk is done via pipe. See my souped-down Script tk.lsp:



http://wolf-dieter-busch.de/html/Software/newlisp/doc-2023-01-06-14-56-24.htm">//http://wolf-dieter-busch.de/html/Software/newlisp/doc-2023-01-06-14-56-24.htm



Because standard I/O is connected to the pipe, no read-eval-print loop via keyboard possible. So I have done an emulation via Tcl/Tk. Newlisp script rep.lsp calls Tcl script rep.tcl:



http://wolf-dieter-busch.de/html/Software/newlisp/doc-2023-01-06-14-46-03.htm">//http://wolf-dieter-busch.de/html/Software/newlisp/doc-2023-01-06-14-46-03.htm

http://wolf-dieter-busch.de/html/Software/newlisp/doc-2023-01-06-14-48-16.htm">//http://wolf-dieter-busch.de/html/Software/newlisp/doc-2023-01-06-14-48-16.htm



Plaintext description in German:



http://wolf-dieter-busch.de/html/Software/doc-2023-01-06-14-28-41.htm">//http://wolf-dieter-busch.de/html/Software/doc-2023-01-06-14-28-41.htm



Feel free to try it out. Bug report welcome!



Update -- wrong target corrected for rep.tcl; from now on errneous lisp statements trigger a Tcl/Tk message.
#97
Anything else we might add? / Creating a database for a basi...
Last post by Mobo01 - January 04, 2023, 11:05:22 PM
I'm creating a database for a basic web game.

To isolate my issue, assume there are two tables that reference each other as seen below.
Player ( p_id, p_name, inventory(multiple i_id) )
Item ( i_id, i_name )

The issue is with the inventory column, which is used to store numerous ids from the Item database. First and foremost, I'm not sure if holding several id values in a single column is a smart design approach. Alternately, split into three tables as follows:
Player ( p_id, p_name )
Item ( i_id, i_name )
Inventory ( i_id )

Now that Inventory is no longer a column, it may have numerous ids, but how do I associate this collection of inventory data with a certain player? This https://www.scaler.com/topics/dbms/normalization-in-dbms/">website that if I want to have numerous 'daggers' in my inventory, I need to add a field to the inventory table. Is that right?

Each player, as in other RPG games, has their own inventory where they may keep their things and conduct the following actions.
#98
Anything else we might add? / Auguri
Last post by cameyo - December 25, 2022, 09:51:22 AM
Best wishes to all
(println "Happy " (add 1 (div 2 (div 3 (add 4 5 (mul 6 7 8 9))))))
#99
Anything else we might add? / Re: -nan is not number
Last post by services - December 21, 2022, 06:46:14 PM
However, there are a great number of issues that arise in the minds of customers while they are in the process of hiring escorts.https://www.thailandescortshub.com/pattayabeachescorts">Pattaya Beach escort sites Regarding these questions, we have provided further information.
#100
Anything else we might add? / Recursion is used in Java to r...
Last post by Mobo01 - December 02, 2022, 01:03:35 AM
I'm just getting started with recursion, but I was able to utilize it to construct a basic factorial program without any difficulty. I'm now attempting to construct a recursive function that writes an array in reverse order, but I'm not sure what I'm doing wrong. I'm following the advice in this https://www.scaler.com/topics/reverse-an-array-in-java/">article. I'm not sure what I'm missing. Thank you very much.
import java.io.*;

public class Recursion {
  public static void main(String[] args) throws IOException{
    int myArray[] = {1,2,3,4,5,6,7,8,9,10};
  }

  public static void reverseDisplay(int[] ary, int position){
    if(position > 0)
      System.out.print(ary[position]);
     reverseDisplay(ary, position - 1);
  }
}