Public Code Repositories?
dubious9 asks: "Today I was refactoring a parser of mine to use a better implementation of a string searching algorithm. I went to the internet trying to find a good code repository where I might have a chance to find an implementation of a good algorithm, but a cursory glance turned out no clear winners. SourceForge was the best that I could find. Where is the best online repository/library of common and reusable code snippets?" We've tackled this subject a once or twice
over the years, is SourceForge really the best answer or are there other options?
If your google search doesn't turn up any relavent hits, then going for the repositories might be a good idea, but which repository you turn to is likely to be language dependant. Depending on the subject matter you might even do well by picking up a book.
I know java best, so I'll give my favorite Java repository: The Giant Java Tree
Perl hackers will probably recommend CPAN
I'm sure you will get an different site from each developer on Slashdot.
www.planetsourcecode.com
Might be something there.
We've tackled this subject a once or twice over the years...
... but just for the sake of completeness we decided to cover it again.
Freshmeat has lots of little open source projects.
Lots.
The GeekNights podcast is going strong. Listen!
--
Evan (going by memory, no time to Google to check)
"$30 for the One True Ring. $10 each additional ring!" -- JRR "Bob" Tolkien
http://www-igm.univ-mlv.fr/~lecroq/string/index.ht ml
--Tom
MAN SHOOTS ROVER!
You aren't allowed to redistribute code you get from planetsourcecode.com, which is a shame.
We can make our own source code repository. Yeah, that's it. We'll call it codesource.org, and we can use MySQL and PHP to run it. Anyone know where I can find some source code to get started? :-)
Where is the best online repository/library of common and reusable code snippets?
:-/
The US Patent Office.
(Spudley Strikes Again!)
boost.org seems to have some pretty neat stuff; however, i've never used thier stuff...
fwiw (and moderately on topic), clr ("introduction to algorithms", but i suppose with the new edition that should be clrp...) has a boatload of string searching algorithms in it, including (i *think* -- i haven't flipped through much more than the graph section recently) the knuth-morris-pratt algorithm. i've generally found their pseudo-code to be reasonably readable (certainly more so than 90+% of the freely available code that i've tried to read).
Google has been expanding into the specialized search arena -- how 'bout a code-specific search page?
Google's spiders could look into archive files, determine the type of code included, parse documentation files and even determine what sort of license said code was under.
I'm a Perlie and since it opened I've found Perlmonks totally invaluable -- their Q/A section actually has questions that I would ask if wasn't so beyond asking for help.
On that thread, My java-esque friends tell me Java Junkies is equally good if you're of the Bean persuation.
Both sites are, in case you didn't guess, based on the Everything Content Engine which is why they look so much alike.
Hilary Rosen's speech was about her love of money and her desire to roll around naked in a pile of money.
If your interested in games or not, both FlipCode.com and GameDev.net have alot of reference material for common algorithms.
They aren't exactly repositories as such, but there is alot of code snippets deposited in various sections throughout both sites.
- Gef
Other open-source languages, looking on the CPAN with some sense of jealousy, are slowly creating similar structures. The Freepan factors out the code that runs the CPAN into a generic tool. Feel free to contribute to the Freepan project if you can.
Cheater!!!!!!!
The lunatic is in my head
If I understand your problem, this is a search/sort.
Have you read your knuth lately?
Sigs are dangerous coy things
It's only the index system of course...
Okay. Check out the linked articles, yes, but also search SourceForge, Freshmeat and Google Advanced Search for what you're after.
Between these three, with a bit of intelligent searching, you should be able to find something related.
If you can't, your project is esoteric enough that you'll need to be looking thru' Google Groups and other such weird equivalents.
Enjoy,
|>
Here be Dragons
I work mostly with Java but that isn't to say the Forums on Sun's site can't be helpful for a C programmer. They are categorized so if you wanted to, you could limit your search to the Algorithms forum for example. The search engine is actually pretty good. If all else fails, post a question and you should get a reply pretty quick.
I though VA linux/OSDN used to have a site like this, that got shutdown a couple years ago. I never looked at it, and i think it was more javascript oriented.
I am interested in the very same thing. With part of the website donated to solutions, and then list the various languages or libraries that it is done in. There is no reason to reinvent the wheel in every language gone to. And then there's the issue of taking the time to making it better.
I am very much interested in such a project should anyone want to work on it.
Have you read my journal today?
Knuth's books are great... ;-P
if you can afford them and hack the math.
I have picked up some good algorithms from the ASM web site too,
but mostly by fumbling around and filing ideas for later.
I think the actual data is still available at @ http://www.bsdg.org/swag/
It would be really really neat if someone with time and/or talent would pull up similar compilation for "modern" languages. Or maybe even make similar thing with pseudocode.
yush
netlib
Once you find a paper that is close to what you want there are ways to surf to similar/related papers.
You might be looking for this:
http://jakarta.apache.org/lucene/docs/index.html
What of Algorithm repositories like this one? This is probably a more useful resource as it emphasizes more on the algorithm itself and allows you to see the algorithm implemented in various languages.
---- The geek shall inherit the Earth.
A friend of mine(brian) started just that: a language transparent cpan.. you can find it at http://www.freepan.org i'm shure he'l be more than happy to be slashsdotted;)
http://www.nist.gov/dads/