592 karma · joined January 21, 2013
They also have a lot narrower scope of use, which means it is easier to create stdlib usable for most people. You can't do it with more generic language.
- version constraints - source of packages (you may want to host them yourself one day) - any additional metadata (some packages have options or features)
There are other products that provide something similar, but are not as popular, as easy (part of easy here is integration with aws) to use and require extra tooling. This will be goto tool for many people working with data, and I'd expect "load_from_s3" to be added to many tools fairly quickly. That's unique.
> People consider Rust memory safe, but there are a few cases where it is not
The chance that you will encounter memory safety issues in Rust is very, very low (comparing to other popular languages). We are talking about bugs in stdlib (very unlikely) and usage of unsafe in your code and dependencies. If you happen to use unsafe directly in your app, I'd say it is a spectrum and you can be in a danger zone. Otherwise, it is a small enough issue to focus on other problems. For 99.9% of people, "using Rust" is enough of a guarantee to be safe.
> Are languages without GC memory safe?
In theory, not having a GC in itself tells nothing about safety. Commonly used languages without GC are mostly C/C++, so in practical terms, they are unsafe.
> Is idiomatic Zig memory safe?
Zig itself is not memory safe. Even if idiomatic Zig was, how do you verify that some code is idiomatic? In practical terms, I don't think there is enough examples of Zig code to make determination, so I count it as no.
> Is idiomatic modern C++ memory safe?
"Idiomatic modern C++" very likely will have non-idiomatic or non-modern dependencies. There are many examples of safety issues in modern C++ codebases, so definitely not.
In my opinion, any definition of safety that relies on developer skills or usage of extra tooling means it is unsafe.
I do care about usable tracebacks in error reports though.
You can extend diesel (and probably many other orms, Diesel is just particularly easy here) to support any db feature you want.
> It is highly unlikely that an ORM provides support, much less a good abstraction, over features that only 1/N supported DBMS have.
That depends on orm flexibility and popularity. It may not provide support OOTB, but can make it easy to add it.
> Your code ends up using the driver raw in these cases, so why not just use the driver for everything? Your codebase would be consistent at that point
Main point of using orm for me is that I have type verification, raw (as in text) breaks too easily.
You don't think about those at all when using Rust. That's why it was created. However because the conventions are different, some pattern will be different and you will need to learn do some things differently. I don't think Rust is particularly difficult to learn when it comes to using a framework, but a non-trivial amount of learning will be required.
As for features, I've found this video comparing them: https://www.youtube.com/watch?v=jWgLOtm9le8&ab_channel=DashC...
they call it records, added recently. Depending on where you work, you may see them in a decade
Many languages expelled C/C++ from the domains they were once kings of entirely. It used to be "the language" for many, many things.
Also I read a story of a developer resisting move from hand-written assemby to C, to which company owner replied "you can write your assembly, but not for my money". So nothing new, though some languages get a lot more resistance than others.
It lacks tons of features ES and Solr have, most notably geo search, but what it does it does a lot faster.
Framework is most configurable, but I have no personal experience.
use linters, they keep getting smarter
.. than use library, because you should not rely on the assumption that next developer adding one more piece to this code will magically remember to validate it with json spec.
The only difference is that passcode is one-time use, so it's not stored and even if someone would stole it, it cannot be reused.
Numerous wild animals can be held as pets, without going through domestication, so apparently they do. If you feed them, they may have no reason to mind the leash, life is hard in the wild.
A flood, drought, climate change, war or better jobs elsewhere were common reasons for abandoning locations. We have many abandoned projects today, that doesn't have to say anything about social structures.