Inspired by this twocubes’ post and asked to make an animation of it, I made a gif.
Monterey Bay Aquarium
styofa doing anything
Not today Justin
Keni
Game of Thrones Daily

@theartofmadeline
AnasAbdin

No title available
$LAYYYTER
One Nice Bug Per Day

if i look back, i am lost
d e v o n
sheepfilms
noise dept.

PR's Tumblrdome
Jules of Nature

#extradirty

Janaina Medeiros
occasionally subtle
Mike Driver
seen from United States
seen from Australia

seen from Türkiye
seen from Japan
seen from United States

seen from United States
seen from Germany
seen from Germany

seen from United States

seen from Algeria
seen from United States

seen from Germany

seen from Indonesia
seen from China

seen from Australia

seen from Malaysia

seen from United States
seen from Australia
seen from United States

seen from Germany
@aestheticneet
Inspired by this twocubes’ post and asked to make an animation of it, I made a gif.
Today’s fun was Curry, Prolog, and Koka
nondeterminism let’s go
On Priorities and Fun
I think in an autistic attempt to “catch up with everything” I got myself into this super stale super boring climb on the ledge of the technical equivalent of Mt. Everest instead of actually making fun projects and solving puzzles and playing at the PL park..
To the point where I forgot how to do any of these things and how to get myself excited for them, to the point where I can’t shake off the bleak pessimist outlook from learning about and focusing on all the ugliness that happens underneath the hood.
My first thought when I look at a complex system is “this looks inefficient, I don’t like it, why would anyone use it?” as if I’m already writing high performance industrial solutions, instead of “Cool, I want to do something interesting with this”
it really hit me when someone way smarter than me, Evan, the creator of Elm, went and said “part of this [design] is technical, like you have to write a compiler and stuff,” completely brushing the whole compiler writing endeavor off, “but part of it is practical, [and fun]“.
I need to get myself out of that greyness and sort out my priorities, but I’m scared and don’t know where to start. All the hobby computer stuff is uncharted territory to me.
I think the way to do this, for me, would probably be to branch off to physics & math, have fun with those, then come back and apply programming to them for cool visualizations etc...
That new Nissan Z looks GORGEOUS
I never thought they'd make something in the realm of beauty of 240Z but here it is! Amazing.. And there's an honest-to-god 3-pedal 6-speed manual transmission version!!!
where were you when
zig is dependently-typed
syntax is slightly off btw (e.g. `def` and `function`)
where were you when
zig is dependently-typed
we do a little trolling
Suppose we have the following toy binary tree structure: datatype Tree = Leaf | Branch of Tree * Tree fun left(Branch(l,r))= l fun right(Bra
chads use chez as a compilation target btw
I name my temporary files 'sex' so that every command invocation on them is a funny haha penis joke.
One-line Quine
A while back, a coworker of mine challenged me to write a Quine program, since I told him I’d never written one before. (I’d never even heard of the concept actually. A Quine is just a program that takes no input and outputs its own source code.)
I finally sat down to try it, and after an embarrassing amount of head scratching I managed to figure out the trick and boil it down to a single line. The code was kinda neat so I thought I’d share. (It’s Haskell.)
main = do putStrLn $ (\x -> x++(show x)) “main = do putStrLn $ (\x -> x++(show x)) “
Here’s one in OCaml :P
let _=(fun q->Printf.printf q(string_of_format q))"let _=(fun q->Printf.printf q(string_of_format q))%S\n"
A BUG GITHUB *REFUSED* TO FIX IS NOW USED TO UPLOAD THE YOTUBE-DL TREE TO GITHUB/DMCA REPO LMAAAAOOOOO
THE MOST SATISFYING OUTCOME
Check it out — Bitwise & Set ops
For a finite bit-set defined as the indices of 1-bits in a non-overlapping area of memory or in a number variable, set and bitwise operations are equivalent.
That is to say the set would be converted-to like so:
s = set() a = 26 i = 0 while (a): if (a & 1): #if the index we're at is 1 s.add(i) i+=1 a>>=1 # >>> s # {1, 3, 4} # >>> bin(26) # 0b11010 # ^^-^--- 4, 3, 1 indices respectively
And that implies:
bitwise -> set AND -> Intersection OR -> Union XOR -> Difference INV -> Compliment
This interesting property is actually an often-used technique for lightweight flags and tight number sets to save lots of space.
For example, you can encode your commandline program flags as:
unsigned flag_a = 1<<0 unsigned flag_c = 1<<1 ... unsigned flag_x = 1<<7 /* or even a tighter-packed struct with bitfields */
And then implement all kinds of interesting set logic to distinguish good flag combinations from bad ones and implement special logic for the existemce of certain flags together i.e.
case flag_a | flag_x: /* Union! */
or for mutual exclusion or any-of kinds of flags etc..
Hope this was useful!
I’m back
this time for real I hope
what. why? someone pls explain to me pls i wasnt born yet in 1999 why turn computer off before midnight? what happen if u dont?
y2k lol everyone was like “the supervirus is gonna take over the world and ruin everything and end the world!!!”
This is the oldest I’ve ever felt. Right now.
WHAT THE FUCK DO YOU MEAN YOU WEREN’T BORN YET IN 1999.
Ahh the Millenium bug.
It wasn’t a virus, it was an issue with how some old computers at the time were programmed to deal with dates. Basically some computers with older operating systems didn’t have anything in place to deal with the year reaching 99 and looping around to 00. It was believed that this inability to sync with the correct date would cause issues, and even crash entire systems the moment the date changed.
People flipped out about it, convinced that the date discrepancy between netwoked systems would bring down computers everywhere and shut down the internet and so all systems relying on computers, including plane navigation etc. would go down causing worldwide chaos. It was genuinely believed that people should all switch off computers to avoid this. One or two smart people spoke up and said “um hey, this actually will only effect a few very outdated computers and they’ll just display the wrong date, so it probably won’t be harmful” but were largely ignored because people selling books about the end of the world were talking louder.
In the end, absolutely nothing happened.
Oh gosh.
I’ve been a programmer working for various government agencies since the early 1990s and I can say with some confidence:
NOTHING HAPPENED BECAUSE WE WORKED VERY HARD FIXING SHIT THAT MOST DEFINITELY WOULD HAVE BROKEN ON 1-JAN-2000.
One example I personally worked on: vaccination databases.
My contract was with the CDC to coordinate immunization registries — you know, kids’ vaccine histories. What they got, when they got it, and (most importantly) which vaccines they were due to get next and when. These were state-wide registries, containing millions of records each.
Most of these systems were designed in the 1970s and 1980s, and stored the child’s DOB year as only two digits. This means that — had we not fixed it — just about every child in all the databases I worked on would have SUDDENLY AGED OUT OF THE PROGRAM 1-JAN-2000.
In other words: these kids would suddenly be “too old” to receive critical vaccines.
Okay, so that’s not a nuke plant exploding or airplanes dropping from the sky. In fact, nothing obvious would have occurred come Jan 1st.
BUT
Without the software advising doctors when to give vaccinations, an entire generation’s immunity to things like measles, mumps, smallpox (etc) would have been compromised. And nobody would even know there was a problem for months — possibly years — after.
You think the fun & games caused by a few anti-vaxers is bad?
Imagine whole populations going unvaccinated by accident… one case of measles and the death toll might be measured in millions.
This is one example I KNOW to be true, because I was there.
I also know that in the years leading up to 2000 there were ad-hoc discussion groups (particularly alt.risk) of amazed programmers and project managers that uncovered year-2000 traps… and fixed them.
Quietly, without fanfare.
In many cases because admitting there was a problem would have resulted in a lawsuit by angry customers. But mostly because it was our job to fix those design flaws before anyone was inconvenienced or hurt.
So, yeah… all that Y2K hysteria was for nothing, because programmers worked their asses off to make sure it was for nothing.
Bolding mine.
Absolutely true. My Mom worked like crazy all throughout 1998 and 1999 on dozens of systems to avoid Y2K crashes. Nothing major happened because people worked to made sure it didn’t.
Now if we could just harness that concept for some of the other major issues facing us today.
this meme came so far since i saw it this morning. god i love tumblr teaching tumblr about history.
As a young Sys Admin during Y2K, I can confirm that it was SRS BZNS. I worked for a major pharmaceutical company at the time. They spent millions of dollars on consultant and programmer hours, not to mention their own employees’ time, to fix all their in-house software as well as replace it with new systems. Sys Admins like myself were continually deploying patches, updating firmware, and deploying new systems in the months leading up to Y2K. Once that was done, though, the programmers went home and cashed their checks.
When the FATEFUL HOUR came along, it wasn’t just one hour. For a global company with offices in dozens of countries, it was 24 hours of being alert and on-call. I imagine that other large organizations had similar setups with entire IT departments working in shifts to monitor everything. Everyone was on a hair trigger, too, so the slightest problem caused ALL HANDS ON DECK pages to go out.
Yes, we had pagers.
For hard numbers IDC’s 2006 calculation put the total US cost of remediation, before and after, at $147 billion - that’s in 1999 dollars. That paid for an army of programmers, including calling up retired grandparents from the senior center because COBOL and FORTRAN apps from the ‘60s needed fixing.
Also note that there were some problems, including $13 billion in remediation included in the figure above. Some of these involved nuclear power plants, medical equipment, and “a customer at a New York State video rental store had a bill for $91,250, the cost of renting the movie ‘The General’s Daughter’ for 100 years.”
Y2K was anything but nothing.
Reblogging because this is a side to the story I had never heard.
I must be tripping or something because I remember vividly that tumblr offered syntax highlighting in code blocks. I can’t find info about that anywhere.
*dusts this place off*
I’ve been writing status series mini-blogs so figured I might as well blog about them here. Mostly because why not. Not that I think anyone would be interested.