It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
How does one write a language? I really can't imagine how this would be done. Do you have to write some binary code? I think I'm far from capable of writing a real programming language -- I'm a hobby programmer -- but I just want to understand how it works.
I don't ask for 'a working demo' (because I presume that'd be a demo like ten pages long) but the general steps one has to take, what you have to write and what that what you have to write has to do, what language do you recommend (that I think I'm not capable of it doesn't mean I don't want to try).
EDIT:
So is my assumption that one would write some code in an arbitrary language that translates it into an already existent language and compile that to machine code?
PS I accidentally voted to reopen my own question, but I think it's reasonable it's closed, so how can I undo that?
Start by writing a specification and grammar that describe what your language does.
Then, write a parser and compiler that turns your language into a simpler language, such as C or MSIL or Javascript.
Finally, run an existing compiler for that language.
You may want to look into LLVM.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Sorry, but I couldn't find any relevant questions on Stack Overflow. However, I found this info graphic.
https://www.udemy.com/blog/wp-content/uploads/2012/01/PROGRAMMING-LANGUAGE-3.png
So. I often hear that some languages are said to have higher perfomance or to be more productive. For example, in introduction to The Pragmatic Programmer's Guide Yukihiro Matsumoto calls his language "more powerful than Perl, and more object-oriented than Python". While it is obvious that representatives of different paradigms have their own pros and cons (C generally has higher perfomance while Python makes the process of development more simple), it's still unclear what are the criteria in comparison within the same paradigm and how the ties are broken.
Take a look at the Computer Language Benchmarks Game (aka Programming Language Shootout):
https://benchmarksgame-team.pages.debian.net/benchmarksgame/performance/mandelbrot.html
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
What's the difference between a bot on MediaWiki vs using the Rest Based api to do the operations?
If by "bot" you mean screen-scraping, such "bots" are severely discouraged and we developers don't make any guarantee that screen-scraping will work reliably, i.e. HTML output can drastically change at any moment without any prior notice. On the other hand, MediaWiki's web API is designed with stability in mind - in addition to other benefits such as machine-readable output (ol' good JSON is much easier to parse than tag soup) and better performance (we don't spend server resources on sking rendering, you don't spend bandwidth on receiving it).
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I was just going through all the Mathematical stuff which is used in programming. There I saw a lot of generating functions which seems to be good in mathematics. But how are they implemented in the form of coding? I mean how these Mathematical functions can be transformed (or thought of as) into code form. As an example, this link shows some generating functions but I don't know how to use/implement those functions in the form of coding. Any striking idea is appreciated.
Thanks.
http://en.wikipedia.org/wiki/Partition_%28number_theory%29
"As an example, this link shows some generating functions but I don't know how to use/implement those functions in the form of coding"
in python they may look like this:
examples
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Pages like this:
http://info.abril.com.br/noticias/carreira/ibm-da-curso-gratuito-de-ingles-a-distancia-06092010-37.shl
are make in which language? Is "shl" a language? I didn't found more about..
File extensions on the web can be misleading. Webservers can be configured to treat extensions any way they want. There's nothing stopping a webmaster from naming all their HTML files ".exe" and calling their PHP scripts ".aspx"
Check that server's output headers. maybe there's a language signature. e.g. PHP can put in an "X-Powered-By" header if the webmaster so chooses.
It doesn't have to be a specific language, it depends on the configuration of the webserver. I would hunt for clues on the page, as the file extension is no help concerning finding out the underlying technology.
Well all webpages - including the example page you link to - are written in HTML and javascript. What the server-side language is that generates (or simply returns) that HTML and javascript could be practically anything.
However, the file ending .shl doesn't necessarily mean the server side language is .shl related. You can have your URLs ending with anything you like.
As far as what .shl file extension might be, I don't know. A google search throws up this: "Inno Setup String Tables file format" but i have no idea what this is.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
Lets look around for famous programming languages and their runtime environments and frameworks...
C, C++ are hard and complex for a
small and simple application.
Java is going to be a commercial
stuff for Oracle.
PHP is good but only about web.
C#, VB.NET and commonly .NET
Framework is Microsoft product.
Mono project? A few people trust it
as i saw!
Python and ruby and ... They are good
but not good enough!-
I hope i don't forget any other famous language!
My question is:
Does Open Source World Need A New Great Programming Language?
This question will probably be closed as subjective but here's my subjective view anyway:
Definitely not, the open source world is already far too fragmented already and has more than enough languages.
There are already fantastic open source communities around Java, Python, Ruby and PHP. All are great languages for the domains that they are designed for.
There are also some great upcoming languages such as Scala, Clojure etc.
It's a waste of time trying to be perfectionist about what language to use since everyone has a different idea of "perfect" and the value in a language lies in it being well used and providing an open, comprehensive platform for development, not in in being the "perfect" language for just two or three people in the world.