Coder Social home page Coder Social logo

stevemeacham / autopilot-for-realistic-ksp Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 54 KB

This suite of kOS scripts, or programs, automate spacecraft and aircraft in the Kerbal Space Program (KSP), with special emphasis on RSS, RO, RP-1, and Principia.

License: GNU General Public License v3.0

ksp-scripts ksp-controller ksp-kos ksp realism-overhaul rp-1 principia kerbal kerbalspaceprogram kerbal-space-program

autopilot-for-realistic-ksp's People

Contributors

stevemeacham avatar

Watchers

 avatar

autopilot-for-realistic-ksp's Issues

Discrepancy in kOS

The kOS documentation states that OPEN(PATH) will return a Boolean if the specified path does not exist. It does not. Rather, it throws and error and terminates the program, returning to the terminal.

I need to fully flesh out this behavior and decide if I'll fix the kOS doc or code. Until then, I'm working around it with an extra call to EXISTS(). It's not horrific, just annoying.

clone function in lib_oo cannot deep-copy a KOSDelegate that uses closures

Problem:
Closure-referenced variables cannot be copied. Any closure-reference will forever refer to the same variable in the same memory location. This prevents deep copying of any KOSDelegate, or structure that contains a KOSDelegate.

If the closure-referenced variable is immutable (i.e. never changed after the closure is established), this is not a problem in practice. However, if the variable that is deep copied along with the KOSDelegate, the KOSDelegate will still refer to the original variable, not the copy.

As a workaround, only use closures to refer to immutable variables if the KOSDelegate could possibly be cloned().

The solution seems to be impossible in Kerboscript alone. Perhaps by modifying the .ksm byte-code? Perhaps by adding deep-copy semantics to Kerboscript itself that makes this work? I think that Rust can re-bind closures, for example.

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.