Do you like your initial value to be at index 1? Cool. Prefer to index arrays from 0 instead? Sure, go ahead.
How about an array with indexing symmetric around zero?
double precision :: arr(-100:100)
Beautiful!172 karma · joined February 3, 2013
Do you like your initial value to be at index 1? Cool. Prefer to index arrays from 0 instead? Sure, go ahead.
How about an array with indexing symmetric around zero?
double precision :: arr(-100:100)
Beautiful!Forgive me, but I cannot see that in the document sections you point out. The closest I can see is F.10-3, on page 517, but my reading of that is that it only applies to the Special cases (i.e values in Section 9.2.1), not the full domain.
In fact, my reading of F.10-10 (page 518) suggests that a conforming implementation does not even have to honor the rounding mode.
> 9. Recommended operations
> Clause 5 completely specifies the operations required for all supported arithmetic formats. This clause specifies additional operations, recommended for all supported arithmetic formats.
Hyperbolic tan is in the list of recommended functions, and yet: https://github.com/numpy/numpy/issues/9187
I’m too young to have seen the craze the first time around, but for me they are the ultimate nostalgia object. You see, lava lamps take me back to being a young child visiting The Gadget Shop with my father. He knew I liked the place, so every time we travelled into the city centre together we’d visit. The place was small, but packed full with the sounds and flashing colours of the gadgets within.
The central island would always have a sales assistant behind it demonstrating this or that. A miniature blimp, effortlessly floating above us. A skilled performance with light-up juggling balls or advanced yo-yo tricks. A remote control car, driven and flipped onto its back to return the way it came. I vividly remember the tickling feeling brushing my hand over the tips of a fibre optic lamp on display, with its twinkling light at the end of each fibre.
All around the outside of the shop were wall to ceiling shelves, full of trinkets protected with panes of glass. Plasma globes flickering and buzzing with mysterious electrical power. A row of chrome perpetual motion toys each moving slowly and gracefully, dancing its own dance. Glow in the dark decorations illuminating with their curious green-white light. The rhythmic click-clack-click sound of a Newtons Cradle ticking away the seconds on a shelf somewhere.
And, of course, the rows and rows of lava lamps on display. A multitude of different colours of bulb, liquid and lava. Some had glitter inside, rather than wax, but to me they just weren’t the same. I could have sat and watched the spheres of lava split and recombine together for hours. But alas, it was time to go home.
I still live in the same city. I would love to share the same memory with my own children one day, but The Gadget Shop is unfortunately no more. It seemed to dissapear around the late 90s. What I loved about the place was how analogue and tactile everything was. Any item could be removed from the shelf and interacted with. In my memory, there were no digital gadgets there at all. Though, I could have simply forgotten about them.
There are similar shops around now, but they don’t spark that same joy in my soul. Sure, they have the odd remote control car or mini toy drone on display… but the torrent of lights, colours and sound is gone. Replaced by rows of boxed collectible plastic figurines or, what feels to me, like branded tat.
Sometimes I wonder if perhaps it’s not the gadgets that have changed, but instead I have just grown up. Whenever this happens, I stop and watch my lava lamp for a little while. Without fail, it always invokes the same sense of wonder I felt as a child in The Gadget Shop, and takes me back to my fond memories of the time spent there with my father.
The paper you mention is indeed cited.
Another fun one I just found is the statement “n^17 + 9 and (n + 1)^17 + 9 are relatively prime”. The first counterexample is at n=8424432925592889329288197322308900672459420460792433.
See also “Rendering Worlds with Two Triangles” [2], which is such a wonderful title for describing these techniques.
git rebase --abort
to return to where you were beforehand.I find that git is actually very good at explaining what is going on and what you should do next by just running git status in the middle of some process like rebasing and reading what it says.
Even if it all goes really wrong the git reflog has always saved me.
I was really struggling to search for the problem on the web, “Safari forgets website logins” led me nowhere. I was almost at the point of just trying a reinstall of macOS.
Indeed, my MacBook’s disk is pretty low on space. Not dire, but fairly low. I will clean up and hopefully things will return back to normal!
EDIT: Some users mention RAM and the OOM killer on Linux. I don’t think the situations are quite the same. It’s possible for a machine to have low disk space without any RAM pressure. I assume that is what is happening on my machine. When Mail started dying on me I considered and checked the RAM use, closing a lot of backgrounded applications, and even going so far as to reboot the machine without success.
It is also the font of the FUTURE, so makes several appearances in posts from this wonderful blog: https://typesetinthefuture.com/
It sparked an emotion and for me that makes something art.
One of the best descriptions of threaded code and how Forth works in general is the Jonesforth[1] source code, written in a literate programming style. The prose is excellent and the whole thing is worth reading through.
https://github.com/nornagon/jonesforth/blob/master/jonesfort...
I think the language itself and the surrounding tooling aren’t really causing the image problem. The real issue is when people inherit some older code originally written in the 70s. They then have to work with, and form opinions of, the style of FORTRAN common at that time.
This is particularly common in academia, where a student might inherit decades old code for simulating some physical scenario from their advisor. Modernising the code base gives little direct research benefit, and if that student has not seen much or any Fortran before they are going to end up learning the ancient F77 style anyway as they make tweaks to the code.
Wait, really?! Indeed, that seems insane to me — links change or die all the time!
I had thought the whole point was to prove a kind of ownership of some specific piece of art/data and just assumed that a hash of that data would be involved in a significant way.
The GPE models a condensate as a single-particle quantum wavefunction with a non-linear form of the Schrödinger Equation, so you get some interesting behaviour from the non-linearity while the simulation remains computationally feasible.
You can interact with the potential term by clicking and dragging inside the 2D box.
I found that doing a small amount of activity like resizing other non-Safari windows caused extra glitchiness, so I was doing that throughout.