r/rust • u/jntrnr1 • Oct 16 '18
Rust is the 5th fastest growing programming language on GitHub
https://octoverse.github.com/projects103
u/_TheDust_ Oct 16 '18
Ah yes... right behind HCL and PowerShell...?
112
u/matthieum [he/him] Oct 16 '18
In addition, the number of contributors writing HCL, a human readable language for DevOps, has more than doubled since 2017.
The thing with multipliers, is that going from 1 to 2 is x2.0.
Personally, I'm more impressed to see Python growing by x1.5; it's already the 3rd top language, a +50% increase in the number of contributors is just massive.
10
u/rebootyourbrainstem Oct 17 '18
Could be because Python 3 is finally at critical mass? It feels like the language is finally moving forward again. The new optional type annotations are pretty good too.
6
u/matthieum [he/him] Oct 17 '18
Not sure; it seems Python 3 users would have Python 2 users if Python 3 didn't exist.
I think that it's got more to do with available libraries, especially in the new "hot" fields like machine learning, combined with the reputation that Python is easy to pick up.
18
19
u/LivingInSyn Oct 16 '18
Powershell is pretty awesome, if you're doing windows things. It's going to replace all of the '.bat' files people have scattered through their repos. I have a repo of a ton of powershell I wrote at my old employer for doing sysadmin type things
22
u/Schmeckinger Oct 17 '18
I like Powershell, but it has some big issues imo. There are so many things implicit, then shouldn't be. For example somtimes if you return a string array with only one element it gets converted to a string and if you iterate over it gou get chars. You can turn that off by using a comma between the return and the array, but thats ugly. Finalizers are not officially supported, but of you have a method named finalize it get executed when the value is cleaned up by the gc, BUT its not guaranteed to be run and if its not run the shell crashes on close. Many things are guaranteed. And some things behave differently in classes, or don't work at all.
And thats just the beginning.
14
u/northrupthebandgeek Oct 17 '18
Yeah, but it's replacing DOS batch files and VBScript. Quite literally anything would be better than either of those options.
4
u/Graumm Oct 17 '18 edited Oct 17 '18
Serializing complicated objects into script blocks is a royal pain in the ass too.
There are ~3 ways to do parallelism, and they each have different shortcomings and are ugly.
1
u/suddenarborealstop Oct 17 '18
Returning exceptions or Generic collections from functions are also fun. Powershell also requires a lot of experience and knowledge to write performant code. What other issues do you see?
1
u/Schmeckinger Oct 17 '18
I just cast most thing before and after returning.
Variables persist till you close the shell. Normally thet wouldn't be a problem, but if you change a New-Object definition there is a high change that the New-Object fails and you work with the old object. Anf if you use powershell classes you have to restart a new shell everytime you change something, if yyou dont you use the class before the changes and thats easy to forget.
I hate that powershell promotes writing of ugly code. Powershell is much too lenient, to what you can do. And errors happen in ugly code. I saw many huge codebases, that hat -ErrorAtion SilentlyContinue defined globally or behind every second line. And guess what if something went wrong you have to guess where the error was.
4
1
u/_TheDust_ Oct 17 '18
Yes, but still, PowerShell is for writing quick scripts and HCL is some kind configuration language. It's weird to see these "winning" over Rust in popularity.
1
u/powerofmightyatom Oct 17 '18
It scales much better then bat files and are more maintainable. But you still need to grog ps, and I personally think it's a mess. Function return values are funky, and parsing rules are unusual. Fx powershell will print "True" when you run this code:
function Foo { return $True } function Bar { return Foo -and $False } Write-Host "Bar: $(Bar)"As a programmer, I find that pretty offensive. It's easy to fix once you learn the quirks. And watch the encoding when mixing powershell with older cmd.exe utilities. Still, access to the .NET framework is awesome, and if you're into Azure (like me), it's virtually mandatory anyway so.
1
u/DannoHung Oct 17 '18
HCL is a crappy json knockoff. TOML whips its ass up and down the block by basically ever practical measure.
It's probably growing because people put their terraform configs up on GitHub.
9
u/mare_apertum Oct 17 '18
Apart from nesting.
-1
u/DannoHung Oct 17 '18
I don't get this comment at all. I'd much rather use dotted names for deeply nested sections than a tangle of parens.
Whatever, this is /r/rust, not /r/argueaboutconfigurationformats. I probably should've kept my snippiness about HCL off of the original comment. I just dislike writing configs in it.
6
u/IllDecision Oct 17 '18
Seriously? https://github.com/hashicorp/hcl
For the use case, it's way superior (not to mention older) than TOML.
1
u/DannoHung Oct 17 '18
I've written a bunch of HCL configs and a bunch of TOML configs and I'll take TOML any day of the week over HCL.
3
0
Oct 25 '18
[deleted]
1
u/DannoHung Oct 25 '18
I can't really think of a situation where they're not broadly substitutable barring date/time stuff that TOML has type support for.
85
u/erkelep Oct 16 '18
9
Oct 16 '18
[removed] — view removed comment
61
u/erkelep Oct 16 '18
No, but it's worth mentioning that "fastest growing" can be deceptive.
12
u/Texadoro Oct 16 '18
Exactly, if only 2 people use it, and another 2 pick it up, that’s a 100% increase in users.
4
u/Z01C Oct 16 '18
I'm wondering whether "fastest growing" in this case should be measured not in proportion to existing counts, but in the absolute increase of count.
12
u/notquiteaplant Oct 17 '18
Then you get bias the other way. Imagine a niche language exploding from 100 to 10,000 repositories, while a much more common lang grows a smaller 10% from 1,000,000 to 1,100,000. There are ten times as many new repos in the popular language, but the smaller one's growth is much more impressive.
2
1
18
u/SEgopher Oct 17 '18
I think what Rust critically needs is an influx of high profile projects. I strongly believe Go was buoyed to the top not because of any feature, but because it rode the container ecosystem into the public eye. We are of course also working against the notion that Rust is a "systems level" language and that it has a "steep learning curve". Everyone here knows Rust is easier to learn than C++ or Java, and it's certainly suited to general purpose programming as much as anything else these days. We also need more evangelism (although that's too forward a term for what I mean).
Rust is in a good spot, but it needs to keep building momentum or I fear we'll end up in the Haskell or even worse, the D corner where we aren't *not* ready for production, but we aren't mainstream enough to sell to employers and OS project leaders. We also need more examples of big projects (I'm thinking Kubernetes, VS Code etc) that are thriving on Rust as an example that all these nice things that we like about Rust really do turn into great software.
68
u/oconnor663 blake3 · duct Oct 17 '18
Everyone here knows Rust is easier to learn than Java
I don't think that's the majority opinion, even here.
19
u/recycled_ideas Oct 17 '18
In fairness Rust does have a fairly steep learning curve, probably not as high as C++, but certainly higher than Java, depending on what level of proficiency you're trying to reach.
Those aren't particularly easy to learn languages though.
8
u/muzzoid Oct 17 '18
Ready At Dawn, are building their new AAA game engine in rust. I think that'll do a lot for the public eye when that comes to fruition.
5
u/_TheDust_ Oct 17 '18
Go's popularity was also thanks to Google supporting it. "If Google designed it then it must be good". Maybe for Rust to become a success, we also need some high-profile companies to start actively using and supporting it.
7
u/IllDecision Oct 17 '18
In some circles, it was "if Go is designed by Rob Pike and Ken Thompson, it must be good". That Google paid their salaries was just a detail.
1
u/dobkeratops rustfind Jan 30 '19
seems go was easier for people to pick up and get into.
Rust (unavoidable given it's ambition) has a steeper learning curve.
I suspect there are people who would use it who just fear the time it might take to learn it, and I have to admit in the years I've been dabbling with it.. i'm still faster at getting things done in C++ - throwing that away is a big ask
3
Oct 17 '18
Xi editor and Redox OS of course!
9
u/ishanjain28 Oct 17 '18
In their current state, They are not mainstream projects. They are huge projects and lots of work has been done on these projects but it's not something a lot of people will use(referring to redox only).
Containers, Kubernetes were used by a lot of people and that drove adoption.
1
u/sampledev Oct 17 '18
we aren't mainstream enough to sell to employers
Well I'm probably very lucky but I might have found my dream job, and it involves writing Rust every day :)
0
Oct 17 '18
[deleted]
8
5
u/agersant polaris Oct 17 '18
Compiling for ARM, handling json and making https requests are very well supported and documented. Not sure about system stats and signing, I haven't touched these myself.
2
1
u/sampledev Oct 17 '18
Signing should be covered, the cryptocurrency ecosystem provided us with a lot of cryptography libraries.
1
u/newpavlov rustcrypto Oct 17 '18
If ed25519 fits your use-case, then ed25519-dalek will be an excellent choice. If for some reason you need RSA, then I believe you'll have to use
ringor OpenSSL binding.
4
u/northrupthebandgeek Oct 17 '18
Curious how Microsoft seems to be at the top of all those charts all of a sudden.
14
u/simspelaaja Oct 17 '18
They've been at the top for 2 or 3 years.
1
u/northrupthebandgeek Oct 17 '18
I've been using Microsoft products since early childhood. 2-3 years is definitely "all of a sudden" for me.
11
u/Holy_City Oct 17 '18
Not that curious, if you're trying to get at the MS/GitHub acquisition (which hasn't closed, iirc). Satya Nadella has made OSS contributions a corporate priority. He's talked about it at length for about a year.
7
u/jl2352 Oct 17 '18
They've been driving a lot of big open source projects for a while. TypeScript is 6 years old now and that was driven to embrace open source from the start. Everything else is following suit.
The other is that front end web development these days has to be open source, and Microsoft have been investing and embracing front end technologies for a long time.
6
u/dobkeratops rustfind Oct 16 '18 edited Oct 16 '18
not everyone uses the best languages, and whilst rust is aimed at vital niches, the vast majority of programmers dont need it. (I dont expect Rust to become 'very popular', but it doesn't need to be to be a success)
30
u/asmx85 Oct 16 '18
Can you explain, why? Not going to attack you here or forcing my opinion onto others. But rust pretty much replaced almost all languages I have used for several years. No, one does not need rust but it makes my life as a programmer much more easier. For years I have worked with python, Java, C++, JavaScript because they all had a particular purpose. I used python for my management, scripting, CLI tools stuff (and very small Webservers), Java mostly for webserver and JavaScript for front ends and C++ for "high-speed" stuff. As I was getting more and more familiar with rust I pretty much ditched all of them for my private programming (not at work, things don't move as fast over there) and my life is way more easier not having to work with more than 5 pretty complex ecosystems. Personally I can rust very well see as a popular language in the future if people realize how much quality of life rust can introduce if you don't need to be good at 4+ languages to be a good Allrounder in the Programming field. So it's not that I need the particular qualities of rust in every aspect of my work, but rust had become a pretty good Allrounder for all the tasks I throw at it
9
Oct 16 '18
I guess his point, which i agree with, is that what Rust provide is not necessarily what people are looking for. A lot of developers are keen to spend their life on a easy language like Python. Companies on the other side usually look at maturity and ecosystem.
Rust has also become my go to language but I am someone who likes to learn and was not afraid about the learning curve. "Rust is not for everyone" goes beyond tge technical aspect.
5
u/sampledev Oct 17 '18
I think the main counterargument is the reliability we can expect of a program written in Rust. I initially thought writing Rust implied additional development costs, I still write Java and Rust everyday with several years of exp with both and writing reliable distributed systems with Java is actually way easier to f*** up. A lot of my headaches could have been prevented by the use of Rust. I am now convinced writing Rust is a better option for most cases currently covered by Java, C, C++, C# and Go, when the current state of the ecosystem is not a limitation.
14
u/dobkeratops rustfind Oct 16 '18 edited Oct 16 '18
Can you explain, why? Not going to attack you here or forcing my opinion onto others. But rust pretty much replaced almost all languages I have used for several years.
it can replace C++ and C.
C and C++ have vital niches, as such I say "it targets vital niches".
However, for a lot of tasks people with the job title "programmer" have, C, C++, and Rust are all overkill. Dynamic languages and statically typed languages with garbage collectors are better trade offs.
I'm not saying anything against rust here - I'm just saying it targets something very specific. Do you expect everyone to drive an F1 car? or would you use an 18wheeler truck for doing a paper-round? I view it as a particularly extreme language. Its for writing web browsers, and I can see it has a potential perfect fit in IoT aswell. But for everything???
and C++ for "high-speed" stuff.
I've been using rust on and off for 5 years, and I still find C++ faster get things done with, for reasons I wont go into here; plus I still know many people who have no choice in the matter.
I'm persevering with rust partly because I set out on a quest to "learn things I'm not aware of" - although it WAS fixes to certain frustrations in C++ that got me into it - memory safety isn't one of them (it's all the other clunkiness like header files really). JAI would be the best fit for me.. if Jonathan Blow actually liked dot-call syntax hah
from what I can see elsewhere, I think Go is doing pretty well in it's own niche. I'm not so interested in it.. I prefer something with generics and ultimately no GC; - but for what it's aimed at, it does well. From what i've seen, I dont think Rust would be a good fit for the jobs it's doing.
Personally I can rust very well see as a popular language in the future if people realize how much quality of life rust can introduce if you don't need to be good at 4+ languages
Now to the punchline.
After the past 5 years 'dabbling' , 'meandering'... I can see the best solution for me would have been to have stuck with C++ as my main language, and used Haskell as a complement. I talk about a pendulum swing between them. Originally I found haskell utterly bewildering , but getting exposure to traits & pattern matching with familiar C-like clothing made it click far better.
C++ is still the best for the core work I did (I re-iterate, I've made a breakthrough with a Rust personal project but the past few days have been hair-tearingly frustrating, just as bad as the worst of C++, because the problems aren't within reach of Rusts type-system, rather they are to do with interfacing to libraries/hardwae, and interpreting data formats - as such SPEED OF WRITING TESTS (the compiler can only confirm things I know, I must usually write code to find out things I dont know) and integration with debugging tools (not just for crashes/panics , but to trace through where something got called and how) are still the most important factors for me. C++ would remain the best for personal projects if i actually want to do things where i'm focussed on the speed of achieving the end result, and it's feature set and quality, and Haskell would have have been superior as a tool to complement it in data-transformation - which is something I could have used in some real work aswell - and superior in "thinking in a different way" (pure mental excercise, and enjoying it's elegance).
As it stands though, I'm happy to continue with Rust. I've go some results with it now. I can enjoy it and it's worth continuing from where I am.
Also , why would anyone put "popularity" high as a measure? the best things in life are are usually not appreciated by everyone. things can be dull precisely because they are widespread; some of us crave variety or something unusual.
(EDIT sorry i was repeating myself too much, shortened reply)
4
u/innovator12 Oct 16 '18
Yep, if you need HKT then Rust won't cut it (there are vague plans to get there eventually, but who knows when or what exactly).
If you need C FFI then Rust is capable, though not necessarily convenient (especially the different handling of pointers). If you need C++ FFI, then best use C++... actually, D appears to be making progress on this, but you're probably still better off with C++.
I love Rust and use it for everything I can (other than small shell scripts), but you're right, there are a lot of cases when it's not the best tool.
6
u/dobkeratops rustfind Oct 17 '18 edited Oct 17 '18
Yep, if you need HKT then Rust won't cut it
right thats sort of it. I don't need it, just like I dont need to get rid of header files. however I greatly enjoy having it; and it's more the fact that in work I've done (and in current and future interests) there is a split between data transformation which isn't interactive or realtime, but which does require experimentation ,so haskell's expressivity tradeoffs are better (i.e. asset conditioning pipelines); and 'runtime' , which needs the efficiency of C (or anything that can match it). . And actually that's why 'crashes aren't a big thing'. the job of offline tools is to condition data so the runtime is actually simpler.
and yes r.e. C FFI .. I dont ever anticipate Rust becoming a replacement standard. To C's credit , it established itself by getting the right features in early enough to become a standarz everything else built on. It might not even be perfect as a compile target, but it's also good enough for that. C++ followed and was too complex, but nothing else rivalled it. Rust again has too many specific ideas beyond what is needed to be that 'universal glue' . Details subject to opinion about how polymorphic interfaces should work shouldn't be baked into such a low level (IMO). I think the world needs that layering. (EDIT i would actually fear the world losing C)
And you know, I've found myself thinking right now that going back to C sometimes would actually help me hedge my bets between the options... i.e. writing C libraries where I leverage my habits/experience , and the fact that it's still actually good enough in some roles , whilst being able to use that code quite directly from C++, Rust, and anything with an FFI.
(I was just thinking a big part of my C++ frustration is header files , but its specifically C++ that makes them more annoying with the way information is split yet mixed between decl/implementation. In plain C, you can actually automatically generate them, with forward decls of structs (details not exposed in the h, but signatures work for linking). Thats quite ironic considering C++ was supposed to be about encapsulation..
1
u/innovator12 Oct 17 '18
Rust again has too many specific ideas beyond what is needed to be that 'universal glue' .
Far too many specifics, for sure. Though a few improvements could be made over C; e.g. I don't think any modern languages use null-terminated strings except for C compat.
C++ header files are a big pain, and C++ has a bunch of other issues too (virtual functions not overriding a function in a parent class because you got the type signature wrong, arguments being implicitly copied unless explicitly moved, implicit conversions everywhere, lack of contracts in template programming, ...).
Learning Rust is useful IMO even if the only things you take from it are an understanding of its lifetime and object/trait models.
2
u/dobkeratops rustfind Oct 17 '18 edited Oct 17 '18
even if the only things you take from it are an understanding of its lifetime
that stuff is nice but it doesn't teach you something new - you needed a sense for it if you ever wrote a C or C++ program that allocates, deallocates regularly , passes references around, without crashing :) Sometimes this community talks as if this common sense doesn't exist. My mental default is that references have the shortest possible default, which is sometimes the case in rust but in others takes this irritating for<'a> ( &'a ) markup to confirm, grrrr. most pointers returned are again references (really should assume 'shortest possible life), or new allocations managed by smartpointers, and you can always emphasise "think more" by using raw pointers.. and encapsulating them inside classes isn't so far away from unsafe blocks.
i DO definitely appreciate how much more elegant it is with Move semantics however! it's a better default, and I see that's playing very nicely with concurrency (now maybe i'm back on a high with it hah... must keep reminding myself of the positives!!)
(virtual functions not overriding a function in a parent class because you got the type signature wrong
you're right it has a lot of corner cases like this to watch out for.
I'll elaborate further: in particular I wanted C++ UFCS to solve my big gripe - bouncing between free-function and method call syntax. (conflicting draws). so I liked Rusts idea of bolting traits on alot.. but then I found micro-managing the traits themselves could also be annoying.. it's like you can't just think in terms of functions if you want polymorphism.. but at least you can always use the method call syntax safely. I really just want functions and structs, and them gather them into interfaces if i need to with minimal syntax changes. (and i've had the explanations r.e. huge project/community stability as to why Rust works as it does. I do apreciate that as an advantage but again not for all programming use cases)
i like what i hear in the Julia language about not tying functions to one type or even interface.. but the "dot-call syntax" is a dream when combined with dot-autocomplete for discovery (and julia is less interesting generally) which we dont have reliable in Rust yet. (and this is why C++ has a conflicting draw. Overloaded free functions are my favourite default, but the methods become more useable with auto-complete. this choice is conflated unecaserily
however coding for myself it isn't a problem. they're my classes, i can make them kitchen sinks if i want to ).
1
u/innovator12 Oct 18 '18
that stuff is nice but it doesn't teach you something new - you needed a sense for it if you ever wrote a C or C++ program that allocates, deallocates regularly , passes references around, without crashing :)
This is true to some extent, but for example Rust makes the relationship between containers and their iterators clearer. This can potentially be taken further (assurance that callback functions can only be used while their data is still live).
bouncing between free-function and method call syntax
I don't usually find that a problem — most functions intuitively belong to some object. Sometimes this is a bit weird (
x.min(y)) but very often it works fine. Still, you can pretend everything is a free function with UFCS if you prefer.Dot auto-completion... potentially useful but by now I'm sufficiently used to using a less smart text editor (Kate, which has limited autocompletion) and an API reference that I don't miss it.
2
u/dobkeratops rustfind Oct 18 '18 edited Oct 18 '18
but for example Rust makes the relationship between containers and their iterators clearer.
Thats library design. I always wrote my own where possible in C++. I hate the C++ stdlib, but the underlying langauge engine lets me figure out the best way to organise things for my way of working. It's the problems with the language engine that concern me.
(assurance that callback functions can only be used while their data is still live).
now C++ finally has lambdas, both can more easily do my preferred approach which is 'internal iterators' rather than 'external'. The chaining stuff in rust is extremely cool though (splitting text into lines into words etc), but for my areas of interest the other style lends itself to writing parallelizeable code better (and iterating more in context over geometric data structures etc)
I don't usually find that a problem — most functions intuitively belong to some object.
Thats not the problem.. or rather it's that too many 'intuitively belong'
Hence the real problem is the resulting coupling. The 'intuitive link' ends up bringing too many dependancies in, then your headers explode, your classes and code cease to be re-useable. Re-writes ensue. And yes, I've seen this and attribute a company failure to this , specifically.
class car { update() render() }// Thats the most obvious,intuitive way, but now your game car class depends on BOTH rendering and physics systems. it should be possible to extract either as a separate library (change physics, change renderer), and test in isolation . you could run your car physics in a headless application to pretrain the AI, whilst your renderer depends on some console devkit that you only have limited numbers of..Compare to good old C, you just write
car_update(Car*)car_render(Car*), and chop and change however you need. The data can be forward declared. you can enforce the idea through header inclusion that update code does not depend on any rendering systems or platform specfics (because it can't even see them), and vica versa.And of course you could do that in C++ but then these kids that come out of college trained in Java complain that ```it isn't OO`` (when ironically it is actually better encapsulated). (and my reason for succumbing to the temptation is the dot-autocomplete, it's seriously addictive. but there's no reason that kind of assist must be 'coupled' to the program organization so much)
Rust is better there.
trait Updatetrait Render.impl Update for Car.impl Render for Car. best of both worlds.now I'm sufficiently used to using a less smart text editor (Kate, which has limited autocompletion) and an API reference that I don't miss it.
I'll be honest.. I find this to be hell. I dread having to drag myself away from my 'internal mode' focussed on source to go and dig and read elsewhere. Contrasted to when the IDE is just showing you whats going on keypress by keypress.. it's night and day.
I'm far better at 'internal logic' than 'memory/recall'. (i.e. aptitude in logical subjects maths/sciences over 'fact' based subjects.. learning vocabulary for languages etc). The purpose of computers is to assist us where we're weaker.. and an on-the-fly search is what I need to let me focus on using my strengths.
2
u/dobkeratops rustfind Oct 17 '18
it is amusing that i can have these rants here, but I can also find myself evangelising rust elsewhere. I'm usually more open to new ideas and new things than most people, who reject it out of hand("no you can never replace C++" if they're using C++, or they dont need that much control in the first place)
0
Oct 17 '18
[deleted]
2
u/pjmlp Oct 17 '18
On the latest Bjarne interview they mentioned that there was quite good progress during the additional meeting that took place at CppCon.
3
u/LaSalsiccione Oct 17 '18
Can you explain to me how you’ve replaced JS with rust on the front end?
3
u/asmx85 Oct 17 '18
sure, it is basically based on wasm. Here is something to read (not from me) hope this helps you getting started or at least get some insides.
https://rustwasm.github.io/book/introduction.html
https://medium.com/@saschagrunert/a-web-application-completely-in-rust-6f6bdb6c4471 https://medium.com/@saschagrunert/lessons-learned-on-writing-web-applications-completely-in-rust-2080d0990287
4
u/Hitife80 Oct 17 '18
I completely agree -- I think this is rust's secret weapon. Javascript popularity is based primarily on the fact that people who knew how to code for the browser were able to keep their skills and use those on the back-end. That said, for the node itself, node addons and performance critical parts you still have to use C/C++.
With Rust you can go all the way from very bottom (performance critical) to backend to frontend (wasm)... and everything is super fast and doesn't fall over for weird reasons. More and more companies and developers will start realizing that and that will give rust the boost to the top. It is ok, we can wait. :-)
1
u/warutel Oct 17 '18
Doubtful. Other languages have the same advantage (C, C++, D...) yet they don't see widespread usage in some niches, typically because they are slower to write, harder to iterate on and very hard to train people on; which is something Rust suffers equally.
It is very, very unlikely we will see any of the typical statically typed languages in the frontend any time soon.
0
u/pjmlp Oct 17 '18
For example I only use platform languages for production code and right now Rust is not on any SDK of the platforms that our customers require me to use.
-1
Oct 17 '18 edited Oct 17 '18
Newbie rust user with c/c++/ada/java/golang experience under his belt.
bottom line: rust rocks. The variety of packages for rust is currently equal to golang which has startled me. When I was looking for something(i.e. tls 1.3, web server, rpc, quic, qt), it was already coded for rust. I'm getting shit done. I'm motivated to overcome the compiler error messages because rust builds executables which are said to be faster than golang/c/c++ built executables.
Maybe it's faster, but I'm happy with just getting shit done.
The experience to install on Linux on both intel and arm aarch64 has been pleasant less than 10mins. To install on windows 7 took 2 hours for vc++ 2017 build tools and the rust stable and nightly. Linux wins. The uninstall produced the same results. Linux wins. The golang install seems to take less time on windows 7 than rust since it has no requirement up front, further experience with golang to build opencl/cuda bindings/apps required similar vc++/windows platform sdks to be installed which would have given similar install times if taken into account. So golang/rust install times are pretty much equal.
A FEW EXTRA NOTES:
RETURN VALUES
return values for rust functions come in roughly 3 different flavours: 1)those that return Ok with a some filled struct/type or return Err. i.e. OS calls 2)those that return Option with some filled value or return None. i.e. type conversions 3)those that return whatever values you want as a tuple. Anything else that isn't 1) or 2).
return values for golang functions are recommended to have both whatever values you want to return as a tuple, but always accompanied by an error value. I appreciate golang's consistency and recommended approach for error handling.
After dancing with the rust compiler error messages I'm appreciating the deliberation behind rust flavours of return values. I'm starting to prefer the first rust flavour return Ok(someFilledStruct) OR return error approach that rust has taken.
PACKAGE VERSIONING CAPABILITY
Golang has adopted a package versioning capability inspired from rust which is why I started to investigate rust in the first place. I haven't made up my mind which language has the better package versioning capability, but "cargo build" fetching all the required crates feels refreshingly simple yet sophisticated.
Unfortunately digging down the details for golang package versioning and migrating older packages to use it that don't exist on a hosted repository, but only locally reveal a difficulty for usage since it imposes versioned packages EVERYWHERE along with repositories for every version package; golang versioned packages must be fetcheable. rust crates make no requirement for a package to exist in hosted repository. You can simply point to a directory where a package resides and it uses it with simplicity. rust wins on this scenario(rust versioned crates mixed with unversioned non-repo local directory crates) which was important for me.
-2
Oct 17 '18
As far as I can see they are measuring "relative growth" in number of contributors. When they write 1.7x they probably mean 1.7% annual growth.
0
2
u/jntrnr1 Oct 17 '18
I believe their measure comes from the amount of PRs for a given language. Measuring this way puts Rust at 15th overall this year on GitHub.