Live data from Hacker News

Ask HN: What programming language has you really excited lately, and why?

news.ycombinator.com

41–50 of 105 posts

Re: Ask HN: What programming language has you really excited lately, and why?

#43
post #14
post #9

Rust: it provides extremely strong guarantees about your code at compile time so that usually it feels like a script language with C/C++-levels of performance. And the best part: no data races, and no runtime garbage collector overhead.

Is that all? That's a pretty generic reason IMO.

Depending on much experience you have with ML-y type systems, Rust will either feel a little boring or like a revelation. The combination of pattern matching and algebraic data types is incredibly powerful and expressive and unlocks a style of coding where what in other languages would be potentially buggy logic that needs to be tested becomes mechanically checked typing information. Often, code can be trusted to just work if the type checker accepts it, which is especially handy if you make major changes to a large programme. Rust also favours immutable data structures, which also means some classes of bugs stop showing up in most cases. I've found these things to be a major productivity enhancement, maybe on par with going from manual memory management to garbage collection.

Which is another reason to be excited about Rust - it is to the best of my knowledge the only new language that allows you to write an entire programme or part of a programme that does no runtime memory allocation. While GC in most languages is not problematic in most cases, this makes it suited for embedded or hard-realtime work where C/C++ may have been the only option up until now. But it still has all these expressive, high-level features and safety mechanisms that makes it so suitable for programming well-structured, trustable software. There's a learning curve moving from GC to the ownership system, and maybe a plug-in garbage collector makes sense in some cases, but then the system does support that.

And then there's the tooling. Setting up a cross-compiler (again, embedded work), bringing in libraries from online repositories, packing up code modules for distribution and reuse, all that, is as easy as you'd expect coming from the web world because of the excellent Cargo system.

In short, while it might not be completely battle-tested yet, I think it has a better shot at being the "one language" that scales from tiny throw-away projects to large, complicated ones, and from watches to super computers than anything else I've seen.

Re: Ask HN: What programming language has you really excited lately, and why?

#44
jq is a command line tool and also a language for expressing transformations on JSON with concise one-liners. It is useful for processing the output of mongoexport or an elasticsearch query.

The basic constructs are "filter expressions". Pipes (|) can be used to direct the output of one filter expression to another, and commas (,) can be used to concatenate the output of two filter expressions.

Re: Ask HN: What programming language has you really excited lately, and why?

#48
post #18

Lately? C# triggered by: - Open sourcing of .NET - Open Sourcing of Xamarin I want to live in a world where writing mobile apps for multiple platforms with a single codebase becomes the de-facto way of doing things. C#/Xamarin seems like the only viable way to achieve that.

What about react native?

Re: Ask HN: What programming language has you really excited lately, and why?

#49
Swift. I've been doing more and more iPhone development lately, so much nicer than ObjectiveC and half the files (I refuse to miss header files).

But I was also doing a lot of Java, which has made me more excited about getting back into C#. As far as language features go, Java is C# poor cousin.

Re: Ask HN: What programming language has you really excited lately, and why?

#50
post #28

F# is pretty sweet. It's concise, no ceremony, type safety, can be used with all .net libs, functional. I'm a beginner but love diving into it.

F# is excellent and the only reason I'd stick with .NET. Unfortunately, Microsoft doesn't think so, and continues to dump massive amounts of resources into C# while only paying lip service to F#. (See, for instance, the full-featured C# Interactive in VS. It arrived like 10 years late, but it's a much slicker experience, apart from the language.)

F# with C#-level tooling would be unstoppable. Though it's pretty fantastic as-is.

Post reply on HN