TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Mys – an attempt to create a statically typed Python-like language

50 pointsby eerimoqover 4 years ago

15 comments

BerislavLopacover 4 years ago
I was once toying with the idea to create a statically-typed Python-like language, and I had the perfect name for it: Typhoon... ;)
评论 #24265039 未加载
sitkackover 4 years ago
Given that the OP is the github project owner, are you aware of <a href="https:&#x2F;&#x2F;chocopy.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;chocopy.org&#x2F;</a> ?<p>You might want to also look at Shedskin, <a href="https:&#x2F;&#x2F;github.com&#x2F;shedskin&#x2F;shedskin" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;shedskin&#x2F;shedskin</a> which converts implicitly typed Python programs to C++
评论 #24264526 未加载
评论 #24268130 未加载
评论 #24263618 未加载
评论 #24263920 未加载
nicoburnsover 4 years ago
Question for the OP seeing as this is a Show HN: how does this compare to Nim (<a href="https:&#x2F;&#x2F;nim-lang.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;nim-lang.org&#x2F;</a>)?
评论 #24263955 未加载
评论 #24263852 未加载
toxikover 4 years ago
&gt; We don’t need a GC because RC<p><pre><code> L = [] L.append(L)</code></pre>
dukoidover 4 years ago
I am working on something similar, although with a different focus (mobile coding): <a href="https:&#x2F;&#x2F;github.com&#x2F;stefanhaustein&#x2F;tantilla" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;stefanhaustein&#x2F;tantilla</a><p>P.S.: Might make sense to try to get to a common type-safe language spec?
评论 #24263973 未加载
mlthoughts2018over 4 years ago
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.<p><a href="https:&#x2F;&#x2F;cython.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;cython.org&#x2F;</a>
anentropicover 4 years ago
There is also <a href="http:&#x2F;&#x2F;strlen.com&#x2F;lobster&#x2F;" rel="nofollow">http:&#x2F;&#x2F;strlen.com&#x2F;lobster&#x2F;</a><p>Rust-like borrow checking with a Python-ish syntax, compiles to C++ or Wasm
hpvic03over 4 years ago
Similar and relevant:<p>Crystal: <a href="https:&#x2F;&#x2F;crystal-lang.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;crystal-lang.org&#x2F;</a><p>Sorbet: <a href="https:&#x2F;&#x2F;sorbet.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;sorbet.org&#x2F;</a>
scottrogowskiover 4 years ago
I love this.<p>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 and am looking forward to seeing it progress.
dec0dedab0deover 4 years ago
This looks cool. Is there anything specific you&#x27;re trying to do with Mys that another language didn&#x27;t do? Nim comes to mind as being in a similar space.<p>Small nitpick about the title: Python <i>is</i> strongly typed.
评论 #24264020 未加载
评论 #24263832 未加载
dpc_pwover 4 years ago
&gt; Data races will occur when multiple threads uses a variable at the same time, which will likely make the program crash.<p>... or let the attacker execute arbitrary code.
trumpetaover 4 years ago
Isn&#x27;t Dotty basically statically typed Python? They added whitespace syntax recently and thanks to Scala native it should be possible to have a LLVM backend somewhere down the line.
Nasreddin_Hodjaover 4 years ago
Why not to just use Cython?
pmoriartyover 4 years ago
Strongly typed? You mean statically typed?<p>See <i>&quot;What to know before debating type systems&quot;</i>:<p><a href="http:&#x2F;&#x2F;blogs.perl.org&#x2F;users&#x2F;ovid&#x2F;2010&#x2F;08&#x2F;what-to-know-before-debating-type-systems.html" rel="nofollow">http:&#x2F;&#x2F;blogs.perl.org&#x2F;users&#x2F;ovid&#x2F;2010&#x2F;08&#x2F;what-to-know-before...</a>
评论 #24264678 未加载
评论 #24263891 未加载
tabtabover 4 years ago
Before making Yet Another Language, I&#x27;d like to see a good analysis of the options and trade-offs they offer: what does each design choice make easier and harder. There is probably no free lunch, but maybe we can find a better lunch by balancing things carefully.
评论 #24264471 未加载