Questions tagged [language-comparisons]

Questions comparing two or more programming or markup languages against each other.

Usage guidance

Questions and answers on Stackoverflow are generally intended to discuss specific features with one or more repeatable and unambiguous solutions.

Consequently, the language-comparisons tag is intended to cover cases where:

  • two or more languages implement the same or substantially similar functionality
  • the functionality comparison is capable of unambiguous identification and resolution
  • such resolution does not require extended discussion or rely solely on subjective personal opinions or personal preference
124 questions
2
votes
2 answers

good references for comparing languages?

I'm familiar with several computer languages (Java, C, C++, Python, Scheme, Javascript) but am only vaguely with the terminology for analyzing and comparing them (things like dynamic/static binding, dynamic/static types, pass-by-value vs.…
Jason S
  • 184,598
  • 164
  • 608
  • 970
2
votes
1 answer

VBA With statement equivalent in other languages

In VBA there is a cool feature called a With statement that kind of lets you set the global scope for a block of code. This is useful to change multiple fields of an object and to call methods. Here is an example: With Forms!main .Filter = "tel…
Efraim Newman
  • 927
  • 6
  • 21
2
votes
2 answers

Porting from Ruby to Python: What to do with 'yield'

I currently try to port a piece of code from Ruby to Python to do a bit algorithm research. I have no experience in Ruby and don't know how to handle the 'yield' keyword. The code is for a Myers diff algorithm and fully described in this blog This…
phibel
  • 151
  • 1
  • 14
2
votes
3 answers

Ruby equivalent to Python chain()

What is the Ruby equivalent of the chain iterator in python? data_chained = [] data2 = {} data_chained = chain(data_chained, data2) How can this be done in Ruby?
2
votes
6 answers

What are the advantages of developing applications in C++ as compared to managed languages?

Hi I want to know why people develop library applications and employee management applications in C++ (this application, for example), when clearly the same thing can be done in C# and VB.NET in a much prettier way. Even banking applications are…
Haxed
  • 2,887
  • 14
  • 47
  • 73
2
votes
4 answers

Mono c# vs c++ in opengl game development?

Which of these languages is better for opengl game with primary platform linux? I would like if you compared them in performance and libraries support.
kravemir
  • 10,636
  • 17
  • 64
  • 111
2
votes
1 answer

python-like interpolation of string in coffeescript

I have such namespace with errors errorMessages= error404Find: "Hosts not found" error404FindByHost: "Host - #{hostName} - not found" error400: "No host" hostName should be assigned to null and overrided in function like: this.hostName =…
2
votes
1 answer

MySQL equivalent of Python's triple-quoted strings?

Using Python's triple-quoted strings I can define strings containing ', backticks, or " without having to care about it: hello = """ This string is bounded by triple double quotes (3 times "). Unescaped newlines in the string…
Franck Dernoncourt
  • 77,520
  • 72
  • 342
  • 501
2
votes
4 answers

Similar language features to compare with Perl and Ruby __END__

Background Perl and Ruby have the __END__ and __DATA__ tokens that allow embedding of arbitrary data directly inside a source code file. Although this practice may not be well-advised for general-purpose programming use, it is pretty useful for…
2
votes
3 answers

Can collections be "opened" inside function signature declaration?

Can the following type T be defined formally in Haskell or another functional language? Type T contains functions that, given a collection (i.e., a set) of objects from X, assign a number to each object in that collection. For example, let's say we…
max
  • 49,282
  • 56
  • 208
  • 355
2
votes
2 answers

Comparing Lua with Mono

I wanted to do some research but i could not find any information about this topic. The only information that i found -> http://benchmarksgame.alioth.debian.org/u32/compare.php?lang=csharp&lang2=lua And I'm not sure how i can interpret this…
Maik Klein
  • 15,548
  • 27
  • 101
  • 197
1
vote
6 answers

Ruby-like array arguments implementation in PHP

I program in PHP mostrly and Ruby sometimes I happen to be in need of a way to implements those "hash arguments" into my PHP funcions (Like, say, an HTML select helper) draw_select :name => :id, :onclick => 'alert(this.value)' The problem in PHP is…
Guillermo
  • 927
  • 3
  • 10
  • 23
1
vote
4 answers

Which programming languages have the most publicly available libraries?

I had assumed that there would be an easy to find list of programming languages sorted by the number of libraries that they have. I have been able to find no such thing. Is there any way to find or make such a list? Specifically, what would be the…
J. Mini
  • 1,868
  • 1
  • 9
  • 38
1
vote
2 answers

visual studio code - language server extension that written in python

I would like to write a visual studio code extension that parse and analyse large log files. I thought to start with language server extension. I would like the server to be written in python. Below, there is an example to server that is written in…
1
vote
2 answers

Is there a Ruby equivalent to Perl's Data::Rmap?

Perl's Data::Rmap allows you to recursively evaluate a BLOCK over a list of data structures (locally setting $_ to each element) and return the list composed of the results of such evaluations. $_ can be used to modify the elements. This is useful…
dreftymac
  • 31,404
  • 26
  • 119
  • 182
1 2 3
8 9