Live data from Hacker News

Poll: What's Your Favorite Programming Language?

news.ycombinator.com

241–250 of 626 posts

Re: Poll: What's Your Favorite Programming Language?

#241
post #97

Earlier quoted context omitted.

If you don't mind my asking, as a Python person, how did you learn Clojure? I'm mostly programming in Python and JavaScript today, and I want to learn Clojure, but I keep seeing these very strange talks. I don't know how to articulate it, really. My best metaphor is, it feels a little like I wanted to go out and learn about Catholicism and they said, "oh, that's easy, we'll just have you sit in on a bunch of confessi…

4clojure.com was very helpful for me, as was this: http://jkkramer.wordpress.com/2011/03/29/clojure-python-side...

[deleted]

Re: Poll: What's Your Favorite Programming Language?

#242

Earlier quoted context omitted.

Func is just the type signature they use for lambdas. The syntax allows fully inline functions now: () => { DoSomething(); } No return value needed (compiles down to an Action I think)

Can't recursively call a lambda function, no thanks.

https://blogs.msdn.com/b/wesdyer/archive/2007/02/02/anonymou...

Re: Poll: What's Your Favorite Programming Language?

#245
post #216
post #178

Earlier quoted context omitted.

How is this C#+.NET integration on mono? Are the relevant low-level facilities translated well into linux or osx?

I like Mono, and I respect the work that they've accomplished. It is incredibly difficult to build a runtime like .NET, especially as it was never designed to be cross-platform. That said, the Mono experience on Linux is inferior to that on Windows. MonoDevelop is nowhere near Visual Studio, so that I just develop on Windows and deploy on Linux. Unfortunately, that doesn't help the fact that both the soft and hard de…

The FFI is still far better than most of the other FFIs for other Linux-targeting languages. Yeah, and MonoDevelop is not equal to Visual Studio, but it's a damn sight better than almost any other OSS IDE.

Re: Poll: What's Your Favorite Programming Language?

#246
The beauty of Java is that is not ONLY a language, it´s three things:

1. A runtime environment 2. A software ecosystem 3. A language.

:)

So you can use 1. and 2. without having to write a line of Java if you don´t like it. There´s plenty of languages that run on top of the Java virtual machine: JRuby, xRuby, Jython, NetRexx...

Even Lisp and Cobol if you want.

http://en.wikipedia.org/wiki/List_of_JVM_languages

There´s a yearly summit about new languages ported to the JVM... http://openjdk.java.net/projects/mlvm/jvmlangsummit/

Re: Poll: What's Your Favorite Programming Language?

#247

Earlier quoted context omitted.

Func is just the type signature they use for lambdas. The syntax allows fully inline functions now: () => { DoSomething(); } No return value needed (compiles down to an Action I think)

Can't recursively call a lambda function, no thanks.

There are two ways of recursively calling lambda functions, neither perfect, but both usable.

  Func fib = null;
  fib = n => n > 1 ? fib(n - 1) + fib(n - 2) : n;
Or write yourself a Y fixed-point combinator, described in http://blogs.msdn.com/b/wesdyer/archive/2007/02/02/anonymous...

  delegate Func Recursive(Recursive r);
  static Func Y(Func, Func> f) {
    Recursive rec = r => a => f(r(r))(a);
    return rec(rec);
  }
used like this:

  Func fib = Y(f => n => n > 1 ? f(n - 1) + f(n - 2) : n);
(I'm not advocating writing a fib function this way, but it's a useful example!)

Re: Poll: What's Your Favorite Programming Language?

#248
post #21

It's funny. Every time I use a new language, or go back to an old favourite, it becomes my favorite language for a time. Static typing? Wonderful error messages! Dynamic typing? It does what I want! Functional programming? This is the future of programming! Object-oriented programming? I can describe the world! Low level? My code is fast . High level? My code is *expressive. Is this normal or is it just me? Don't you…

I agree with this sentiment, and I voted for D because of what it is meant to be. They want it to support any paradigm, with any abstraction layer, and be useful in almost any context. I like that kind of freedom. Especially in a native compiled language.

No, it is not there yet. The hope it that it one day will be. Because that would be amazing. It is already about as easy to write as Java, and usually beats it in performance.

Re: Poll: What's Your Favorite Programming Language?

#250
I voted Ocaml because it is what I'd call my favourite language: of all the language I have actually used, it is by far the one I enjoyed the most, and the one that made me most productive.

However, Ocaml is not the end of it. I know of Haskell, and I sometimes resent Ocaml's value restriction, or lack of laziness. I know of Lisp, and I sometimes resent the complexity of Camlp4.

However, Haskell and Lisp are not the end of it. See, http://vpri.org/html/work/ifnct.htm and http://www.vpri.org/pdf/tr2011004_steps11.pdf showed that with the right tools, a few hundreds lines of code is sufficient to make a TCP stack, or a Cairo-like graphic system, or even a whole programming language stack that's more powerful than Lisp itself. When I see that, I know that I think Lisp, Haskell, Forth… are already obsolete. The market just doesn't know it yet.

However, COLAS and OMeta and Maru are probably not the end of it…

Post reply on HN