Code generation with Machine learning [closed] - code-generation

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I am very interested in machine learning. i have an idea to develop a program which can generate a source code according to a given standards. for example if i have trained the system to how to write something to console and the standard way of using variables then it should be able to generate a source code for anything which i ask to print something to the console, likewise. Is there any resources source codes or existing open source projects?

You might be interested in Genetic Programming. It's a genetic algorithm that operates directly on programs.
The demo I saw used Lisp (Common Lisp, I think), which is a natural fit, but any language with eval should be decently easy to use.
The Wikipedia page lists a whole pile of implementations, many of them open source, so you should be able to start there.

This sounds like this is would be a Constraint Satisfaction [CSPs] or Search Problem, these approaches would probably be your best bet:
Genetic Algorithm
Some sort of goal seaking heuristic [with negative/positive reenforcements]
The algorithms that are under the CSP category.

Related

Which is good for Video Processing applications opencv or matlab? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I am working on Multiple Object Tracking algorithms. Which tool is most suited to develop my own algorithm OpenCV or Matlab ?
Matlab is a faster way to develop algorithms and testing existing systems. However, when it comes down to producing a commercial and portable application you need open source libraries like openCV. Especially some heavy weight algorithms like object tracking can be quite slow in Matlab while openCV has optimized builtin methods and algorithms about your subject already
I have been working with OpenCV for quite some time and I have to say it is a great tool. The new documentation is much, much better than the old one and the ease of opening multiple camera streams is awesome. I have no experience with Matlab so by bias is pretty high.
OpenCV can be used with many different languages (Again, I don't know about Matlab) including C, C++ and Python. I have found that the Python interface is really nice as they use Numpy arrays for manipulating data.
Here is a simple example of some Python code some students wrote to track both white Frisbees and rectangular targets.
https://github.com/Team3574/2013VisionCode

Open source and cross platform application [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I would like to know what would be the best programming languages to develop an open source that can work on mainly windows and mac.
any person should be able to change the source code if he/she wanted to without the need to recompile it. this is to allow further development and bug fixing.
The application does not require a massive computational resources and it would have a GUI.
what would you recommend?
the only thing i have in mind is to do the application using matLab. any other choice?
Many thanks for your feedback,
Python. There are many IDEs available, and the code is extremely readable. The community also maintains excellent documentation. I would advise against using Matlab to develop Open Source Software because Matlab itself is not an open source program. Maybe since you are talking about something mathematical, an open source alternative could be Octave? But I don’t really know what you mean by an application. Hope anything I suggested helped.

Why is Perl market position in server-side scripting so low, even less than Java? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
As per the article at W3Techs, Perl ranks the lowest among the server side scripting languages, even less than Java? Is there any reason behind it? Perl, as far as I see, is very popular, and an awesome language, how come it is hardly used by websites? Does it have issues with server side scripting?
This article has a lot of details on how W3Techs gets their data: http://w3techs.com/blog/entry/usage_of_perl_for_websites_fell_below_1_percent
As i did some analysis on this, let me summarize in short that the data presented by W3Techs is deeply flawed and extremely misleading. First off, it is important to know that they detect technologies of sites by running simple scripts at them that look for file suffixes in urls and then just take that and never verify with the site owner. As such they have a "no-detect" rate of 17.6% (plus an unknown "false-detect" rate). A more correct version of their chart would be this:
If you'd like to get more details and more mistakes in their data methodology, please take a look at the comments of the article, especially those written by "Mithaldu" or "Christian Walde", i.e. me. I posted extensively there as to why their data is nearly useless and why they're even misinterpreting the data they do have.

What interesting open source software is written in Lisp? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I was looking looking for the sources of real-life applications that are written in Lisp. For example a Pacman clone or a word processor would qualify as such.
How about a
web server?
text editor?
a type setter?
an interactive musical score editing application?
More example can be had at the cliki. Just stroll around a little bit.
The package-management application (similar to apt-get) that I use for Arch Linux, Paktahn, is written in Common Lisp.
Here is a list of applications written in Common Lisp. How "real world" they are is debatable, but since you consider a pacman clone to be "real world", I assume you will be satisfied.
Two big things come to mind.
EMACS
Maxima
The first has an incredible number of customizations. It would not surprise me in the least to find Pac-Man implemented in EMACS. Maxima does symbolic mathematics, so I imagine it'd be more difficult to grok the code.

Advantages of different Scheme R6RS implementations [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'd like to start programming in Scheme but the variety of different implementations is confusing. What are some advantages or disadvantages of various implementations?
Every implementation tends to focus on something different. Racket emphasizes its large libraries as "batteries included", while Ikarus Scheme touts itself as compiling fast code. You should examine implementations based on what you want. If you're just learning Scheme, DrRacket is a good choice with its friendly interface and specific environments for various Scheme books.
Also, you probably don't need to find a R6RS implementation, when most implementations target R5RS and most textbooks were written for R5RS and earlier.
Since you're looking to learn Scheme, I recommend The Little Schemer as an introduction to thinking using Scheme's lists and recursion.
Honestly, while each one has their own quirks and modifications to the standard, they're mostly the same. The biggest differences is how it compiles. You should probably just pick one and go with it.
Racket would be a good choice because it comes with a nice debugging IDE and is easy to set up.