Code Monkey home page Code Monkey logo

cc-tools-1's Introduction

cc-tools

This repository contains a collection of libraries, scripts and tools I made for developing ComputerCraft programs. This includes:

  • a complete custom network stack (RedNet replacement) with support for assignable addresses, port multiplexing and other features
  • a class utility for creating classes
  • a logging library
  • a framework for asynchronous programming with tasks based on coroutines
  • a python script for resolving relative imports and linking multiple files into one API for easy loading during boot.

FredNet

FredNet is a complete network stack created to replace RedNet as the network, transport and application layer protocol suite. Like RedNet, FredNet offers ways to communicate with computers via addresses, however, these are not bound to a computer but can instead be configured to any (virtual) host on the network. Networks can be divided into subnetwork ranges and connected via routers. This allows for a more efficient, performant and secure networking infrastructure.

FredNet comes with a high level client/server development framework called Resource Transfer Protocol (RTP). It operates on top of IPMC, FredNets network routing protocol and can interface with other network services to make communication between hosts easier. RTP was designed to avoid boilerplate code but still allow to be integrated into larger applications.

Planned features

  • DHCP autoconfigure
  • DNS
  • ARP (for local DNS resolution mostly, since we don't really have to care about computer IDs)
  • sockets

FredIO

FredIO is an asynchronous multitasking framework built on top of Lua coroutines. Expanding on the feature set of parallel, which it replaces, FredIO provides utilities such as task cancellation, asynchronous function composition and queueing new tasks into running event loops. It further provides a full abstraction on the concepts of asynchronous tasks and event loops, offering a lot more control than CCs builtin tools.

FredIO does not natively offer JS style Promise support. For a FredIO compatible implementation, see https://github.com/marnixah/cc-tools

build_tools

The build_and_link.sh shell script handles the linking and deployment of the libraries in my custom source repository setup. It will most likely not work for other directory structures.

cc-tools-1's People

Contributors

fredi-68 avatar

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.