News for hackers. Stuff that matters.

curtis17

Re:Rust Guide on Saturday September 13, 2014 @03:32PM (#8313308)
fn bugs me as well.

fun would have been better: - ML heritage for named functions (fn was anon) - muscle memory with the leading part of javascript function - the other abbreviations take the leading part of the word

Re:Swift Has Reached 1.0 on Friday September 12, 2014 @10:41AM (#8308245)
> but it is no more pragmatic than OCaml or F#.

Swift seems more approachable then those languages. Pragmatic in the sense that Rust and Kotlin are.

Re:Swift Has Reached 1.0 on Thursday September 11, 2014 @02:33PM (#8304267)
Swift seems a pragmatic take on functional programming. Apple backing means the compiler, libs and runtime will get a lot of work.
Re:Swift Has Reached 1.0 on Wednesday September 10, 2014 @05:15PM (#8299235)
> Or would that enable a Linux port?

I would be interested in a Swift port for Linux server-side/command line dev. Not so much client UI dev. Swift on Linux servers could help Apple sell more Macbooks to developers.

Re:Ask HN: Why did JavaScript win the browser? on Friday September 05, 2014 @10:53PM (#8277326)
Scala moving in a similar direction.

Odersky: That's going to be a more fundamental rethink of what Scala is. The main goal is to make it simpler, to review it or work out what its core is, and have a very simple core on which essentially the other features of Scala can all be based. Essentially, it's a way to modularize the language better, to base the features that we know from Scala on a very, very simple core that we can compile efficiently and reason precisely about. That's the main goals for Don Giovanni.

http://www.infoworld.com/t/java-programming/scala-founder-la...

Re:Ask HN: Why did JavaScript win the browser? on Thursday September 04, 2014 @09:51AM (#8268197)
The most interesting way forward re languages/runtimes looks like something Brendan mentioned here: http://javascriptjabber.com/124-jsj-the-origin-of-javascript...

> At some point, Sweet.js ties the knot and people can write hygienic macros and extend the language.... And it’s all based on a common set of primitives and that’s the important thing. You can reason about the primitives. You can compose them. They’re compositional. They compose orthogonally. That’s the goal here. JavaScript has a lot of warts in it, but if you weed those out or deprecate them you end up with stuff that is compositional. And that’s where I think we’re heading.

Re:Kotlin, the Swift of Android on Monday September 01, 2014 @01:37PM (#8253917)
Kotlin could be the Swift for Android if Jetbrains make it an explicit goal and gain developer mindshare.

Also, Kotlin can compile down to JS and can thus target another Google platform - ChromeOS/Chrome - with the possibility of shared code.

Re:AnandTech Publisher Anand Shimpi Headed to Apple on Monday September 01, 2014 @06:34AM (#8252261)
Apple could have big plans for their ARM64 platform. Anand could be part of it.
Re:Google, it's time – We want Scala for Android on Monday August 18, 2014 @10:26AM (#8192741)
If Google can't resolve their differences with Oracle Kotlin could be a way forward. Especially given the Android Studio connection.
Re:Ask HN: What do you think about future of Android? on Wednesday July 23, 2014 @02:09PM (#8075914)
Value types with operator overloading. Expressive and good for performance.

Open? Java is owned by Oracle.

C# is better and more expressive than Java. Especially the functional/declarative features added after the initial Java influenced release - async/await, var, linq etc.

Re:Ask HN: What do you think about future of Android? on Wednesday July 23, 2014 @01:35PM (#8075653)
Android needs to evolve away from Java. It needs a Swift - something richer, more expressive, focused on modern 64bit platforms and above all open.
Re:Java Developers on Tuesday July 22, 2014 @03:26PM (#8071080)
Definitely not alone.

At the Google IO Android Fireside Chat, a developer asked the Android team about using an alternative to Java for development - Scala in his case. Pretty much 'no' was the response. But don't Google have any taste. Kotlin or Xtend imo are lighter than Scala and would be good fits for Android.

Re:Java Developers on Tuesday July 22, 2014 @01:04PM (#8070081)
Dart is interesting but a little too Jave-ery in both syntax and tools - Dart Editor is Eclipse based. Also, not sure how committed Google is long-term.

Google's issue is too many languages and runtimes: Go, JS/ES6/V8, Dart/DartVM, Java/ART, PaNcl, RenderScript.

With the Material/Paper UI Google have given dev's a consistent, elegant unified surface. But Google should also be moving in the direction of an (elegant) unification under the hood. Java and JS are 20 years old - but are at the core of Google's platforms - Android and Chrome/OS. But what - Kotlin, Dart, ES6/7?

Re:Java Developers on Tuesday July 22, 2014 @11:44AM (#8069561)
Google have issues with Oracle. Why not bless an alt-Java and give developers a clear signal. The end game should be Kotlin or Xtend or ? -> Dalvik/ART. Cut out Java.
Re:Java Developers on Tuesday July 22, 2014 @11:09AM (#8069358)
I totally agree with the original poster. I picked up Java in the mid-90's for server-side dev. Grew to loathe it.

When Google announced an open-source OS for mobile - I was so happy. But ... Java. Broke my heart. Don't Google have any taste. At least Google could bless an alt-Java Swift-ish alternative like Kotlin, Xtend, AnythingButJava.

Re:Android development has its own Swift on Tuesday July 22, 2014 @10:45AM (#8069224)
Imo Android needs a Swift because: 1. Java is too verbose/tedious. Developers are looking for something richer/more expressive. 2. Oracle. Java is non-open.

Ultimately, the language that will become the Swift on Android is the language that makes it a core goal. This alt-Java could even be blessed by Google. Google could eventually cut Java out of the picture: Swift4Java -> Dalvik/ART.

Xtend, Kotlin and Scala are possibilities.

Kotlin has the Jetbrains Android Studio relationship going for it. Also compiles down to JS so could target Chrome/ChromeOS as well. Not as heavy as Scala - less of a learning curve. Xtend is good, and compiling to Java source could be an advantage. But Google do seem to be leaning towards Jetbrains rather than Eclipse.

Re:Swift Blog on Friday July 11, 2014 @05:45PM (#8022626)
Same here. I want to get away from Java and the JVM. Twenty years old and now owned by Oracle.
Re:Like Android, but not Java/XML. Any alternatives? on Tuesday July 01, 2014 @08:22AM (#7970225)
Yes. My understanding is that currently the Android ART toolchain is:

Java source -> Java byte code -> Dalvik byte code in apk -> install time compile to Oat file for execution in ART

Initially, just looking for something more expressive/succinct than Java that compiles down to Java byte code and is sympathetic to the Android frameworks. Not sure if there are any tools that compile down directly to dalvik and skip Java byte code entirely.

Like Android, but not Java/XML. Any alternatives?

Android L with the Material design language looks very attractive. But I really dislike the Java/XML combo for development.So, anyone tried the alt-Java's for coding Android apps: Kotlin, Xtend, Scala etc.Or even Xamarin or QT/QML.P.S With ART, I hoped Google were moving away from Java and would bless one of the alt-Java syntaxes and eventually cut-out Java and evolve ART independently. But...

( Read More... | 6 comments | 4 points | on HN )
Re:Dart 1.5 on Friday June 27, 2014 @08:39PM (#7956960)
WinRT was not built on the CLR. MS didn't eat it's own dogfood. Divided story between Windows Phone and Windows 8.

MS should open source the CLR. Also, the new MRT - minimal native runtime.

Re:Go support for Android on Saturday June 21, 2014 @11:18PM (#7926795)
True re Google's experiments. Given there's one guy in charge of Android and Chrome/OS developers could use a clearer direction. Preferably an alternative to Java (Kotlin?) which can also run on Chrome OS.
Re:Go support for Android on Saturday June 21, 2014 @11:11PM (#7926777)
Given Google's relationship with Jetbrains for Android Studio how about Kotlin. Cut out Java entirely: Kotlin -> ART.

Kotlin seems approachable and modern. Also compiles down to JS.

Re:The desktop and the developer on Tuesday May 20, 2014 @10:03AM (#7772560)
Licences and a cut from app/content sales. The problem with the Linux desktop is the 'everything is free' mentality.
Re:The desktop and the developer on Tuesday May 20, 2014 @09:37AM (#7772441)
Adobe are in the position to do for Linux what Apple did for BSD/Darwin.

Adobe OS. Take the Linux kernel, systemd and command line tools. Put a great gui on top. With Creative Suite and Open Office. Steam for games. Be prescriptive with the hardware re drivers. No crapware/bloatware (though Adobe have been guilty of this). Give developers the ability to make money with apps/content via purchase, subscription or ads.

My only use of Java is for Android.

The Android VM - Dalvik - uses Dalvik not JVM byte code. Now ART - the new Android runtime replacing Dalvik - is native - no more byte code.

There's not much Java left apart from the (poor) syntax. Why doesn't Google bless one of the alt-Java's, like Kotlin, and cut out Java entirely.

Re:Losing graciously on Friday February 14, 2014 @12:52PM (#7239859)
Canonical are making a bet on the graphical subsystem re Mir/QT/QML/Oneclick to crack touch/mobile. Similar to Apple going all-in on Objective C/Cocoa(Touch).

But for the low level non-graphical parts of Ubuntu it makes a lot of sense to stick to standard Linux/Debian. At the terminal/sysadmin/command line level a standard setup is desirable.

Re:For modern development Javascript indeed is a shit language on Tuesday October 29, 2013 @07:40AM (#6633301)
"but to do so with a much more radical design."

Now this is interesting. Working on anything!