programming-languages

Is it possible to embedd PHP as a scripting langage into a desktop application

I know that my customers know PHP because i'm working on a PHP Tool (Running as a MFC Desktop Program) Is it possible to embedd the PHP interpreter in a general purpose way like Python, Ruby, Lua or Javascript? And if yes - is it a hack or is there a clean solution. ...

Is worth the effort to learn D?

Ok, let me reformulate the question. Imagine you have 3 projects: A text editor for programmers, a compiler and a search engine library for at least 3 types of files: html, .xls and pdf. You have 3 choices: C++, java and C# (or any other languages I previously mention), or you could explore the alternative of doing it with D. Then, you a...

Why double arrow for Scala and C# lambdas?

Does anyone know some background, why Scala and C# use double arrow (=>) for lambdas instead of single arrow (->)? Single arrow is more common in literature, is used in Haskell, O'Caml, F#, Groovy etc. and IMO it also looks nicer :) ...

IBM Cell programming in 2010 - feasible and worth it?

Hello, I would need your help. I've come across an interesting book - Programming the Cell Processor: For Games, Graphics, and Computation - it contains mostly C and some Assembly for Cell. The technology is interesting indeed, but there are some doubts on my side. The book is from 2008 and some things has changed: There is no Linux s...

What are ISO languages?

It's in fact 3 questions : What is required for a programming language to be certified "ISO" ? What does ISO certification guarantee about the language? Does other language can be the same? A list of ISO languages? (made community wiki - not sure about the organisation, maybe the first answer should be edited to have the full ISO lan...

How to get the C pointer array length?

Is there any method like the Java can .length from a C point array? Thank you. ...

Does Lua support Decorators?

I come from a Python background and really like the power of Python Decorators. Does Lua support Decorators? I've read the following link but it's unclear to me: http://lua-users.org/wiki/DecoratorsAndDocstrings UPDATE Would you also mind given an example how how to implement it in Lua if it's possible. ...

Java N-Tuple implementation

I just made a Java n-tuple which is type safe.I'm using some unconventional methods to achieve type safety(I just made it for fun).I just sharing the code in-case someone can give some inputs on improving it or point out some flaw's. public class Tuple{ private Object[] arr; private int size; private static boolean TypeLock=false; priva...

Why C# doesn't accept the boolean operators as words ("and", "or", "not" ,..etc) with the current operators ?

My if stetement: if (!string.IsNullOrEmpty(Person.Name)) // some code I think the "!" operator is less readable when writing imperative code, Are you agree with me the following code is more readable? if (not string.IsNullOrEmpty(Person.Name)) // some code I'm not talking about replace the current operators, bu...

Skills to learn to avoid age discrimination (specifically .net)

I am an asp.net programmer and I am getting up there in my age. I wanted to know, from your experience, what skills (please be as specific as possible) would you focus on (.net or generic), what skills would you make sure you are razor sharp on, in order to avoid age discrimination? I have heard from a few recruiters that I have "alot...

Programming projects website

Does anybody know of a website where they have a listing of interesting projects that one can do to gradually ramp up your skills, and stuff that is actually interesting. This could be language agnostic or language specific in which case I am looking for C#. A great example of this diveintopython ...

Circular References

Possible Duplicate: Why are circular dependencies considered harmful? I have a line object and a point object. A line has references to two points, and each point has a reference back to the line object it belongs to. I have heard somewhere (I think) that circular references are a bad thing, but I don't understand why. Can s...

Rationale for no primitive SIMD data types

(Sorry if this sounds like a rant, but it's a real question and I'd appreciate real answers) I understand that since C is so old, it might have not made sense to add it back then(MMX didn't even exist back then). But since then there was C99, and still there are no standard for SIMD variables(as far as I know). By "SIMD variables", I m...

"Hello World" in Languages starting with Q, U and Y

I started a little fun project - collecting a "hello World"-program for every letter in the alphabet. For example Ada for A, Boo for B, C++ for C, D for D, Erlang for E, and so on But i got a little stuck i can't find any programming languages starting with the letter Q, U and Y Any languages anyone, preferable not from the esolang wi...

C# Switch statement with/without curly brackets.... what's the difference?

Has C# always permitted you to omit curly brackets inside a switch() statement between the case: statements? What is the effect of omitting them, as javascript programmers often do? Example: switch(x) { case OneWay: { // <---- Omit this entire line int y = 123; FindYou(ref y); break; ...

Are there there any completely alternate programming systems?

What I mean is, virtually every language I know of are basically variations on a theme. You create variables, functions and manipulate them using conditionals and other constructs. I understand Functional Programming and the like are somewhat different from 'traditional' languages, but underneath they are almost the same. You are still w...

Is PHP really a "Hypertext Preprocessor" as the name suggests?

Possible Duplicate: What is PHP as Personal Home Page and PHP Hypertext Preprocessor? I get that the name PHP is a recursive acronym. Fine I'm not sure why PHP has the Preprocessor and Hypertext parts in its name. A preprocessor is a program that processes input data and its output is the input of another program. PHP seems...

Does this language have its niche | future?

I am working on a new language, targeted for web development, embeding into applications, distributed applications, high-reliability software (but this is for distant future). Also, it's target to reduce development expenses in long term - more time to write safer code and less support later. And finally, it enforces many things that re...

create my own programming language

Possible Duplicates: References Needed for Implementing an Interpreter in C/C++ Books On Creating Interpreted Languages How to create a language these days? Learning to write a compiler Possible Duplicate: Learning to write a compiler Ok so I'm only 13 years old. I know some c++, VERY good at php, pro at css h...

What's language should I use to build this app?

Hi. I need to make an application that works from the browser, that can capture video from the webcam, show to the user what's being captured, have an option of pausing this capture (optional, but I'd like to) and after finished the user would hit a "submit" button and send it to the site (server). I've been struggling with JMF, becau...