211 karma · joined July 2, 2023
Sure you can printf or run gdb, or whathever, but first if something like a contract has failed it will be easyer.
There was the FM7 before. It already fixed the UX/UI problems of the hardware version.
Otherwise, the article does not mention the problem of race conditions but sometimes it might be better to use static constructors instead of performing lazy construction in the instance getter.
The D language standard library uses both. When you generate the documentation from the comments attached to a declaration, the following unittests (they are identified using a special markup, (that is just triple slashes...) are also included.
Example once rendered [0], in the source you see the examples are actually unit tests [1].
[0]: https://dlang.org/phobos/std_algorithm_searching.html#.all
[1]: https://github.com/dlang/phobos/blob/master/std/algorithm/se...
> Distribution Integration
Yeah, so much. Example that happend a few years ago, in a project I particpated to:
downstream sends a patch to support an alternative build system, the patch includes a CI run. Gentle upstream accepts. One day downstream stops giving a s**t and consequently does not maintain the support anymore. Eventually at some point the CI breaks. Now upstream has extra-work, while initially it did not really want to support the alternative build system.
The D language has both: introspection (__traits, is, etc.) plus hygienic code generation (mixin, static if, static foreach, etc.).
Fantastic moment [1] I enjoy watching semi-frequently.
> However even on this basis, comparing the actual energy yields of a large nuclear device and an explosion of TNT can be slightly inaccurate. Small TNT explosions, especially in the open, don't tend to burn the carbon-particle and hydrocarbon products of the explosion. Gas-expansion and pressure-change effects tend to "freeze" the burn rapidly. A large open explosion of TNT may maintain fireball temperatures high enough so that some of those products do burn up with atmospheric oxygen [...]
See also the "Relative effectiveness factor" paragraph [1]
[0]: https://en.wikipedia.org/wiki/TNT_equivalent
[1]: https://en.wikipedia.org/wiki/TNT_equivalent#Relative_effect...
[1]: https://katef.github.io/kgt/doc/gallery/c99-rrd.html#struct-...
Of course the chaos is not caused by, "very hypotheticaly" let's say, a compiler or maybe a language without modules.
How would you estimate that ? 20%, 40%, or 70%, true ?
I've recently watched a documentary about those "proto-villages" found (... to be bigger than initially thought) in Moldova but the hypothesis for their decline was else (still according to the doc.): the theory was that at some point they just became too big to function as a whole. Initially when the size was reasonable there was also a kind of "proto-democracy" that worked naturally but that did not scale, and when the settlements became bigger that cohesion did not work anymore and people left.
That being said, the theory of a plague also makes sense, the more the people the more the chance to spread it.
What I say is that eventually a marginal frame of people dont believe that fact and instead prefer to believe something wrong ;)
For instance: "chernobyl accident was meant to impeach the Duga to ever work".
That's also why there's even a conspiracy theory about the Duga. It obviously hasn't been proved but the idea is that the Chernobyl reactor accident would be a U.S sabotage targeting the Duga.
I'm not into plusplus, however i'm curious. How the tuple get evaluated to a condition ? is that lowered to if `to && ec` ?
well well well. People on HN will be surprised to know that the internet is a complete shit hole. "I thought the internet was made for the good of humanity".