Strongly typed? You mean statically typed? See "What to know before debating type systems" : http://blogs.perl.org/users/ovid/2010/08/what-to-know-before...
Show HN: Mys – an attempt to create a statically typed Python-like language
11–20 of 57 posts
Re: Show HN: Mys – an attempt to create a statically typed Python-like language
#12Given that the OP is the github project owner, are you aware of https://chocopy.org/ ? You might want to also look at Shedskin, https://github.com/shedskin/shedskin which converts implicitly typed Python programs to C++
Shedskin uses the Python interpreter if I remember correctly. I aim not to.
Re: Show HN: Mys – an attempt to create a statically typed Python-like language
#13Question for the OP seeing as this is a Show HN: how does this compare to Nim ( https://nim-lang.org/ )?
All of this to say, the OPs language seems much more Pythonic. The key words, the built in functions, the class system, all seems designed to match Python as closely as possible.
Re: Show HN: Mys – an attempt to create a statically typed Python-like language
#14I am working on something similar, although with a different focus (mobile coding): https://github.com/stefanhaustein/tantilla P.S.: Might make sense to try to get to a common type-safe language spec?
I don't understand the question. Can you rephrase it? =)
Re: Show HN: Mys – an attempt to create a statically typed Python-like language
#15This 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 title: Python is strongly typed.
I would call Python untyped
Python determines the types at runtime, but it is very clear about what few operations you're allowed to do on any given set of types.
Re: Show HN: Mys – an attempt to create a statically typed Python-like language
#16This 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 title: Python is strongly typed.
Sorry about the confusion. Mys is statically typed. I changed the HN post from strongly to statically to make it clear.
Re: Show HN: Mys – an attempt to create a statically typed Python-like language
#17I am working on something similar, although with a different focus (mobile coding): https://github.com/stefanhaustein/tantilla P.S.: Might make sense to try to get to a common type-safe language spec?
Nice job. I don't understand the question. Can you rephrase it? =)
p.s. And I wasn't aware of Cocopy either. Having a list of similarities and differences of all three might be useful...
Re: Show HN: Mys – an attempt to create a statically typed Python-like language
#18Re: Show HN: Mys – an attempt to create a statically typed Python-like language
#19Question for the OP seeing as this is a Show HN: how does this compare to Nim ( https://nim-lang.org/ )?
Not OP, but a big Nim fan. I think Nim has made a mistake by marketing itself as Python inspired. I know why it does so; Python is a very successful language and as a niche language, Nim wants to associate itself with an established one. But in my experience, Nim has a very small overlap with Python. It is whitespace significant, prefers short words to symbols for operators, and has a robust stdlib. But if you look a…
It’s interesting to see how well the typed Python syntax maps to a static implementation of Python. The speed should probably be a lot faster than CPythin too for many cases.
Re: Show HN: Mys – an attempt to create a statically typed Python-like language
#20Question for the OP seeing as this is a Show HN: how does this compare to Nim ( https://nim-lang.org/ )?
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 and hard to use in embedded systems. I'm aiming to create something similar to Nim's toolchain to address that.