logoalt Hacker News

Copper – A minimal low-level programming language with OOP and generics

43 points • by bogdanoff_2 • last Friday at 7:09 PM • 14 comments • view on HN

Comments

pull_my_finger • today at 5:48 PM

I need to put a disclaimer to say that I hate when people hijack a post about foo to talk about bar, but:

> The language is not object oriented but it provides some features to facilitate object oriented designs.

It has classes and implicit `self`. Not nothing, but I don't think it's incorrect to say has any more OOP than general purpose languages like Lua or JavaScript in that sense.

Something like Pony[1] is a more mature and feature rich entry and has a much better OOP story.

All that said: a) I'm sorry for doing the thing I hate when other people do

b) Creating a language is a big undertaking, and it's super cool that they did it

c) I see it seems to already be written in Copper too, which is also very neat!

[1]: https://www.ponylang.io/

➕ show 1 reply
bogdanoff_2 • last Friday at 7:09 PM

Not mine, but I found this to be really interesting as a language created by one person for their own use.

Also really interesting are the author's blog with articles on language design (for example his thoughts on exceptions, and how he added them to his language, then decided against them), and the change log for the language, showing its evolution.

https://tibleiz.net/

https://tibleiz.net/copper/changes.html

skybrian • today at 4:25 PM

It seems pretty tasteful, but I don't see anything about character sets. How does it support Unicode? What does a string of 16-bit characters represent?

There do seem to be some Unicode constants in the standard library:

https://tibleiz.net/browser.html?path=std&title=Standard%20L...

DenisM • today at 4:17 PM

Garbage collected? Couldn’t tell from the docs.

➕ show 1 reply
leecommamichael • today at 5:11 PM

Seems like Dart with indentation instead of braces.

➕ show 1 reply
flossly • today at 4:51 PM

Looks like Crystal to me. But with stronger typing.

https://crystal-lang.org

Neat little language...

Vishal_Max • today at 5:42 PM

The simplicity is appreciated.

analog8374 • today at 4:55 PM

This might be my new favorite language. Deeply sane.

jdw64 • today at 3:41 PM

It’s similar to Python syntax.

➕ show 1 reply