Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

tpzker

Members
  • Content Count

    14
  • Joined

  • Last visited

  • Days Won

    1

tpzker last won the day on June 30 2019

tpzker had the most liked content!

About tpzker

  • Rank
    Junior Member

Contact Methods

  • Minecraft
    prdxcl
  • GitHub
    ThePuzzlemaker

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Updated 1/1/2020: Version 2 (checks for drives with /init.lua)
  2. Updated 11/24/2019 to use signals instead of files as they can be more convenient and more portable
  3. Overview Hello there. Some of you may remember KLang. I decided that I should you know, actually work on it. Therefore, I present Triton/TritonLang. Triton is the continuation of KLang, a C++-styled programming language that compiles to Lua. I have no ETA on when it will be done as of the moment, but it is work in progress and I would possibly like to get feedback on my current project status. Hello, world! [Pseudocode] #include <io> int main() { io::info("Hello, world!"); return 0; } Advantages to Lua Headers/easily include libraries Statically and dynamically compiled libraries for programs C++-style syntax and easier OOP Helpful Links WIP Documentation GitHub Repository
  4. Hello there people. I created a program inspired by netcat. It works over wireless and wired networks. To get: -- To make sure /usr/bin exists mkdir /usr/bin/ pastebin get GrCPux9e /usr/bin/netcat.lua Basic usage: -- Sending side netcat [port] [file] -- Receiving side netcat -r [port] [file] The file parameter can be either a file on the system or a '-', which on the sending side will take in input from the console like OpenOS's cat. On the receiving side, '-' will print out received data to the console. -- Sending side netcat [port] - -- Entering text into the sending side will send it to the receiving side. You can end the transfer with Ctrl+D. -- Receiving side netcat -r [port] -
  5. This is a draft. Examples of software will be coded later. Concepts Socket: A file on the system which links two programs' communications. OC: Abbreviation for "OpenComputers" OS: Abbreviation for "Operating System" OpenOS: The stock OS for OC computers. Socket: a medium for communication between two or more programs Rationale To standardize any possible IPC implementations Basic Concepts Background programs (or daemons) can be started with a simple wrapper, such as this example code: thread.create(function() shell.execute(ENV, "/bin/daemon.lua") end) Programs can communicate with sockets through the signals defined in this document These signals can be created with "computer.pushSignal(name: string, [...])" They can be received with "event.pull([timeout: number], [name:string], ...)" or "event.listen(event: string, callback: function)", or on a low-level basis with "computer.pullSignal([timeout: number])" Signals oipc_sock_comms(socketID: string, <... (message)>) -- OIPC Socket Communications -- message must be of type nil, boolean, number, string, table (tables and other messages MUST NOT contain threads and functions due to the limitations of computer.pushSignal()) Notes Please note that OIPC will only work with OSes which pass signals to all subprocesses instead of simply consuming the signal on "computer.pullSignal", "event.pull", or similar functions to wait for/listen for signals.
  6. Hello there people! I created a BIOS-level bootloader that is based on the original Lua BIOS that implements a bootloader function. You simply press the number of the OS you would like to boot to from the list of recognized filesystems. The reason why I created this is that it is roughly 2,000 bytes shorter than OpenLoader's EEPROM. There are two versions: Source version (uncompressed, roughly 2.6k bytes): https://pastebin.com/TZ5qWJXw Compressed version (compressed, roughly 1.3k bytes): https://pastebin.com/7caZvdiA To install (compressed version), insert the EEPROM you'd like to flash it to and run: pastebin get 7caZvdiA bios.lua flash bios.lua rm bios.lua To install (uncompressed version), insert the EEPROM you'd like to flash it to and run: pastebin get TZ5qWJXw bios.lua flash bios.lua rm bios.lua If you have any problems, just reply and I'll attempt to fix it. [INVALID] means that there is an error in the /init.lua file. If the drive doesn't show up, that means that /init.lua could not be found on it.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.