Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
slavik81
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
91 ms
·
961.
▲
by
slavik81
7y ago
You need to specify the properties of T that you use. So, that first line should be: fn largest<T: PartialOrd + Copy>(list: &[T]) -> T { https://tomtongue.com/docs/rust-wk-20.html#trait-bounds
962.
▲
by
slavik81
7y ago
I really appreciate keldaris' posts, as his experience seems to be very similar to mine. Many simulation algorithms involve manipulating large arrays of data. Rust can check that your indexes are within bounds, but it can't check
963.
▲
by
slavik81
7y ago
This is underappreciated. My experience on a carefully-estimated software project was that the median task would come in 20% under budget. However, we still ended up over budget. Every iteration there'd be one or two small tasks that b
964.
▲
by
slavik81
7y ago
Perhaps they should be the ones who get to decide. In many safety-critical fields they do. That's the point of requiring an engineer's stamp of approval on a design.
965.
▲
by
slavik81
7y ago
I'm fine with taking risks. I just don't think we should be making a cavelry charge into the machine guns. I know the payoff would be great if we succeeded, but it's still not a good idea. I'm deeply excited by the possi
966.
▲
by
slavik81
7y ago
I started reading through On Liberty recently and I was surprised by how topical it was. This discussion doesn't seem to have changed much over the past 150 years. Mill spends a long time addressing arguments for censorship that I stil
967.
▲
by
slavik81
7y ago
It's not true. https://www.snopes.com/fact-check/dryer-sheets-full-of-toxic...
968.
▲
by
slavik81
7y ago
I should probably have reread the full section. It's more clear in context that 0.96 * 0.8768 = 0.842.
969.
▲
by
slavik81
7y ago
0.96 * 0.842 = 0.808 1.04 * 0.833 = 0.866 Well, that rules out the obvious possibilities.
970.
▲
by
slavik81
7y ago
There are practical reasons for bereavement leave, too. My father-in-law passed away suddenly. He was a CPA and died during tax season. Wrapping up his business, organizing a funeral and executing his will took my wife a couple weeks.
971.
▲
by
slavik81
7y ago
> People don’t claim companies can’t censor things. I did a quick search because I recalled seeing that in the past. It's certainly not the prevailing consensus, but people do make that claim. https://news.ycombinator.com
972.
▲
by
slavik81
7y ago
> I really like that Python 2's str could hold arbitrary binary data Python 3's str can also hold arbitrary binary data. That ability was introduced in PEP 383.
973.
▲
by
slavik81
7y ago
For rendering at interactive rates, maybe check out "Real-time Rendering", currently on its 4th edition. https://www.realtimerendering.com/ For rendering at rates measured in seconds per frame, consider the "
974.
▲
by
slavik81
7y ago
It was added in v3.13. It would be nice the minimum version required to use a function was directly stated in the CMake documentation. I just keep picking older versions from the dropdown until the page disappears. https://cmake.
975.
▲
by
slavik81
7y ago
It could be worse. I've seen 2D architectural drawings that could have been M.C. Escher works. You at least got a design that was physically possible in three dimensions.
976.
▲
by
slavik81
7y ago
If I could edit out that first sentence, I would. You already mentioned that. My apologies.
977.
▲
by
slavik81
7y ago
Though, these days they're technically not plants. Red and brown algae have been moved out of the kingdom of Plantae, as they are believed to have developed photosynthesis independently.
978.
▲
by
slavik81
7y ago
In my jurisdiction there are no technical exams for applicants with a degree from an accredited program. I regard the exams as much less important than work experience under the supervision of someone who knows what they're doing. I am
979.
▲
by
slavik81
7y ago
There is one marine production which, from its importance, is worthy of a particular history. It is the kelp, or Macrocystis pyrifera. This plant grows on every rock from low-water mark to a great depth, both on the outer coast and within t
980.
▲
by
slavik81
7y ago
Indeed. You can browse through the disciplinary actions taken against engineers by professional associations and you will find all sorts of incompetence and malfeasance. I find the discipline tends to be on the lenient side—lots of fines, s
981.
▲
by
slavik81
7y ago
Just to expand, I've never heard of an engineer from the wrong field signing off on a document (e.g. an EE signing off on a structure), but here's a lesser example of unskilled practice and the corresponding disciplinary action:
982.
▲
by
slavik81
7y ago
The work experience requirement is pretty important, though. That's how you learn the practical side of the field. I have a degree in EE, but there's a 0% chance I could safely design electrical equipment. In school they taught me
983.
▲
by
slavik81
7y ago
Which would result in their license to practice being revoked by the professional association. It takes ~8 years to fulfill the requirements to acquire a professional license. It's not worth the risk of being caught.
984.
▲
by
slavik81
7y ago
A P.Eng. is professionally obligated to refuse work that they're not competent to perform. You can't hire the wrong kind of engineer, because the engineer knows if they're the right kind or not.
985.
▲
by
slavik81
7y ago
Yeah. There were a lot of reasons why it was a good name. This panel briefly discussed the naming process: https://youtu.be/0b3x5Tlh6g0?t=2m30s
986.
▲
by
slavik81
7y ago
IIRC somebody said during one of 2015 SIGGRAPH presentations when it was introduced that it's the fifth iteration if you count SPIR pre-1.0, 1.0, 1.1, and 1.2 preceding it. They may have been joking. Of course, the V in Vulkan also ste
987.
▲
by
slavik81
7y ago
No relation. SPIR-V is the fifth iteration of the Standard Portable Intermediate Representation, originally based on the LLVM IR. It's an intermediate representation between the high level shader programming language and the GPU's
988.
▲
by
slavik81
7y ago
Awesome. Bazelisk provides exactly the sort of compatibility I was hoping to see. Though, manually specifying a maximum Bazel version doesn't seem like it should be necessary. The authors of Bazel know what features they have changed s
989.
▲
by
slavik81
7y ago
The lack of backwards compatibility between Bazel versions has been the deal-killer for me thus far. Old build instructions should work with newer releases of the same tools. It's important for the tools to remain compatible because yo
990.
▲
by
slavik81
7y ago
In C, 'a' is an int so most of those are not char/char operations. In C++, 'a' is a char and the comparison result is a bool, though it doesn't really make a difference in that function.
More ›