how to create scripting languages [closed] - c++

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I'd really like to know what knowledge do I have to pursue in order to create scripting languages from the ground up, probably using C++, maybe python, for those are the languages I know.
I've searched through SO similar questions, but nothing comes close of what I'm asking. I intend to understand language processing, not natural language, but scripts that doesn't have the focus on human readability, only on functionality.
My first idea, without any technical background, was to create a scripting language that assimilates a bunch of logical statements and making use of advanced built-in algorithms like logical reasoning, pattern recognition, neural networks an statistical analysis, in order to provide lots of useful(or not) information.
Sorry my bad english, I learned online, as almost everything I cited here :D and that kinda explains my lack of theorical background.
Thanks in advance.

"From the ground up" is a quite relative term, especially if you consider Python as the implementation language. I think what you are looking for is the implementation of a domain specific language (DSL). Good starting points might be this book or this one. DSLs are a wide topic, so if you provide more details, we might be able to give better tips.

Related

AI for time table generator software [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am trying to develop a time table generator software for my college. Obviously it requires a great deal of constraint satisfaction i.e. I need to satisfy a lot of rules in order to generate a bunch of time tables where classes do not clash. After doing some research and reading this article, I feel I need to use some AI in it. Now, I am a complete newbie to AI. Can anyone tell me which algorithm will work best in my case?
The simplest algorithm that you can use for this problem is genetic algorithm (or any other evolutionary algorithm). Solving this problem using GA is very simple but yet effective. There are lots of papers and codes that have used this approach for this problem.
If you have few rules and constraints, you may want to use exact straightforward techniques like backtracking with CSP heuristics to speed it up, but if there are lots of classes and constraints, I suggest Genetic Algorithm.
Well, not a trivial task indeed. Problems like this one are VERY hard to solve.
Here I can recommend you two things:
Use an existing CSP/COP solver and describe your constraints in its language. These solvers are very good, fast and tuned, being developed for years.
Educate yourself in the area of Discrete Optimization (there was a course at coursera.org with the same name which was great). Only after you grasp the basics of how these things work can you try to write your own solver. But let you be warned! Discrete optimization is pain and suffering :-).
This is by no means a suitable place to just tell you how CSP/COP works. It is a very broad and difficult field.
I wish you good luck!

Ocaml and Algorithmic Trading [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I'm completely new to the Algorithmic Trading domain. I've just completed a course that was Ocaml based, and read about Jane Street. Obviously they are a huge company with a large amount of resources, but is it feasible to use Ocaml for small time algorithmic trading?
I know that probably seems like a stupid question, but (from what i've found) there aren't any trading APIs for Ocaml. This would mean one would have to written from scratch correct?
Any insight would be greatly appreciated guys, like I said I am a complete noob to this domain.
Thanks!
I've recently noticed this package in Opam that could provide a starting point for a trading API:
"IBX is a pure OCaml implementation of the Interactive Brokers Trader Workstation API (TWS API) built on top of Jane Street's Core and Async library."
As for open source trading algorithms in general this project started recently:
http://scarcecapital.com/hft/
I think this question is probably too open-ended for the Stack Overflow environment to be useful to you. Stack Overflow is for when you have a specific problem you're trying to solve.
But being opinionated, I can't help but say that OCaml might be pretty good for algorithmic trading. The strong typing system and immutable data tend to help avoid errors while allowing you to code quickly. This, at least, is what I've found. But you'd need to plug OCaml in to your data sources and your trade execution channel, which would be extra work. Knowing nothing about this area, I don't know if there are libraries for other languages.
Most likely the folks who are actually doing this have an incentive to keep their secrets to themselves. But that would be true regardless of the language.

Does every large project include a Lisp interpreter? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I had the impression that there was a paper or article somewhere that claimed every sufficiently large project (not written in a Lisp variant) contained a poorly implemented Lisp interpreter. Google turns up nothing and a quick search of SO doesn't either. Is this something well known and documented somewhere I have forgotten, or just a figment of my imagination?
An actual document or link to such an article would be appreciated, if it exists. Otherwise, I will remove the question.
What Greenspun meant when he uttered this quip was that Lisp provides a great many foundational technologies for writing good software, and that programs written in other languages informally (and inferiorly) reproduce a number of them as they grow.
Yes, this claim is Greenspun's tenth rule (actually the only rule):
Any sufficiently complicated C or Fortran program contains an ad hoc,
informally-specified, bug-ridden, slow implementation of half of
Common Lisp.
It is making a valid point about the expressiveness of Lisp-style features (particularly its kind of macros). However, it isn't serious to the degree you would write a paper on it.

Junior Software Engineer (C++) Interview Advice [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
Hey guys.Tomorrow I have a phone interview with a good company for a Junior Software Engineer position. I have been out of the university with a bachelors for 3 months now, and am a bit rusty on my C++, as it has been a few semesters since I worked with it. I am currently reviewing it (working on pointers at the moment) to be prepared for tomorrow. Below is the description of the job. What would people recommend I brush up on the most to be prepared for the interview? What type of questions do you think the interviewer would ask that I should be sure to be prepared for? Thanks much. This would be huge for me.
Responsibilities
Willingness to accept new challenges and learn on the job in a fast paced environment
Opportunity to become heavily involved in all phases of the development cycle in a very short time period
You will gain hands on experience from day one while working in conjunction with other developers to ensure a high level of quality
Through quality testing and real world feedback, continuously improve the software*s functionality and performance
Skill Requirements
Bachelor*s degree required in Computer Science/Engineering, or any science/engineering field with relevant programming knowledge
Experience programming in C/C++
Ability and desire to learn quickly and adapt to new technologies
Familiar with polymorphism, memory allocation/de-allocation, and common data structures
C# experience is a plus
Network knowledge is a plus
Knowledge of financial terms is a plus
If your C++ experience is a few university courses and that's a while ago, and if you need to brush up on pointers again, then that means you used to know a few things about C++, but need to learn a lot before you'll be a yearling.
If I were you, I would be open about this. Then it comes down to how much you can convince them that you are a quick learner.
Of course, they might not want to hire someone who's not up to it immediately.
Just admit that you aren't experienced with C++ or C, but that you can handle it well and you've been exposed to it before. Emphasize examples in your past where you have accomplished something that took persistence and learning a new skill/field within a reasonable amount of time. I think most employers don't expect university graduates to be very experienced programmers, just simply fresh new minds. Use that to your advantage.
24 hours is sort of a short notice to start preparing for a technical interview.
Read about what you feel you need the most but I'd suggest to drop it. It's always a good advice to take some easy time before an interview.
Behave naturally and honestly. When they ask you about the things you don't know try to think of the solution but if it doesn't come to you just outline your current ideas and admit you don't know/remember it. It's an important personal quality in our job to be able to admit you don't know everything and ask/look for information instead of persisting in your ignorance.

Any nice place to communicate with c++/game developers? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I'm a game programmer working in Korea.
I started Stackoverflow recently and I found it helps me a lot.
Also I think communicating with other developers is a good way to learning and improving myself.
Stackoverflow is the only site I know to communicate (especially in English).
Any other nice place to communicate(ask/answer/talk) with game developers(or C++ programmers, network programmers)?
Gamedev.net has a great community of game developers, along with tons of great articles and resources related to game programming.
Beyond3D.com is another good site (and forum) frequented by game developers and gaming enthusiasts.
Too often people discredit IRC for it's abundance of high egos, and not to mention the ongoing war waged on infidels that promote spam terrorism. Despite those set backs, it can often be a good source of information. Typically if I go in there with an eagerness to learn and an openness to advice, I can typically find someone who is sitting at home bored and willing spend time teaching someone about something they have a passion for.
I would suggest logging into irc.freenode.net and looking for a gaming related channel. If you have trouble finding one (it's a rather long list), jump on the C++ channel and ask anyone if they know of a good channel targeted specifically for C++ game development.
Be warned though... sometimes certain channels can be rather clickish. If someone is rude to you, don't take it personal.