John Cooper
John Cooper

Reputation: 7641

System side programming - Which language?

I have few questions over System side programming.

  1. Can Python be used for both Web and System like perl.
  2. Which language would you prefer me. I have a little knowledge on JavaScript and Java.
  3. If i want to develop a compiler what should i know and where should i start.

Upvotes: 1

Views: 780

Answers (3)

clt60
clt60

Reputation: 63952

sure BASH and one full featured scripting language. I prefer Perl, but it is up to you.

for the 3.) You should study bison or yacc, lex, and/or any other grammar-parsers (compiler-compilers).

Upvotes: 1

Zach Kelling
Zach Kelling

Reputation: 53849

Well I'd definitely go with Python. It's an excellent language for just about everything, especially suitable for web/system development. Learning Python was the best thing I ever did. I used Java/PHP for a few years and I never look back. I reached a higher level of competency, faster with Python than any other language I've tried to learn.

As far as developing compilers go, you'll be in good company with the PyPy folks, so that's all the more reason to learn the language. PyPy is both a fast Python interpreter implementation (with JIT) and an advanced compiler/framework for implementing dynamic languages.

Upvotes: 2

Greg Hewgill
Greg Hewgill

Reputation: 993911

  1. Yes.

  2. Use a language that the people around you use.

  3. You should know about lexing, parsing, symbol tables, abstract syntax trees, optimisation, intermediate languages, stack-based and register-based architectures, code generation, object file formats, linkers, loaders, etc. There are many resources available in other questions about building compilers here on Stack Overflow.

Upvotes: 3

Related Questions