HNHacker News
TopNewBestAskShowJobs

philiplu

761 karma · joined May 1, 2014

Retired C++ compiler dev at Microsoft. Current Project Euler enthusiast. Contact via pml-hn@lucido.net
submissionscomments
philiplu··on The Native-American Origins of Gumbo
I’ve no idea how authentic the cooking was, but way back in the 70s and 80s, I used to watch Justin Wilson, the Cajun chef, on TV. Looks like there are a number of episodes on YouTube.
philiplu··on Illustrated Self-Guided Course On How To Use The Slide Rule
You can find the small tubes at hobby stores, with the supplies for Pinewood Derby cars for Cub Scouts. I went through several tubes during my son's years in Scouts.
philiplu··on Illustrated Self-Guided Course On How To Use The Slide Rule
I remember those large teaching slide-rules, but haven't seen one in decades. Great to know they still exist, if only as mysterious artifacts from the dark ages.

Neither of my parents were mathematically inclined, but they were content to let me forage for information on my own, with lots of trips to the library. Amazing how clear are my 50-year-old memories of 10-year-old me sitting on the floor with a trig book, drawing random triangles on paper, measuring them as carefully as I could with ruler and protractor, and verifying the law of sines and cosines with paper and slide-rule. God, I was such a nerd. Paid off well in the end, though :-)

Now I'm retired, and for fun, I work my way through the problems at Project Euler. Four years in, and only two more problems to go to hit 90% complete! It'll probably take me another year+ to finish them all (hopefully).

philiplu··on “Zombie cicadas” infected with mind-controlling fungus return to West Virginia
For a more recent sci-fi treatment, check out "The Girl With All The Gifts" by M. R. Carey, https://www.goodreads.com/book/show/17235026-the-girl-with-a.... A scary dystopian near-future tale of Ophiocordyceps unilateralis infecting humans.
philiplu··on Illustrated Self-Guided Course On How To Use The Slide Rule
What a blast from the past. I can draw a direct line from my encountering a slide rule to ending up as a programmer. I owe my career to that device.

I was a nerdy 10 year old kid who liked doing arithmetic in 1970, but didn't know anything particularly advanced. I convinced my parents to get me a slide rule as a Christmas present that year; a basic white Post model 1447 - I know that because I'm looking at it right now. It's been in my desk drawer forever as I could never convince myself to throw it away, even though I've long since lost the sliding cursor.

Anyway, I got the slide rule, had fun with basic multiplication/division, but didn't understand what the S, T, and L scales on the back were for. Sine/Tangent/Logarithm? What are those?

Off to the library, where I picked up a Tutor-Text book [0] on trigonometry, discovered I'd better first learn some algebra, picked up another Tutor-Text book on that, and began a two-year tear teaching myself algebra to integral calculus. Which meant I tested out of a couple years of math in high school, ran out of courses to take, and in my junior year was allowed to walk to the local college to take 2nd year Calc classes.

At that college, they started letting me play with the computers, both an IBM 5100 APL machine over one summer, and hands-on access to the IBM 11/30 clone minicomputer that was the main machine. The math prof pointed me at Knuth's "The Art of Computer Programming", and that began my transition from pure mathematics to computer programming/science instead. I even wrote a MIXAL assembler/MIX simulator for the minicomputer that the college ended up using to teach an assembly language course.

So thank you, Post, Pickett, K&E! And Tutor-Text as well.

[0]: https://gamebooks.org/Series/457/Show

philiplu··on When Hubble stared at nothing for 100 hours (2015)
For more on this, see Olbers’ paradox - https://en.wikipedia.org/wiki/Olbers%27_paradox
philiplu··on Patio11's Law: The software economy is bigger than you think
Those are called aglets, and when I just now googled for “aglet manufacturers”, I got way more hits than I expected.
philiplu··on For Donald Knuth, good coding is synonymous with beautiful expression
I learned programming from TAOCP, but that was in the mid-70s, when good expository texts were rarer. I mostly skipped over the math then, and tried to figure out the algorithms. Actually wrote a MIX assembler/simulator, which taught me a ton of low-level programming.

If you're into the math side of this, I'd highly recommend the book "Concrete Mathematics", which Knuth wrote with Graham and Patashnik. I got it to get better at solving problems over at Project Euler, but it's a fun read, like TAOCP. As deep as it is, it's amazingly light-hearted, down to the graffiti in the margins from the students who proof-tested the material in a Stanford course.

philiplu··on Punched Cards? Sheer Bloody Luxury
Brings back memories. I wrote a MIXAL assembler/simulator to run on an IBM 11/30 (actually, a clone - the General Automation 18/30), back in the mid 70s. About 7000 lines of 11/30 assembly, all on punched cards. And yes, I used the trick of running a marker across the stack of cards, diagonally, so it was really obvious when something was out of place. Don't remember if I put sequence numbers in columns 73-80, though the computer lab did have an ancient card sorting machine I used a few times.

I was really lucky back then - I was a high school sophomore who was given free rein of the local college's small computer lab. I got really good at keying in the IPL (initial program load) sequence on the front-panel keys, triggering a read of the IPL card from the card reader, which then would boot off the Winchester drive.

I got to show my daughter an IBM 029 card punch at the Seattle Living Computers Museum a few years ago. Don't think she was too impressed :-)

philiplu··on Spotted water hemlock is the most toxic plant in North America
Interesting. I didn’t realize there was a related plant worse than Conium Maculatum, poison hemlock. Which I am way too familiar with - they’re common here in the Seattle area. My neighbor owns a restaurant that specializes in using lots of different herbs, and a few years ago we were in my backyard when she pointed out these tall plants with purple-spotted hollow stems, looking kind of like Queen Anne’s Lace. She told me what they were, and that I really needed to get rid of them. Been trying for years to do so. Damn things are really persistent, with long deep roots. Plus, when I weed them out (with gloves on, always), you can’t dump them in yard waste or compost. They’ve got to go in the trash. Fortunately, my kids are now old enough to know to leave them be, and warn me when they see them.
philiplu··on We called it RAID because it kills bugs dead
I started at Microsoft in 1991, and remember RAID fondly. My favorite part back then (probably running on Windows for Workgroups): when you minimized the program back to its desktop icon, the icon animated for a few seconds, showing a can of bug spray firing on a small flying bug, which dropped to the ground.
philiplu··on Ancient shell shows days were half-hour shorter 70M years ago
H. G. Wells, “The Time Machine”
philiplu··on Project Euler 001 the Hard Way
The problem is a bit underspecified, perhaps. 'n' is a positive integer, so 1, 2, 3, .... So the sequence is found by multiplying 1504170715041707 by 1, 2, 3, ... sequentially, then finding the remainder when you divide each of those products by 4503599627370517.
philiplu··on 15ft tumbleweeds trap drivers and force Washington state road closure
Cliff Mass, a meteorology professor at the University of Washington in Seattle blogged about this last Friday[1]. There's a comment[2] from someone in the area who notes that some of those tumbleweeds were likely radioactive, since this is downwind of the Hanford Site[3], a relic from the Manhattan Project and later Cold War which has been leaking radioactive waste for decades.

[1] https://cliffmass.blogspot.com/2020/01/the-meteorology-of-tu...

[2] https://cliffmass.blogspot.com/2020/01/the-meteorology-of-tu...

[3] https://en.wikipedia.org/wiki/Hanford_Site

philiplu··on Byte Magazine: Future Computers (1981)
Sure, but they’ve got the Colossal Cave Adventure game on there, and there’s always one more twisty little passage to explore, and before you know it, you’ve blown through $100 in connect charges, even though you’re a poor college student. Not that I’d know anything about that, I swear!

I miss the 80s, too. Such a great time to get in on the ground floor of the technology wave. And spend money I couldn’t afford to spend.

philiplu··on FPGA Design for Software Engineers
Thanks for the link. I’ve never heard of Wildar before; what an amazing character. Someone had a lot of fun writing that Wikipedia article:

“However, the story about Widlar bringing a goat to trim the lawn in front of his office, retold by The New York Times after his death,[14] was incorrect.[19] It was a sheep, not a goat;[68] Widlar brought her in his Mercedes-Benz convertible for just one day, which included a photo op for the local journalists.[19] According to Pease, Widlar abandoned her in the nearest bar;[19] according to Lojek the sheep was ‘mysteriously stolen’.[68]”

philiplu··on High in the Cascades, a lone fire lookout still keeps watch
I used to hike up Granite Peak in the Cascades, maybe 6 times in the 90s and 00s. That’s about 4 miles in, 3800 feet up, to reach a fire lookout tower much like the one in the article. One memorable time, I got passed by a lookout staffer muscling up the mountain with a propane tank strapped to his already heavy pack. By the time I caught up with him at the top, the tank had been put to good use, baking a batch of chocolate chip cookies. He shared :-)
philiplu··on Color Me Polynomial
I’ve been working steadily through Project Euler for the past couple years; about 2/3 finished. That’s introduced me to many fascinating parts of mathematics I never studied as an undergrad, 40 years ago. Chromatic polynomials are one of the most delightful areas I’ve been introduced to. Such a pretty mix of graph theory and generating functions.
philiplu··on Nikoli Puzzles
There’s a nice online collection of these style puzzles at https://www.brainbashers.com/today.asp. I usually do the hardest Slitherlink, Hitori, and Ranges problems daily, for years now.
philiplu··on Fog Waves Are the Most Beautiful Thing I Captured After 8 Years of Experimenting
I'm in the Seattle area. Every year in late spring, the cottonwood trees start emitting huge quantities of seeds attached to fluffy "cotton". It gathers in drifts on the road. The fluff is light enough to be tossed about by small eddy currents in the air, so you can see how house walls, arbors, fences, small trees affect the air movement. Fascinating, and something I look forward to yearly.
philiplu··on Pointers in C (2010)
Yeah, so much this. I did most of my programming in asm in the mid 70s to early 80s. C wasn’t available back then on most 8-bit systems I used (Z-80, 6502, 6809, 1802, SC/MP). C pointers made complete sense to me once 16-bit microcomputers showed up.
philiplu··on The Slide Rule
I've got a slide rule to thank for my precocious early math studies. I was always interested in math as a young kid, and my parents got me a Post slide rule for Christmas 1970, when I was in 5th grade/10 years old. I didn't know what the S and T scales on the back side of the main slide were for, so went looking up info in the local library. Turns out they were sine/tangent scales, which led to reading about trigonometry, which led to me realizing I needed to know algebra first. Over the next couple years, those library trips led to teaching myself algebra, geometry, trigonometry, and calculus, thanks mostly to TutorText books. For a nerdy little kid in the early 70s, that was heaven.
philiplu··on Compiler bug? Linker bug? Windows Kernel bug
Heh - that was partly me. The kernel team (i.e. mostly DaveC) mostly prescribed which instructions were allowed in prologues/epilogues. I was dev lead of VC's CRT team at the time (2000-ish), and got assigned to work on that and come up with an x64 version of the prologue/epilogue descriptors needed to unwind. I looked at what was done for Itanium, and simplified that waaaay down to what was needed for x64. I remember designing the ability to split prologues into multiple parts, to do something called shrink-wrapping, where you might not want to push all your saved registers all the time - there might be a subset of a function's code where a register needs to be pushed/popped. DaveC needed convincing that was a good idea.
philiplu··on Ted Chiang's Soulful Science Fiction
Well, 25 years ago, he worked down the hall from me at Microsoft, writing docs for the Fortran compiler. Not sure if he ever wrote docs for the C/C++ compiler that I worked on (this was pre-Visual C++ or maybe just as VC got started), nor do I remember how long he was there. But I do remember being thrilled that a Nebula and Campbell award winner was a co-worker.
philiplu··on Why I wrote a book about interpreters
Interesting. My first compiler experience, 40 years ago, could reasonably be considered nanopass. This was the IBM Fortran IV compiler on an 11/30 clone. IIRC, the code to compile was kept in the minuscule memory, while dozens of passes were pulled in from disk to move slowly from source to machine code. As a bonus, you could usually gauge how far you'd progressed by watching the pattern of the blinkenlights.
philiplu··on “Subject: Urgent Warning”
I remember this one, from using a typewriter back about 45 years ago, when I was a kid. You could get a dual-color ink ribbon, and could shift the ribbon up to print in red instead of black. Haven't thought of or seen that for many decades.
philiplu··on Microsoft Solitaire was developed by a summer intern
He created the Colossal Cave Adventure from the Crowther original back in the 70s.

https://en.m.wikipedia.org/wiki/Don_Woods_(programmer)

philiplu··on How I doubled my Internet speed with OpenWRT
Surfboard 6141 here on Comcast, and the Signal page is showing 8 QAM256 channels downstream, 4 QPSK/64QAM up. Speedtest.net has been showing 125M down/12M up for the past few months, which was a silent bump up from the 75/10 I noticed before that (Seattle Eastside area).

I'm curious how much faith to put in the speedtest numbers. Does Comcast detect speedtest, or is that what I'd really get elsewhere as well?

← PreviousPage 4 of 4