[{"data":1,"prerenderedAt":317},["ShallowReactive",2],{"project-18697910":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":28,"sentiment":29,"stance_mix":30,"scored_comments":35,"aspects":36,"strip":45,"post_text":47,"what":48,"said":71,"maker_in_thread":186,"shape":197,"grid":201,"attempts":280,"same_week":281,"maker_shows":31,"maker_hidden":309,"reader_version":310,"card":311},"18697910","LEAR","A simple and fast HTTP server to serve static resources","title","Show HN: LEAR – A simple and fast HTTP server to serve static resources","https:\u002F\u002Fgithub.com\u002FGlorf\u002Flear","github.com","mbien",1545039985,2018,66,32,642,2155,30,"notable","infrastructure","web server","cli",[24,25,26,27],"http server","static files","c server","web server performance","curious",-0.246,{"positive":31,"neutral":32,"mixed":33,"critical":34},2,11,0,8,21,{"performance":37,"execution":38,"idea":40,"docs":42,"design":43,"privacy":44},{"positive":33,"critical":33},{"positive":33,"critical":39},5,{"positive":41,"critical":41},1,{"positive":33,"critical":41},{"positive":33,"critical":33},{"positive":41,"critical":41},[46,33,33,41,46,33,46,33,41,33,41,46,46,46,41,33,41,46,33,33,33,41,39,41,33,46,46,46,33,46,41,39],3,null,{"problem":49,"audience":47,"pricing":47,"motivation":47,"time_to_build":47,"stack":55,"openness":68,"stage":69,"team_size":70},{"value":50,"source":51,"evidence":52},"Serving static resources over HTTP quickly and simply","maker",[53],{"id":54},"post",[56],{"value":57,"source":58,"evidence":59},"C","commenter",[60,64],{"id":61,"by":62,"text":63},"18698495","quangio","It's great to see people still using C to make web servers ! But can you clarify what are the \"state-of-the-art technologies and solutions?\" I just skim the project and think…",{"id":65,"by":66,"text":67},"18698784","haney","Kind of off topic but it doesn’t look like there are any tests in this repo. Is that common in the open source C community? I see several people suggesting benchmarks but what…","open_source","prototype","unknown",{"praise":72,"objections":84,"requests":122,"questions":143,"alternatives":158},[73],{"value":74,"source":58,"evidence":75},"Simplicity makes it a promising project to follow",[76,80],{"id":77,"by":78,"text":79},"18699247","tjpnz","I think what's missing from this is \"Show HN\". I don't think anybody is suggesting it be used in place of NGINX or H2O - not yet.",{"id":81,"by":82,"text":83},"18698142","guidedlight","This would be very useful for performance testing",[85,95,103,111],{"value":86,"source":51,"evidence":87},"Not ready for production; lacks HTTPS and security review",[88,91],{"id":89,"by":11,"text":90},"18698796","I agree, I don't claim it's ready Please, treat it as interesting project to follow that has just started, and is surely not meant to be deployed in production environments, at…",{"id":92,"by":93,"text":94},"18698190","BlackLotus89","Was one of the first things I thought as well. Looking at the github page I'm wondering how it performs compared to something like nginx. Since I won't use something without…",{"value":96,"source":58,"evidence":97},"Performance claims unproven; no benchmarks yet",[98,102],{"id":99,"by":100,"text":101},"18698680","matte_black","Any benchmarks?",{"id":61,"by":62,"text":63},{"value":104,"source":58,"evidence":105},"Missing tests and documentation",[106,107],{"id":65,"by":66,"text":67},{"id":108,"by":109,"text":110},"18699075","JdeBP","... or indeed publicfile. * http:\u002F\u002Fcr.yp.to\u002Fpublicfile.html * http:\u002F\u002Fjdebp.eu.\u002FSoftwares\u002Fdjbwares\u002Fguide\u002Fhttpd.html * http:\u002F\u002Fjdebp.eu.\u002FSoftwares\u002Fnosh\u002Fguide\u002Ftcp-socket-accept.html…",{"value":112,"source":58,"evidence":113},"Possible HTTP header parsing bug and directory traversal concern",[114,118],{"id":115,"by":116,"text":117},"18698797","userbinator","If you're looking for low-hanging-fruit to optimise, there's a ton of \"foo = create_string(\u003Csome constant>)\" and then \"delete_string(foo)\" not long afterwards in the code. I also…",{"id":119,"by":120,"text":121},"18698505","detaro","Why? Performance doesn't matter for that use-case. Maybe less features means more secure, on the other hand established projects (or even the basic HTTP implementations in other…",[123,132,138],{"value":124,"source":58,"evidence":125},"Add benchmarks against nginx",[126,127,128],{"id":92,"by":93,"text":94},{"id":99,"by":100,"text":101},{"id":129,"by":130,"text":131},"18698273","CapacitorSet","You can use `ab`. I'll post an issue about that.",{"value":133,"source":51,"evidence":134},"Add HTTPS support",[135],{"id":136,"by":11,"text":137},"18698215","https is one of the first features I'd like to implement in the near future :) Do you know if there is some framework that I could test my server with, against eg. nginx? I was…",{"value":139,"source":58,"evidence":140},"Add functional tests and manual pages",[141,142],{"id":65,"by":66,"text":67},{"id":108,"by":109,"text":110},[144,151],{"value":145,"source":58,"evidence":146},"Why use a multiprocess architecture instead of multithreaded",[147],{"id":148,"by":149,"text":150},"18698280","Traubenfuchs","Why use a multiprocess architecture instead of a multithreaded one?",{"value":152,"source":58,"evidence":153},"What are the advantages over nginx or H2O",[154],{"id":155,"by":156,"text":157},"18698281","continuations","- What are the advantages of using this over something more established such as Nginx or H2O? - README mentioned \"fully non-blocking architecture,\" this only refers to network…",[159,167,171,175,179],{"value":160,"source":58,"evidence":161},"nginx",[162,163],{"id":155,"by":156,"text":157},{"id":164,"by":165,"text":166},"18699054","StreamBright","Why not to use Nginx for this task?",{"value":168,"source":58,"evidence":169},"H2O",[170],{"id":155,"by":156,"text":157},{"value":172,"source":58,"evidence":173},"Lwan",[174],{"id":61,"by":62,"text":63},{"value":176,"source":58,"evidence":177},"publicfile",[178],{"id":108,"by":109,"text":110},{"value":180,"source":58,"evidence":181},"Filed",[182],{"id":183,"by":184,"text":185},"18699954","rkeene2","In this same vein is Filed, it does the minimal amount of work possible before handing off to the kernel to sendfile() the static resource. http:\u002F\u002Ffiled.rkeene.org\u002F",{"comments":187,"answered":188,"key":189},7,4,[190,193,196],{"id":191,"text":192},"18698660","Currently, it's architecture is similar to modern nginx, while simplicity is the point that makes it faster. I'll surely, look at your links and ideas, as this is still highly…",{"id":194,"text":195},"18698602","- Main advantage is simplicity, but architecture is in fact very similar to nginx. So, server should be faster than nginx but scale similarly. But it's all still highly DIY -…",{"id":89,"text":90},{"commenters":198,"max_depth":188,"maker_replies":187,"first_comment_mins":199,"lifespan_hours":200},24,60,23,[202,204,206,210,212,215,218,220,221,224,226,228,230,232,235,236,238,241,243,246,250,255,257,260,261,262,263,266,268,271,275,277],[61,33,46,203,62,33],"project\u002Fneutral\u002Fperformance",[191,33,33,205,11,41],"maker\u002Fneutral\u002Fexecution",[207,33,33,208,209,33],"18698780","other\u002Fneutral\u002Fnone","newaccoutnas",[115,41,41,211,116,33],"project\u002Fcritical\u002Fexecution",[213,41,46,203,214,33],"18699011","zokier",[216,41,33,208,217,33],"18700828","bwindels",[155,31,46,219,156,33],"project\u002Fneutral\u002Fidea",[194,31,33,219,11,41],[222,31,41,211,223,33],"18698751","sigi45",[89,31,33,225,11,41],"maker\u002Fneutral\u002Fnone",[108,31,41,227,109,33],"project\u002Fcritical\u002Fdocs",[229,31,46,203,217,33],"18700904",[77,46,46,231,78,33],"project\u002Fneutral\u002Fnone",[233,188,46,219,234,33],"18705277","kureikain",[65,39,41,211,66,33],[183,237,33,208,184,33],6,[239,187,41,211,240,33],"18699692","jimjag",[148,34,46,242,149,33],"project\u002Fneutral\u002Fdesign",[244,34,33,245,11,41],"18698624","maker\u002Fneutral\u002Fdesign",[247,248,33,249,11,41],"18699731",9,"maker\u002Fpositive\u002Fnone",[251,252,33,253,254,33],"18699790",10,"other\u002Fneutral\u002Fperformance","known",[164,32,41,256,165,33],"project\u002Fcritical\u002Fidea",[81,258,39,259,82,33],12,"project\u002Fpositive\u002Fidea",[92,258,41,211,93,33],[136,258,33,205,11,41],[129,258,46,203,130,33],[264,258,46,203,265,33],"18698874","atakurt",[99,267,46,203,100,33],13,[269,267,33,270,11,41],"18698731","maker\u002Fneutral\u002Fperformance",[272,273,46,219,274,33],"18698469",14,"mirimir",[119,273,41,276,120,33],"project\u002Fcritical\u002Fprivacy",[278,273,39,279,274,33],"18698650","project\u002Fpositive\u002Fprivacy",[],[282,287,291,296,300,304],{"id":283,"name":284,"points":285,"category":286},"18697601","remove.bg",640,"creative",{"id":288,"name":289,"points":290,"category":286},"18701772","Fancy fonts (Beautiful Dingbats)",247,{"id":292,"name":293,"points":294,"category":295},"18673928","Minimal Google Analytics Snippet",171,"web_saas",{"id":297,"name":298,"points":299,"category":295},"18710094","DPAGE",161,{"id":301,"name":302,"points":303,"category":20},"18705661","Goldpinger",158,{"id":305,"name":306,"points":307,"category":308},"18704436","Bubblin",138,"productivity",false,"v2",{"id":312,"name":5,"line":6,"ai":309,"cat":20,"year":13,"points":14,"comments":15,"rec":28,"s":313,"top":18,"kw":314,"maker":11,"domain":10,"tier":19,"attempts":33,"strip":315,"url":9,"mix":316,"praise":74,"objection":86,"sub":21},18697910,-0.25,[24,25,26,27],"30013030101333101300015103330315",[31,32,33,34],1793990983387]