Post Reply 
newRPL: Alpha demo 0.9 released [UPDATED 2017-10-25]
11-01-2017, 04:48 PM (This post was last modified: 11-01-2017 05:16 PM by Gilles59.)
Post: #226
RE: newRPL: Alpha demo 0.9 released [UPDATED 2017-10-25]
Hi !

I get a bad crash with this kind of sequence :
v0.9 Alpha , Build 938
Code:
 << 2 DUP2 MOD NOT << KILL >> IFT >>

try 8 and the program for example.
EDIT : I try again and it works nows :/ But i'm sure there was a problem.

I noticed in a more complex example that with a HALT instead of KILL, the stacks seems inconsistant.

This is a program that give the first divisor of an integer or the number himself if prime (idea is to be fast no small) :

Code:

« 2   DUP2 MOD NOT « KILL » IFT
  1 + DUP2 MOD NOT « KILL » IFT
  2 + DUP2 MOD NOT « KILL » IFT
  2 + DUP2 MOD NOT « KILL » IFT
  DO
     4 + DUP2 MOD NOT « KILL » IFT
     2 + DUP2 MOD NOT « KILL » IFT
     4 + DUP2 MOD NOT « KILL » IFT
     2 + DUP2 MOD NOT « KILL » IFT
     4 + DUP2 MOD NOT « KILL » IFT
     6 + DUP2 MOD NOT « KILL » IFT
     2 + DUP2 MOD NOT « KILL » IFT
     6 + DUP2 MOD NOT « KILL » IFT
  UNTIL  DUP2 SQ <  END
  DROP
»

Select a nomber to test (ex : 999999937 )
After the KILL the stack is not correct state (if im not wrong ?) . Same thing with HALT. But if you generate an error, like 0 INV instead of KILL or HALT the stak is fine.

Note that with few modifications NewRPL return 999999937 as Prime in ~0.6s

I also notice another problem. I have difficulty to do a "Lshif CONT" sequence after a HALT. I dont think it is a physical keyboard problem but perhaps ? Did you also notice this ?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: newRPL: Alpha demo 0.9 released [UPDATED 2017-10-25] - Gilles59 - 11-01-2017 04:48 PM



User(s) browsing this thread: 1 Guest(s)