5 ms·
Nim's author on v1 launch: Personal words about version 1
- captainmarble 7y agoNim is not so simple language. A cheatsheet could be nice.
- JNRowe 7y agohttps://learnxinyminutes.com/docs/nim/ https://learnxinyminutes.com/docs/nim/ ?
- airstrike 7y agoThanks. Some of the syntax seems rather arbitrary, but maybe just to my layman eyes... var child: tuple[name: string, age: int] but type Color = enum cRed, cBlue, cGreen why not type Color = enum[cRed, cBlue, cGreen]
- TylerE 7y agoBecause a type declaration is declaring multiple identifiers. Each of the enum variants is a legal name. The tuple declaration is declaring one identifier with multiple fields. The names of the field are only legal as, well, fields of the outer object.
- thanatropism 7y agoA tuple is a product type, an enum is a sum type.
- tiffanyh 7y agoAny chance NIM will get memory safety like Rust?
- monetus 7y agoAraq's musings before implementing the newruntime with owned references: https://nim-lang.org/araq/ownedrefs.html https://nim-lang.org/araq/ownedrefs.html
- fortran77 7y agoDoes everything have to be about Rust?
- Klonoar 7y agoThere's nothing inherently wrong with wanting a language to ape a solid aspect of another nature. For all you know (chain) OP _wants_ to write Nim but needs memory safety.
- nimmer 7y agoNim is already memory safe. If you want to run without GC, the new runtime is has an ownership model.
- lugg 7y agoBlog post has no link: https://nim-lang.org/ https://nim-lang.org/
- gautamcgoel 7y agoInteresting last sentence in the context of shipping a programming language: "It's like a marriage, it doesn't stop with the wedding."
- justicezyx 7y agoThe more I view things, the more I feel marriage probably is the best metaphor for any nontrivial undertaking that is worth a lifelong investment, for a group of people. Think about it, marriage requires: * Love * Dedication * Persistence * Endurance * Mutual respect Pretty much the same thing for any highly functioning team!
- dang 7y agoRecent: https://news.ycombinator.com/item?id=21053140 https://news.ycombinator.com/item?id=21053140