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.

The Hascal Programming Language (Open Source)

3 pointsby mahmoudimusover 3 years ago

2 comments

AlbertoGPover 3 years ago
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.
datashamanover 3 years ago
Haskell and Hascal. Don’t have conferences in the same hotel.