[{"data":1,"prerenderedAt":284},["ShallowReactive",2],{"project-9399889":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":29,"sentiment":30,"stance_mix":31,"scored_comments":36,"aspects":37,"strip":43,"post_text":46,"what":47,"said":83,"maker_in_thread":157,"shape":165,"grid":170,"attempts":246,"same_week":247,"maker_shows":158,"maker_hidden":277,"reader_version":278,"card":279},"9399889","NebulaDB","Well, I've only been programming for two years and I'm new to advanced concepts like compiling etc.","maker","Show HN: NebulaDB, my first attempt at a database","https:\u002F\u002Fgithub.com\u002Fincrediblesound\u002FnebulaDB","github.com","jhedwards",1429373129,2015,30,35,914,2565,36,"shown","data","experimental database","library",[24,25,26,27,28],"database","triple store","c compiler","datalog","nosql","roasted",-0.16,{"positive":32,"neutral":33,"mixed":34,"critical":35},1,4,0,7,12,{"design":38,"performance":39,"idea":41,"docs":42},{"positive":34,"critical":33},{"positive":34,"critical":40},2,{"positive":32,"critical":34},{"positive":34,"critical":32},[32,44,34,34,34,34,44,34,34,44,34,34,34,34,34,34,34,34,34,34,32,34,32,34,34,34,32,34,32,34,32,45,32,34,44],3,5,null,{"problem":46,"audience":46,"pricing":46,"motivation":48,"time_to_build":46,"stack":60,"openness":80,"stage":81,"team_size":82},{"value":49,"source":7,"evidence":50},"Maker built it as a first experiment in database design, for learning",[51,54,57],{"id":52,"by":11,"text":53},"9401444","Well, I've only been programming for two years and I'm new to advanced concepts like compiling etc. There aren't really simple tutorials on how to make a database afaik, so I…",{"id":55,"by":11,"text":56},"9401605","Weird, most programmers I know consider compilers to be at least somewhat advanced. To answer your question, two years ago I knew nothing about programming, I was poor, living in…",{"id":58,"by":11,"text":59},"9401957","I would have preferred you said something like \"hey nice try, but the overhead of compiling a c file every time you query will quickly make the database unusable\" or \"this design…",[61,69,76],{"value":62,"source":63,"evidence":64},"C","commenter",[65],{"id":66,"by":67,"text":68},"9400493","danbruc","How Does it Work? NebulaDB manages a c file that is full of structs that have arrays of pointers to links. When you save a query new structs are added to the file along with c…",{"value":70,"source":63,"evidence":71},"Node.js",[72],{"id":73,"by":74,"text":75},"9401137","xrstf","Oh how I love it to fetch a package via NPM, thinking it's gonna be JS-only and then being greeted by compiler errors because I don't have a C compiler setup on my Windows…",{"value":77,"source":7,"evidence":78},"JavaScript",[79],{"id":55,"by":11,"text":56},"unknown","prototype","solo",{"praise":84,"objections":96,"requests":127,"questions":139,"alternatives":144},[85],{"value":86,"source":63,"evidence":87},"Interesting unconventional design, a useful learning experiment",[88,92],{"id":89,"by":90,"text":91},"9401619","alphapapa","People come up with all kinds of \"odd choices\" when they haven't been indoctrinated with existing dogma (I don't necessarily mean that in a negative way, despite the…",{"id":93,"by":94,"text":95},"9403502","yid","Ignore the negativity in this thread, OP. The rough design you've come up with is called a \"triple store\". You might find it interesting to learn about how powerful the…",[97,110,116,120],{"value":98,"source":63,"evidence":99},"Compiling a C file per query is very slow and does not scale",[100,104,107],{"id":101,"by":102,"text":103},"9400565","Mahn","That doesn't sound very efficient. OP, what is the rationale behind this?",{"id":105,"by":67,"text":106},"9404111","Here are some things you will probably notice. Start with a really small database, maybe 10,000 facts. How long does a query take? Half a second? One second? I am just guessing…",{"id":108,"by":11,"text":109},"9405454","So I timed the compile step and it gets quite long at one second for 10,000 facts, about a 1\u002F10th of a second per 1000 entries. I wasn't expecting my first attempt at a database…",{"value":111,"source":63,"evidence":112},"Design is unconventional and unlike standard database systems",[113],{"id":114,"by":67,"text":115},"9403780","Let me try to show you my point of view. I see a link on Hacker News about a new database. Now I think there is someone who is serious about developing a database and is…",{"value":117,"source":63,"evidence":118},"Setup requires a C compiler, undocumented in npm package",[119],{"id":73,"by":74,"text":75},{"value":121,"source":63,"evidence":122},"Query syntax is hard to read",[123],{"id":124,"by":125,"text":126},"9400967","monk_e_boy","Your 'syntax' is very hard to read: ['* ','->','admin'] Couldn't you write a little parser to understand this: \" * -> admin\" I doubt the overhead would be much. [edit] a * is…",[128,132],{"value":129,"source":63,"evidence":130},"Explain the rationale for the design",[131],{"id":101,"by":102,"text":103},{"value":133,"source":63,"evidence":134},"Simpler query syntax",[135,136],{"id":124,"by":125,"text":126},{"id":137,"by":11,"text":138},"9401470","Good idea, I think I'll do that. Thanks!",[140],{"value":141,"source":63,"evidence":142},"How does update and delete work in the C source",[143],{"id":105,"by":67,"text":106},[145,153],{"value":146,"source":63,"evidence":147},"Triple stores and datalog databases",[148,149],{"id":93,"by":94,"text":95},{"id":150,"by":151,"text":152},"9401429","amirouche","It looks like a \"datalog database\"",{"value":154,"source":63,"evidence":155},"Standard SQL databases",[156],{"id":105,"by":67,"text":106},{"comments":35,"answered":158,"key":159},6,[160,161,162],{"id":52,"text":53},{"id":55,"text":56},{"id":163,"text":164},"9401465","I highly doubt people will have trouble distinguishing my project from production-ready databases.",{"commenters":166,"max_depth":167,"maker_replies":35,"first_comment_mins":168,"lifespan_hours":169},16,9,147,74,[171,173,175,179,181,182,184,187,188,190,193,196,199,202,204,207,209,211,213,215,218,220,221,222,225,227,229,231,232,234,237,239,241,242,244],[66,34,32,172,67,34],"project\u002Fcritical\u002Fdesign",[101,34,44,174,102,34],"project\u002Fneutral\u002Fperformance",[176,34,34,177,178,34],"9400750","commenter\u002Fneutral\u002Fnone","ChiperSoft",[180,34,34,177,102,34],"9401064",[89,34,34,177,90,34],[52,34,34,183,11,32],"maker\u002Fneutral\u002Fnone",[185,34,44,183,186,34],"9401548","theseoafs",[55,34,34,183,11,32],[189,34,34,177,67,34],"9401682",[191,34,44,192,67,34],"9401653","maker\u002Fneutral\u002Fidea",[194,34,34,177,195,34],"9400869","xeromal",[197,34,34,198,67,34],"9400924","other\u002Fneutral\u002Fnone",[200,34,34,198,201,34],"9400971","omni",[203,34,34,198,67,34],"9401000",[205,34,34,198,206,34],"9401063","hellbanner",[208,34,34,198,90,34],"9401609",[210,34,34,198,206,34],"9415989",[163,34,34,212,11,32],"project\u002Fneutral\u002Fnone",[214,34,34,177,67,34],"9401678",[216,34,34,177,217,34],"9401822","robertfw",[219,34,32,172,67,34],"9401875",[58,34,34,177,11,32],[114,34,32,172,67,34],[223,34,34,177,224,34],"9402260","jmadsen",[226,34,34,177,67,34],"9403796",[228,34,34,192,11,32],"9403935",[105,34,32,230,67,34],"project\u002Fcritical\u002Fperformance",[108,34,34,174,11,32],[233,34,32,230,67,34],"9407041",[235,34,34,177,236,34],"9404202","ketralnis",[73,34,32,238,74,34],"project\u002Fcritical\u002Fdocs",[93,32,45,240,94,34],"project\u002Fpositive\u002Fidea",[124,40,32,172,125,34],[137,40,34,243,11,32],"commenter\u002Fneutral\u002Fdesign",[150,44,44,245,151,34],"project\u002Fneutral\u002Fidea",[],[248,253,258,263,268,272],{"id":249,"name":250,"points":251,"category":252},"9386004","ACUMAN",430,"ai",{"id":254,"name":255,"points":256,"category":257},"9410452","Kubist",231,"creative",{"id":259,"name":260,"points":261,"category":262},"9413239","Infinite Monkeys",93,"learning_science",{"id":264,"name":265,"points":266,"category":267},"9414449","Theme Creator",91,"dev_tools",{"id":269,"name":270,"points":271,"category":20},"9408208","Linkurious",86,{"id":273,"name":274,"points":275,"category":276},"9420003","Credstash",69,"infrastructure",false,"v2",{"id":280,"name":5,"line":6,"ai":277,"cat":20,"year":13,"points":14,"comments":15,"rec":29,"s":30,"top":18,"kw":281,"maker":11,"domain":10,"tier":19,"attempts":34,"strip":282,"url":9,"mix":283,"praise":86,"objection":98,"sub":21},9399889,[24,25,26,27,28],"13000030030000000000101000101015103",[32,33,34,35],1794036530494]