News for hackers. Stuff that matters.
Re:Conan – C/C++ package manager by haberman on Wednesday December 02, 2015 @10:45PM (#10667630)
> npm seems to handle this just fine for both JS and native (c++) node modules via gyp

Could you describe this in a bit more detail? Does gyp (in the context of npm) build the binaries at install time, or is it a repository of a bunch of pre-built artifacts?

In my experience of installing npm packages, it doesn't seem like it's building native extensions at install time, but it's hard to say for sure.

Re:Conan – C/C++ package manager by TheCoreh on Thursday December 03, 2015 @07:35AM (#10669234)
It does build them on install time, if a suitable compiler is available. A classic example is the `ws` module (WebSockets), when you install that you'll normally see the build log for its native dependencies on the npm output:

  $ npm install ws
  
  > [email protected] install /Users/coreh/Projects/test/node_modules/bufferutil
  > node-gyp rebuild
  
    CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
    SOLINK_MODULE(target) Release/bufferutil.node
  
  > [email protected] install /Users/coreh/Projects/test/node_modules/utf-8-validate
  > node-gyp rebuild
  
    CXX(target) Release/obj.target/validation/src/validation.o
    SOLINK_MODULE(target) Release/validation.node
  /Users/coreh/Projects/test
  └─┬ [email protected] 
    ├─┬ [email protected] 
    │ ├── [email protected] 
    │ └── [email protected] 
    ├── [email protected] 
    ├── [email protected] 
    └── [email protected]
Re:Conan – C/C++ package manager by voltagex_ on Wednesday December 02, 2015 @11:29PM (#10667753)
It depends. Someone more experienced may be able to add more info, but gyp appears to know what is available pre-built vs what needs to be built. Depending on what platform and options you've selected it might call (for example) the Visual Studio C compiler to build a native extension for you.
Re:Conan – C/C++ package manager by rpedela on Thursday December 03, 2015 @12:56AM (#10668010)
Binary modules are usually built at install time.