[{"data":1,"prerenderedAt":490},["ShallowReactive",2],{"project-27333772":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":79,"maker_in_thread":246,"shape":254,"grid":257,"attempts":452,"same_week":453,"maker_shows":33,"maker_hidden":482,"reader_version":483,"card":484},"27333772","Kalk","A calculator with math syntax, complex numbers","title","Show HN: Kalk, A calculator with math syntax, complex numbers","https:\u002F\u002Fkalk.strct.net","kalk.strct.net","paddim8",1622387270,2021,239,84,166,2533,7,"notable","dev_tools","calculator","web_app",[21,24,25,26,27],"math syntax","complex numbers","webassembly","rust","mixed",-0.085,{"positive":31,"neutral":32,"mixed":33,"critical":34},10,16,1,17,44,{"design":37,"execution":39,"idea":40,"performance":43},{"positive":33,"critical":38},0,{"positive":38,"critical":31},{"positive":41,"critical":42},4,2,{"positive":42,"critical":44},5,[46,46,44,46,46,44,46,44,33,33,33,33,33,38,46,33,33,38,33,33,38,38,38,38,38,33,44,33,44,44,33,46,33,46,46,46,46,46,44,44],3,null,{"problem":49,"audience":47,"pricing":47,"motivation":56,"time_to_build":47,"stack":62,"openness":77,"stage":77,"team_size":78},{"value":50,"source":51,"evidence":52},"Doing math calculations with math-like syntax and symbols","maker",[53],{"id":54,"by":11,"text":55},"27333773","kalk is a calculator that has syntax highlighting, automatically turns names into symbols (eg. sqrt to √), supports math-like syntax (eg. f(x) = x(2sinx + 3) , estimation of…",{"value":57,"source":51,"evidence":58},"Started as a quick thing made when bored, expanded over time",[59],{"id":60,"by":11,"text":61},"27341777","Yeah the name isn't very good. This wasn't actually supposed to become something, it was a quick thing I made when I was bored, that suddenly expanded into all this, haha. I like…",[63,69,73],{"value":64,"source":51,"evidence":65},"Rust",[66],{"id":67,"by":11,"text":68},"27336045","It was actually surprisingly seamless with Rust. \"wasmpack\" pretty much did it all for me. I added some attributes (well, whatever they're called in Rust) to function and struct…",{"value":70,"source":51,"evidence":71},"WebAssembly",[72],{"id":54,"by":11,"text":55},{"value":74,"source":51,"evidence":75},"wasm-pack",[76],{"id":67,"by":11,"text":68},"unknown","solo",{"praise":80,"objections":111,"requests":158,"questions":198,"alternatives":213},[81,97,104],{"value":82,"source":83,"evidence":84},"Useful, interactive calculator with nice syntax","commenter",[85,89,93],{"id":86,"by":87,"text":88},"27339710","psyklic","This is a really great calculator, will definitely be using it! FYI I noticed there is a very similar product with the same name: https:\u002F\u002Fkalk.dev\u002F",{"id":90,"by":91,"text":92},"27337397","krick","This looks extremely useful, even though currently makes quite a few mistakes, as noted by others. A few features that could be nice: 1) It handles 1 000 000 * 3 just fine, but…",{"id":94,"by":95,"text":96},"27334575","kseistrup","I usually use the interactive Python prompt when doing calculations, but kalk takes it up a notch. Well done! (The pre-built Linux binary segfaults before it can show the result…",{"value":98,"source":83,"evidence":99},"Handles 0.1+0.2 correctly",[100],{"id":101,"by":102,"text":103},"27337535","jeroenhd","An interactive calculator that passes the 0.1+0.2 test, very nice.",{"value":105,"source":83,"evidence":106},"Beautiful web GUI and source code",[107],{"id":108,"by":109,"text":110},"27335919","jll29","Beautiful Web GUI, beautiful source code, \"cargo install kalk_cli\" && it works like a charm! Thanks for sharing this.",[112,126,132,143,153],{"value":113,"source":83,"evidence":114},"Gives wrong results for percentage expressions like 2 + 2 * 10%",[115,119,122],{"id":116,"by":117,"text":118},"27336112","dmitriid","For fun, try to run this: `2 + 2 * 10%` in all calculators you have access to: on you phone, on your desktop, in kalk. As they say, \"the answer will surprise you\" :)",{"id":120,"by":117,"text":121},"27336530","Wolfram Alpha and iOS also give 2.2 On MacOS the answer is 2.4 In kalk it's 2.002 On Windows it's 0.4 in simple calc, and 2 in programmer calc (and there's no % in engineering…",{"id":123,"by":124,"text":125},"27337084","kzrdude","Is there an explanation for the answer in kalk? Seems buggy It seems like an expression like \"1 * 10%\" in kalk is computed as if it means \"1% * 10%\" => \"0.01 * 0.1\" => \"0.001\"",{"value":127,"source":83,"evidence":128},"Crashes on SIGILL for pre-built Linux binary",[129],{"id":130,"by":95,"text":131},"27334756","Any calculation, even simple ones ``` >> 1+2 fish: Job 1, '.\u002Fkalk-linux' terminated by signal SIGILL (Illegal instruction) ```",{"value":133,"source":83,"evidence":134},"Higher-order derivatives are inaccurate",[135,139],{"id":136,"by":137,"text":138},"27335503","Bootvis","This seems off: ``` >> f(x) = x^2 >> f''(4) 0.9995297887 ```",{"id":140,"by":141,"text":142},"27338422","onhn","Note that if f(x) = x^2 then the second derivative f''(x) = 2, so it looks like you're off by a factor of 2 (as well as the accuracy issue).",{"value":144,"source":83,"evidence":145},"Big number support missing; 3^4^5 gives infinity",[146,150],{"id":147,"by":148,"text":149},"27335323","artfulhippo","Can you support big numbers? When I input 3^4^5, it outputs infinity.",{"id":151,"by":11,"text":152},"27335365","The desktop program does technically have the capabilities of that, but lately I've been focusing a lot more on the web version, that unfortunately doesn't, so results are 64-bit…",{"value":154,"source":83,"evidence":155},"Name clashes with another kalk calculator",[156,157],{"id":86,"by":87,"text":88},{"id":60,"by":11,"text":61},[159,166,174,178,188],{"value":160,"source":83,"evidence":161},"Support Unicode superscripts, subscripts and operators",[162],{"id":163,"by":164,"text":165},"27338946","chrismorgan","I immediately found a few Unicode features I hoped were supported but aren’t. Superscripts: firstly numerals, like 3² = 9, but ideally then letters as well, e.g. 3ⁱ = 3^i. Might…",{"value":167,"source":83,"evidence":168},"Digit grouping in output",[169,170],{"id":90,"by":91,"text":92},{"id":171,"by":172,"text":173},"27338326","StavrosK","> At least as an optional setting (even though I have no idea why someone wouldn't want that). Copy\u002Fpasting? At least each three zeroes could alternate in color, to make it…",{"value":175,"source":83,"evidence":176},"Reference last result beyond ans",[177],{"id":90,"by":91,"text":92},{"value":179,"source":83,"evidence":180},"Symbolic derivatives and integrals",[181,185],{"id":182,"by":183,"text":184},"27335057","eigenket","Any interest in adding more symbolic stuff? There often isn't really any reason to do derivatives numerically. While I was looking at the derivatives I noticed the word…",{"id":186,"by":11,"text":187},"27335160","I have thought about doing derivatives and such algebraically when possible. It should certainly be doable, and I already have a system for moving things around to achieve these…",{"value":189,"source":83,"evidence":190},"Package manager distribution such as Homebrew",[191,195],{"id":192,"by":193,"text":194},"27342520","dividedbyzero","Pity it's not in homebrew. I realize I can manually download a binary and manually install it and make a note somewhere where I got it from in case I forget and then periodically…",{"id":196,"by":11,"text":197},"27346991","Yeah maybe it should be on homebrew and other package managers. Didn't actually expect it to get this much attention! I'll see what I can do",[199,206],{"value":200,"source":83,"evidence":201},"How was the experience using WebAssembly",[202],{"id":203,"by":204,"text":205},"27335899","math-dev","Congrats! I write calculators myself from time to time, but this sounds very impressive :) How was your experience using webassembly? Any good guides that helped you with that…",{"value":207,"source":83,"evidence":208},"Why e^(iπ) gives unexpected result",[209],{"id":210,"by":211,"text":212},"27339202","sillysaurusx","For what it’s worth, my first session went like this: ``` >> e^iπ+1 2.6974097548 + 2.6435590641i >> e^iπ 1.6974097548 + 2.6435590641i ``` In fairness, I still don’t know where…",[214,221,228,235,242],{"value":215,"source":83,"evidence":216},"Soulver",[217],{"id":218,"by":219,"text":220},"27336234","npongratz","Performing the calculation with Soulver did not surprise me (being what I calculated in my head ahead of time): ``` 2 + 2 × 10% = 2.2 ``` At the risk of admitting my ignorance,…",{"value":222,"source":83,"evidence":223},"Qalculate",[224],{"id":225,"by":226,"text":227},"27342663","kqbx","I'm a big fan of https:\u002F\u002Fqalculate.github.io\u002F. It has a nice GUI which can be used interchangeably with the CLI version. It also has units, many built-in physical constants,…",{"value":229,"source":83,"evidence":230},"calc (arbitrary precision calculator)",[231],{"id":232,"by":233,"text":234},"27338403","tux1968","If you're looking for something more advanced while still at the command prompt, check out \"calc\": http:\u002F\u002Fisthe.com\u002Fchongo\u002Ftech\u002Fcomp\u002Fcalc\u002F On Fedora: sudo dnf install calc ;…",{"value":236,"source":83,"evidence":237},"microMathematics Plus",[238],{"id":239,"by":240,"text":241},"27342452","app4soft","> though mine takes sort of the opposite approach, input and manipulation is very visual. There is already opensource app for that: microMathematics Plus (μMath+) — Extended…",{"value":243,"source":83,"evidence":244},"Python interactive prompt",[245],{"id":94,"by":95,"text":96},{"comments":247,"answered":41,"key":248},18,[249,252,253],{"id":250,"text":251},"27341690","Oh yes! I have thought about the subscript\u002Fsuperscript thing, but didn't think of these other things. That would actually be great.",{"id":54,"text":55},{"id":67,"text":68},{"commenters":255,"max_depth":18,"maker_replies":247,"first_comment_mins":38,"lifespan_hours":256},45,104,[258,260,262,264,266,267,270,272,275,277,280,282,285,288,289,290,292,294,296,299,302,305,308,311,313,314,316,317,319,323,326,329,332,334,335,338,340,343,345,349,351,354,356,359,362,365,367,369,371,373,376,379,383,385,386,388,390,392,394,396,398,400,402,405,408,409,413,415,417,419,420,422,424,427,430,433,435,436,437,438,441,443,446,448],[163,38,46,259,164,38],"project\u002Fneutral\u002Fdesign",[250,38,38,261,11,33],"maker\u002Fpositive\u002Fidea",[54,33,38,263,11,33],"project\u002Fpositive\u002Fnone",[203,33,46,265,204,38],"maker\u002Fneutral\u002Fexecution",[67,33,38,265,11,33],[268,33,44,269,204,38],"27336299","maker\u002Fpositive\u002Fnone",[90,42,46,271,91,38],"project\u002Fmixed\u002Fexecution",[273,42,38,274,11,33],"27337702","maker\u002Fneutral\u002Fdocs",[86,42,44,276,87,38],"project\u002Fpositive\u002Fidea",[278,42,33,279,87,38],"27340188","project\u002Fcritical\u002Fexecution",[60,42,38,281,11,33],"project\u002Fneutral\u002Fidea",[283,42,44,276,284,38],"27342276","mikro2nd",[286,42,38,287,11,33],"27346964","maker\u002Fneutral\u002Fnone",[171,42,46,259,172,38],[94,46,44,263,95,38],[291,46,38,287,11,33],"27334609",[130,46,33,293,95,38],"project\u002Fcritical\u002Fperformance",[295,46,33,293,95,38],"27334759",[297,46,33,293,298,38],"27334842","afranchuk",[300,46,38,301,95,38],"27334879","commenter\u002Fneutral\u002Fnone",[303,46,38,304,11,33],"27334865","maker\u002Fneutral\u002Fperformance",[306,46,38,307,95,38],"27334921","commenter\u002Fneutral\u002Fperformance",[309,41,33,279,310,38],"27336473","simias",[312,41,38,265,11,33],"27336496",[116,44,33,279,117,38],[218,44,46,315,219,38],"project\u002Fneutral\u002Fnone",[120,44,33,279,117,38],[318,44,38,265,11,33],"27336851",[320,44,38,321,322,38],"27337423","other\u002Fneutral\u002Fnone","sp1rit",[324,44,38,321,325,38],"27337611","TchoBeer",[327,44,46,328,240,38],"27342478","project\u002Fneutral\u002Fexecution",[330,44,33,279,331,38],"27336653","a1369209993",[333,44,38,301,117,38],"27339289",[123,44,33,279,124,38],[336,44,33,279,337,38],"27337684","j1elo",[339,44,38,301,117,38],"27339288",[341,44,38,321,342,38],"27344514","anthk",[210,344,33,279,211,38],6,[346,344,38,347,348,38],"27339461","commenter\u002Fneutral\u002Fdocs","lhjn",[350,344,33,279,211,38],"27339504",[352,344,38,321,353,38],"27347153","Tubeee",[355,344,38,321,211,38],"27349368",[357,344,38,321,358,38],"27339486","adrusi",[360,344,38,321,361,38],"27339742","fennecs",[363,344,38,321,364,38],"27344701","subset",[366,344,38,321,358,38],"27351197",[368,344,38,321,211,38],"27357768",[370,344,38,321,358,38],"27375107",[372,344,38,321,211,38],"27388702",[374,18,38,321,375,38],"27335530","fish45",[377,18,38,321,378,38],"27338897","xixixao",[380,381,38,321,382,38],"27336199",8,"bbodi",[147,384,33,293,148,38],9,[151,384,38,304,11,33],[101,31,44,387,102,38],"project\u002Fpositive\u002Fperformance",[225,389,38,321,226,38],11,[136,391,33,293,137,38],12,[393,391,38,304,11,33],"27335535",[395,391,44,387,137,38],"27335577",[397,391,38,304,11,33],"27335667",[108,391,44,399,109,38],"project\u002Fpositive\u002Fdesign",[401,391,38,287,11,33],"27336302",[403,391,46,265,404,38],"27336890","whiterock",[406,391,46,328,407,38],"27338461","longemen3000",[140,391,33,279,141,38],[410,411,44,263,412,38],"27341789",13,"Grustaf",[239,411,33,414,240,38],"project\u002Fcritical\u002Fidea",[416,411,33,414,412,38],"27343644",[182,418,46,281,183,38],14,[186,418,38,281,11,33],[421,418,46,281,183,38],"27335202",[423,418,38,281,11,33],"27335253",[425,426,46,281,322,38],"27337453",15,[428,32,46,281,429,38],"27336799","HDMI_Cable",[431,32,46,315,432,38],"27337010","anyfoo",[434,32,46,315,124,38],"27337039",[232,32,46,315,233,38],[192,34,46,328,193,38],[196,34,38,287,11,33],[439,247,44,276,440,38],"27338469","teleforce",[442,247,38,287,11,33],"27338566",[444,247,38,301,445,38],"27338574","sudosysgen",[447,247,46,281,378,38],"27338807",[449,450,44,276,451,38],"27336336",19,"0_gravitas",[],[454,458,463,467,472,477],{"id":455,"name":456,"points":457,"category":20},"27303783","NocoDB",562,{"id":459,"name":460,"points":461,"category":462},"27301879","Joust",257,"games",{"id":464,"name":465,"points":466,"category":462},"27365961","Yare.io",233,{"id":468,"name":469,"points":470,"category":471},"27331311","Paperd.ink",232,"hardware",{"id":473,"name":474,"points":475,"category":476},"27367948","Deepnote Viewer",217,"data",{"id":478,"name":479,"points":480,"category":481},"27316752","Ninfex",215,"web_saas",false,"v2",{"id":485,"name":5,"line":6,"ai":482,"cat":20,"year":13,"points":14,"comments":15,"rec":28,"s":486,"top":18,"kw":487,"maker":11,"domain":10,"tier":19,"attempts":38,"strip":488,"url":9,"mix":489,"praise":82,"objection":113,"sub":21},27333772,-0.08,[21,24,25,26,27],"3353353511111031101100000151551313333355",[31,32,33,34],1794036607290]