Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 123 users online: 4 members, 86 guests and 33 bots. Members: charlessprinkle, lafferjm. Bots: VoilaBot (2), Spinn3r (1), Magpie Crawler (5), VoilaBot (6), Googlebot (17), MSN/Bing (2).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
|
[Prizm] Introducing LuaZM
Published by KermMartian on August 17, 2012 at 5:55:25 PM CST
| Discuss this article (108)
The Casio Prizm is a powerful calculator, great for both math and playing games. It is particularly great for programming, and for months thoroughly bested the TI-Nspire calculator in offering ASM, BASIC, and C programming. In an attempt to reduce criticism of their apparently anti-student stance, Texas Instruments improved the TI-Nspire to run Lua programs. Lua is a "fast, lightweight, embeddable scripting language," an interpreted procedural language. The language has allowed budding Nspire programmers to quickly write games and programs without needing to use a computer.
I am happy to announce that I am now bringing Lua to the Casio Prizm graphing calculator, in the form of a full-featured Lua interpreter. After days of porting, rewriting parts of libc (including the longjmp/setjmp system), and learning some SH4 assembly, I am proud to present the first screenshot of the interpreter successfully running on a Prizm. Special kudos to Juju for the PrizmIO library, a port of an Nspire I/O library for C programmers. As you can see from the screenshots, this is just the raw interpreter; although it understands Lua syntax and can parse/lex the language, load libraries, and recognize incorrect code, it is almost entirely lacking in functioning libraries. From here, I will be porting over each of the standard libraries, starting with numbers, strings, and I/O. Please feel free to share thoughts and suggestions in the attached thread. Bonus features: Planned transparent support for Nspire and Lua FX programs.
Permalink
2012 Articles
© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.020522 seconds.
|