Coder Social home page Coder Social logo

Comments (4)

soupslurpr avatar soupslurpr commented on June 16, 2024 1

Completed in e9cee78

:D

from beautyxt.

soupslurpr avatar soupslurpr commented on June 16, 2024

Did some tests, passing file descriptors (and temp_dir which isn't used anywhere just relevant) only works without isolatedProcess.

So I don't think doing this would be practical as it would require rewriting most of the Typst integration to not use file descriptors and instead accept/return Strings and Vec (which is what the Rust library bits for plain text and markdown do). Also handle writing to the files from the Kotlin side instead since the Rust side only accepts and returns stuff and can't write it itself as passing file descriptors doesn't work.

If anyone knows of some other way or thing I am missing, please comment here.

I'm looking into the solution I proposed...

from beautyxt.

soupslurpr avatar soupslurpr commented on June 16, 2024

Never mind, it is possible but that doesn't mean it should be implemented. It would mean that all the files in a folder would have to be loaded into memory twice instead of the current way of loading files as it needs them.

Would be cool if isolated process services could be granted permissions so I could just do that but oh well...

from beautyxt.

soupslurpr avatar soupslurpr commented on June 16, 2024

Wait never mind (again lol), it seems it can access file descriptors if I pass a ParcelFileDescriptor and detatch it in the isolatedProcess service before passing the file descriptor to Rust.

from beautyxt.

Related Issues (20)

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.