14 ms·
Even though I write python only if it’s going to be like 200 loc tops, it’s insane how gracefully the language has aged. It came out in 91, thus predating for e
by adamnemecek 8y ago
Even though I write python only if it’s going to be like 200 loc tops, it’s insane how gracefully the language has aged. It came out in 91, thus predating for example Java. Fun fact, I believe the very first google scraper was written in it.
At the same time I can’t wait for the next language to replace it.
- anothergoogler 8y agoPython hasn't changed much, but the world around it has. For better or worse, when jobs in the language were few and far between, it was a friendlier and less competitive community.
- sametmax 8y agoPeople often don't realize this. We hear a lot that python is moving too fast or too slow. To say that disregard the delicate balance the language had to dance on for 20 years. It's crazy.
- adamnemecek 8y agoAgree but it’s closer to 30.
- brettcannon 8y ago28 if you want the exact number. :) Guido started developing Python in December 1989 and went public with it on Usenet in February 1991 (Unicode 1.0 was standardized in October later that year to give perspective of how far back that was in the tech world).
- petters 8y agoWasn't the first Google scraper written in Java? I saw an old Usenet post by Page from about 1997 asking about user agents in Java. Perhaps that was the second scraper.
- adamnemecek 8y ago> Perhaps that was the second scraper. I believe that is the case yes. However correct me if m wrong.
- secure 8y agoYes, Larry Page’s first crawler was in Java, and Scott Hassan rewrote it in Python. From https://www.vanityfair.com/news/2018/07/valley-of-genius-excerpt-google https://www.vanityfair.com/news/2018/07/valley-of-genius-exc...: > Scott Hassan: In the fall of ’95, for some reason, I started hanging out with Larry in his office. . . . At the time, Larry was trying to download a hundred pages simultaneously. And I was fixing some of the bugs that he was having with Java itself, and this went on for weeks, if not months. And I remember thinking, Wow, this is insane!, because I was spending a lot of time fixing this underlying tool. And so one weekend, I just took all his code, I took his whole entire thing, and threw it all out, and rewrote the thing that he’s been working on for months very quickly—over a weekend—because I was just sick and tired of it. I knew I could get the thing working if I used a language I knew very well, called Python. I wrote it in such a way that it could download 32,000 pages simultaneously. So Larry went from barely downloading a 100, to doing 32,000 [pages] simultaneously on a single machine.
- cutler 8y ago32,000 pages simultaneously - in 1995? Async has only recently been added to Python, no?
- boyter 8y agoUsing threads maybe? Id be curious to see how you would achieve that in Python easily back in 1995.
- mathgenius 8y agoUsing select: https://en.wikipedia.org/wiki/Select_(Unix) https://en.wikipedia.org/wiki/Select_(Unix)
- vram22 8y ago>Fun fact, I believe the very first google scraper was written in it. Fun "fact": I need to check my facts, but it could be that the very first Google was written it it, too :) Checked: https://www.google.co.in/search?q=what+language+was+google+search+engine+first+written+in https://www.google.co.in/search?q=what+language+was+google+s... https://en.wikipedia.org/wiki/Google_Search https://en.wikipedia.org/wiki/Google_Search https://en.wikipedia.org/wiki/History_of_Google https://en.wikipedia.org/wiki/History_of_Google