Giter Site home page Giter Site logo

Comments (4)

luispedro avatar luispedro commented on May 30, 2024

What is the use case of exporting TMPDIR to the environment? If you want to write some output there, then using ARGV feels very logical to me, actually.

I agree on the documentation issue. Off the top of my head, I don't think there are other builtins, although the "batch" module defines some additional ones.

from ngless.

luispedro avatar luispedro commented on May 30, 2024

I mistakenly deleted a comment (Sorry). Here is the original content:

I rely more on $TMPDIR these days which is only known at runtime.
Recently I've also tried the sbcast feature on SLURM nodes to compartmentalize IO.

sbcast recommends using $TMPDIR for databases and such so I was going for:

DB = TMPDIR + "/database.fna"
at the moment I do:

TMPDIR = ARGV[1]
DB = TMPDIR + "/database.fna"

from ngless.

luispedro avatar luispedro commented on May 30, 2024

sbcast is indeed a valid use case.

I have considered introducing a database search path feature. I'm afraid of making it "too magical", but this might be a more general solution.

from ngless.

luispedro avatar luispedro commented on May 30, 2024

I am going to fix the documentation on constants.

I also think that a database search path is a good feature, which will address this and other cases in a generic way.

from ngless.

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.