1,336 karma · joined Jul 31, 2014 (12y ago) · 390 submissions
comment 7y ago · link · parent
Could you expand on this? It's a pretty strong claim.
LLVM produces very fast code and is very commonly used for c++ compilation. Rust also has access to the usual low level control suspects, inline asm, manual memory layout & operations, pointer shenanigans etc.
Benchmarks are never perfect but they show that rust in usually within the ballpark of c++, if not comparable: https://www.reddit.com/r/rust/comments/akluxx/rust_now_on_av....
comment 7y ago · link · parent
More "technical" reasons here: https://github.com/BurntSushi/ripgrep#why-should-i-use-ripgr....
For me, the performance is best in class, ux is great, and has defaults that make sense.
Perhaps this helps add context. Every day there are probably thousands of new people learning to write software and learning and command line search tools. They would compare grep, and perhaps something like ripgrep on how they stack up today. They probably don't want to search their javascript dependencies by default (from gitignore, eg node_modules). They probably don't want to search their build (binary/gitignore). They would like to have an easy way to say "only search javascript files" or "only search go files". They would like the fastest tool for the job, why would you opt for the slower one? None of greps historical clout/muscle memory has an impact on them. They would probably appreciate coloured, formatted for easier human consumption output by default.
Sorry for the rant!
comment 7y ago · link · parent
See addons: https://www.netlify.com/products/
Also services like this allow you to have a "cms" which is the typical use of a db for _most_ websites: https://www.contentful.com/.
You are correct, heavy db users probably wouldn't go with a service like this :)
comment 7y ago · link · parent
You can call api's from JS and host your database separately, also possible that people use some kind of "serverless" database like google firebase.
comment 7y ago · link · parent
Restore session doesn't help if you're in a private session.
Also you may be in the middle of actually using your browser for thing that you don't want to interrupt, a game, an online application, anything really..
comment 7y ago · link · parent
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/Web...
comment 7y ago · link · parent
It's supported in safari, currently gated behind a setting though.
comment 7y ago · link · parent
Perhaps spending some time looking at how certain libraries write their type definitions will help you learn how to use them, if you're constantly fighting you are probably missing some fundamental concept that TS operates with. TS has also gotten much better at expressing more complex types over time and there are still more things on the roadmap.
For me TS only grows more useful as the size of the codebase increases. It allows safe refactorings you could only dream of in a large JS codebase.
comment 8y ago · link · parent
For a library with a design principle to be as hard to misuse as possible it seems like the right decision, and the "exception to the rule".
Infinitely better to crash than to potentially let the process/library run in some kind of degraded state.
If you are aware of this behaviour and are savvy/experiences enough you'll either 1) Catch the panic and perform an appropriate library 2) Use a different library.
comment 8y ago · link · parent
"Stack Overflow ultimately has much more in common with Wikipedia than a discussion forum. By this I mean questions and answers on Stack Overflow are not primarily judged by their usefulness to a specific individual, but by how many other programmers that question or answer can potentially help over time."
Personally I would have been much more understanding of the process of using stackoverflow if I knew this, and so would many of the people who get stung expecting an answer to their question.
In reality the user is contributing their question to the community, not asking a question in the traditional sense. That's my take anyway.
comment 8y ago · link · parent
comment 8y ago · link · parent