Skip to content

Instantly share code, notes, and snippets.

View simonask's full-sized avatar

Simon Ask Ulsnes simonask

View GitHub Profile
real 0m0.687s
user 0m0.677s
sys 0m0.004s
real 0m0.683s
user 0m0.674s
sys 0m0.004s
real 0m0.673s
user 0m0.663s
real 0m0.506s
user 0m0.498s
sys 0m0.003s
real 0m0.503s
user 0m0.495s
sys 0m0.003s
real 0m0.510s
user 0m0.499s
Array.instance_prototype.detect: [block] {
cc: Kernel.cc
.each { cc.return(it) if block(it) }
false
}
#include <stdio.h>
#include <sys/mman.h>
#include <stdlib.h>
#include <string.h>
#define PAGESIZE 4096
typedef unsigned char byte;
int main (int argc, char const *argv[])
{
byte* a = (byte*)malloc(PAGESIZE);
#include <w>
int main(int argc, char const *argv[])
{
w::App app { argc, argv };
app.get("/hello", [](w::Request&) { return w::render_text("Hello world"); });
return app.run();
}