Slashdot Mirror


Search Engine For Coders to Launch

karvind writes "According to Wired, 'Krugle' is set to next month. The search engine indexes programming code and documentation from open-source repositories like SourceForge, and includes corporate sites for programmers like the Sun Developer Network. The index will contain between 3 and 5 terabytes of code by the time the engine launches in March. According to article, Krugle also contains intelligence to help it parse code and to differentiate programming languages, so a PHP developer could search for a website-registration system written in PHP simply by typing 'PHP registration system.'" Update: 02/17 21:04 GMT by Z : Summary edited for accuracy.

149 comments

  1. SOS THEY CAN STEEL UR CODE by Anonymous Coward · · Score: 0


  2. Works well already. by grub · · Score: 5, Funny

    Results <b>1 - 10</b> of about 893,795,000 for "/* I hate working at EA */"

    --
    Trolling is a art,
    1. Re:Works well already. by Anonymous Coward · · Score: 0
      It's 10 times of 10 times of 10 times of 10 times of 10 times of 10 times of 10 times of 10 times of 10 times of 10 times of 400 bytes.

      ARGHHHHHHHHHHHHHHHHHH!!!

      MY BRAIN IS HARMING!!!

  3. Where does it say that Google is launching it? by frangipani · · Score: 3, Interesting

    This sounds like a new company, not a product of Google.

    1. Re:Where does it say that Google is launching it? by chaidawg · · Score: 2, Informative

      You're right, its not google. It is going to be the "google of code searching" not "code searching by google"

    2. Re:Where does it say that Google is launching it? by shawn(at)fsu · · Score: 1

      In TFA it compares it to google, as the parent said, it doesn't say anywhere that it is by google.

      --
      500 dollar reward for tip(s) leading to the arrest of the person(s) who stole my sig.
    3. Re:Where does it say that Google is launching it? by MatthewParker · · Score: 2, Funny
      Krugle beta

      it must be Google

    4. Re:Where does it say that Google is launching it? by shawn(at)fsu · · Score: 1

      In case it's not clear I was agrreing with the post I was rpelying to.

      --
      500 dollar reward for tip(s) leading to the arrest of the person(s) who stole my sig.
    5. Re:Where does it say that Google is launching it? by zxnos · · Score: 1

      ...a company betting on people associating it with google.

      --
      always mosh clockwise
    6. Re:Where does it say that Google is launching it? by Otter · · Score: 4, Insightful

      More accurately -- "the company about to get sued by Google". In fact, Zonk may have just given Google's lawyers Exhibit A on proving "confusingly similar".

    7. Re:Where does it say that Google is launching it? by babbling · · Score: 1

      Yeah, but Krugle RHYMES with Google!

      How many Krugles would a Google Krugle if a Google could Google Krugle?

      Repeats of this joke, and more spastic jokes can be expected if Krugle becomes a hit like Google.

    8. Re:Where does it say that Google is launching it? by weierstrass · · Score: 1

      me, too!

      --
      my password really is 'stinkypants'
    9. Re:Where does it say that Google is launching it? by vistic · · Score: 1
      "How many Krugles would a Google Krugle if a Google could Google Krugle?


      I believe you meant to say: "How many Krugles would a Google Google if a Google could Google Krugle?"

      Repeats of this nitpicking, and more annoying nitpicking can be expected if Krugle becomes a hit like Google.
    10. Re:Where does it say that Google is launching it? by WebCrapper · · Score: 1

      They really can't do too much. Its part of the founder's name: "...founder Ken Krugler"

    11. Re:Where does it say that Google is launching it? by jc42 · · Score: 1

      Well, Microsoft was certainly able to do a lot to Mike Rowe's software firm.

      --
      Those who do study history are doomed to stand helplessly by while everyone else repeats it.
  4. Krugle? by Anonymous Coward · · Score: 0

    Shouldn't that be kroogle?

  5. Not Google! by Anonymous Coward · · Score: 0, Redundant

    This is not done by Google.
    Read the article!

  6. Wow a search for php code returns php? by Anonymous Coward · · Score: 0

    That is amazing new technology. If I type in a keyword that is a programming language, results are returned that are relevant to that search term? I wish if you typed in php into google, that it returned php related items but I guess I have to wait for this. Thanks for the explanation.

  7. koders by andy314159pi · · Score: 5, Informative

    There is already a pretty big repository that is easily searchable:
    http://www.koders.com/

    1. Re:koders by ecliptik · · Score: 1

      no bash, no csh, lame.

    2. Re:koders by NialScorva · · Score: 3, Funny

      I was going to make a smart-ass comment about it not having lame, but turns out that it does

    3. Re:koders by tcopeland · · Score: 1

      Yup, and we at RubyForge got together with them to add some searching capabilities for the projects in RubyForge. Pretty cool stuff.

      getindi!

    4. Re:koders by cosmo99 · · Score: 5, Informative

      http://www.codefetch.com/ searches a very useful collection of code: the source code from programming books.

      Neither koders nor krugle cover that, plus codefetch searches the api of several languages, java, ruby, php, for example.

    5. Re:koders by Keen+Anthony · · Score: 1

      Koders.com is good. I enjoy writing code for dead systems, so I still use Google and many scattered websites in order to find code and documentation. Krugle will be for modern open-source projects. Is there a similar existing site for old platforms like DOS, Amiga, Apple ][, and C64 containing everything from specs to API docs and code?

    6. Re:koders by Anonymous Coward · · Score: 0

      You can't even search for stuff that includes the character '+'

      Good luck looking up C++ code!

    7. Re:koders by corychristison · · Score: 0

      EEEK! I cannot trust it. It appears to be written in ASP or ASP.NET. Yuck. How can it be written in such a horrible language and be used for open source?

    8. Re:koders by JJ345 · · Score: 1

      This guy seems to have worked out a way in to dogpile, click on the links. http://andylandrews.blogspot.com/

  8. RTFA... by Anonymous Coward · · Score: 0

    This site has nothing to do with google...rfta folks.

  9. Nothing to do with Google by spookymonster · · Score: 0, Redundant

    Krugle is a sound-alike/llok-alike startup business with no apparent relationship with google.

    --
    - Despite popular opinion, I am not perfect.
    1. Re:Nothing to do with Google by uncommonlygood · · Score: 0, Redundant
      Krugle is a sound-alike/llok-alike startup business with no apparent relationship with google.

      ...Except the forthcoming trademark violation suit :)

    2. Re:Nothing to do with Google by CarpetShark · · Score: 1

      Yes. But given that MS can use Windows as a product name and that Google has become a verb in common use, I wonder if it matters :)

  10. Already done by unixmaster · · Score: 3, Informative
    --
    Never learn by your mistakes, if you do you may never dare to try again
  11. Good for Sony! by Vinnie_333 · · Score: 3, Funny

    This will make it so much easier for Sony's programmers ....

    --

    "We shall party like the Greeks of old! You know the ones I mean." - HedonismBot
  12. Will it include documentation or just source code? by Kasracer · · Score: 0, Redundant

    Documentation would be more useful to me. If it only contains source code... well I can see lots of people using it for homework and copying and pasting. That or people who like to rip components from other applications for their app.

  13. Regexp? by MatthewParker · · Score: 2, Insightful

    Regexp searches would be great, but I imagine too much processing required? --- http://gmailskins.mozdev.org/

  14. Good one slashdot..... by harmic · · Score: 1
    No where on the Krugle web page or on the Wired story does it say anything about Krugle being a product of Google. It just says that it will be like "Google for code".

    You don't think our paranoia about Google taking over the world could be going a little too far??

  15. I can hear RMS laughing by Anonymous Coward · · Score: 0

    Go ahead corporations....infect your code with the GPL....then it will be MINE. I mean Free!!!1one!!

  16. Re:NOT google by Creosote · · Score: 2, Informative
    Krugle (created by Ken Krugler - notice the name?) is in no way, shape or form affiliated with Google.
    Which will delay Google's trademark infringement suit for, what, a few milliseconds?
  17. Uh oh... by gabecubbage · · Score: 3, Funny

    This is a spectacularly bad idea...

    I estimate only three days before someone successfully compiles Krugle on a shiny new Mactelnix box and ushers in the Singularity overnight, and twenty years ahead of schedule.

    "I'm sorry Sergey... I'm afraid I can't do that..."

  18. Community? by binaryDigit · · Score: 4, Interesting

    Some other interesting features above and beyond simple searching could be:

    - merge with semantic web work to be able to search on higher level concepts (e.g. if I type "bubble sort" it returns all bubble sorting code even if it doesn't explicitly say "bubble sort" anywhere).

    - "community" features that allow developers to leave comments on code (no, not comments _in_ code, but on code, similar to epinions et al).

    - if this index is available via api like the main google index, then people could do things like have automated lint type tools.

    - code chain. If I search for some code, then it'd be nice to be able to then peruse that codes hierarchy within the search engine (vs having to download it or cvs over to it).

    1. Re:Community? by Ruberik · · Score: 2, Insightful
      - merge with semantic web work to be able to search on higher level concepts (e.g. if I type "bubble sort" it returns all bubble sorting code even if it doesn't explicitly say "bubble sort" anywhere)
      And after that, you could search for "given the initial input, code that terminates"! That would be awesome.
    2. Re:Community? by babbling · · Score: 1

      The only way I see this being useful is if it searches comments/code descriptions.

      Imagine searching for "if( x == 5 )". It would be useless to search code. Searching comments and returning code as a results would probably be better, since something like "bubble sort" would then have a chance of bringing up what you want.

      Also seems like it's a program, not a website. Not sure whether that's good or bad. I could go either way, I suppose.

  19. nothing new by Krunch · · Score: 3, Informative

    Koders does that for some times now.

    --
    No GNU has been Hurd during the making of this comment.
    1. Re:nothing new by PCM2 · · Score: 1
      Koders does that for some times now.
      Yeah, but it sounds like Krugle is a little more sophisticated. Check out Ephraim Schwartz's account at InfoWorld.
      --
      Breakfast served all day!
    2. Re:nothing new by Matt+Perry · · Score: 1
      Yeah, but it sounds like Krugle is a little more sophisticated.
      Working code beats vapourware every time, no matter how sophisticated your vapourware is supposed to be. Krugle is just vapourware until it's available for use.
      --
      Slashdot: Failed Car Analogies. Amateur Lawyering. Anecdote Battles.
  20. Rock! by AKAImBatman · · Score: 2, Insightful

    This could so seriously rock. Every time I need a library to do a specific function, I always have to do some searching to find all of the competing options. Invariably, at least a couple of options get missed as you sort through the excess nonsense and out of date information. (Sometimes it's the best solution that gets missed.) I can't count how many times I've wished there was a simpler way to get all the competing options.

    And then there's the issue of missing modules that are referenced by other code. Usually you have to find them by trial and error. In a code search engine, (theoretically) it will simply come back with all instances of the constant I put in. Which means that I can locate the missing module faster than ever before!

    If this works, Google will have seriously made the lives of thousands of programmers that much easier. :-)

    1. Re:Rock! by AKAImBatman · · Score: 0, Troll

      Mmm... scratch that.

      If this works, Google will have seriously made the lives of thousands of programmers that much easier. :-)

      Should be.

      If this works, Krugle will have seriously made the lives of thousands of programmers that much easier.

      Unfortunately, now that I know it's not actually Google launching this, my hopes are no longer especially high for a successful product. :-/

  21. Kawahee's 2 cents by Kawahee · · Score: 2, Insightful

    First off, it's not Google.

    Secondly, I believe "PHP registration system", or the example given in the summary is a sufficient enough query for Google to return something relevant anyway.

    --
    I'll subscribe to Slashdot when I see a month without a dupe, a typo, or an article the "editors" didn't read.
  22. Beware of SEO by GrAfFiT · · Score: 2, Insightful

    Does this mean that in a few years we'll get the equivalent of SEO, search engine spamming in every program we can compile ? I don't want to see that.
    Nowadays, websites are made for Google.. Their existence is justified by their PageRank.
    I don't want SourceForge et al. to die the same death as Yahoo's old categories (did you notice that they completely disappeared ?).

    1. Re:Beware of SEO by Anonymous Coward · · Score: 0

      These categories? http://dir.yahoo.com/

    2. Re:Beware of SEO by Anonymous Coward · · Score: 0

      They're either buried behind links or at the complete bottom of the main page.

    3. Re:Beware of SEO by GrAfFiT · · Score: 1

      Seriously, who uses this ?
      Nowadays, people tend to go to subpages from Google and read snippets instead of going through the main page the way the author intended to. Imagine people copy-pasting code without even reading the project page!

  23. Correction by TheGuapo · · Score: 1

    The article did not mention that Google was launching this search engine. And looking at Krugle's website, it looks suspiciously spam-a-licious.

    1. Re:Correction by JJ345 · · Score: 1

      Yeah, it's a bit of a ruse...this guy seems to have worked his way in, he's on my blog http://andylandrews.blogspot.com/

  24. Costs? by AuMatar · · Score: 2, Insightful

    Any idea on what this service will cost? I couldn't find it on the website.

    Also, they really need the ability to search based on license. If I'm working on a GPL project, using it and finding Apache licensed code is only of minimum help. (I can base work off of it, but I can't just use it).

    --
    I still have more fans than freaks. WTF is wrong with you people?
    1. Re:Costs? by ploss · · Score: 0, Redundant

      You might want to try http://www.koders.com/, you can search by license. Plus, its free.

      --
      What are the odds that some idiot will name his mutex ether-rot-mutex!
  25. Google doing a lot, too much? by Serveert · · Score: 1

    So they get into another niche. This is troubling, let me explain.

    Let's say I have a website that allows for searching of source code and I display google ads. Google looks at the traffic and revenue then decides to compete with me using their own service. So the question is, why do people display google ads? The money's good now but google could very well get into your business and wipe you out if it does too well and they notice.

    IMO, they should either do advertising and stick with that and nothing else, or get into providing content while not having an affilaite network. Only fools advertise with google IMO. The money might be good now but be wary if you do too well.

    --
    2 years and no mod points. Join reddit. Because openness is good.
    1. Re:Google doing a lot, too much? by Serveert · · Score: 1

      given the revision of this thread topic things are a bit different but the reasoning stays the same, google could still enter this space if you give them your ad traffic and they deem it profitable enough to compete with you, puting links to their competitor before your search results.

      --
      2 years and no mod points. Join reddit. Because openness is good.
    2. Re:Google doing a lot, too much? by tomservo291 · · Score: 1

      You don't have to use google ad's for them to notice you are doing well.

    3. Re:Google doing a lot, too much? by Serveert · · Score: 1

      but when you're giving them your traffic patterns/sales/etc via analytics then providing them with your effective CPM/CPC and of course impressions and clicks via adsense, then they have a better idea vs if you just didn't go through them.

      --
      2 years and no mod points. Join reddit. Because openness is good.
    4. Re:Google doing a lot, too much? by Penguinoflight · · Score: 1

      A anti-libertarian who is paranoid? say it isn't so! Google's messing with advertising makes them look bad, but think about their other options. If Google went straight to advertising only, everyone would just assume they were as bad as doubleclick. I cant think of one advertiser that is legitamite, and at least when google puts adds off their own site it doesn't seem to cloud things.

      Google only makes money by advertising at the moment, and they cant hardly give it up. They certianly cannot go to all advertising, everyone would just blacklist their networks.

      --
      "And we have seen and do testify that the Father sent the Son to be the Savior of the World"
      1 John 4:14
  26. Limited languages at present by Medievalist · · Score: 1

    There's no "bash" or "bourne shell" listed in the drop-down box.

    Which is unfortunate since I need a snippet to make my fielded read loop ignore comments and I'm lazy.

    Ah, well.

    1. Re:Limited languages at present by Anonymous Coward · · Score: 0
      There's no "bash" or "bourne shell" listed in the drop-down box.

      Which is unfortunate since I need a snippet to make my fielded read loop ignore comments and I'm lazy.


      Perhaps a
      read -d \#
      might work? (essentially, read until you encounter a hash character)
    2. Re:Limited languages at present by cosmo99 · · Score: 1

      http://www.codefetch.com/ does let you search for bash scripts. Choose "Unix / Shell" from the main page.

      Codefetch lets you know how much material it can search for a language and you can see by the single dot that it doesn't have a lot for bash but it still should have enough to help you.

    3. Re:Limited languages at present by Medievalist · · Score: 1

      Well, I did this, which solves the problem, but is not particularly elegant in my opinion:

      ReadFields () {
          local IFS=:
          Host="#"
          while [ `expr substr $Host 1 1` = "#" ]
            do
                read Host Key Interval Excludes Keep
          done
      }

      while ReadFields
          do

          (stuff gets done to each host)

      done $ConfigFile

      This method restricts commenting to lines with a first character of "#" and it reads a series of fields separated by colon characters (something like /etc/passwd or /etc/printcap format). The use of a function and a local variable prevents IFS getting polluted within the main while loop. I don't like it but it works in practice.

    4. Re:Limited languages at present by Medievalist · · Score: 1

      Thanks, that's a cool site!

      The examples it pulled up for me all used sed, though, and I've already got a somewhat lame method that doesn't require anything but bash.

      I always try to minimise my use of external calls, regardless of language, in order to keep my code as portable as possible. Obviously there are limits, I use Graham Barr's LDAP perl modules rather than try to write my own LDAP routines for every perl hack I might need! But for this job I'd rather not call sed, gawk, grep, and friends unless it's really absolutely necessary.

      I've bookmarked codefetch for future reference. Thanks again!

    5. Re:Limited languages at present by Anonymous Coward · · Score: 0

      What kind of lame ass system would have bash, but not sed, grep, and friends??

  27. Later in the year... by DrEldarion · · Score: 2, Funny

    They're also planning on releasing "kringle", a search engine for presents, but they're currently in litigation with a "Dr. Claus".

  28. Sponsored by SCO by Anonymous Coward · · Score: 0

    Don't use it! Its sponsored by SCO. An insider at Krugle leaked that SCO was sponsoring it to get people to post their software so SCO could find more copyright violations. Everyone knows that the Linux kernel contains lots of SCO code and this will help them find even more. SCO has an extensive library of tools to look for copyright violations (most of them run on Microsoft). They got them from their MIT consultant in 2003.

  29. err, i don't think it's from google by rakerman · · Score: 1

    The Wired article title "Here Comes a Google for Coders" maybe caused the confusion. I guess the use of "a google" to mean "a search engine" was maybe a confusing choice.

    1. Re:err, i don't think it's from google by Rob+T+Firefly · · Score: 2, Funny

      When people use brand names to generically identify something, I find it more annoying than Scotch Tape in a Xerox machine. I get an Excedrin headache no Band-Aid can fix, and have to work off my stress by playing Nintendo.

    2. Re:err, i don't think it's from google by belg4mit · · Score: 1

      Given the hype it's more likely meant as short-hand for
      "a Google-like search engine".

      --
      Were that I say, pancakes?
  30. The Article Summary was WRONG by Anonymous Coward · · Score: 0

    Google, has NOTHING to do with this, the glorious editors of SLASHDOT had the article description wrong. As noted in the summary, this has now been corrected.

  31. Well, at least IP lawyers will be happy by geoffrobinson · · Score: 1

    I imagine proprietary coders using this and IP lawyers doing research on this.

    Hopefully, chaos won't ensue.

    --
    Except for ending slavery, the Nazis, communism, & securing American independence, war has never solved anything.
  32. So how long.... by Jaysyn · · Score: 2, Interesting

    ...till Microsoft, SAP, SCO (remember them?) etc start polluting this repository with proprietary code?

    Jaysyn

    --
    There is a war going on for your mind.
  33. Lawsuit! by Rob+T+Firefly · · Score: 1

    Since it isn't at all Google, how soon until the real Google sues its soundalike search engine Krugle for infringement?

  34. Re:Google launches? by 0x20 · · Score: 0, Redundant

    Offtopic?? Did you even read the post, let alone the article?

    According to Wired, Google is going to launch Krugle next month.

    No. Wired does not say that. Krugle does not say that. I read the krugle site, I searched the krugle blog. It's just not true.

    To be fair, it's clear that the poster didn't read the article either.

  35. Top 10 by Anonymous Coward · · Score: 0

    It would be great if they had a Top Ten to see which company is using it most. You know by IP. Just for Fun. Really.

  36. koders.com by BonoLeBonobo · · Score: 1

    Do you know koders.com ? It's a cool code search engine !

    --
    Bonjour !
  37. Business model not figured out yet by PCM2 · · Score: 1

    InfoWorld had coverage of this a few days ago. The company and product were unveiled at the recent DEMO conference, which is a show where start-ups get to pitch their idea in front of a bunch of investors and venture capitalists. They envision two potential models: using advertising to sponsor the site, and also potentially selling their software to companies that do a lot of in-house development for use behind their own firewalls.

    --
    Breakfast served all day!
  38. What I'd like.. Google with regex by matt+me · · Score: 2, Insightful

    What I've always wanted is to use Google properly, with full regex functionality, see Perl. Currently Google gives you ten terms (I call them words), allowing you to quote some, and use a single-level of AND and OR. And excludes, but these eat away at the ten word limit speedily.

    I want wildcards .* and to be able to escape punctuation! It may look like a cartoon character swearing, but for those that can, it would give us way more power.

    1. Re:What I'd like.. Google with regex by cosmo99 · · Score: 1

      http://www.codefetch.com/ offers a limited regular expression search as one of its main features. And it can do a true full-text search: You *can* search for "#!" for instance.

      Its not Google, but it does search a lot of good code from published books.

  39. finally... by revery · · Score: 1

    At last, a google repository that won't be dominated by porn and blog results*...

    unless you count Google News, Froogle, Maps, Catalogs, and a few others... but really, who's counting!!!

  40. Bah. by BigZaphod · · Score: 2, Funny

    What I really want is a code engine that let's me type: "the misguided and hopeless project I'm working on" in the search box and then delivers the finished executable and documentation so I can email it to my boss and go home early.

  41. Filtering out buggy code by ewg · · Score: 4, Funny

    I hope you can add -buggy to your query to filter out all the buggy code.

    --
    org.slashdot.post.SignatureNotFoundException: ewg
    1. Re:Filtering out buggy code by Dahamma · · Score: 1
      Your search - -buggy - did not match any documents.

      Suggestions:
      • Make sure all words are spelled correctly.
      • Try different keywords.
      • Try more general keywords.
      • Give up, there is always one more bug.
  42. No AI !!! by Dareth · · Score: 1

    Coder: Enter search string: bubble sort
    Search Engine: Here are some Quick Sorts, only newbs use bubble sort!

    Coder: Damn AI !!!!

    --

    I only look human.
    My mother is a halfling and my dad is an ogre, so that makes me an Ogreling
    1. Re:No AI !!! by HiThere · · Score: 1

      Bubble sort is optimal when you are handling fewer than 25 cases*.

      *Caution: The precise number is variable depending on what is built into the language that you are using...it is predicated on the amount of set-up & tear-down used by more generally efficient methods.

      --

      I think we've pushed this "anyone can grow up to be president" thing too far.
    2. Re:No AI !!! by ScottyH · · Score: 1

      Or when there is a good chance the data is already sorted...correct me if I'm wrong.

    3. Re:No AI !!! by HiThere · · Score: 1

      If the data *IS* already sorted (or only trivially out of sort) then bubble-sort is the fastest sort...but if there's a lot of data that *MAY* already be sorted...but there's a reasonable chance that it isn't, then bubble sort is a bad choice, but it might be reasonable to make one pass through the data to see whether or not it IS in sort. And if the data might be sorted, you don't want to use a quick-sort...but there's a small modification that also works well in this context. (Sorry, I don't remember the details...but the modification is trivial...and it will almost certainly be built into your library sort routine.)

      However, it's generally easy to tell whether you will have fewer than 25 cases. If you aren't certain, use the library routine. The worst case of being wrong won't cost you much..and if you guess wrong and use the bubble sort on a large case, it can slow you down a lot.

      (Actually, I was being nit-picky to someone who said one should never use a bubble sort. Practically he was almost correct, and part of the reason is that the cost of incorrectly choosing a bubble sort quickly escalates with case size, where the cost of mistakenly using a good library routine is a small constant.)

      --

      I think we've pushed this "anyone can grow up to be president" thing too far.
    4. Re:No AI !!! by jc42 · · Score: 1

      Or, to combine the two ideas: If the data is close to sorted, and the mean distance between an item's pre- and post-sort position is less than about 25, then bubble sort is as good as any other sort, and often better.

      The canonical example is time-stamped data coming in from a lot of sources, with the usual delays in delivery time. If you want the data sorted into strict time order, a short pipeline through a bubble sorted is quite efficient. Sometimes you may have to add a second pass later that looks for the few items that missed the pipeline and still need to be moved a bit, but that may be something that can be done in the background.

      It's sorta funny how people aways seem to think that there has to be one sort that's "best", refusing to believe that this can be true only if you are never permitted any a-priori knowledge of non-randomness in any of your data. But in the real world, lots of data comes with known sorting biases, and that knowledge can often be used to chose a better sort than one designed for random data.

      --
      Those who do study history are doomed to stand helplessly by while everyone else repeats it.
    5. Re:No AI !!! by HiThere · · Score: 1

      Well, library sort routines often do a pretty good job. They can't take advantage of "local information", but you can get close to optimal without worrying about the fine details. (Which is why I said I was nit-picking.) Given the other sources of inefficiency, I never worry about a strictly optimal sort, and just use the library routine. (Of course, given that my code is likely to be Python, and the library routine is hand optimized C, this may eve ALWAYS be the correct choice.)

      --

      I think we've pushed this "anyone can grow up to be president" thing too far.
    6. Re:No AI !!! by Anonymous Coward · · Score: 0

      If the data *IS* already sorted then bubble-sort is the fastest sort

      Correction: if the data is already sorted, no sort is the fastest sort.

  43. Should be "KLUDGEL" (or "KLUGEL by Anonymous Coward · · Score: 0

    Considering that this deals mostly with code from open-source hackers, it would more aptly be named KLUDGEL (or, I guess, KLUGEL, depending on the generation of hacker).

  44. This is hilarious :) by Z0mb1eman · · Score: 2, Insightful

    This story never would've made it if it wasn't submitted as "Google launches"... now we're left with a slashvertisment for a rather ugly site desperately trying to be Web2.0-looking and that "is set to next month", a whole bunch of posts pointing out that it has nothing to do with Google that are unfortunately now getting modded off-topic, another bunch of posts linking to koders.com, and nothing of substance to talk about.

    I love Slashdot :) /take notes for when I'll need to generate "buzz" for a product launch

    --
    ClutterMe.com - easiest site creation on the Net. Just click and type.
    1. Re:This is hilarious :) by Anonymous Coward · · Score: 0

      That's not always reliable, I've submitted actual google stories, and had them rejected, admittedly one was posted by somone else within an hour, but the other one was for real, and a similar topic was posted months later. so it depends on the editor.

      --Posting as AC because I'm waaay off topic

  45. Re:NOT google by freeweed · · Score: 1

    Yeah, I'm having a deja vu with Mike Rowe, here.

    This'll be a good test of Google's "evilness", though.

    --
    Endless arguments over trivial contradictions in books written by ignorant savages to explain thunder in the dark.
  46. Access confidential code! by labreuer · · Score: 3, Insightful

    For example, confidential Novell code. (In case that link doesn't work, search for "StopWatch" in "C#"; there are only two results.)

    Will this new site perform such wonders?

  47. Re:Google launches? by coldhg · · Score: 1

    Every time a new search engine appears automatically it compared with the best-there-is.
    When google started it was compared with yahoo!

    If it looks like a duck (google) , quacks like a duck and walks like a duck (behaves like a search engine), then it is a duck.

    Wrong....
    this is not duck-typing, this is real world, where a new search engine is just a new search engine (and not a google duck)

  48. What does it have over koders dot com? by delire · · Score: 2, Informative



    Works well for me

    A wider breadth of supported languages would be nice however.

    That said if Krugle doesn't have the ability to filter on a per license basis, it will not be practical (or safe) for many.

  49. DWIM() by EatHam · · Score: 4, Funny

    Now I'll finally be able to find that Do What I Mean function I've been searching for.

  50. Did you check? by brix_zx2 · · Score: 0, Redundant

    This page is not related to google as far as I can tell. Did a whois search and it doesn't even use google's name servers, not to mention different address info.

    --
    "brix_zx2, What is your sole purpose in this forum!?!?!"
    "To do whatever you tell me MODERATOR!!!!"
  51. www.codefetch.com is another resource by cosmo99 · · Score: 2, Informative

    http://www.codefetch.com/ is a search engine that searches a very useful collection of code: the source code from programming books.

    Neither koders nor krugle cover that, plus codefetch searches the APIs of several languages, java, ruby, php, for example.

    Finally, unlike koders, codefetch lets you do a true full-text search, just like in a text editor-- go ahead, search for "+=" and you can even use a few regular expressions.

    1. Re:www.codefetch.com is another resource by codethreader · · Score: 1

      I like this one. The links to the language API is a nice feature.

  52. Bet on a Buyout by moochfish · · Score: 2, Insightful

    It might not be BY google as a bunch of people have already repeated corrected, but this seems like a very logical company google would buy.

  53. /////web2.0/////// by joebp · · Score: 0, Troll

    /krugle/we can't write a simple readable webpage/because we have web2.0/jammed up our ass/unnhnhnh

  54. "Borrowed" text from Google Privacy Policy by _Stryker · · Score: 1
    These guys want to be like Google so much they even "borrowed" some of Google's text for their privacy policy:

    Krugle Privacy Page

    Google Privacy Page

    1. Re:"Borrowed" text from Google Privacy Policy by Anonymous Coward · · Score: 0

      Now that is a cogent observation. Either is simply "Me Too" or their lawyers felt using a tested statement of policy was the best and simplest course considering they are entering the realm of the SEARCH WARS.

  55. Re:Google launches? by 0x20 · · Score: 0, Redundant

    That's not what's going on here. The post (before it was 'edited for accuracy') claimed that google was launching krugle, not just that krugle was like google.

  56. Can you specify License type in search? by Siergen · · Score: 1
    I did RTFA, but didn't see any mention of being able to limit the search by license type. If you're working on a project that you intend to distribute under the GPL, you probably don't want your search results cluttered with code that has more restrictive terms.

    I also think that licensing terms might be a useful addition to self-documenting commenting schemes such as Javadoc...

  57. Re:koders (OT) by Anonymous Coward · · Score: 0

    Is it just me, or does a guy effectively begging for help with his student loans over the internet annoy anyone else? I mean, why should I send this guy money over everyone else? Does he think he's better than others, a more worth "investment"? What am I going to get out of it?

    I'm sorry, but just cause he's a student with a student loan doesn't make him any different than the average street beggar in my opinion.

  58. "Please retype your email" Registrations by Pleb'a.nz · · Score: 1

    Why ? When we all end up just copy+paste'ing teh first one.

  59. $1,500,000 in funding to show ads... by Anonymous Coward · · Score: 1, Interesting

    ...to people that won't look at them.

    I have thought about this a lot because I have some detailed plans for implementing a superficially similar system. I have looked at a list of similar existing sites, like Koders, CodeFetch, jdocs, etc. I haven't looked at Krugle yet because they only grant access to people that think will help them in their extensive pre-launch publicity campaign. Krugle-related announcements, all with basically the same rehashed non-information, have appeared all over the internet (Digg, Infoworld, numerous blogs). Whoever runs Krugle's marketing program should get a raise. This is basically "PR 2.0" and we will, unfortunately, be subjected to it by many companies from now on.

    AFAICT, the existing sites like this that are trying to make money seem to base everything on the idea that they can get programmers to click advertisements in the search results. But, there is no group in the world that is better at ignoring online advertisements than (open-source) programmers. Plus, some of the ads are really ridiculous. For example, on jdocs.com, the first ads I noticed were for _illegal street racing videos_ (no joke!). On the other hand, some of these sites have been around for a while, so perhaps the advertising model works better than I think.

    Having said _that_, they still have to compete with Google. Just like google has google.com/linux, they could easily add google.com/code. Even the normal Google search is pretty effective at finding code (I mean, SEO companies rarely use keywords like GetNextFileName or SwingUtilities.invokeLater).

    So, these code-search companies would have to have major value-added features. To be honest, what I've heard about Krugle makes me think that they have yet to come up with such compelling features. And, if they make you sign up to access them, then the value of their advertised features decreases significantly.

    In fact, it will be interesting to see if anybody can come up with the features that I think would compel people to use and even _pay_ to use such a system. I can think of several such features that I would pay for access to. But, I am not sure that it is profitable for anybody to sell them to me at a price I will pay. Plus, there are quite a few political roadblocks to implementing them.

    1. Re:$1,500,000 in funding to show ads... by belg4mit · · Score: 1

      Except that Google doesn't properly index/search for all those
      incredibly meaningful characters in code like: # / % $ ; , & |

      --
      Were that I say, pancakes?
    2. Re:$1,500,000 in funding to show ads... by Anonymous Coward · · Score: 0

      good comments! but i wonder about the features you mention; what do you have in mind that these engines don't already offer? there is only so much that a search engine can do...

  60. Re:koders (OT) by Anonymous Coward · · Score: 0

    I agree, I have student loans too, but feel no need to humble myself to get the money. I work it off, it was an investment.

    In addition, I have no sympathy for people who get a hundred credit cards in college and spend away. They deserve what they get. The same with people who don't bother to examine the terms of their loans.

    Boo hoo, I spent more than I could afford... Bah.

  61. Now...if only more where brave like this... by MindPrison · · Score: 1

    We would finally have something useful.

    Biggest problem today such as I see it - is the garbage you have to fight with Google. I am not a scientist per see, but an avid hobbyist that loves information, and when I do my experiments as the neighbourhood mad-wannabee-scientist, I have to sift trough gazillions of annoying websites that "wants" to be no.1 for everything.

    What I want is:

    - A SPAM free search engine (Spam = pr0n ads, ads, look-ma-its-me-on-the-web) etc.
    - An research search engine with ONLY useful documentation

    Darn...Im dreaming.

    --
    What this world is coming to - is for you and me to decide.
  62. Before pubbing on Krugle by WillAffleckUW · · Score: 1

    make sure you save your code to a CD or DVD and mail it in to the Library of Congress, securing your copyright to it.

    Or copyleft it.

    But even though your right of copyright remains with the author by creation, never assume unregistered code won't be stolen by someone like Gill B at Microsnuff who believes all code is his ...

    Let's be careful out there.

    --
    -- Tigger warning: This post may contain tiggers! --
  63. Oops, small code bug by Medievalist · · Score: 2, Interesting

    OK, that code exits dirty at EOF. Needs a small modification to pass exit status of read back through function return to main while loop:

    ReadFields () {
            local IFS=:
            Host="#"
            while [ `expr substr $Host 1 1` = "#" ]
                do
                        read Host Key Interval Excludes Keep || return
            done
    }

    Still ugly and inelegant, in my opinion, but at least it seems to work... and it has an explicit EOF return now, which is probably a good thing.

  64. Google is useful for searching code by BReflection · · Score: 1

    A friend recently asked me about Python's thread.start_new_thread. Google is perfect for finding hundreds of examples. Try this query:

    filetype:py thread.start_new_thread

    . The syntactical portions come up in the results, and you can copy those to your clipboard to then find the exact thing you're looking for in context in the source. A similar search on Koders, a search engine supposedly specializing in source code search, returns useless results.

    --
    python -c "x='python -c %sx=%s; print x%%(chr(34),repr(x),chr(34))%s'; print x%(chr(34),repr(x),chr(34))"
  65. microsoft by mistabigshot · · Score: 1

    no excuses for M$ this year!

  66. MOD Parent UP! by Anonymous Coward · · Score: 0

    A big thank you to you! I didn't know about the filetype: search modifier. It is extremely helpful.

  67. Re:NOT google by NuclearDog · · Score: 1

    Not really.

    Evil or not, the law requires them to defend their trademark or risk losing it.

    ND

    --
    This statement is forty-five characters long.
  68. How about this library of code snippets... by ylikone · · Score: 1

    http://www.bigbold.com/snippets/ seems to be catching on a bit.

    --
    Meh.
  69. http://www.codase.com by Anonymous Coward · · Score: 0

    http://www.codase.com/, currently available code search engine with 250M line of c/c++/java code, with very flexible query interfaces

  70. Google by appleprophet · · Score: 1

    I really wish Google would allow you to search for characters like +, ;, [], etc. It is virtually impossible to search for source because it simply drops all of your symbols.

  71. Never... by hw2084 · · Score: 1
    how soon until the real Google sues its soundalike search engine Krugle for infringement?
    I would say never, since the creator's name is Krugler. Maybe I should name my kid "Gooogle" and setup a home page for him.
  72. First impression by emurphy42 · · Score: 1

    I see the designers of Flock are up to their old tricks again...

  73. Re:NOT google by freeweed · · Score: 1

    Not really.

    The law doesn't require a company to go after each and every last thing that could possibly, no matter how weird, sound slightly similar to its name.

    You can't seriously believe Microsoft would lose their corporate trademark because a guy named Mike Rowe also makes software. If vague soundalikes meant you lost your trademark, every company with the name 'soft' (and there are thousands of them) would all lose their trademarks tomorrow.

    --
    Endless arguments over trivial contradictions in books written by ignorant savages to explain thunder in the dark.
  74. Re: Already done (not) by twasserman · · Score: 2, Informative

    I was invited to see a live prelaunch demo of Krugle, which is named for Ken Krugler (co-founder and CTO). This site goes way beyond what is available in koders.com, since it pulls up tutorials, documentation, developer sites, and other relevant developer-related information. Thus, a search for PHP will give you php.net, but also lots of PHP-related sites, such as O'Reilly's OnLAMP, etc. They are planning to go live on March 8th, so you can check it out then. I was impressed.

  75. In Soviet Russia.... by Anonymous Coward · · Score: 0


    Phooeiy on all yoo Krygyl Kodders!

    In Soviet Russia, our engine, powered by GOGOL® searches YOU !

  76. Only one Concern by VxJasonxV · · Score: 1

    There is only one thing I worry about with this, and it's the same problem as google:
    Horribly
    Outdated
    Code

    "Hey look guys, Krugle says that 5.0.4 has been announced."
    "...that happened 6 months ago, not to mention came out."

  77. So what's new? by laetus42 · · Score: 1

    I could get 356314000 hits with the source code already when I type in an error message (instead of the much needed answer to "what do I do with this then?"). I don't need another search engine for that...

  78. Re: Already done (not) by mderdem · · Score: 1

    Google assigns 2 engineers on this subject. They extend their already well optimized tools to search code. Of course they integrate right into the search engine.

    Both project die in 3 months.

  79. Re:NOT gugle by Anonymous Coward · · Score: 0

    I pronounce Krugle as "krug-ell". They might have a better case if their name was really "Gugel", "Gugle", or "Guggle" but they insisted on being called "goo-gull", or unless Mr. Krugler insists on calling his product "crew-gull".

    (Hint: In most places, Krugler = "krug-ler", not "crew-gler".)

  80. Now this may seem silly . . . by Don_dumb · · Score: 1

    but does it cover COBOL?

    --
    If this were really happening, what would you think?
  81. I'd like to thank the straightman... by Medievalist · · Score: 1
    What kind of lame ass system would have bash, but not sed, grep, and friends??
    Windows, of course!

    Just kidding. Seriously, calling in additional codebases unnecessarily is a bad idea - as Alan Robertson likes to say "complexity is the enemy of reliability". Why bulk up the memory footprint, CPU requirements, and total lines of source where bugs can occur if you don't really need to?

    I'm toying with the idea of rewriting the whole thing in gawk. Compiled C would be even better, although that would be overkill (even for me).