1,199 karma · joined September 10, 2015
> thread 'main' panicked at 'index out of bounds: the len is 2856 but the index is 2856', helix-tui\src\buffer.rs:185:14
[1]: https://www.youtube.com/watch?v=yXkEpzexYIU
/edit: ant this one [2]
/edit: The sibling comments mentions that git can infact delta compress older commits for storage efficency. But my point was that git commits are not deltas but full snapshots.
Has somebody a good visual analogy for this in another medium? I mean I know that this is a case but I can not visualize the energy flowing on both sides out of the source with the medium only moving out on one side.
I will try for myself:
Say I pump a lot of water in a circle by moving a pump by hand. I put some energy into the system. By pumping I push water molecues out one side of the pump and pulling them in on the other side. That creates a pressure difference inside the water. Even if I pump the water really slow, that pressure difference propagte with the speed of sound through the water. That pressure difference is positive one the one side of the pump (water is pushed) and negative on the other side (water is pulled). Somewhere on the other side of the pipe circle the pressure differences meet cancel each other out. So the pressure difference is the energy moving through the system in both directions. But the water itself only moves in one direction. But now we have two kinds if energy in the system. The pressure wave and the kinetic energy of the water. If I keep pumping the water will speed up faster and faster. I guess that's the analog to a glowing wire. But if a put a turbine into the water the flow of water will be slowed down because the kinetic energy of the water is extracted by the turbine. Now if the water is at rest and the turbine as well and I now start pumping the pressure difference will flow in both directions to the turbine. It will start spinning as soon as the pressure differences meet there. If the turbine is not opposite to the pump the pressure differences will take different amounts of time to reach it. But the turbine will already start moving when hit by the first pressure difference by absorbing it the (pressure wave stops there) and then latter be hit by opposite pressure difference and move again.
So far correct?
So in an ideal system the water would not move at all but only the pressure difference would propagate and be consumed by the turbine. But that would mean that the turbine energy leaves the system completely -> the turbine does not even turn because it's energy is 100% extracted by it's consumer.
So in this example flowing water always represents some kind of loss/inefficency. The goal would be to maximize the pressure difference to propagate but the minimze the water flowing.
Is this how you could explain alternating current for transportation of energy?
rust: |x| x+x
swift: {x in x+x}
rust: || 42
swift: { 42 }
I would prefer to review a messy 50kloc php project over a messy 50kloc ruby project.
So if in rails you declare an active record model with belongs_to etc it's hard to keep track of what is really happening under the hood.
In php you have almost no runtime metaprogramming so the things that could happen if you read a piece of code are reduced to a smaller set of options that are easier to understand. well you have reflections but at least they are used in a more static way.
It really hits a pragmatic sweetspot. It's really easy to deploy and frameworks like symfony give you all the power like rails but without the magic.
Then HTML/CSS/JS could be left alone for documents and hypertext based pages like wikipedia, blogs etc and stuff like googles docs or figma can be built in a new format.
And as both formats are supported by all browsers a document could just embed and xml/cool-web-application resource in an iframe and the application could just have a component to render an linked document.
In general I agree with you and would not take an extreme position to deny the goverment everything in a crisis situation.
But on the other hand there are people (medical experts?) arguing that in the coming years or decades there will be many new viral deseases to encounter. So espacially with all this worldwide awareness and fear I find it easy to imagine that there will be an increased afford to detect virsus leading to maybe one new virus in focus every few years keeping the whole system in an alarmed state (including all the "special" [reading the permanent] laws) active for the whole time. Generations growing up from now on may not even know the times before. Same as with the "terror" theme now. Every few month there are reports about terrorist attacks and the whole thing becomes a meme and is used to justify anything.
Actually the downvotes my original comment receives demonstrate the exact behavior the OP article describes.
I will try (in a perspective here from Germany):
In general nothing here is really bad, nobody is killed or deported. So of course a comparison to the linked article is an exaggeration. But nonetheless since April the general mood in the country is be-surprised-and-accept driven: Businesses are closed on short term (last time on a friday end of september it was decided that on monday all restaurants, sport centers etc) must close (*takaway only). Because covid is propagated as this extreme dangerous risk nobody can complain. The whole public is only waiting what next rule is announced from week to week or month to month. People who refuse to wear a mask (for various reasons in various situations) are losing their jobs - either because the employer wants to get rid of them anyway and uses the not-mask-wearing as excuse or because their is real hate and fear between people in different groups. Their is no real philosophically based discussion about risk realted tradeoffs - only dictated policy.
And in the background basic laws are rewritten/adjusted to reduce the overall freedom. For example here in Germany a basic right of privacy at home so except with an order of a judge the police is not allowed to enter. But it is tried (or even succeeded? I do not know) to allow police to enter homes in general in order to check if more than X people are inside. Or it is argued that people who violate a quarantine order should be locked into a psychiatry. Some (few) people fight back but in genral changes are just announced and accepted.
It's a really slow process so many do not or want not to notice it but since april there are a lot of long term changes on the way that will alter the whole system to be more tolitarian/less free and which for sure will persist even after covid - all with covid as excuse.