improbable22
If by indexing you only mean adding offsets to pointers with your bare hands, this is possible but discouraged. Because you'll produce a buggier and less general version of exactly what already exists. In this case, reversing an N-dimensional array, along any M of its axes, with arbitrary offsets -- there are a lot of ways to get that wrong.
Here's a nice recent example: a new reverse!(A; dims) function, which is fast and works on arrays with any number of dimensions. And is completely indifferent to where the indices start:
https://github.com/JuliaLang/julia/pull/37367/files#diff-eb9...
English in general makes this distinction: "He is fewer than 6 years old" is simply a mistake, while "less than 6 years old" is fine. (I think some dialects use "fewer" less often, in general, but would be pretty surprised if any prefer it here.)
Surely the point of any language at all is to abstract away some details of the underlying hardware. Both for portability and to make things easier for human brains. How much you should abstract away obviously varies, based on what you're trying to do, and on how varied the hardware is.
And it depends on how much computation & memory you can give your compiler. One reason new languages can have nicer abstractions is that they don't have to compile on 1970s hardware.
One counter-example is Mathematica. I can mutate any object any time I like, and doing so is extremely common. Yet under "pointer" its help tells me about some unicode symbols, and some GUI stuff about mouse pointers.
In reality, some of its lists are dense memory like C, some contain arbitrary objects (such as expressions, or high-precision numbers), but these implementation details aren't part of the language, and most users never know them.
Yes I know, and not just Europe. But my comment there was specifically about contours, i.e. height data from SRTM. I'm not aware of any project to crowd-source stereo-pair contour drawing, but if you know of one, I'd be interested to have a link.
But still much better than Google maps, which seems very much for cars (at least outside of cities).
On MapOut at least, you zoom in too far & then click the tile you don't have. On a good network there's a little more friction than on (say) google maps, but not so bad. A few MB, never hundreds of MB.
(And on a bad to nonexistent network, it's golden to be absolutely sure that it still has what you looked at yesterday.)
But if the stars have been there forever, the comet is effectively in an oven of uniform temperature. The equilibrium state at which it radiates heat as fast as it gets it has the comet's surface the same temperature as the rest of the oven. So it glows.
Likewise "went to school" (as a scoolchild) vs "went to the school" (to collect someone, or to teach). "At university" (a student) vs "at the university" (physical location, for any reason). "Went to prison" (as a criminal) vs. "went to the prison" (to visit his brother, or to fix their telephones). "Does she go to church?" (to church services) vs. "did you go to the church?" (to see the stained glass).
"Go to the doctor" is a bit different, the doctor isn't an institution, he's a person. Although I think that implies you went for medical reasons, if you stopped by to pick up some paperwork, you might say "I have to stop at the doctor's" i.e. his rooms. But maybe that's also because you would probably talk to the receptionist anyway. But "went to the barber" implies you had a shave, while you might "stop at the barber's" to pick someone up.
If it did, the same thing would happen not just for stars, but for all sorts of things. If you position a computer screen on a hiltop far enough away that, on a dark night, you can just make out whether it's on or off, then your eyes are getting about 6 photons per second. It doesn't matter whether these come from a million separate pixels, or from one light-bulb of similar total brightness.
Having expansion just-about implies there must be such a time. Because if you run it backwards, eventually the stars will all be touching each other, and clearly can't then behave exactly like stars do -- something else must have been going on.
Our modern answer does have such a time, and expansion. And the answer for why no stars shine before some time is that they took a while to condense into dense clumps from the initially quite smooth hot gas. What you see in the gaps between them is precisely this hot gas, at the moment it first became transparent to light, this is the microwave background radiation.
In their scenario of infinite time, matter which isn't lit up doesn't help. It would, like your eyeball, get the light of the stars from all directions, and would soon equilibrate to the same temperature as these surfaces.
The pipe `x |> f` is indeed the same.
I don't know whether using {} for both types & blocks would be hard to parse, maybe it's possible. I have heard & can believe that parsing <> as a 4th ascii bracket is pretty tricky.
Base.literal_pow(::typeof(^), x::Int, ::Val{n}) where {n} =
(println("power $n"); float(x)^n)
pow = -5
2^-5 # yes
2^pow # no, hence an errorYou can avoid it quite a bit, e.g. f(x,y) = (z=x+y; sqrt(z)) defines a function, with two statements separated by ;.
https://github.com/fonsp/Pluto.jl is a super-nice way of just starting, without too much setup cost. I think it will soon be self-contained as to what packages & versions are needed, too.
Here's a recent example of an upgrade, from code with stride calculations to a more abstracted version, which is generic to offsets & number of dimensions:
https://github.com/JuliaLang/julia/pull/37367/files#diff-29c...
I guess there are lots of uses in optimisation problems, and in sampling algorithms for statistics. I don't know how easy it will be to sell Swift to people who now use Stan or Stata (or R) and don't think of themselves as programmers.
> In a language with extensible syntax(ex: proc macros), this would sit in a library.
And this would allow easier iteration of different designs.
But it was subsequently understood much better, in the 70s. There are no infinities involved in thinking about renormalisation group flow.
That progress seems like exactly the story the article is trying to tell.
It's indeed not so different from the story of calculus. You don't even need Dirac, the very basic idea of calculus is a hack for dividing zero by zero without getting confused, which later got nicely cleaned up to became respectable mathematics.
The formal written language was indeed standard Dutch, but was not widely understood. For example (IIRC) around 1900 the dutch reformed church in the Cape partly switched to English, on the grounds that at least this was a real European language, in which people might actually understand the sermon! After that Afrikaans got formalised, e.g. the first official bible translation was 1933.
The effective divergence time is much longer than since 1947 -- I believe that around 1900 people in England thought their cousins in India a generation behind in dress & everyday speech. And formal bureaucratic terms were already ossified, another classic is "out of station" (as in, out of town, away from the office) which IIRC is from east-india company days.