Live data from Hacker News

C# Autocomplete Demo Using Bing Code Search Engine

codesnippet.research.microsoft.com

31–40 of 50 posts

Re: C# Autocomplete Demo Using Bing Code Search Engine

#32
post #8

Because we need to have more people using random copy-pasted code in their programs.

Yes, I rather my juniors cut and paste from StackOverflow because it means they are using a modern coding pattern and can learn from it and see great commentary about why this was the "chosen" pattern.

How else are we supposed to learn?

Same goes to all these clowns who champion one language/platform over another simply because of ego.

Re: C# Autocomplete Demo Using Bing Code Search Engine

#33
I always thought that people should have more built-in search power when they code. It's funny that Microsoft is taking the lead over Google on this, though I guess Google doesn't have their own IDE.

Soon, modular projects will just consist of searching and plugging in components...

Re: C# Autocomplete Demo Using Bing Code Search Engine

#34
post #33

I always thought that people should have more built-in search power when they code. It's funny that Microsoft is taking the lead over Google on this, though I guess Google doesn't have their own IDE. Soon, modular projects will just consist of searching and plugging in components...

Android Studio.

Re: C# Autocomplete Demo Using Bing Code Search Engine

#35
I fear for the future of working with copy/paste programmers, but then my fears are probably unfounded because after all, this uses the Bing search engine. Searching for "///how to sort an array" will most likely just give me the top ten tourist hotels in Paraguay instead.

Re: C# Autocomplete Demo Using Bing Code Search Engine

#36

I fear for the future of working with copy/paste programmers, but then my fears are probably unfounded because after all, this uses the Bing search engine. Searching for "///how to sort an array" will most likely just give me the top ten tourist hotels in Paraguay instead.

I don't think I'm a terrible programmer, but I still have to look up how to read a file line by line in C#, Python or whatever language I happen to be using. I think this is a great editor feature. Copy/paste programmers already exist and they're probably not going to find something that's hosted on research.microsoft.com.

Re: C# Autocomplete Demo Using Bing Code Search Engine

#37
post #27

Earlier quoted context omitted.

It should be noted that public github repos are _not_ public domain and not even necessarily open source unless the author specifies a license.

It's part of the GitHub terms of service: "By setting your repositories to be viewed publicly, you agree to allow others to view and fork your repositories."

Permission to "view and fork" is not the same as permission to copy and paste into a proprietary software product (i.e. this may not be legit for use by "enterprise" developers)

Re: C# Autocomplete Demo Using Bing Code Search Engine

#38
post #17

Earlier quoted context omitted.

Interesting idea, would definitely make you increase the efficiency of your time at the editor if it costs you $50/hour! But you don't need 1000 cores to fire off a bunch of search requests. Network calls are generally IO bound so even one or two cores can handle lots of requests.

> all public github code In RAM.

Some napkin math - as of late 2013, GitHub's main Elasticsearch cluster had ~128 shards of ~120 GB [1]. Obviously they have more data now, and it's not clear whether the number of shards includes replicas, but at current EC2 on-demand prices[2]:

   RAM: 63  r3.8xlarge @ $2.80/hr = $176.40/hr
   SSD:  5  i2.4xlarge @ $3.41/hr = $ 17.05/hr
   HDD:  1 hs1.8xlarge @ $4.60/hr = $  4.60/hr
[1] http://www.elasticsearch.org/case-study/github/

[2] http://aws.amazon.com/ec2/pricing/

Re: C# Autocomplete Demo Using Bing Code Search Engine

#39
post #34
post #33

I always thought that people should have more built-in search power when they code. It's funny that Microsoft is taking the lead over Google on this, though I guess Google doesn't have their own IDE. Soon, modular projects will just consist of searching and plugging in components...

Android Studio.

Visual Studio is a lot more important to Microsoft than Android Studio is to Google.

Re: C# Autocomplete Demo Using Bing Code Search Engine

#40
post #16

One of my pet ideas is a new programmer's editor that uses proportionally as much compute resources as Emacs did in the late-80s. An amount of computing that would show up as a major line item on your department's timesharing bill. 1000 cores costs around $50/hr, so if it boosted my productivity measurably it'd be worth it. Searching all public github code for strings matching around my cursor seems like the sort of…

I have a similar idea where the cores are put to work optimizing the produced binaries (profile-guided optimization, genetic algorithms, SAT solvers/theorem proving, etc). You could of course also do static analysis and all forms of testing (generative, property-based, unit, integration, performance, etc.).
Post reply on HN