programming-languages

What is hard in Java but easy in Scheme?

These two languages are very different. They're each well-suited to their own particular tasks. What tasks are easy to do in Scheme, yet are hard / require lots of ugly code to do in Java? Another way of putting it: what is Scheme better at? If you can think of things that Java is better at, see this question. ...

What is hard in Scheme but easy in Java?

These two languages are very different. They're each well-suited to their own particular tasks. What tasks are easy to do in Java, yet are hard / require lots of ugly code to do in Scheme? Another way of putting it: what is Java better at? If you can think of things that Scheme is better at, see this question. EDIT: This pair of questi...

What is a good language to gain experience in Game programming?

I've been learning a little of C++ and Java but my main field of interest is gaming and i would like to write code for making my own 3D Games to complement my artistic expertise ...

Why is VB.net so verbose? Is it possible to trim down the fat?

Do languages become more verbose as they mature? It feels like each new version of VB.net gains more syntax. Is it possible to trim down some fat like the keyword "Dim"? C# also feels like it is getting more syntax since version 1. ...

What are all the way that you try to make your code functional like?

so that you can make your program concurrent easily in the future. ...

Which game scripting language is better to use: Lua or Python?

Hi, I have to program a game engine starting very soon for a 3rd year Games technology project. As a part of our project we have to integrate a scripting language for scripting our NPCs and other elements of the game. I know that Lua has been very popular in recent years and Python has horrible white space issues, however it is making a...

What dead programming languages do you know?

For the purpose of this question, let's define a dead programming language as one for which you cannot buy a newly manufactured piece of hardware and install an operating system which will let you run a compiler or interpreter for your language, without requiring an emulator. Thus, assembly language for any architecture which isn't curr...

Implementation of Curried Functions in Scheme

What happens when I do the following? (define ((func x) y) (if (zero? y) ((func x) 1) 12)) I understand that I can do this: (define curried (func 5)) And now I can use curried. What I'm curious about is in the definition of the function. Does the line ((func x) 1) create a new lambda with x as the argument, a...

Is there a non-scripting language for Linux/Apache?

I'm familiar with a number of web based languages out there, and a number of them are scripting (ASP, JSP, ColdFusion, PHP, etc). On the Windows platform, the single biggest move with ASP.NET is the move away from a scripted language. Is there a non-scripted language for Linux (LAM+?). Anything anyone out there is using to do this? Is...

What languages do you use together with C#?

I mean primarily languages that are part of the .NET infrastructure, such as F# IronPython C++/CLI Nemerle What are the benefits? What are the caveats? ...

Should inheritance (of non-interface types) be removed from programming languages?

This is quite a controversial topic, and before you say "no", is it really, really needed? I have been programming for about 10 years, and I can't honestly say that I can recall a time where inheritance solved a problem that couldn't be solved another way. On the other hand I can recall many times when I used inheritance, because I...

What's your next programming language? And why?

In the book, The Pragmatic Programmer the authors suggest that you learn a new language every year. With so many new languages these days, what will be your next programming language and why? Personally I can't keep up with one new language a year, but I've been around a good handful of different languages and that has been of great hel...

Are there languages compatible with .NET that don't support unsigned types?

Let's say that I'm writing a library in C# and I don't know who is going to consume it. The public interface of the library has some unsigned types - uint, ushort. Apparently those types are not CLS-compliant and, theoretically speaking, there may be languages that will not be able to consume them. Are there in reality languages like ...

Have you ever implemented a programming language?

Have you ever implemented a programming language, either your own or an existing language and why did you decide to do it? ...

Implement Array-like behavior in JavaScript without using Array

Is there any way to create an array-like object in JavaScript, without using the built-in array? I'm specifically concerned with behavior like this: var sup = new Array(5); //sup.length here is 0 sup[0] = 'z3ero'; //sup.length here is 1 sup[1] = 'o3ne'; //sup.length here is 2 sup[4] = 'f3our'; //sup.length here is 5 The partic...

Can Read-Only Properties be Implemented in Pure JavaScript?

Looking at the mozilla documentation, looking at the regular expression example (headed "Creating an array using the result of a match"), we have statements like: input: A read-only property that reflects the original string against which the regular expression was matched. index: A read-only property that is the zero-based inde...

What should we *not* choose for our next programming language, and why?

Another interesting site question states: In the book The Pragmatic Programmer, the authors suggest that you learn a new language every year. With so many new languages these days, what will be your next programming language and why? I consider my time a valuable and scarce resource, as do many others here, I imagine. With that in ...

C# in comparison to C++: what is your strongest pain?

Here are my points to start with. I cannot guarantee that my structs are initialized with my default constructor. I cannot define a simple " == " operator overload on an interface. I cannot return const objects, which destroys encapsulation. I cannot define a simple generic Sum function because of operator + not working on generic type...

When do you say "I have learnt this new language"

I intend to learn/taste a new language every now and then to be able to swim in all kinds of waters. I have fiddled around with Ruby, Python etc and have made some side projects which I did get paid for. Now the question is that what is a good indicator that I know a particular language that I have just learnt. I intend to learn a new la...

Are there any programming languages targeting PHP, besides haXe?

PHP doesn't get much love but is still a winner at easy deployment (for cheap hosting). Are there any programming languages (besides haXe) that target PHP? Writing applications in this language and then translating it into PHP, like some languages target C as an intermediate language? The Scheme implementation Chicken compiles into C....