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

tpzker

Members
  • Content Count

    12
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by tpzker

  1. Updated 11/24/2019 to use signals instead of files as they can be more convenient and more portable
  2. 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
  3. 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] -
  4. 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())
  5. 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. Here is the link: https://pastebin.com/ZazwseRP To install, insert the EEPROM you'd like to flash it to, and run: pastebin get ZazwseRP bios.lua flash bios.lua rm bios.lua If you have any problems, just reply and I'll attempt to fix it.
×
×
  • Create New...

Important Information

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