Comments (2)
Hi @pankgeorg
Hello! I'm playing around with
unit
, trying to hook it up tojulia
. Julia has a quite neat c interface which can load.so
files and call into them. I'm planning to wrap thelibunit
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.
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)
- NGINX AlmaLinux permission issues HOT 1
- Incorrect parsing of 64-bit integers HOT 29
- Proxy Grafana Live WebSocket connections
- Add support for writting application logs into stderr when Unit running inside of Docker HOT 5
- Segfault when sending data through nxt_unit_response_write() HOT 13
- test_access_log_keepalive - AssertionError: descriptors leak router HOT 7
- Nginx proxy_pass leading to unit, sometimes outputs 504 HOT 2
- Using Nginx Unit with a ReadOnly filesystem. HOT 5
- Getting strange message when trying to get static files HOT 4
- Add PHP 8.3 image HOT 1
- Does nginx-unit want to support WSGI+ ? HOT 2
- Unit fails to build against njs 0.8.2 and libxml2 2.12, or njs 0.8.3 HOT 3
- ./configure: error: no PHP embed SAPI found when there is no libphp.so HOT 10
- Issue with creating files and folders from PHP HOT 3
- WebsocketConnection WebSocket onerror while trying nginx htpasswd protection HOT 1
- Using `vars` multiple times in `access_log.format` does not work correctly with njs HOT 3
- App process XXXX exited on signal 7 HOT 1
- Broken stdout and stderr logging in Amazon Linux HOT 4
- Application restart breaks WebAssembly Components HOT 8
- How to pass $request_id to my application?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unit.