[{"data":1,"prerenderedAt":357},["ShallowReactive",2],{"project-41952779":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":46,"post_text":47,"what":48,"said":67,"maker_in_thread":173,"shape":178,"grid":183,"attempts":318,"same_week":319,"maker_shows":42,"maker_hidden":349,"reader_version":350,"card":351},"41952779","Mdx","Execute your Markdown code blocks, now in Go","title","Show HN: Mdx – Execute your Markdown code blocks, now in Go","https:\u002F\u002Fgithub.com\u002Fdim0x69\u002Fmdx","github.com","dim0x69",1729920860,2024,127,56,676,3515,20,"notable","dev_tools","markdown code runner","cli",[24,25,26,27,28],"markdown","execute code blocks","go","shell scripts","literate programming","mixed",-0.077,{"positive":32,"neutral":33,"mixed":34,"critical":35},5,6,2,9,22,{"idea":38,"execution":41,"docs":43,"design":45},{"positive":39,"critical":40},3,7,{"positive":34,"critical":42},1,{"positive":44,"critical":42},0,{"positive":44,"critical":44},[44,44,32,44,44,44,44,32,42,44,39,39,42,32,44,44,44,44,32,44,32,42,39,44,44,44,39,39,39,44,44,44,44,44,42,42,44,42,42,42],"Hey HN! I recently came across makedown here on HN and loved the concept. Wanting to learn Go, I thought this could be a great starter project - so I started working on my own Go implementation, which I’m calling mdx (https:\u002F\u002Fgithub.com\u002Fdim0x69\u002Fmdx).\n\nKey Features:\n\n- Define dependencies between commands\n\n- Supports shebangs\n\n- Ability to pass arguments to code blocks\n\nWould love feedback and thoughts!\n\nRef. makedown: https:\u002F\u002Fgithub.com\u002Ftzador\u002Fmakedown. Thanks for the idea! :)",{"problem":49,"audience":55,"pricing":55,"motivation":56,"time_to_build":55,"stack":60,"openness":65,"stage":66,"team_size":66},{"value":50,"source":51,"evidence":52},"Running commands and code blocks embedded in Markdown documents","maker",[53],{"id":54},"post",null,{"value":57,"source":51,"evidence":58},"Wanted to learn Go and was inspired by makedown",[59],{"id":54},[61],{"value":62,"source":51,"evidence":63},"Go",[64],{"id":54},"open_source","unknown",{"praise":68,"objections":85,"requests":113,"questions":125,"alternatives":133},[69],{"value":70,"source":71,"evidence":72},"Good idea and nice to see something built and shared","commenter",[73,77,81],{"id":74,"by":75,"text":76},"41956653","admc","I'd like to commend you on building something and putting it out in there in the world, keep doing that! Also the idea of running commands and code from Markdown is obviously…",{"id":78,"by":79,"text":80},"41956802","kitd","Congratulations! Nice work. If you like this, another similar tool, though one specifically geared towards builds, is xc. https:\u002F\u002Fxcfile.dev\u002F",{"id":82,"by":83,"text":84},"41954536","Galanwe","Cool, at last we can now `curl | mdx` Github readmes instead of copy pasting `curl | bash` from them!",[86],{"value":87,"source":71,"evidence":88},"Name collides with the well-known MDX (Markdown with JSX) technology",[89,93,97,101,105,109],{"id":90,"by":91,"text":92},"41966740","Serenacula","I would put forward that mdx is not a great choice of name, given that it already has a standard meaning in the markdown ecosystem: markdown with inline react components.",{"id":94,"by":95,"text":96},"41953159","nicoburns","You might want to reconsider the name. MDX is already a well-known technology that combines markdown with JSX https:\u002F\u002Fgithub.com\u002Fmdx-js\u002Fmdx\u002F",{"id":98,"by":99,"text":100},"41954163","zoover2020","Came here to say this, confusion ensued.",{"id":102,"by":103,"text":104},"41954775","jrajav","It also sees very wide use, it's not just a proof of concept - most who've used any recent major version of Storybook (84k stars) would know about it:…",{"id":106,"by":107,"text":108},"41957119","dcmatt","Also Multidimensional expressions, popular in OLAP cubes. https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FMultiDimensional_eXpressions",{"id":110,"by":111,"text":112},"41962183","lsaferite","I came to make the same comment, so glad it's been brought up and reenforced. https:\u002F\u002Fmdxjs.com\u002F",[114,121],{"value":115,"source":71,"evidence":116},"More examples of practical use",[117],{"id":118,"by":119,"text":120},"41953443","eterps","Could use some more (or better?) examples of how this can be useful.",{"value":122,"source":71,"evidence":123},"Project-wide config, interactive stdin, env handling and variable passing",[124],{"id":74,"by":75,"text":76},[126],{"value":127,"source":71,"evidence":128},"How does it compare to existing similar tools like mdsh?",[129],{"id":130,"by":131,"text":132},"41955390","oezi","Can you compare to https:\u002F\u002Fgithub.com\u002Fbashup\u002Fmdsh ?",[134,142,149,159,163,169],{"value":135,"source":71,"evidence":136},"runme.dev",[137,138],{"id":74,"by":75,"text":76},{"id":139,"by":140,"text":141},"41959371","mdaniel","RunMe[1] seems like it is what you're looking for: https:\u002F\u002Fdocs.runme.dev\u002Fusage\u002Frun-tag 1: https:\u002F\u002Fgithub.com\u002Fstateful\u002Frunme#runme-runs-markdown-- (Apache 2, golang) I wondered…",{"value":143,"source":71,"evidence":144},"rundown",[145],{"id":146,"by":147,"text":148},"41955037","starkparker","cf. rundown https:\u002F\u002Fgithub.com\u002Felseano\u002Frundown",{"value":150,"source":71,"evidence":151},"Org Babel",[152,156],{"id":153,"by":154,"text":155},"41954908","dingnuts","ah, someone has reimplemented another feature of Org Mode. Well, this will mean Org files exported to Markdown can remain executable just like they were in Emacs, so maybe this…",{"id":157,"by":154,"text":158},"41955750","Yes, the feature is called org-babel and it lets you write and execute polyglot literate programs.",{"value":160,"source":71,"evidence":161},"mdsh",[162],{"id":130,"by":131,"text":132},{"value":164,"source":71,"evidence":165},"baker",[166],{"id":167,"by":131,"text":168},"41954674","Similar in Ruby\u002Fshameless pluck: https:\u002F\u002Fgithub.com\u002Fcoezbek\u002Fbaker I call this a Project-Setup-as-Code tool. Supports backticks for shell and triple backticks for executing Ruby…",{"value":170,"source":71,"evidence":171},"xc",[172],{"id":78,"by":79,"text":80},{"comments":42,"answered":44,"key":174},[175],{"id":176,"text":177},"41959818","I did not know runme.dev. Thanks for reaching out! It looks absolutely awesome",{"commenters":179,"max_depth":180,"maker_replies":42,"first_comment_mins":181,"lifespan_hours":182},41,4,103,59,[184,188,190,192,195,196,199,202,204,207,211,213,215,217,220,224,227,230,232,234,237,240,243,246,248,249,252,256,260,263,265,268,273,274,277,282,286,288,291,295,299,303,305,306,309,312,313,316,317],[185,44,44,186,187,44],"41954165","other\u002Fneutral\u002Fnone","luckman212",[189,44,44,186,187,44],"41957190",[153,42,32,191,154,44],"project\u002Fpositive\u002Fidea",[193,42,44,194,131,44],"41955415","commenter\u002Fneutral\u002Fnone",[157,42,44,194,154,44],[197,42,44,194,198,44],"41956447","alwayslikethis",[200,42,44,194,201,44],"41955702","VyseofArcadia",[203,42,44,194,131,44],"41955941",[205,42,32,191,206,44],"41956717","bluesnews",[208,42,39,209,210,44],"41957625","project\u002Fneutral\u002Fidea","Bromeo",[90,34,42,212,91,44],"project\u002Fcritical\u002Fidea",[167,39,44,214,131,44],"other\u002Fneutral\u002Fidea",[82,180,39,216,83,44],"project\u002Fmixed\u002Fidea",[218,180,39,216,219,44],"41955132","lioeters",[221,180,42,222,223,44],"41955170","project\u002Fcritical\u002Fexecution","aziis98",[225,32,32,191,226,44],"41956547","drunken_thor",[228,33,44,186,229,44],"41954907","theK",[231,33,44,186,154,44],"41954941",[233,33,44,186,140,44],"41959356",[235,33,44,186,236,44],"41959650","alexflpf",[238,33,44,186,239,44],"41959942","karthink",[241,40,44,214,242,44],"41973005","josephbergevin",[74,244,32,245,75,44],8,"maker\u002Fpositive\u002Fexecution",[176,244,44,247,11,42],"commenter\u002Fpositive\u002Fnone",[78,35,32,245,79,44],[118,250,42,251,119,44],10,"project\u002Fcritical\u002Fdocs",[253,250,39,254,255,44],"41953470","project\u002Fneutral\u002Fdocs","glyphacki",[257,250,44,258,259,44],"41954543","other\u002Fneutral\u002Fdocs","DJBunnies",[261,250,44,214,262,44],"41954598","codetrotter",[264,250,44,214,262,44],"41954624",[266,250,44,194,267,44],"41964607","sourishkrout",[269,270,39,271,272,44],"41956378",11,"project\u002Fneutral\u002Fdesign","pomdtr",[139,270,44,194,140,44],[130,275,39,276,131,44],12,"project\u002Fneutral\u002Fnone",[278,279,39,280,281,44],"41953144",13,"maker\u002Fneutral\u002Fnone","lagniappe",[283,284,44,214,285,44],"41956778",14,"huac",[146,287,44,214,147,44],15,[289,287,44,186,290,44],"41962795","kchr",[292,293,44,214,294,44],"41953177",16,"wdavidw",[296,297,44,214,298,44],"41954900",17,"javajosh",[300,301,44,214,302,44],"41953918",18,"jpillora",[94,304,42,212,95,44],19,[98,304,42,212,99,44],[307,304,39,209,308,44],"41954579","edsammy",[310,304,44,186,311,44],"41954799","no_wizard",[102,304,42,212,103,44],[314,304,42,212,315,44],"41956362","ValentineC",[106,304,42,212,107,44],[110,304,42,212,111,44],[],[320,325,330,335,340,345],{"id":321,"name":322,"points":323,"category":324},"41934746","2048",669,"games",{"id":326,"name":327,"points":328,"category":329},"41930628","RF Hunter",594,"hardware",{"id":331,"name":332,"points":333,"category":334},"41997648","AI OmniGen",169,"ai",{"id":336,"name":337,"points":338,"category":339},"41945458","Trench",155,"data",{"id":341,"name":342,"points":343,"category":344},"41935166","Animal Body Fat Match",142,"consumer_social",{"id":346,"name":347,"points":348,"category":344},"41980681","Ding Dong Doorbell",140,false,"v2",{"id":352,"name":5,"line":6,"ai":349,"cat":20,"year":13,"points":14,"comments":15,"rec":29,"s":353,"top":18,"kw":354,"maker":11,"domain":10,"tier":19,"attempts":44,"strip":355,"url":9,"mix":356,"praise":70,"objection":87,"sub":21},41952779,-0.08,[24,25,26,27,28],"0050000510331500005051300033300000110111",[32,33,34,35],1794036663479]