What is the fastest webserver solution with the lowest memory footprint?

I need a webserver to serve up very simple POST/GET requests as JSON. I don't need MVC, Rails, Django. I need something that takes up very little memory, preferrably around 5K per reqeust. The...

How to embed Node.js interpreter into C/C++?

I want to use Node.js scripts in my C/C++ applications. Some people suggested me to start with v8, libev and libeio; but it means rewriting Node.js from scratch. So, is it possible to embed...

Where to find a comparison of Flex/Bison, Ragel, ANTLR and others?

I am intending to define a protocol similar to Open Sound Control, but a bit different. The idea is quite complex, and I won't try to describe it here. Suppose I was to implement an OSC library...

Nodejs Event Loop

Are there internally two event loops in nodejs architecture? libev/libuv v8 javascript event loop On an I/O request does node queue the request to libeio which in turn notifies the availability...

Is there a C library for GUIs that does not require its own event loop to be used?

I am looking for a GUI toolkit that I can use from plain C, that works at least on Linux and that does not force me to use its own eventloop – I want to use libev for the main loop and have it...

Sockets - Using INADDR_ANY on client side

I recently ran into this blog post which describes a TCP server client using libev. The sever uses INADDR_ANY to bind to an interface which is something I'm familiar with. However, I was surprised...

Are there any simple libev/libevent implementations supporting websockets?

I am looking for an echo server example using libev or libevent that accepts websocket connections: a websocket client connects, sends a message and receives it back. SSL websockets should also be...

Async C UDP clients

I'm trying to create asynchronous high performance UDP client. I'm implementing UDP tracker protocol. Lets say I have 1000 torrent hashes. I need to make 1000/74 ~= 14 UDP requests, assuming that...

How to use libuv for direct file descriptor reads?

As part of an investigation for a project I am working on, I've been looking into different event loop mechanisms/libraries to use for detection and reading of data from sockets. Specifically,...

I can't install Gevent

I need to install Gevent for python2.7 but after try almost all I still doesn't install it. I have python 2.6.6 and here all work ok... but I need python2.7+ then I install python 2.7.9 and now...

How can I install the libwebsocket library in Ubuntu?

I am trying to install the libwebsocket in my ubuntu . so I downloaded the project https://github.com/warmcat/libwebsockets unzipped it and I followed the installation instruction. I type the...

Libev c++ can't stop dynamic loops in multithread application

I write multithread server with c++ and libev and has one problem. I start default_loop in main thread and create and start dynamic_loop in every slave threads. When I handle signals to stop...

Git not in PATH for Homebrew on Mac

A couple days ago, I ran brew update, trying to update homebrew on my Mac (I use OSX 10.9.5). When I ran this, I got this back dyld: Library not loaded:...

Docker - "Error: EACCES: permission denied, mkdir '/project/node_modules/.cache/@babel'"

Running yarn docker-build works fine but when yarn docker-up or yarn docker-dev an error pops up when RUN yarn is called. Nginx starts up fine but yarn fails into mkdir in the Projects...

Error installing gevent in Docker Alpine Python

I'm trying to install gevent on docker image python:3.8.0a4-alpine3.9 which is running gunicorn. When building the docker, I always get an error "gcc failed with exit status 1". I've tried...

fsanitize=undefined causes linker errors

I'm trying to compile a program using -fsanitize=undefined using the conda g++ compiler. I'm running into `__ubsan_handle_type_mismatch' linker errors. I've used the flags in the compiles and the...

Brew Install Httpd: Welcome to Nginx?

I'm trying to install the brew package httpd (apache). I'm so confused. Every time I do and navigate to http://localhost:8080 I get a big welcome screen that says "Welcome to Nginx." I don't...

src/gevent/libev/corecext.c:95:20: Fatal error:Python.h error: command 'gcc' failed with exit status 1

In my CentOS 7.7, I installed python3 yum install python3 and I want to install the gevent by pip3, but get below error: src/gevent/libev/corecext.c:95:20: Fatal error:Python.h:there is no...

Issue with nio4r (1.2.1) while bundle install

First i was having nokogiri issue but after updating Xcode that went away and now it gets stuck on nio4r and not passing it. Using Ruby 2.5.1p57 and Rails 5.0.0 and bundler version is 1.17.3....

Trouble with installing cocoapods: Library not loaded: libssl.1.0.0.dylib

I'm installing cocoapods like this sudo gem install cocoapods which gives me this error: ERROR: Loading command: install (LoadError) ...

AMQP-CPP beginner problems

I'm new to rabbitmq, and try to have a Listener to read from a messagequeue. The server should be fine (not implemented by me, I guess implemented in Java). I use C++ for the consumer, and I use...

Installing nio4r via brew install throws an error on macOS catalina

I understand that this issue has a ton of answers on stack overflow (and other sites) but none of them seem to work for me. Here is where the issue arises. When I tried to run my server, this...

python.h missing on Ubuntu 18 with python-dev installed

Trying to get fHDHR working Ubuntu 18. During the install I get this error: include/python3.8 -c src/gevent/libev/corecext.c -o build/temp.linux-x86_64-3.8/src/gevent/libev/corecext.o ...

Can't import package after installing in a conda environment

I tried to install gdal package on my conda environment. I activated gcpy environment and installed the gdal package using conda install -c conda-forge gdal. The package installs successfully....

Issue Installing Locustio(0.7.5) Package

macOS == 10.15.7 || Django Project || Python 3.6.7 When I'm trying to install locustio version 0.7.5 package from pip it's giving error.I have tried the fixes mentioned in all the versions of...

dask-yarn job fails with dumps_msgpack ImportError while reading parquet

I am trying to do a simple read and count of a small parquet file (10K records) using dask-yarn on an AWS EMR cluster with one master and one worker node, both are m5.xlarge instances. I am trying...

Cant clone repo. Server certificate verification failed

when i'm try to clone repository by command git clone https://git.lighttpd.net/mirrors/libev.git I get an error fatal: unable to access 'https://git.lighttpd.net/mirrors/libev.git/': server...

Bokeh/panel won't render in-line with Jupyter Lab

I'm trying to visualize Bokeh plots and panels with a Bokeh backend in a notebook in JupyterLab. Things were running fine until I updated. Current packages and versions are below I have tried the...

Cannot import installed packages in Jupyter Notebook using Miniforge Conda Environment on M1 Mac

I have a M1 Mac (Apple Silicon, ARM) and I followed the instructions given by Apple here to install Miniforge, create a conda environment called tf_env and install Tensorflow on it. I wanted to...

libstdc++.so.6: version `GLIBCXX_3.4.26' not found on Linux

I was trying to load Seurat package in rstudio and got this error Error: package or namespace load failed for ‘Seurat’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object...