User talk:PureFox: Difference between revisions

Content added Content deleted
No edit summary
(Replied to Christer's comment.)
Line 110: Line 110:
==Chemical Calculator==
==Chemical Calculator==
Haha, sorry for misleading you with my python solution! I still have issues with my Nim solution. It also lacks eval. Typed Nim should be quicker than Python, but my solution is worse. Maybe I will copy yours! --[[User:ChristerNilsson|ChristerNilsson]] ([[User talk:ChristerNilsson|talk]]) 14:44, 20 March 2019 (UTC)
Haha, sorry for misleading you with my python solution! I still have issues with my Nim solution. It also lacks eval. Typed Nim should be quicker than Python, but my solution is worse. Maybe I will copy yours! --[[User:ChristerNilsson|ChristerNilsson]] ([[User talk:ChristerNilsson|talk]]) 14:44, 20 March 2019 (UTC)

:No problem, Christer:) Your original Python solution (and my Go translation of it) were on the verbose side and I knew I'd run into problems with the lack of eval if I tried to use RE to simplify the parsing. So I thought I'd try and write something from scratch which turned out to be quite easy once I'd come up with a way to evaluate any parenthesized parts of the formula.--[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 15:20, 20 March 2019 (UTC)