Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Strongly typed client side languages?

There are plenty of options for powerful server side languages, but I can't think of any strongly typed, truly powerful client side languages. Javascript does a lot with forms, basic math, and interacting with the server with AJAX and such, but it has it's limits when compared to other languages.

I'm looking for a strongly typed client side language capable of image processing or data crunching, raw things like that. Or if there are javascript libraries that help enforce data types of variables, that might work too.

like image 770
Corey Ogburn Avatar asked Jun 30 '12 01:06

Corey Ogburn


People also ask

Is C++ a strongly typed language?

C and C++ are considered weakly typed since, due to type-casting, one can interpret a field of a structure that was an integer as a pointer.

Which language is used for client-side programming?

Client-side code is written using HTML, CSS, and JavaScript — it is run inside a web browser and has little or no access to the underlying operating system (including limited access to the file system).

Is Python strongly typed?

Python is both a strongly typed and a dynamically typed language. Strong typing means that variables do have a type and that the type matters when performing operations on a variable. Dynamic typing means that the type of the variable is determined only during runtime.


2 Answers

In the browser as far as strong typing goes you have Java with GWT (static), Python (dynamic) with Pyjamas, Dart, Opa (static) and a bunch of languages that can cross compile to javascript from LLVM (C, C++, Objective C, Java, Ada, and many many others) thanks to emscripten.

In terms of performance you can take a look at Google Native Client and Javascript typed arrays.

Personally I think Opa is one of the most interesting web languages today.

like image 110
Eric des Courtis Avatar answered Nov 14 '22 06:11

Eric des Courtis


Haxe is a statically typed language that compiles to various client-side environments, e.g. JavaScript or Flash.

like image 24
thSoft Avatar answered Nov 14 '22 05:11

thSoft