Artificial languages for instructing computers to do steps of computation in order to complete tasks. They allow programmers to communicate with computers.

learn more… | top users | synonyms

-1
votes
0answers
95 views

Can someone clarify strings for me in the C programming language [migrated]

Hey guys so I'll cut this short. A few weeks ago I started learning the programming language C. I have knowledge in web technologies like HMTL/CSS, Javscript, PHP, and basic server administration. ...
8
votes
7answers
1k views

How did OOP evolve to include the notion of Properties

I've come from a C++ background and am going all out C# in my current job and I've just been reading a lot of Q&A about what's the difference between public fields and properties and all the back ...
0
votes
0answers
7 views

linear least squares of matrices in Matlab [migrated]

Given the equation of perspective projection of a set of 3D points in an image: lambda_ij * x_ij = P_i * X_j; how can one estimate the values of lambda_ij matrix that minimize the following linear ...
96
votes
6answers
14k views

Is every language written in C?

Sometimes while programming in different languages, this thought comes to my mind: Is each and every language written in the C programming language? Is the C language the mother/father of all ...
-4
votes
0answers
17 views

How do I create the windows explorer kind of search bar with QT [closed]

I am currently writing a program with QT using sqlite database and I need to write code to query the database and I want it to be like the search bar in Windows. such that as the user types, it brings ...
2
votes
1answer
60 views

Returning the object/$this [duplicate]

A very general question. I was thinking about method chaining, which seems useful, and began wondering if there is a reason to not return the object in a class member, as a matter of course. For ...
1
vote
2answers
90 views

What is meant by “redundant, but not duplicative” in the Steelman language requirements?

The Steelman language requirements have this: The language shall require some redundant, but not duplicative, specifications in programs. I think I can see the underlying idea (that re-stating ...
1
vote
1answer
138 views

Modern OOP vs Alan Kays OOP [closed]

I've recently come to discover there's actually a strong amount of criticism towards what people refer to as "modern OOP" - often comparing it to either functional programming or Alan Kays' OOP. ...
-4
votes
2answers
170 views

Company decides standard language for all development, or coder can pick their own standard…so that is the standard? What is the norm? [closed]

Our company is moving from IBM mainframe environment and coding, to an OO environment. Is it possible...or is it correct/plausable to NOT have any standard whatsoever with regard to the server side ...
10
votes
4answers
719 views

Historical precedent for why Prolog is less popular than SQL in Imperative Programming? [closed]

It seems that writing Declarative SQL is very popular in Imperative Programming. However, it also seems that writing Declarative Prolog could save a lot of complexity but this is not very common. ...
1
vote
0answers
133 views

Haskell, Rust, or D for POSIX shell implementation? [closed]

I am planning on writing my own Bourne shell. It will be full-featured, capable of being used as a system /bin/sh. The shell will be implemented very differently from other Bourne shells, however. ...
0
votes
0answers
51 views

Pre-Compilation Processor:

What I want to do: Parse source code, search for a beginning and closing tag of my own definition (one that does not conflict with any defined patterns in the programming language), and then replace ...
-1
votes
0answers
36 views

Why are vectorized loops slower than unvectorized loops in Julia

I'm new to Julia and noticed that this article mentioned unvectorized code being faster than vectorized code. Why is this? I always thought vectorized loops are faster than unvectorized loops because ...
4
votes
7answers
692 views

Why are self-hosting compilers considered a rite of passage for new languages?

I've heard in a number of places now that people expect languages to use, or at least have, a self-hosting compiler in order to deserve respect. I'm curious as to why this is. A compiler seems like a ...
1
vote
3answers
274 views

type infered statically typed languages?

are there any typeless typesafe languages? By typesafe I mean types are checked at compile time. By typeless I mean types are not declared. I know this is easier than it sounds, maybe even impossible ...
0
votes
1answer
115 views

How would one allow a client to query a graph database in Smalltalk, without exposing all of Smalltalk? [closed]

Is there any example of Smalltalk being used as a query language? What I am looking for is: a system or an application where the Smalltalk nature of the application is hidden or irrelevant to the ...
-5
votes
1answer
103 views

What is the purpose of Deprecation? [closed]

Is it just giving different names to previously named method? Does it change with the language you use? Is it essential? I have noticed different APIs having deprecated methods, which actually seem ...
-2
votes
4answers
150 views

Real AI in a compiled language [closed]

possibly a newbie question here. I heard that if a real AI were to exist it would have to evolve, by that I think it means it should be able to write new code then run itself with the new code. Could ...
0
votes
3answers
266 views

Using PHP or C++ for in real world electronic devices

I want to use my programing skills to make my day-to-day life easier, to do this I want to be able to program in my appliances like alarm clock or microwave or refrigerator, air conditioner etc, wish ...
14
votes
3answers
402 views

Is there any mechanism to make programming language more stable(compatible) for changes?

There are a big number of programming languages. Some of them grow up and become very popular. People use such languages more and more often. The founder of such language (or founding ...
0
votes
3answers
163 views

Reference counting & GC in LISP [closed]

What is the main method for reclaiming the memory in LISP? Does LISP really need garbage collection? Would not reference counts suffice? I just wanted to know whether reference counts are enough ...
13
votes
10answers
2k views

Can objects constructed from the same class have unique method definitions?

I know this seems like a weird question, since the point of two or more objects sharing the same class is that their behavior is the same, i.e. their methods are identical. However, I'm curious if ...
-3
votes
3answers
128 views

What programming languages are most suitable for implementing design patterns? [closed]

What programming language is best for implementing design patterns, (Factory , etc) especially for example if I need to develop a engineer scheduling system in less than a month. Would Java be my ...
0
votes
0answers
42 views

Developing a “time scheduler” app [duplicate]

I need to develop an application to generate, given a set of preferences and constraints, a time schedule for employees. These tables can really get complex and they might need to take into account ...
-2
votes
3answers
291 views

What is meant by Open Source Programming Language? [closed]

What does it mean when we say that it is an open source programming language? I mean is it the implementation (compiler/runtime) of the language which can be open or close in nature or something else. ...
-4
votes
1answer
119 views

Eliminating choices of programming languages? [closed]

There are a number of programming languages available today. My question is given a specific job what is the criteria one should use to eliminate other programming language choices which serve the ...
0
votes
1answer
112 views

What to do if a feature is not supported natively on a platform? [closed]

If a feature is not supported on a platform natively what would a programmer do? For example, when building an iphone app, if you are trying to slide a picture(just as an example- I know you can slide ...
6
votes
2answers
618 views

What is the relationship between lambda calculus and programming languages? [closed]

I am starting my first year (in college) in Computer Science next year and I write mostly in C (if that is to matter). I have tried searching but most of what I find assumes knowledge of lambda ...
-5
votes
1answer
122 views

How can I start making a programming language? [duplicate]

my question is this; How do I start making a programming language? By this I mean not an interpreted language, but I want to know how do I start from the machine code and work up, like the first ...
1
vote
3answers
442 views

Is it possible to have a dynamically typed language without duck typing? [closed]

This question has been asked here, but received poor answers and didn't clarify the issue. I believe it justifies asking it again. I understand that you can have duck typing with either dynamically ...
0
votes
0answers
74 views

Best way to handle language interoperability

Background In a language like F#, direct interoperability with most other .NET languages is possible. For example, it is possible to use classes written in C# directly in F#, and it is possible to ...
0
votes
1answer
110 views

Order of Operations Annoyance [duplicate]

In most programming languages (C#, JavaScript, Java) the order of operations precedence has that equality comparison come BEFORE bitwise comparisons. This means that if you have a bit operation and ...
22
votes
4answers
3k views

Choosing a Programming Language Systematically [closed]

I am looking for a methodology for choosing a language. I am not asking for opinions about languages. I have been tasked with the process of comparing our shop's current language with others that are ...
3
votes
2answers
401 views

Are there any OO languages without inheritance?

During a code review today, a colleague of mine said something interesting: prototype is only useful when you need inheritance - and when's inheritance ever a good idea? I thought about this and ...
5
votes
4answers
574 views

When does it make sense to compile my own language to C code first?

When designing an own programming language, when does it make sense to write a converter that takes the source code and converts it to C or C++ code so that I can use an existing compiler like gcc to ...
1
vote
1answer
264 views

Which programming language first came up with the finally block?

Which programming language first came up with the finally block? I ask purely out of curiosity. It is a very useful piece of syntactic sugar, and whoever first created it surely has a very ...
18
votes
5answers
2k views

Why is type inference useful?

I read code way more often than I write code, and I'm assuming that most of the programmers working on industrial software do this. The advantage of type inference I assume is less verbosity and less ...
2
votes
1answer
303 views

Do compilers un-inline recurrent expressions?

Does a compiler look for recurrent expressions to convert it into 'function' to reduce binary size and improve performance? Of course, the obvious answer might be "some do it, some don't", so I ask ...
2
votes
2answers
535 views

What is the difference between if('' == $variable) and if($variable == '') [duplicate]

While using an 'if' statement to check whether a variable is an empty string or not we can write it in two ways i.e. if('' == $variable) and if($variable == ''). I want to know what is the impact of ...
0
votes
1answer
208 views

Static typing vs. dynamic typing [closed]

I'm developing my own programming language in my spare time as a hobby. It's an interpreted language. Currently the syntax for variables is this: %<variable> = <value> Here are some ...
0
votes
1answer
112 views

What are factors to take into consideration in choosing a programming language/paradigm for a rule-based natural-language translation program?

I have experience with object-oriented programming languages (C++ and Java), but I am wondering what kinds of programming languages — including OOP languages– or programming paradigms might be ...
0
votes
2answers
122 views

Finding metrics for development time in different languages [closed]

I'm trying to determine if a language I'm investigating (Groovy) is better for developing enterprise applications than our current language (Java). Specifically I'm trying to figure out if it will ...
3
votes
2answers
126 views

What is the extent of programming language localization dialects?

Apple's scripting language AppleScript was designed with localization in mind; allowing the language to be represented in multiple dialects resembling languages from around the world. In this way, ...
2
votes
3answers
562 views

Find all possible subarrays of an Array

I am lost I just can't seem to get my head around backtracking/recursion approaches. I understand how simple recursion problems like factorials work I can even trace those by hand. But when it comes ...
0
votes
3answers
279 views

How should I “dig deeper” as a web developer? [closed]

I am currently a full-stack web developer working mainly in Ruby/Rails/Javascript. The languages I use on a daily basis (ruby, css, javascript, php) are great, but they are very dynamic, high level ...
1
vote
3answers
199 views

How to abide the “allocate in caller” rule when the size is computed in the callee?

Let's say we have an opaque type handle_t that is managed through a simple interface with functions such as: handle_t *handle_init(void); int handle_do(handle_t *); void handle_free(handle_t *); ...
6
votes
2answers
404 views

In layman's terms, what is left recursion?

According to one page on code.google.com, "left recursion" is defined as follows: Left recursion just refers to any recursive nonterminal that, when it produces a sentential form containing ...
2
votes
2answers
177 views

What properties does an object oriented language have? [closed]

I'm currently working on a game and wanted to add some scripting support. Due to trying to keep the entire codebase in managed c# (Excluding Monogame), I am using a custom language for the scripting ...
2
votes
4answers
510 views

Why aren't we building and using parallel processors *meant* for general computation?

We all know GPUs are much faster than CPUs for a wide range of applications. When someone asks why we are not just programming for GPUs at all, one of the most common answers is that GPUs are not good ...
3
votes
7answers
194 views

What if any languages treat undisposed resources as an error?

I've seen lots of code like the following example. It's in Python, but the same mistake is made in all languages with managed resources: f = open('foo.txt', 'rb') for line in f: print line That's ...