Skip to content

phreda4/r3js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

r3

Programing language based in ColorForth and :r4

Actual Version work in a .html in javascript, without server, but the main image is empty.

try in:

RoadMap

  • jit wasm compiler.
  • connect net,sound,gl,cam,mic.
  • deploy in many types.
  • IDE for phones

Start Documentation

The actual system is a compiler to tokencodes and a engine to run this codes.

r3 has some diferences with :r4

Not use the word ")(", only two constructor for modify flow execution:

  • conditional in the block of words ( .. ?? .. ) is a WHILE

  • conditional in the front of block of words ?? ( .. ) is a IF

Like ColorForth, not have ELSE!!, but this can be done with code factorization, a good thing!!

  • remove 16bits access words, and add 64bits, but javascript not have access to 64bits mem, WASM yes, but the interpreter..

  • redoing all the SO access trow only SYSCALL and SYSMEM, think in many plataform.

  • redoing interaction work, all animation are with vectors words now.

Actual problems

  • No have return multiple values, wait for this and need simulate the data stack.

  • No hace access to return stack, I guess limitate the RSTACK to be balanced and use auxiliary registers.

  • WASM not have GOTO or JMP, some dificult from compiler.

  • for now are slow.

Memory organization

The WASM limitation in memory make me rethink this subject. :r4 have no limits to memory, r3 have a invisible chunk when the code has and the visible, linear 0 based memory where the framebuffer, variables and free memory exist.

The words SYSCALL and SYSMEM can disapear if I allocate in this memory too, add interact like old microcomputers.

I try the organization like this. 0 to framebuffer size, the canvas memory, then variables then free.

I like to use 0 like null or nill and the this adreess don't exist for variable.

Waiting for WASM advance

Then I start make an advance compiler in :r4. I hope get a IDE with advance compiler only, not interpreter.

About

r4, colorforth, 64 bits, web. index is a debug home page.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •