开发者

Haskell-like type system in C

开发者 https://www.devze.com 2023-02-16 08:19 出处:网络
I was wondering, is it possible to integrate haskell\'s powerful type system into a language like C开发者_StackOverflow中文版, and still be able to do efficent low level programming?There have been at

I was wondering, is it possible to integrate haskell's powerful type system into a language like C开发者_StackOverflow中文版, and still be able to do efficent low level programming?


There have been attempts to create low-level languages which use advanced type systems to make low-level programming safe. Those type systems are often actually even more advanced than Haskell's and allow things like ensuring at compile-time that pointers are accessed safely and arrays are not accessed out of bounds.

One such language is ATS (Applied Type System) which besides many of Haskell's type system features also supports linear and dependent types.


I've recently stumbled upon something related:

The Habit Programming Language (lambda-the-ultimate.org)

It's a dialect of Haskell, but geared towards low-level systems programming.


See also BitC, a language being developed to build a formally verified capability secure operating system.


This is basically the goal of Mozilla's http://www.rust-lang.org/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号