Sean McBride
375ce5019f
chore: Resolve some undefined sanitizer type nits
4 years ago
Sean McBride
628275f6f9
docs: Associate FIXMEs and TODOs with issues
4 years ago
Sean McBride
d6f10cac7a
refactor: decompose types.h
4 years ago
Sean McBride
9720f82441
chore: require min 2 cores
4 years ago
Sean McBride
eca1546f7a
chore: improved logging
4 years ago
Sean McBride
853382dcda
fix: correct HTTP response syntax
4 years ago
Sean McBride
8d1b447e74
refactor: cleanup HTTP response logic
4 years ago
Sean McBride
b979809c12
chore: fix debuglog usage
4 years ago
Sean McBride
1487614863
chore: refactor out u8
4 years ago
Sean McBride
7f9ffe236e
chore: refactor out u8
4 years ago
Sean McBride
59c44f90e6
chore: refactor out i16
4 years ago
Sean McBride
6b1880077a
chore: refactor out u16
4 years ago
Sean McBride
213c558a75
chore: refactor out i32
4 years ago
Sean McBride
ec3b489b21
chore: refactor out i64
4 years ago
Sean McBride
4cb7c355b4
chore: refactor out u32
4 years ago
Sean McBride
407a20d22a
chore: refactor out u64
4 years ago
Sean McBride
0d1d73018a
docs: remove redundant comments in types.h
4 years ago
Sean McBride
50c46ae8e9
docs: better comment wasm init funcs
4 years ago
Sean McBride
58a38016b1
chore: sandbox member cache->sandbox context cache
4 years ago
Sean McBride
5ccf8bbd87
chore: organize preprocessor includes
4 years ago
Sean McBride
68e91a8853
chore: combine thread locals into struct
4 years ago
Sean McBride
0eb474a8d7
chore: replace app header guards w pragma once
4 years ago
Sean McBride
29201f737d
docs: Use style guide format for comments
4 years ago
Sean McBride
c0d82db22b
fix: Correct memory leak and general cleanup
5 years ago
Sean McBride
d14af73c30
chore: remove unused types
5 years ago
Sean McBride
a949cbebe3
chore: refactor double underscores
5 years ago
Sean McBride
ba032a5905
chore: de-dunder runtime
5 years ago
Sean McBride
5694366c96
chore: align consecutive macros
5 years ago
Sean McBride
9dfc740d05
chore: namespace macros and globals in main.c
5 years ago
Sean McBride
017174ffa4
chore: remove unused declare and comment untested code
5 years ago
Sean McBride
c9b9a6553e
chore: run clang-format
5 years ago
Sean McBride
dfe5667bef
chore: resolve TODOs from Phani
5 years ago
Sean McBride
c1c307c390
chore: cleanup runtime
5 years ago
Sean McBride
69086d012d
Various refactors and end-to-end tracking of cycles
5 years ago
Sean McBride
6946b08644
refactor: modularize and rename things
5 years ago
Sean McBride
b5e9abced5
chore: Assorted cleanup
5 years ago
Sean McBride
9185852236
docs: Add documentation to code ( #7 )
5 years ago
Sean McBride
e61be257f9
chore: add clang-format from Composite ( #5 )
...
* chore: add clang-format from Composite
* chore: cleanup JSON
* chore: add clang-format from Composite
* chore: stylistic corrections
* chore: ignore swap files and vscode conf
* chore: check semver of clang-format and require 9
5 years ago
phani
0c92419978
fixed syscall based sync http-req/resp
5 years ago
phani
9528f65b32
Synchronous I/O for http request/response fixes 99%tile latencies
...
* Async I/O is being used for reading and writing http request and
response respectively. This causes the worker core to steal new tasks as
when one sandbox blocks on "read" or "write". This causes true
round-robin on timer interrupts, leading to those high latencies.
* Ideally, the request/response should be synchronous I belive because
we are expected to have "low"/near-realtime latencies and the read/writes
are only performed when a client connects, so ideally not block!
Plus, we expect only small data transfers (in KBs) so that should also
support synchronous request/response processing.
5 years ago
phani
645d138787
for runtime with multi-sandboxing, globals are to be populated per sandbox, that was what causing random crashes!
5 years ago
phani
affe5fbc35
read() chunks fix, other standalone compilation fixes
5 years ago
phani
611ec2257a
keep empty and add work program
5 years ago
phani
ae392fdfe3
read from stdin (http req body), write to stdout (http resp body), bug fixes in http parsing
5 years ago
phani
f019193952
read() to read from request body!
5 years ago
phani
aa0017f4b0
http request response using uv
5 years ago
phani
8a3e050282
Support TCP (TODO: http parsing based on module specification)
...
* Major:
- Moved sandbox data struct into linear memory of a sandbox.
- (Should work well with other sandboxing mechanisms).
- Removed all mallocs from within uv usage, using a pre-allocated
memory within sandbox data-struct for read/write.
- TODO: convert prints on stdout to a string and send it out with
function response body.
- TODO: for each function loaded, what is the request and response
http header/body specification.
To start, keep headers minimal.
body either: json, plain.
- TODO: track TIMEOUTS. If we go beyond that, return a HTTP 408?
5 years ago
phani
95bf6fc1a9
udp response (return value of main) and multi-threaded udp client
5 years ago
phani
eb8fcf00c4
Work-stealing deque for global request queue
...
* all cores steal from that queue.
* other bug fixes
* tested with NCORES = 2 and 4.
5 years ago
phani
9b0ec6f7dc
Changed directory structure
...
* silverfish is a submodule now
* memory modules from silverfish runtime is copied in to the aWsm runtime.
* runtime/tests/Makefile compiles different tests and silverfish/code_benches..
5 years ago