[{"data":1,"prerenderedAt":350},["ShallowReactive",2],{"project-24262408":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":42,"post_text":44,"what":45,"said":74,"maker_in_thread":166,"shape":177,"grid":181,"attempts":314,"same_week":315,"maker_shows":34,"maker_hidden":342,"reader_version":343,"card":344},"24262408","Mys","an attempt to create a statically typed Python-like language","title","Show HN: Mys – an attempt to create a statically typed Python-like language","https:\u002F\u002Fgithub.com\u002Feerimoq\u002Fmys","github.com","eerimoq",1598287318,2020,50,56,1069,3028,36,"notable","languages","programming language","other",[24,25,26,27],"statically typed python","python compiler","embedded language","type hints","curious",-0.226,{"positive":31,"neutral":32,"mixed":33,"critical":34},2,8,0,5,15,{"idea":37,"execution":39,"design":40,"docs":41},{"positive":31,"critical":38},3,{"positive":33,"critical":31},{"positive":33,"critical":33},{"positive":33,"critical":33},[33,33,33,38,33,33,33,33,33,38,38,33,34,33,43,33,38,33,33,43,33,34,38,33,33,33,33,33,33,33,33,43,43,38,33,33,33,43,33,38],1,null,{"problem":46,"audience":44,"pricing":44,"motivation":56,"time_to_build":44,"stack":60,"openness":71,"stage":72,"team_size":73},{"value":47,"source":48,"evidence":49},"Python is slow and hard to use on embedded systems; wants fast, small binaries from typed Python.","maker",[50,53],{"id":51,"by":11,"text":52},"24263852","It's a wide question, and I don't have a good answer. One obvious difference is the syntax. I prefer Python's syntax over Nim's, but at the same time I find Python slow sometimes…",{"id":54,"by":11,"text":55},"24264471","For me it's pretty simple. I love Python. I like speed. I like embedded. This is an attempt to take advantage of Python's type hints to create fast and hopefully small binaries…",{"value":57,"source":48,"evidence":58},"Loves Python and speed and embedded; wants to use Python type hints for small fast binaries.",[59],{"id":54,"by":11,"text":55},[61,67],{"value":62,"source":48,"evidence":63},"C",[64],{"id":65,"by":11,"text":66},"24264020","Well, probably not. Nim is similar, but I prefer Mys' Python-like syntax. Mys' toolchain will probably be similar to Nim. That is, generating C\u002FC++ code. Sorry about the…",{"value":68,"source":48,"evidence":69},"C++",[70],{"id":65,"by":11,"text":66},"open_source","prototype","unknown",{"praise":75,"objections":88,"requests":110,"questions":126,"alternatives":131},[76],{"value":77,"source":78,"evidence":79},"Excitement for a statically typed, faster Python-like language.","commenter",[80,84],{"id":81,"by":82,"text":83},"24268246","scottrogowski","I love this. I have nothing else to say except that I want this to happen. Python is an amazing language which is missing two things - static types and speed. I starred your repo…",{"id":85,"by":86,"text":87},"24264173","elcritch","It took me a couple of weeks to realize Nim’s semantics are really different. Despite that Nim feels like an alternate reality of Python 2 -> 3 that went more lispy and a bit…",[89,100],{"value":90,"source":78,"evidence":91},"Calling Python strongly vs statically typed in the title was debated and corrected.",[92,96],{"id":93,"by":94,"text":95},"24263601","dec0dedab0de","This looks cool. Is there anything specific you're trying to do with Mys that another language didn't do? Nim comes to mind as being in a similar space. Small nitpick about the…",{"id":97,"by":98,"text":99},"24263672","pmoriarty","Strongly typed? You mean statically typed? See \"What to know before debating type systems\": http:\u002F\u002Fblogs.perl.org\u002Fusers\u002Fovid\u002F2010\u002F08\u002Fwhat-to-know-before-debating-type-systems.html",{"value":101,"source":78,"evidence":102},"Memory management via reference counting may leak on cycles.",[103,106],{"id":104,"by":86,"text":105},"24264243","P.S. Since you’re using C++ shared pointers, you might want a cycle detection. But like Nim’s new ARC you can let the programmer beware and ensure their programs don’t produce…",{"id":107,"by":108,"text":109},"24268348","toxik","> We don’t need a GC because RC ``` L = [] L.append(L) ```",[111],{"value":112,"source":78,"evidence":113},"Compare with existing options like Cython, mypyc and Nim.",[114,118,122],{"id":115,"by":116,"text":117},"24268321","Nasreddin_Hodja","Why not to just use Cython?",{"id":119,"by":120,"text":121},"24264865","h8hawk","Have you look at mypyc? https:\u002F\u002Fgithub.com\u002Fpython\u002Fmypy Its a compiler that support subset of python and mypy's team including Guido work on it. It would be great if this kind of…",{"id":123,"by":124,"text":125},"24263519","nicoburns","Question for the OP seeing as this is a Show HN: how does this compare to Nim (https:\u002F\u002Fnim-lang.org\u002F)?",[127],{"value":128,"source":78,"evidence":129},"How does it compare to Nim?",[130],{"id":123,"by":124,"text":125},[132,143,151,155,162],{"value":133,"source":78,"evidence":134},"Cython",[135,139],{"id":136,"by":137,"text":138},"24264653","mlthoughts2018","Cython is a great tool for this. It’s a superset of Python with full static compilation support for native CPython or for pure C or C++ extension modules. https:\u002F\u002Fcython.org\u002F",{"id":140,"by":141,"text":142},"24268130","nerdponx","For the sake of completeness, might as well mention Nuitka [1] (another Python -> C compiler), Cython (Python-like language that compiles to C), and Numba (LLVM-based JIT…",{"value":144,"source":78,"evidence":145},"mypyc",[146,150],{"id":147,"by":148,"text":149},"24264526","viraptor","And at mypyc https:\u002F\u002Fgithub.com\u002Fpython\u002Fmypy\u002Ftree\u002Fmaster\u002Fmypyc",{"id":119,"by":120,"text":121},{"value":152,"source":78,"evidence":153},"Nim",[154],{"id":123,"by":124,"text":125},{"value":156,"source":78,"evidence":157},"Shedskin",[158],{"id":159,"by":160,"text":161},"24263607","sitkack","Given that the OP is the github project owner, are you aware of https:\u002F\u002Fchocopy.org\u002F ? You might want to also look at Shedskin, https:\u002F\u002Fgithub.com\u002Fshedskin\u002Fshedskin which…",{"value":163,"source":78,"evidence":164},"ChocoPy",[165],{"id":159,"by":160,"text":161},{"comments":167,"answered":168,"key":169},11,7,[170,173,176],{"id":171,"text":172},"24263920","No, I am not aware of ChocoPy. Thanks for letting me know. Shedskin uses the Python interpreter if I remember correctly. I aim not to.",{"id":174,"text":175},"24264569","This looks promising indeed. Thanks for sharing.",{"id":51,"text":52},{"commenters":178,"max_depth":168,"maker_replies":167,"first_comment_mins":179,"lifespan_hours":180},34,88,162,[182,186,189,192,194,196,198,199,201,202,204,205,208,210,212,214,216,219,221,224,226,230,232,234,236,238,240,242,246,249,250,252,255,258,261,263,266,268,270,272,274,277,279,280,284,287,289,292,294,297,300,303,306,310,311,312],[183,33,33,184,185,33],"24264129","other\u002Fneutral\u002Fnone","BerislavLopac",[187,33,33,184,188,33],"24265039","HhE3334R7hf1lLF",[190,33,33,184,191,33],"24268499","alanbernstein",[193,33,33,184,185,33],"24268895",[159,43,38,195,160,33],"maker\u002Fneutral\u002Fnone",[197,43,33,184,160,33],"24263618",[171,43,33,195,11,43],[200,43,33,184,160,33],"24268242",[147,43,33,184,148,33],[174,43,33,203,11,43],"commenter\u002Fneutral\u002Fnone",[140,43,33,184,141,33],[206,43,33,184,207,33],"24330180","t-vi",[123,31,38,209,124,33],"project\u002Fneutral\u002Fidea",[51,31,33,211,11,43],"project\u002Fneutral\u002Fdesign",[104,31,38,213,86,33],"project\u002Fneutral\u002Fexecution",[215,31,33,203,11,43],"24264492",[217,31,38,211,218,33],"24263955","nepeckman",[85,31,34,220,86,33],"project\u002Fpositive\u002Fidea",[222,31,33,184,223,33],"24270026","sullyj3",[107,38,43,225,108,33],"project\u002Fcritical\u002Fexecution",[227,228,33,184,229,33],"24263569",4,"dukoid",[231,228,33,203,11,43],"24263973",[233,228,38,209,229,33],"24264116",[235,228,33,203,11,43],"24264277",[237,228,33,184,229,33],"24264502",[239,228,33,203,11,43],"24264585",[136,34,43,241,137,33],"project\u002Fcritical\u002Fidea",[243,244,33,184,245,33],"24270585",6,"anentropic",[247,168,33,184,248,33],"24268574","hpvic03",[81,32,34,220,82,33],[93,251,38,209,94,33],9,[253,251,33,203,254,33],"24263832","aidenn0",[256,251,33,203,257,33],"24264019","striking",[259,251,33,203,260,33],"24264909","lgeorget",[262,251,33,203,257,33],"24265175",[264,251,33,203,265,33],"24265366","didibus",[267,251,33,203,254,33],"24265682",[269,251,33,203,94,33],"24265844",[271,251,33,203,257,33],"24266011",[273,251,33,203,254,33],"24266903",[275,251,33,203,276,33],"24268469","SloopJon",[278,251,33,203,191,33],"24268529",[65,251,33,195,11,43],[281,282,43,225,283,33],"24263822",10,"dpc_pw",[285,167,33,184,286,33],"24268555","trumpeta",[115,288,43,241,116,33],12,[97,290,38,291,98,33],13,"project\u002Fneutral\u002Fdocs",[293,290,33,195,11,43],"24263891",[295,290,33,184,296,33],"24264678","azhenley",[298,290,33,184,299,33],"24266035","aw1621107",[301,290,33,184,302,33],"24266828","ajkjk",[304,290,33,184,305,33],"24271456","lioeters",[307,308,43,241,309,33],"24264358",14,"tabtab",[54,308,33,195,11,43],[119,308,38,209,120,33],[313,308,33,209,11,43],"24264940",[],[316,320,325,330,334,338],{"id":317,"name":318,"points":319,"category":20},"24286335","ztext.js",257,{"id":321,"name":322,"points":323,"category":324},"24249646","rust_cmd_lib",231,"dev_tools",{"id":326,"name":327,"points":328,"category":329},"24258098","ultimate-go",185,"learning_science",{"id":331,"name":332,"points":333,"category":324},"24221708","Analysis Tools",175,{"id":335,"name":336,"points":337,"category":324},"24269609","Will It CORS?",152,{"id":339,"name":340,"points":341,"category":324},"24280413","Vim-Like Layer for Xorg and Wayland",148,false,"v2",{"id":345,"name":5,"line":6,"ai":342,"cat":20,"year":13,"points":14,"comments":15,"rec":28,"s":346,"top":18,"kw":347,"maker":11,"domain":10,"tier":19,"attempts":33,"strip":348,"url":9,"mix":349,"praise":77,"objection":90,"sub":21},24262408,-0.23,[24,25,26,27],"0003000003305010300105300000000113000103",[31,32,33,34],1793991015072]