HN user

GeoffKnauth

39 karma

programmer, pilot, coxswain, linguist http://knauth.org/gsk

Posts3
Comments29
View on HN
Racket v9.0 8 months ago

I just bought your book. Thanks for writing it. I look forward to reading it!

My son went to Northeastern ('19) and now designs programming languages and can program skillfully in ANY language. I'm glad he went to Northeastern before this announced change. I feel my money spent at Northeastern was well worth it, not because it made him employable (it did), but because it gave him critical thinking and research skills. It would be sad if too many future Northeastern grads were limited to programming in Python or whatever the mainstream language of the decade is. "Batteries included" Python is great for the workforce but it may weaken basic development skills of undergrads. I'm glad I grew up in an era (1970-80s) when what mattered was sitting down with a manual or book and picking up a language in a weekend and, working with your friends, mastering it in a few weeks or months. A favorite memory that still astonishes me: in 1983 Andy Sudduth, one of my roommates and soon Olympic rowing medalist, built his own computer (a Heathkit), and with a paper due the next day, I offered to lend him my Kaypro-II so he could use WordStar. He said, "Thanks, but I'm going to put my own operating system on it [which he developed in his OS course], then I'm going to use my own full-screen editor I wrote, and then I'm going to write my paper using that editor." "You're going to do all that by tomorrow?", I asked. "Yes." And HE DID IT.

No, that is not true. I got treated for cancer two years ago (surgery and radiation), it was contained (not metastatic), I have twice since passed a Class 2 Medical. I talked to my Aeromedical Examiner, I talked with my treating doctors, they talked to each other, it worked out -- so far.

I wonder if there's an accurate record (time series) of what got canceled when, why, in what order, along with an accurate starting state for the whole SWA system. Then, for Monday morning quarterbacking, modelers and scientists could step through the meltdown in slow motion, and see, at each step, what they think could have been done differently.

No, I'm not especially knowledgeable, not more than others here. As a pilot, I have 42 years of experience flying through weather and helping get the word out w/r/t hurricanes, e.g., relaying info via ham radio in the West Indies from relays in Florida before getting hit by the storms, back in the 1970s when that was the way, so I have long interest in and appreciation of weather. But I do also have appreciation for my colleagues and their meteorological expertise. They have something called MinuteCast which in my experience has been very accurate in telling me when precipitation will begin or end (except when it is misty). Regarding my "forecasting actual rain is not very hard" remark, you are right that a "long in advance" forecast is hard, but I was talking about the short term. Specifically, a commenter had wanted to know if it was going to rain before going out to exercise, and for that example, I meant a forecast of precipitation was easy.

From talking with meteorologists, it seems forecasting actual rain is not very hard if you have enough current data on the state of the atmosphere. What can be difficult is mistiness that is just on the borderline between falling droplets and moisture just hanging in the air. Differences can be extremely local in nature. [I'm not a meteorologist, I program computers, but I'm a pilot so I have a pilot's appreciation of and contact with weather.]

Thanks. I think the new app coming out next month has a better UX. As for comparison with the default Weather app, I think the underlying forecast is more accurate. [Note, I work not on the app, but in back-end data. I'm happy to forward feedback to the people who work on the app.]

I like that Kirill Dubovikov built a weather station and showed others how. The more people who do this, the better, not just for education and skills, but in terms of gathering weather information that can help forecasters. He wrote, "the Weather app on my iPhone is not very good at making accurate forecasts," and I thought, "he must have been using the wrong app." I hope in addition to building weather stations and inspiring others to do so, he'll also give the AccuWeather app a try. [I work at AccuWeather; I admire the work my colleagues do to make and deliver accurate forecasts.] Even if Kirill prefers his weather station, I hope he'll use good apps to cross-check his station. Kirill can help in other ways. I speak Russian, so I volunteered to help beta-test the upcoming new app in Russian. My whole iPhone is in Russian at the moment. But Kirill is a native speaker.

If I'm writing code that uses regexs, it helps me if I write at least 1 test case along with a helper function to make using the regex easier for me. E.g., I did the following in Scala recently. Shown is just one of many regexs I used to read SQLServer stored procedures and turn them into functions that would write the Scala code to use them.

  val inputIdTypWidthPat = new Regex("""(?si)@(\w+)\s+(\w+)\((\d+)\)""", "id", "typ", "width")

  val inputIdTypeWidthCheck = RxInputMatchGroups(inputIdTypWidthPat,
    List(InputMatchGroups("""@COUNTRY_CODE char(2),""",
      List(MatchGroups("""@COUNTRY_CODE char(2)""",
        List("COUNTRY_CODE", "char", "2"))))))

  def getIdTypWidth(s: String): (Option[(String, String, Int)], Int) = {
    val om: Option[Match] = inputIdTypWidthPat.findFirstMatchIn(s)
    if (om.isDefined) {
      if (om.get.groupCount == 3) {
        (Some(om.get.group(1), om.get.group(2), om.get.group(3).toInt), om.get.end)
      }  else (None, 0)
    } else (None, 0)
  }

I'd say that's true today, but it's not a luxury Margaret Hamilton had when she wrote the code for the Apollo lunar lander. Since things have changed quite a bit since the 1960s, I wonder how much code we software people will be reading 50 years from now.