5 ms·
Every time I see news about Nim I just wish Cobra[0] would get the same love... [0] http://cobra-language.com/ http://cobra-language.com/
by airstrike 9y ago
Every time I see news about Nim I just wish Cobra[0] would get the same love...
[0] http://cobra-language.com/ http://cobra-language.com/
- kbd 9y agoRecent News 2013-12-23 Cobra 0.9.6 has been released. Maybe because this is Hacker "News" and Cobra hasn't had a release in 4-5 years is why it's not mentioned much.
- pavlov 9y agoWhy?
- agumonkey 9y ago> First class support for unit tests and contracts this maybe ?
- fineline 9y agoI don't know about Cobra, but I would say Nim has first class support for unit tests. If you check out the "Testable documentaion examples" section of the article, it shows they've even added support for testing sample code in inline function documentation. This is a really interesting approach. I don't use Nim myself (not a "systems" programmer - what a silly term that is, we all make "systems" but I guess that boat has sailed) but I'm interested in applying a similar approach in other languages.
- scardine 9y agoNot the parent but my personal pet-peeve is case-insensitive variable names - a deal breaker for me.
- _sdegutis 9y ago> "That means only the first letters are compared in a case sensitive manner. Other letters are compared case insensitively within the ASCII range and underscores are ignored." [1] Wow, this is strange. I understand the reasoning but strongly disagree with it. Not sure if it's a deal-breaker for me though, just... strange. [1]: https://nim-lang.org/docs/manual.html#lexical-analysis-identifier-equality https://nim-lang.org/docs/manual.html#lexical-analysis-ident...
- throwaway7645 9y agoNim transpiles to C, C++, or JavaScript so it can run on nearly anything (Windows, Linux, MacOS, embedded to some degree, web browser...etc). Cobra appears to be .NET, so a little more restricted I guess.
- carterza 9y agoCompiles... compiles. Edit - Sorry - that was rude. I should have elaborated. Transpiling is a specific type of compilation that involves two languages with a similar level of abstraction. Compilation involves languages with different levels of abstraction. Nim offers a much higher-level abstraction than C, thus you could consider the process of converting Nim to C, a compilation process rather than a transpilation process.
- throwaway7645 9y agoThis comes up everytime i post about this and most people agree with me that transpile means convert to a different source language. It is definitely a common use, but I realize it is a gray area. Edit: Compiling def isn't wrong, but Transpiling is more descriptive to me as it indicates you're not going to assembly or machine language or something like that.
- dom96 9y agoCompiling is the correct terminology here. Nim transpiles to JavaScript, but it compiles to C and C++. You don't say that Rust transpiles to LLVM IR, do you?
- felixangell 9y agoI would say compiles is a more general form of transpiles. Transpiling meaning it compiles into a higher level form i.e. c, C++, JavaScript, and compile meaning it compiles into a more lower level form i.e assembly, bytecode, etc? That's just how I look at it anyway.
- throwaway7645 9y ago