Hacker News new | past | comments | ask | show | jobs | submit login
MiniLang: Update (github.com/nicup14)
1 point by nicup14-github 60 days ago | hide | past | favorite | 1 comment



Hello guys! It's been a while since I last updated the MiniLang programming language. The language aims to be powerful, yet concise, simple and easy to use and learn. Check it out if you find this interesting.

Additions:

* Structures

* Function overloading

* Uniform function call syntax (UFCS)

* C-based compiler backend (by default)

* Some builtins

Still missing (in development):

* Const specifier

* Unsigned specifier

* Floating point types

* Memory safety

# Mini Lang

A type-safe C successor that compiles directly to various platforms.

Motivation:

The language is designed to closely match c features along with some zero-overhead quality of life improvements that you would find in a modern language, while maintaining the ease of learning the language (in about 10 minutes or less via QUICKSTART.md). Moreover, the type system is stricter than c, which prevents common bugs (flaws) of the c language. Memory safety is also a primary concern. As for c compatibility, the language is bidirectionally compatible with c (c can be used in ML, ML can be used in c).

Language-specific features:

* Builtins

* Booleans

* References

* Fixed-length integers

* Fixed-length pointers

* Type inference

* Heredocs

* Aliases

* Defers

* Imports

* Namespaces

* Hygienic macros

* Function overloading

* Uniform function call syntax (UFCS)

* Multi-line statements

Features:

* Modern

* Compiled

* Strongly typed

* Function overloading

* Hygienic macro system

* C bidirectional compatibility

* Uniform function call syntax (UFCS)

* Easy to learn and use

* Flat learning curve




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: