Earlier quoted context omitted.
Finding code with the regular Google Search is nearly impossible though.
I'm finding code with regular Google Search all the time. Yes, General Google Search is missing some neat features, but overall these features are not as important as convenience of using familiar general search queries, search speed, and the size of general google search index. BTW, do you have your own explanation of why Google Code Search was cancelled?
How Google Code Search Worked
21–30 of 47 posts
Re: How Google Code Search Worked
#22Re: How Google Code Search Worked
#23Russ's articles are an excellent write-up and explanation. However, many finite-state automata regex implementations have existed for years (e.g. Java http://cs.au.dk/~amoeller/automaton ) without the backtracking feature, of course. Also of interest is the benchmark data at: http://tusker.org/regex/regex_benchmark.html
If you read his write-up on RegEx matching, you'll see notes that Thompson wrote an implementation in the mid-60s, so he definitely doesn't claim they're new. What he does claim is that most regex libraries don't use them, even when the regex they're matching to doesn't require backtracking.
Re: How Google Code Search Worked
#24The original basic RE and extended RE (when backreferencing is not used) are significantly faster than implementations that most programmers traditionally rave about, e.g., Perl RE.
Tell me something I didn't know.
He thus used such 30 year old code as a model and easily topped the speeds of the built-in RE capabilities of today's popular scripting languages.
Common sense is underrated.
Re: How Google Code Search Worked
#25Earlier quoted context omitted.
As Russ points out in his earlier re2-related blog posts, these regex engines still perform non-linearly on inputs which don't involve look-around, look-behind, etc. There's plenty of room for improvement even if they want to keep these features.
Seems like the default should be linear runtime and you should have to explicitly ask for the richer feature set (and opt into the assertion that you trust the input not to DOS your process). Could easily be added as a modifier (see `man perlre`), but should be implemented as two to enable explicit behavior and toggling the default. Randomly picking the letter N: /(\w+) \1/n # Error: look-behind is incompatible with…
Re: How Google Code Search Worked
#26Google made a mistake in killing code search. Indexing the world's source code and making it searchable is so obviously part of their core mission that I wonder how this decision even got made. Yeah, code search is a niche market numerically speaking, but intellectually and economically (considering the economic impact of software) it is vital. Google was doing so much better a job of it than anybody else that they c…
Its still a long way from being close to Google code search both in terms of code indexed (amending that as I write this) but I hope to get things up-to a par as soon as I possibly can.
Symbolhound http://symbolhound.com/ also has a code index that's worth a look too.
Re: How Google Code Search Worked
#27Re: How Google Code Search Worked
#28tl;dr The original basic RE and extended RE (when backreferencing is not used) are significantly faster than implementations that most programmers traditionally rave about, e.g., Perl RE. Tell me something I didn't know. He thus used such 30 year old code as a model and easily topped the speeds of the built-in RE capabilities of today's popular scripting languages. Common sense is underrated.
It sounds like you are replying to regexp1.html, not regexp4.html.
Re: How Google Code Search Worked
#29Earlier quoted context omitted.
Did it stop working internally? Do Google employees still get to use it?
http://googlesystem.blogspot.com/2012/01/google-code-search-... —» http://code.google.com/codesearch
Re: How Google Code Search Worked
#30tl;dr The original basic RE and extended RE (when backreferencing is not used) are significantly faster than implementations that most programmers traditionally rave about, e.g., Perl RE. Tell me something I didn't know. He thus used such 30 year old code as a model and easily topped the speeds of the built-in RE capabilities of today's popular scripting languages. Common sense is underrated.
Wow, everyone's a cynic. Did you miss the part about the trigram index? It sounds like you are replying to regexp1.html, not regexp4.html.