Posted 07 August 2019 - 07:50 AM
Current Version: v2.2.6
After completing CraftOS-PC and using it for a while, I noticed that it runs relatively slowly compared to other real terminals. I also didn't like that it was tied to the JVM, which can use up quite a bit of my system's resources. (I'm also more on the new side when it comes to Java programming.) I started to ponder the idea of writing a ComputerCraft interpreter entirely in C. I first wrote a proof-of-concept called LinuxCC that used an ncurses terminal and ran in the root of the hard drive. After discovering how easy it was to write (not without ending up adding some C++ into the mix), I decided to bring it to a full product as a successor to the original CraftOS-PC. CraftOS-PC 2 uses the original Lua 5.1 API and SDL to create a terminal that runs CraftOS quickly while eliminating many of the bugs in LuaJ that plagued CraftOS. I've designed CraftOS-PC 2 to emulate ComputerCraft as close as possible.
CraftOS-PC 2's features:
- Emulates an advanced computer with touch support, or a standard computer
- Full support of ComputerCraft's API
- Full support of CraftOS-PC Classic's API, including:
- periphemu API for attaching peripherals (monitor, printer, drive, modem, debugger)
- mounter API for mounting local drives inside ComputerCraft
- Terminal graphics mode for direct pixel writing
- config API for adjusting the internal ComputerCraft configuration
- Resizable terminals
- HTTP server support
- Screenshot & GIF recording support (thanks for the idea, SquidDev)
- 256-color graphics mode support
- Debugger featuring GDB-style commands and profiler
- More features soon?
- CC: Tweaked: WebSocket support
- CC: Tweaked: Native IO API
- CCEmuX: Multiple computer support
- CCEmuX: modem peripheral
You can download the latest version of CraftOS-PC 2 on the official website or on GitHub. I have included both Windows and Mac builds in the release; Ubuntu users can install craftos-pc from the official PPA (ppa:jackmacwindows/ppa).
CraftOS-PC 2 is licensed under the MIT license: see LICENSE in the repository for more information.
[1]Based on SciMark test results on CraftOS-PC Classic, CCEmuX, and CraftOS-PC 2 (results here). Benchmarks performed on an Intel Core i5 system clocked at 3.7 GHz with 16 GB RAM installed; running on Windows 10 1903 with no apps running. Synthetic benchmarks may not accurately represent actual performance gain.
Edited on 16 March 2020 - 06:01 AM