Giter VIP home page Giter VIP logo

Comments (2)

ac000 avatar ac000 commented on August 30, 2024

Hi @pankgeorg

Hello! I'm playing around with unit, trying to hook it up to julia. Julia has a quite neat c interface which can load .so files and call into them. I'm planning to wrap the libunit in a Julia jll package and then make a wrapper that will control unit internally (please excuse my juniority 🤗)

Sounds interesting...

* [ ]  documentation around the thread model of unit
  
  * How many threads does unit use?

The router process seems to start up three threads.

Some of the application processes can be threaded if you specify the 'threads' setting.

  * Are the C library calls thread safe (can I call them from many different julia threads simultaneously, or do I need to do locking julia side)?

I'm going to they are generally thread safe, as they use thread local storage, but the best way to find out is to just try it!

* [ ]  `libunit.so`: I'm making this with this rule, but I'm not sure if I'm missing anything
build/lib/libunit.so: $(NXT_LIB_UNIT_OBJS) \
		build/share/pkgconfig/unit.pc \
		build/share/pkgconfig/unit-uninstalled.pc
	$(CC) -shared -o $@ $(NXT_LIB_UNIT_OBJS)

can this be streamlined somehow? Why is only a static library (.a) created as of now? Am I missing something? Is this "completely" standalone, or does it need additional files? Can this (.so) file be included in upcoming binary distributions?

From what I can gather it's basically down to libunit not being a stable a API. It may change and if we install a changed libunit.so it may randomly break peoples stuff.

from unit.

pankgeorg avatar pankgeorg commented on August 30, 2024

From what I can gather it's basically down to libunit not being a stable a API. It may change and if we install a changed libunit.so it may randomly break peoples stuff.

I can tolerate some ABI instability, especially if the semantic versioning is respected. We won't be installing anything system wide- we would rather be loading the .so from the Julia depot (where Julia stores local code and dependencies)

from unit.

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.