simonask / w Goto Github PK
View Code? Open in Web Editor NEWA simple C++ web framework based on Libevent.
Home Page: http://simonask.github.io/w
A simple C++ web framework based on Libevent.
Home Page: http://simonask.github.io/w
Currently w::format only does plain interpolation. It would be great if it could support syntax like this:
w::format("{0:.2}", 123); // => "0.00"
The format options should be per-interpolation, so the same argument can be interpolated multiple times with different format arguments:
w::format("{0:09.2} <=> {0:+x}", 10); // => "000000010.00 <=> +0xa"
For numbers (both integers and floats), all the options of POSIX printf
should be supported. If a float-options is given to with an integer argument, or vice versa, the input value should be static_cast
'ed to the appropriate type before interpolation.
Hexadecimal presentation formats should reinterpret_cast
the input to a matching integer representation.
The readme doesn't say anything about w's [in]stability, though the website mentions it's not stable. Is the website out of date, or is the readme missing the same disclaimer? How stable is w?
Howdy!
Before suggesting a fork of wayward into perhaps a dedicated org so that others can keep the ball rolling on some of these open PRs and perhaps continue the work you've done I'd just like to ask whether you've lost the time or interest in continuing work on wayward. If so, what happened? Something upstream? Something in the core design?
There are not a lot of C++ http service implementations built around libevent/libevhtp and I think it makes this project rather valuable.
Addressing #10 in particular would be very helpful.
With the these commands,
$ git clone https://github.com/simonask/w.git --recursive
$ cd w
$ scons -j8
I get the following error message from scons:
scons: Reading SConscript files ...
TypeError: 'builtin_function_or_method' object has no attribute '__getitem__':
File "<PATH_TO>/w/SConstruct", line 97:
w_dev = WaywardProgram(env_with_ws, 'w_dev', w_util_sources, rpaths = ['.'])
File "<PATH_TO>/w/wayward_build.py", line 37:
libs.extend['event', 'event_pthreads', 'pq', 'unwind']
I'm running Arch linux with Scons 2.3.2.
Libevhtp, the current HTTP library based on libevent, does not seem to parse multipart form data, which is the default for browsers. It is also required when doing things like file uploads.
Possible solutions:
I'd like to reuse/port some of parts your code for use in an open source library for embedded devices.
Can you please specify a license (anything not GPL-ish would be great, I prefer to use MIT), so that I can give proper credit?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.