less_retarded_wiki/golang.md

18 lines
2 KiB
Markdown
Raw Normal View History

2023-10-01 21:35:42 +02:00
# Go (Programming Language)
2023-06-11 13:19:57 +02:00
2024-02-04 07:54:26 +01:00
Go (also golang) is a compiled [programming language](programming_language.md) advertised as the the "[modern](modern.md)" successor to [C](c.md) and is co-authored by one of C's authors, [Ken Thompson](ken_thompson.md). Of all the new language go is one of the least [harmful](harmful.md), however it's still quite [shit](shit.md). Some reasons for this are:
2023-06-11 13:19:57 +02:00
- It is developed by [Google](google.md) and presented as "[open-source](open_source.md)" (not [free software](free_software.md)).
2023-11-03 22:26:49 +01:00
- It downloads additional [dependencies](dependency.md) during compilation, a huge defect due to which it's been rejected e.g. from [HyperbolaBSD](hyperbolabsd.md) (https://wiki.hyperbola.info/doku.php?id=en:philosophy:incompatible_packages).
2023-06-11 13:19:57 +02:00
- It has (classless) [OOP](oop.md) features.
- It has [bloat](bloat.md) such as [garbage collection](garbage_collection.md), built-in [complex number](complex_number.md) type, [concurrency](concurrency.md) and something akin a [package manager](package_manager.md) (*go get/install*).
2024-02-04 07:54:26 +01:00
- It forces a programming style in which an opening function bracket (`{`) can't be on its own line. [LMAO](lmao.md)
2023-06-11 13:19:57 +02:00
- Huge standard library with shit like crypto, image and html.
2024-02-04 07:54:26 +01:00
- ...
2023-06-11 13:19:57 +02:00
2024-02-04 07:54:26 +01:00
Anyway, it at least tries to stay *somewhat* simple in some areas and as such is probably better than other modern languages like [Rust](rust.md). It purposefully omits features such as [generics](generics.md) or static type conversions, which is good.
2023-06-11 13:19:57 +02:00
2024-02-04 21:08:42 +01:00
**How big is it really?** The official implementation by Google has whopping 2 million lines of code of self hosted implementation -- that's ginormous but keep in mind Google would likely implement minesweeper in two million lines of code too, so it may say little. Size of specification may be more informative -- that one has about 130 pages (after converting the official HTML specs to pdf), that's a bit smaller than that of C (the pure language part has about 160 pages), so that's not bad.
2024-02-04 07:54:26 +01:00
2024-02-04 21:08:42 +01:00
As of february 2024 there is no [code of conduct](coc.md) in the official repo, that's good too.