TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Erg: a statically typed language that is Python compatible

167 点作者 ArdelleF将近 3 年前

17 条评论

latenightcoding将近 3 年前
At this point I'm open to try anything that will give me access to the python ecosystem without having to code in Python. From the FAQ it looks like Erg code gets transpiled to python bytecode.
评论 #32453374 未加载
评论 #32452620 未加载
评论 #32454055 未加载
评论 #32452575 未加载
评论 #32453652 未加载
评论 #32458936 未加载
评论 #32453330 未加载
评论 #32453855 未加载
gregwebs将近 3 年前
Nim is a statically typed language that is syntactically close to Python and there are some attempts at integrating the two.
评论 #32455788 未加载
nope96将近 3 年前
But not really a pythonic syntax. Reminds me more of ruby? i.e.:<p>&gt; 2.times! do!:
评论 #32454301 未加载
评论 #32453848 未加载
Arbortheus将近 3 年前
It would be nice if someone created a typescript for python. Something that allows us to wrangle control and sanity over reams of legacy untyped python madness.
评论 #32453484 未加载
评论 #32457610 未加载
评论 #32454618 未加载
评论 #32456518 未加载
评论 #32453035 未加载
评论 #32452826 未加载
评论 #32460345 未加载
epgui将近 3 年前
Is there documentation in English? The japanese[1], however wonderful a language, would be a major barrier to entry for me.<p>[1] <a href="http:&#x2F;&#x2F;mtshiba.me&#x2F;TheErgBook&#x2F;" rel="nofollow">http:&#x2F;&#x2F;mtshiba.me&#x2F;TheErgBook&#x2F;</a>
评论 #32453987 未加载
kortex将近 3 年前
This is exactly the sort of thing I&#x27;ve been looking for. Not sure how production-grade it is* but definitely gonna use it for some scripts and data processing. I love python, most of all its ecosystem, and use types extensively, but it still misses some things I wish it had better support for. Namely: immutability, and explicit side effects, which are both prominent features of Erg. So this is super exciting.<p>Does anyone know if Erg code can be (ergonomically) called from python? I think that&#x27;d be the real killer feature, being able to write erg modules and pull it into the greater python ecosystem as easily as native python.<p>* looks like the project is nary a few weeks old? Can&#x27;t really dig into the git history on mobile, it freezes my browser
cyanydeez将近 3 年前
Why is the logo 69
评论 #32454103 未加载
评论 #32453964 未加载
评论 #32455498 未加载
traverseda将近 3 年前
Not sure why I&#x27;d want to use this, presuming I was already happy with python. Especially now that python&#x27;s type hinting is more mature. Looking through the feature set the main thing it seems to provide is a type system, but with a syntax I don&#x27;t like as much as python&#x27;s type hinting.
评论 #32453436 未加载
评论 #32453437 未加载
评论 #32453502 未加载
DreamFlasher将近 3 年前
Amazing, but... Why not done with Python syntax? And no, mypy is not a solution. Even with strictest mypy it is still possible to have errors that would have been caught with static typing.
评论 #32454334 未加载
wodenokoto将近 3 年前
The real seller would be to add a PyTorch and Tensorflow example.
briandw将近 3 年前
I have so much trouble when trying to refactor projects bigger than a few hundred lines in python. If I could integrate this into Jupyter easily I&#x27;d be excited to try it out.
评论 #32453099 未加载
评论 #32454117 未加载
评论 #32454043 未加载
rishav_sharan将近 3 年前
Another languages which compiles down to Python is Haxe <a href="https:&#x2F;&#x2F;haxe.org&#x2F;manual&#x2F;target-python-getting-started.html" rel="nofollow">https:&#x2F;&#x2F;haxe.org&#x2F;manual&#x2F;target-python-getting-started.html</a><p>If you want to use static typing with c ES6 like syntax, Haxe is amazing. Haxe also compiles down to a half a dozen more compiler targets - including C++, C#, Flahs (via OpenFL), lua etc.
reil_convnet将近 3 年前
Cool concept.<p>This panics for me after install. Any suggestions to make it work ? {I have Python in my path, so writing python would not return &quot;not found&quot; }<p>Starting the REPL server... thread &#x27;main&#x27; panicked at &#x27;cannot execute python: Os { code: 3, kind: NotFound, message: &quot;The system cannot find the path specified.&quot; }&#x27;,
评论 #32462175 未加载
markjreed将近 3 年前
Installed it, and the code in the README won&#x27;t even run, so I guess it&#x27;s not quite ready for messing with. Looks interesting in theory, though . . .
formerly_proven将近 3 年前
Nice.
评论 #32453059 未加载
评论 #32452703 未加载
C-BJ超过 2 年前
Exciting language
waitingkuo将近 3 年前
this remind me ruby...