News for hackers. Stuff that matters.
Re:Rust means never having to close a socket by mwcampbell on Tuesday October 07, 2014 @03:09PM (#8423288)
I know Rust has RC pointers. But I'm guessing a Rust programmer would still have to understand ownership and borrowing, since the standard library and third-party libraries use those concepts.

I think what I'd really like is something like C# and the .NET base class library, but AOT compiled to native code and using automatic reference counting, with some way to indicate weak references. I know that neither GC nor reference counting quite reaches the level of "don't make me think" when it comes to resource management, but given a choice between explicit resource disposal and the occasional weak reference annotation, I think I'd choose the latter.

Anyway, enough ranting from me for now.

Re:Rust means never having to close a socket by steveklabnik on Tuesday October 07, 2014 @03:45PM (#8423540)
That's true, you can't totally avoid knowing about these things. But if you don't want to think about them in your code, and are okay with the price, you can.

It sounds like Swift may be close to what you want, yeah?

Re:Rust means never having to close a socket by bsaul on Wednesday October 08, 2014 @05:04AM (#8425971)
It looks to me that swift is the only language that can compete with rust if it were open sourced, or at least available for general purpose usage.

Anyone familiar to swift internals here to say whether server-side swift is at least theorically feasible ?

Re:Rust means never having to close a socket by doublextremevil on Tuesday October 07, 2014 @06:06PM (#8424287)
Unfortunately Swift is not open source or cross platform
Re:Rust means never having to close a socket by steveklabnik on Tuesday October 07, 2014 @06:13PM (#8424313)
Right, I meant solely on paradigm.
Re:Rust means never having to close a socket by mseri on Wednesday October 08, 2014 @06:37AM (#8426196)
Ok, let's assume that they open it.

First there will be need of a standard library. For the moment to do anything sensible you are importing Apple's Foundation Library (probably in one year time it will be better).

Then I see no problem to have it server-side (both as a scripting or compiled language).

Re:Rust means never having to close a socket by samth on Tuesday October 07, 2014 @09:24PM (#8424885)
I think the language you want is Ocaml.
Re:Rust means never having to close a socket by pjmlp on Tuesday October 07, 2014 @03:53PM (#8423585)
> C# and the .NET base class library, but AOT compiled to native code

Mono -aot and .NET Native.

Just not with RC, though.

Or D, if you with to have both GC and RC.