Code Monkey home page Code Monkey logo

beetle's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

dfischer

beetle's Issues

Remove memory manager

A nice idea, but really inefficient, and not really in tune with Beetle's mostly brutally-simple design.

A practical reason to remove it is that I'd like Beetle to be as fast as it reasonably can be, for comparison with SMite, and the current implementation of the memory manager slows down all virtual memory access horribly. (Given which it's impressive how much faster than SMite Beetle runs current pForth!)

Add VM "core dumps"

On uncaught memory exceptions, dump object file that can be loaded into debugger.

It is not necessary to execute NEXT when beetle starts up.

"beetle.pdf", section 2.4 "Operation" says that A is set to 0 and then NEXT is executed. The latter is redundant, and could be deleted; if omitted the first call to single_step() or run() will execute NEXT anyway, because A is 0.

This simplification would be an observable change of the specification; the first call to single_step() will now execute "NEXT" where previously it would have executed the first instruction.

libbeetle should depend on c-decls.h

If I edit the file mijit-beetle/c-decls.h then rebuild beetle, the build is incomplete. Please consider adding an extra dependency to the Makefile.

Use mijit-beetle when available

Surprisingly, although it does no optimization, mijit-beetle already makes beetle go faster. Time to run:

$BEETLE pforth make.fs
Beetle 2.1.1 Beetle 'master' branch Beetle 'mijit' branch
6.84s 6.68s 4.71s
-0% -2% -31%

(+LOOP) should use the carry or overflow flag, not the sign bit

Add [increment] to [index] ; if [index] thereby crosses the [limit] - 1 to [limit] boundary, [...]

It's not clear what this means unless we know whether to interpret increment as signed or unsigned. For example, if increment is 1<<31, it could be interpreted as positive (unsigned) or negative (signed). Suppose index and limit are, say 5 and 0 respectively. If increment is interpreted as positive, then it does not cross the boundary, but if negative it does.

I think the fix is to specify that increment is always signed. It is not necessary to specify whether index and limit are signed or unsigned; just use cyclic arithmetic.

add explicit license

Would be nice to add explicit license instead of the symlink to ancient automake version. Also it would clarify confusion: is it GPLv3? or v2? or v2+? The automake has upgraded it's license which is a great thing but I'm not sure if it's applicable to this project as well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.