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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

The Hascal Programming Language (Open Source)

3 点作者 mahmoudimus超过 3 年前

2 条评论

AlbertoGP超过 3 年前
The name made me expect a mixture of Haskell and Pascal, but it’s more of a new syntax for C++ with a built-in library of useful functionality such as HTTP: it compiles to C++, and the syntax uses C-style blocks with braces so the code looks more like C++, then on closer inspection it does have some elements from Pascal as stated in the website.<p>It’s the first time I see it, and I’m going to try it out during these days.<p>One thing I would have done differently would be to implement it in C++ instead of Python: since it requires a C++ compiler anyway, having the translator in C++ would avoid introducing more dependencies. This needs python3 (no big deal) and PyInstaller which at least was available as a package in my Linux distribution.<p>I’m disappointed to see it uses a single `=` for assignment instead of `:=`, but I understand the utility of keeping such a fundamental aspect close to C++. Otherwise the syntax looks neat, will have to play with it a bit to see how it works out in practice.<p>The first thing I’ve done is to fix the space indentation in the Makefile (<a href="https:&#x2F;&#x2F;github.com&#x2F;hascal&#x2F;hascal&#x2F;pull&#x2F;14" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hascal&#x2F;hascal&#x2F;pull&#x2F;14</a>), but now pyinstaller fails with `pkg_resources.DistributionNotFound: The &#x27;pyinstaller-hooks-contrib&gt;=2020.6&#x27; distribution was not found and is required by pyinstaller`.<p>Ah, well... I’ll try a bit more to get that to run.
datashaman超过 3 年前
Haskell and Hascal. Don’t have conferences in the same hotel.