Questions tagged [programming-languages]

A programming language is an artificial language designed to express computations that can be performed by a machine. **Please note:** As is the case elsewhere on Stack Overflow, resource and tutorial recommendation requests, requests for lists of things ("which languages have this feature..."), and excessively opinion-based ("what's the best...") questions are off topic.

In the 1950s E. Dykstra stated that:

We can call something a programming language if it does three things: execute sequential statements, make decisions and allow looping or iteration.

A programming language is an artificial language designed to express computations that can be performed by a machine, particularly a computer.

This tag is particularly suitable for questions about programming languages and programming language design in general.

A programming language is a notation for writing programs, which are specifications of a computation or algorithm.

A popular weblog dedicated to programming languages design is Lambda the Ultimate.

Programming language description wikipedia

For a discussion on the use of the tag see here.

4117 questions
3
votes
1 answer

Reverse Engineering a Programming Language or 'Unsupervised Learning of Languages'

I need to build a "translator" (is cross-compiler the right word?) between Tradestation's EasyLanguage into C++. However, there isn't any complete documentation on the grammar of EasyLanguage (which I could find). As a more general question, given a…
3
votes
3 answers

Building a reverse proxy

I'm building a reverse proxy from scratch. The requirements are: 1) Super scalable. It must handle a lot of concurrent requests (also streaming, 1000 request/second would be a good performance in my case) 2) Super fast (non blocking). 3) No C/C++ or…
Mark
  • 67,098
  • 47
  • 117
  • 162
3
votes
7 answers

There is an array of n numbers. One number is repeated n/2 times and other n/2 numbers are distinct

There is an array of n numbers. One number is repeated n/2 times and other n/2 numbers are distinct.Find the repeated number. (Best soln is o(n) exactly n/2+1 comparisons.) the main problem here is n/2+1 comparisons. i have two solutions for O(n)…
tibet_lama
  • 131
  • 2
  • 8
3
votes
2 answers

Fifth generation languages?

I have been asked for these kind of languages, my first naive attempt brought two list List A) A programming language based on constraints rather than algorithms to solve the problems. eg. Prolog List B) A programming language that contain visual…
OscarRyz
  • 196,001
  • 113
  • 385
  • 569
3
votes
3 answers

What programming languages/platforms can you use for GUI in a WinPE environment?

I'm starting work on a project that must be delivered in WinPE. I will likely be able to use WinPE 3.0. I'm also aware of Bart's PE and VistaPE, but I think I'm going to stick with WinPE. I need x64 support and the full range of storage drivers. I…
Jared Oberhaus
  • 14,547
  • 4
  • 56
  • 55
3
votes
0 answers

On which programming languages can Curry-Howard's isomorphism be implemented?

Besides from Haskell (after all, Haskell is named after Haskell Curry), or academic languages like Agda, Idris, or Coq, which of the current programming languages, specially the ones that have some real-world applications, can be used to write…
3
votes
1 answer

Calling a function in a shared library given its name and signature

I have a little DSL that needs to be able to load shared libraries and run functions that they export. Finally, a solved problem: dlopen, dlsym, LoadLibrary, and GetProcAddress are all you need for cross-platform use of dynamic libraries. This is…
Jon Purdy
  • 53,300
  • 8
  • 96
  • 166
3
votes
3 answers

Python, Java, C# and parallel algorithms

I was wondering: would there be any merit in attempting to create parallel algorithms in Python? Say I want to research a new parallel algorithm, and I have the choice of C, C# and Python, would one or the other be "better" to test and benchmark…
Dervin Thunk
  • 19,515
  • 28
  • 127
  • 217
3
votes
3 answers

Navigating through Javadocs

I am new to Java and as a first I read through a couple of books that deal with the Java language. I had a couple of questions about the java docs. How does one 'navigate' them? Is it possible to learn new concepts using solely Javadocs? Here's an…
Null
  • 384
  • 2
  • 14
3
votes
3 answers

Is nonlocal same as static?

In python, we have a keyword called nonlocal. Is it the same as static in C++? If we have nested functions in python, instead of using nonlocal inside inner function, can't we just declare the variable in the outer function? That way it will be…
MrProgrammer
  • 443
  • 3
  • 13
3
votes
2 answers

in what language should the API be written?

We want to implement an API, we have a database located on a central server, and a network of many computers. On these computers, several local programs will be developed in the future using different programming languages, some in java, some in…
SLA
  • 33
  • 1
  • 3
3
votes
4 answers

Is there anything preventing interoperability between modern languages and COBOL?

I was reading about how people were having trouble finding people to work with COBOL when working government systems that still use it. I was also reading about how Fortran, a language made two years before COBOL, is interoperable with C, C++, R,…
user13290743
3
votes
2 answers

Is it possible for a programming language to confidently prevent undefined behavior on stack overflow?

Given the following assumptions: We cannot check the stack pointer (%rsp) before every single push or sub operation We cannot calculate the maximum stack size at compile-time (e.g. our programming language supports recursion) Is it possible to…
3
votes
1 answer

Understanding undelimited continuations

Suppose, I have the following code (in C-like syntax): void foo(int arg) { ... } int bar() { ... // call with continuation ... } foo ( bar() ) // after foo invocation 1) Function foo invokes function bar, which is running until it reaches the…
3
votes
3 answers

Display a dialogbox with a text input in C#

Possible Duplicate: Which control to use for quick text input (inputbox)? I need to display a dialog box which contains an input text to let the user type something and press ok, so I can read the typed text and do other things. Is there anyone…
VisaMasterCard
  • 1,666
  • 4
  • 18
  • 22
1 2 3
99
100