News for hackers. Stuff that matters.

norvig

Re:Larry Wall's Very Own Home Page on Monday August 12, 2024 @01:19AM (#41221327)
Larry Wall is Brat.
Re:Abstrusegoose.com Is Gone for Good on Friday March 22, 2024 @06:16PM (#39795433)
Thank you for archiving!
Re:What a Sixty-Five-Year-Old Book Teaches Us About A.I on Monday February 27, 2023 @11:47PM (#34965733)
I had "Danny Dunn and the Homework Machine" as a child. I don't think it had a direct influence on my career in AI, but when I had a college job as a computer help desk consultant, I would keep it on my desk, and when a student would ask "This is a really strange question, but ..." and I had heard the same thing multiple times before, I would respond "Hmm, let me consult a reference manual", flip through "Danny" for a bit, and then give the answer that I already knew.
Re:Peter Norvig Joins Stanford HAI on Tuesday October 12, 2021 @01:02AM (#28836275)
"Joins Stanford HAI" is correct; "Leaves Google" is not right–I'm keeping my Google badge, but will spend most of my time at Stanford.
Re:Peter Norvig Joins Stanford HAI on Tuesday October 12, 2021 @01:01AM (#28836263)
I ran Search for 5 years or so; then ran all of Research for the next 5; then had an increasing smaller portion of a huge growing Research initiative. This past year I enjoyed mentoring startups in ML through the Google for Startups program. But m0gz got it pretty much right.
I use "Ali" and "Bo", because they are (a) gender-neutral, (b) less Western, and (c) prefixes of "Alice" and "Bob".
Re:Peter Norvig's “pytudes” for Advent of Code 2020 on Friday January 08, 2021 @02:07PM (#25688687)
I agree, tuvistavie! But my default machine has 3.7 installed, and I didn't want to get too far ahead of readers. Sometime next year I'll go to 3.8, and look forward to using ":="
Re:Peter Norvig's “pytudes” for Advent of Code 2020 on Friday January 08, 2021 @02:05PM (#25688661)
madhadron, I'm a Common Lisper, so I'm good with `first` and `rest`.
Re:Peter Norvig's “pytudes” for Advent of Code 2020 on Friday January 08, 2021 @02:03PM (#25688626)
Good point, dmurray. It was a subtle point here, and probably I should have commented on it.
I regret causing confusion here. It turns out that this correlation was true on the initial small data set, but after gathering more data, the correlation went away. So the real lesson should be: "if you gather data on a lot of low-frequency events, some of them will display a spurious correlation, about which you can make up a story."
Very nice, David and William.

I was also able to get to about a 2 second solution, but I didn't have to do bit operations: https://nbviewer.jupyter.org/github/norvig/pytudes/blob/mast...

Re:Girl, 8, pulls a 1,500-year-old sword from a lake in Sweden on Thursday October 04, 2018 @06:25PM (#18144213)
I mean, if I went around sayin' I was an emperor just because some moistened bint had lobbed a scimitar at me they'd put me away!
Re:LI2: Lego Institute for Lego Investigation on Friday August 24, 2018 @12:41AM (#17832839)
I admire Oren, and AI2, and the other institutes mentioned in the Director's Statement. Imitation is the sincerest form of flattery.
Re:LI2: Lego Institute for Lego Investigation on Friday August 24, 2018 @12:38AM (#17832835)
The diversity numbers are accurate. The numbers are for employees; some of the images depict non-employee visitors, some of whom are people of non-yellow color.
Re:Python for Lisp Programmers (2000) on Monday May 21, 2018 @02:18PM (#17120465)
Some points:

- Yes, the original publication year was 2000. I've added that to the file.

- @HelloNurse: You've got the key point. I provided Lisp code to teach AI; but my goal was to teach AI, not Lisp. As more schools and students were familiar with Python and not with Lisp, I needed to make the switch to keep teaching AI effectively.

- @jonathanstrange: Yes, "batteries included" is key to Python; there is some pain in doing any change; this page attempted to alleviate some of the pain.

- @rauhl: "in the silence a thousand words were said". I'm not sure what words are in that silence. But to me, the words are: Lisp and Python are different ecosystems with different customs. The Lisp community likes to solve lots of problems with macros. The Python community doesn't. For 95% of the usages, neither approach is better than the other, they are just different. For example, in Python, `with` is a statement, and you define custom classes for each usage you think of. In Lisp, you define a macro like `with-open-file` for each usage. The end result in usability and efficiency is similar. In Lisp, you often define macros for custom data types, e.g.

    (def-tree T1
        root (A B C)
        A (D E)
        B (E F)
        ...)
In Python you use a combination of built-in data types (like dicts), custom classes, and ad-hoc parsers of text. Again, the approach is different, but readability and efficiency is similar.

It is certainly true that if you want to define, say, a mock Prolog system, it is easier to do it in Lisp with macros than in Python, where you would need to deal with the far messier `ast.parse` module. Is that where the silent words were? For me the words would be "Lisp is a much better choice if your primary goal is defining a full-blown domain specific language. For most other programming tasks, the two languages offer similar functionality in different way."

Re:Confused by Health Care? Here Are the Absolute Basics on Saturday March 11, 2017 @02:27PM (#13846752)
Re:Probability, Paradox, and the Reasonable Person Principle on Monday October 05, 2015 @03:47AM (#10330390)
Good summary. If I were in charge, I wouldn't even have a notion of unconditional probability -- everything is conditional on something.
Re:Probability, Paradox, and the Reasonable Person Principle on Monday October 05, 2015 @03:46AM (#10330387)
You're right! 2.4 was out when I wrote that, so I could/should have used dequeue. But I wanted to use things that I thought readers would be familiar with, and timing wasn't a big issue.
Re:Probability, Paradox, and the Reasonable Person Principle on Sunday October 04, 2015 @03:50PM (#10328571)
When you say "1) Potential Outcome 1: Both are boys 2) Potential Outcome 2: One boy and one girl 3) Potential outcome 3: Both are girls" you are right that those are three potential outcomes, but they are not equiprobable outcomes. One boy and one girl is twice as probable each of the others.
Re:Probability, Paradox, and the Reasonable Person Principle on Sunday October 04, 2015 @02:29PM (#10328326)
Very nice write-up on SET, Henrik. I hadn'e seen it before, and wasn't aware of your interesting results.
Re:Probability, Paradox, and the Reasonable Person Principle on Sunday October 04, 2015 @02:25PM (#10328309)
Good point, tunesmith, I should define a version of `util` that lets you start at your current personal bankroll, rather than at 0, and show how the amount you are willing to pay to play depends on how much you already have.
Re:Let's Code About Bike Locks on Wednesday June 17, 2015 @04:19PM (#9734961)
Very nice find on the patent, emhart. Thanks! It looks like the patent is the same as my `greedy_lock`, except that at each tumbler "the entire word list is scanned"; this is worse than scanning just the words that make it through the previous tumblers. Also, I was a noob at lock terminology; I should replace "dial" with "tumbler".
Re:Margaret Hamilton, lead software engineer, Project Apollo on Thursday December 11, 2014 @01:58PM (#8736450)
I worked with Margaret and Saydeen at Higher Order Software for my first job out of college, but I didn't get to work on anything as glamorous as Apollo. We did mostly government contracts; I was there for two years before I decided it was time for grad school.
Re: On Lisp: Happy 20th Birthday on Sunday September 08, 2013 @02:51PM (#6349783)
Congratulations, PG!
Re:What coding mnemonics do you use? on Wednesday August 07, 2013 @04:33PM (#6175422)
When I was in grad school a friend in another department said "You guys in CS have much nicer printers; can I mail you my thesis and have you print it out? And how would I mail it?" I said "Sure; Just do 'mail [email protected] less-than-symbol filename". Later he calls in a panic -- "my thesis file has disappeared! I did what you said ... oh, wait a minute, I might have done greater-than instead of less-than..."

Fortunately for both of us, he had been diligent about making backups and din't lose his entire thesis.

Re:Banach-Tarski paradox on Sunday December 09, 2012 @05:14PM (#4896367)
Obligatory riddle:

"What's an anagram of Banach-Tarski?"

A: "Banch-Tarski Banach-Tarski"

Re:Online Python Tutor on Sunday February 19, 2012 @03:19PM (#3610274)
It is great that Hacker News has caught up with this -- Philip has done a great job with the Python Tutor. Next step: user-definable layout for display of different data types.
Re:How I Became a Programmer in ~12 Weeks on Friday November 25, 2011 @03:09PM (#3278080)
Let me say that in my opinion, Matt DeBoard has certainly earned the title of "programmer." Welcome to the club, Matt, and you have my appreciation for the hard work you put in. It sounds to me like you're going about it in the right way; I encourage you to keep it up, and I encourage others to do the same (that is: find a way that works for them, not necessarily copy your approach). Please pay no attention to the negativity. As spacemanaki and others have pointed out, Matt is not a complete programmer yet, and he has more to learn. But I think he knows that, and remains open to learning, which is the important point. I've got more than 12 weeks under my belt, but I still feel like I'm learning all the time. My thoughts are summed up by the character of chef Gusteau in the movie Ratatouille: "Anyone can cook." This very pointedly does not mean "everyone can cook" -- it takes a combination of interest, aptitude, and long study to become a chef, and most will not make it -- but it does mean that there is no one route to achieving competence, then expertise, then mastery.
Promise.

Good question. I think the engineering discipline part is much harder. I'm not sure that is because the problems really are harder: messier, ill-defined, changing over time; or whether it is that the academic community has focused on more well-defined formal/fundamental questions and mostly nailed them, so what we're left with is the harder messier stuff. Certainly it is easier for me to find someone to hire fresh out of college who has excellent CS fundamentals than to find someone with strong engineering discipline. And while my title included "Research", we all work very closely with Engineering.

Aw shucks, guys ... you make me blush with your compliments.

Tell you what, Ill make a deal: I'll keep writing if you keep reading. K?

Older »