Code Monkey home page Code Monkey logo

Comments (2)

tr8dr avatar tr8dr commented on June 25, 2024 1

Hi very good questions:

  1. if you used the bridge during an R session and no longer using the objects, once the variables are unbound or overridden or the scope exits in R, the CLR side will free the objects.
    • i.e. if R's GC runs, I rigged to send messages to the CLR server to remove those objects.
    • R has a very basic GC capabilities that responds to variable overwrite, loss of scope, etc.
  2. As for quitting the server, on unix I use pkill -f CLR. Ideally I should add a ``.cshutdown()``` or something like that, to send a poison pill to the server. I don't have anything like that currently. On windows you can kill with the task manager.
    • I usually leave it running as will tend to use in other sessions
  3. In terms of forcing R to delete an object:
    • obj <- .cnew ("....")
    • obj <- NULL or some other value OR
    • rm(obj)

from .net-bridge.

mkoohafkan avatar mkoohafkan commented on June 25, 2024

Great, thanks for the info. I think that in order to safely integrate rDotNet into a package, we would need to have both a .cshutdown (and/or a per-thread equivalent) and the ability to load/unload DLLs on a per-thread basis as per #4. Would this be achievable for the next release of the package?

from .net-bridge.

Related Issues (10)

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.