News for hackers. Stuff that matters.
Re:A glimpse into a new programming language under developme... by moomin on Saturday December 28, 2013 @06:03AM (#6974707)
This is going to be horribly negative so a bit of context first: I'm a professional C# programmer. I love C#, I think it's a great language.

But there's a huge downside: C# only works on Windows. This vastly reduces the number of things you can do with it (yeah, I know about Mono). There's nothing here that suggests that this would have anything other than the same restrictions. So, assuming the language develops into everything that's promised, you're left with something on which you can't do mobile, can't do big data, probably won't work very well for scientific computing. In fact, basically you're still stuck with the same LoB apps and ETL tools that C#'s already great at. And probably the same second rate (not awful, not great) web experience.

So the best you can hope for, basically, is a better C#. But not good enough to take on Java.

Don't get me wrong, it sounds exciting, but equally I worry that it'll be used as a way to generate patents to prevent the ideas being used elsewhere in environments where, tbh, they'd find more use.

Re:A glimpse into a new programming language under developme... by sillysaurus2 on Saturday December 28, 2013 @07:42AM (#6974870)
C# only works on Windows. This vastly reduces the number of things you can do with it (yeah, I know about Mono).

Speaking of Mono, does anyone know of a good resource for C#/.NET devs to learn how to port their Windows apps to Linux/Mac relatively easily?

I did a writeup a month ago about my first impressions of Mono: https://news.ycombinator.com/item?id=6744622

In short, there don't seem to be very many "Here's how to write cross-platform C# code that runs on all three platforms without much effort" type resources. It seems like most Mono newcomers will find it difficult to get up and running, especially if you've been developing your app with Visual Studio 2010 or later. So it seems like there aren't very many good tutorials written specifically to teach Windows C# devs how to quickly get up to speed with Mono.

After spending some time researching the idea of writing GUI apps using C# and Mono, I gave up because it just didn't seem straightforward. Maybe I was going about it the wrong way, but it seemed like Python + Qt bindings would be a more effective approach, even though you lose out Visual Studio's awesome GUI designer. But I haven't actually tried python+qt yet on all three platforms, so maybe it isn't as easy as it seems. And my Qt knowledge is somewhat dated, so maybe there's a better solution nowadays.

Does anyone have any recommendations for the easiest way to write cross-platform GUI apps that can run without an internet connection? I was thinking maybe making it a webapp, but the offline requirement seems to rule that out. (Has localstorage progressed to the point where people can start up a browser "app" without an internet connection? I haven't looked into it for awhile.)

Plus I'm not sure how easy it is to write custom webapp GUI objects compared to the fantastic ease of writing custom .NET GUI objects via the VS GUI designer. Although anything that lets you quickly and easily write powerful GUI apps that run on all three platforms would be pretty fantastic. What toolset would you use to get the job done?

EDIT: Hmm, just thought of another idea... Would Clojure work well for writing native GUI apps? It's based on the JVM, so it seems like it could leverage existing GUI libraries. (All the Java GUI libs used to suck, but maybe the situation's improved now that Clojure is popular.)

Re:A glimpse into a new programming language under developme... by barrkel on Saturday December 28, 2013 @08:18AM (#6974926)
I've ported an app from Winforms to Gtk-Sharp.

At first, I ran with the Mono reimplementation of Winforms on Linux. That didn't work very well. There are a lot of little incompatibilities, like differences in how keystrokes are translated, and very buggy text boxes.

So I reimplemented the UI in Gtk-Sharp. That was mostly a matter of translating existing Gtk documentation to the OO API presented by the C# wrapper. I could write this in Visual Studio and run using Gtk on Windows to test; Mono itself wasn't actually needed here.

I then ran the app using Mono on Windows. Once all the DLLs were in the right places, it mostly just worked. Running it on Linux - specifically, Ubuntu 12.04 LTS - was a little trickier, as Ubuntu has split out many of the different assemblies into separate packages, and you have to grovel around a bit to get what you want, if you don't want everything. But again, it mostly just worked.

Compiling using Mono took a little bit of figuring out - mainly, finding out I had to use dmcs rather than mcs or gmcs to enable the right language features. But again, once the right assemblies were referenced on the command line, it mostly just worked.

Writing a cross-platform app in Mono? I wouldn't really try that. Having a separate UI layer for each platform gets you a much better experience. Gtk programming itself is extremely clunky compared to Winforms, which itself is quite clunky - albeit in different dimensions - compared either with Delphi's VCL or WPF. But it was the only way I could see to go to get a reasonable experience on Linux.

Re:A glimpse into a new programming language under developme... by shadowmint on Saturday December 28, 2013 @08:42AM (#6974958)
Don't bother. No one is maintaining the cross platform GTK bindings (or .Net MVC framework) and basically no one cares about it. It's just getting more and more out of date.

Look at an actively maintained solution like Xamarin or Unity; Xamarin lets you write your UI specific code for each platform; Unity lets you share UI across platforms but you won't get a 'native' look and feel on any.

For both of these you won't be able to use the majority of existing .Net infrastructure (nlog, nject, nhibernate, etc) because they are locked into the windows CLR, but there are a few ports and you can often get away with compiling the source from codeplex yourself (the prebuilt DLLs just wont work).

(Unfortunately, porting your existing application is absolutely out of the question in most cases, for the reason above. Perhaps if you've carefully isolated concerns it might be possible...)

Re:A glimpse into a new programming language under developme... by barrkel on Saturday December 28, 2013 @10:42AM (#6975189)
FWIW, every pre-built assembly I've used on the CLR has "just worked" on Mono, no recompile necessary. But I don't have a lot of third party dependencies, mostly database drivers and a few bits and pieces.
Re:A glimpse into a new programming language under developme... by dubcanada on Saturday December 28, 2013 @02:14PM (#6975917)
If you want to write cross platform applications use Qt. End of story, it's the only extremely well supported cross platform GUI framework out there. If you are looking for a smaller framework you can try WxWidgets, but I would stay away from GTK. GTK has been getting less and less support since version 2. Version 3 is only Mac and Linux and the Mac version is terrible, there is a "custom" Windows version by some french guy, but it's just that, not community supported.

You could also take a look at Juce, depending on what you need to do with it.

But, if you don't mind large binaries you could easily embed a chromium or awesomium layer as your frontend and do your frontend in html/css/javascript and use JavaScript to communicate with your backend.

As people as said, the best idea would be to write one backend and three or two frontends. That will give you the best experience on all three platforms, and the native GUI look, something that on Mac Qt still suffers with.

Re:A glimpse into a new programming language under developme... by cmiles74 on Saturday December 28, 2013 @09:05AM (#6975000)
I have been building GUI applications with Java and Swing for some time. I am willing to go on-the-record and state that Swing provides a reliable and thorough cross-platform GUI toolkit. Once you put the work in, you really can build an application that looks native-ish and does the same thing on Windows, Linux/GTK and Mac OSX. Unfortunately the learning curve is quite steep, many things are more complicated then they need to be.

I have just started working on GUI apps with Clojure and the story is much better so far! Seesaw[0] definitely slims up the Swing code, and I've been using Core.Async[1] to remove a lot of the callback handlers. So far, so good. :-) It's definitely worth looking into.

[0] https://github.com/daveray/seesaw

[1] https://github.com/clojure/core.async

Re:A glimpse into a new programming language under developme... by coldtea on Saturday December 28, 2013 @02:43PM (#6976085)
>I have been building GUI applications with Java and Swing for some time. I am willing to go on-the-record and state that Swing provides a reliable and thorough cross-platform GUI toolkit.

Swing is used by two kinds of people: developers, because the tools that use it are just too good to go elsewhere (IntelliJ etc) and enterprise users that have it forced upon them.

I don't think anybody is using Swing willingly -- or enjoying it. Besides the "uncanny valley" effect to native widgets, it suffered from the start from the main negative of Java's culture: it was overengineered. On top, it underdelivers in many areas.

Re:A glimpse into a new programming language under developme... by bad_user on Saturday December 28, 2013 @06:56PM (#6977261)
It may be over-engineered, but it's easily available, at hand, when you need it.

The only cross-platform GUI toolkit that I loved working with and that does a much better job than Swing is Qt. Unfortunately Qt is C++ and it's not even standard C++. So language bindings are hard to build and (compared with Gtk) working with C++/Qt is not so painful. The bindings for Mono are dead. Trolltech released at some point Qt Jambi, the Java bindings, which were awesome, unfortunately the Java community hasn't been interested in it, so Qt Jambi also died after Nokia acquired Trolltech - for the moment at least (the wonderful thing about open-source stuff is that it can be revived with enough interest). The only well maintained language bindings for Qt is PyQt.

And yes, building the UI using the platforms native stuff yields better results, but it's also more expensive to do so. We're all moving in that direction anyway, given the emerging mobile platforms. Sometimes I'm thinking that for desktop apps it's just better to embed a web browser and build the UI with HTML/CSS and JS.

Re:A glimpse into a new programming language under developme... by coldtea on Sunday December 29, 2013 @01:00AM (#6978602)
>It may be over-engineered, but it's easily available, at hand, when you need it. The only cross-platform GUI toolkit that I loved working with and that does a much better job than Swing is Qt.

Both statements I agree with!

I think it's a sad state of affairs, that the tens of billion s IT industry, and the whole OSS community, cann't produce, and maintain, a decent, cross platform UI, based on C with hooks for various languages.

GTK has dropped the ball even on Linux (Mac/Windows support is crap, and the library is essentially what it was 10 years ago content wise).

wXWidgets is at the same level more or less.

QT is nice, but is C++, so you either by into the whole thing or you face the not so good support and bindings to other languages (Python has the best support, but even that is mediocre).

Mozilla's XUL was never wrapped and maintained properly (as once promised), to be use to use for cross platform development.

SWT needs Java, and is too tailored to Eclipse's needs.

I, for one, don't need native look in all apps -- I could do with something like the cross platform widget library Adobe built for Lightroom -- that and a webkit view.

Re:A glimpse into a new programming language under developme... by marktangotango on Saturday December 28, 2013 @09:58PM (#6978044)
>I don't think anybody is using Swing willingly -- or enjoying it. Besides the "uncanny valley" effect to native widgets, it suffered from the start from the main negative of Java's culture: it was overengineered. On top, it underdelivers in many areas.

Just out of curiosity, what other gui tool kits have you used that you compare Swing too? I always wonder what gui toolkits those who decry Swing have experience with.

Myself, I've used Win 32 api, MFC, SWT, and gtk. Imo, Swing is by far the best of those; relatively consistent api, a wide variety of widgets, customizable, ... True it can be very complex (ie editor kits) and some things are/were missing for a long time (close buttons in tabbed panes). Also true that it doesn't look 'native' on all platform, but no gui tool kit can. I have not used Qt, but it seems to be equivalent to, or surpass Swing in all those areas.

Re:A glimpse into a new programming language under developme... by coldtea on Sunday December 29, 2013 @05:18AM (#6979096)
>Just out of curiosity, what other gui tool kits have you used that you compare Swing too? I always wonder what gui toolkits those who decry Swing have experience with.

I've used Cocoa, GTK on Linux, and Windows Forms (or whatever .NET v1 and v2 had called) in Windows. Have also used Swing.

Quality of results wise, Cocoa beats them all down, but single platform unfortunately. The .NET solution was also nice, but limited to a single platform too. (I know of, but don't care for small-time hacks to make Cocoa/.NET play on other platforms, only for officially supported projects).

Swing had been a pain in the ass to create UIs with, overengineered, with missing functionality (how long did we have to wait for a HTML control?) and ugly too boot.

Swing has one thing going for it: it does work on all platforms. I just wish it was better designed (API wise), more complete, and less uncanny valey-ish.

Re:A glimpse into a new programming language under developme... by jeremiep on Saturday December 28, 2013 @10:20AM (#6975146)
Swing is also fully rendered on the GPU.

Seesaw is the only reason why I'm still bothering with Swing too, it actually makes the thing fun to use!

Re:A glimpse into a new programming language under developme... by edwinnathaniel on Saturday December 28, 2013 @06:08PM (#6977077)
I'm in the market of cross-platform desktop application as well and I've been monitoring Mono/Ximian for a while until last night when I was searching for a .NET Oauth 2.0 library and came across of a project called DotNetOAuth which after further digging does not work on Mono.

I'm a Java developer and I would write the software using Java if only Java isn't stigmatized by "bad software" in the desktop market. It's too bad because so far only Java that provide some of the solutions for me in a few areas to tackle in the cross-platform desktop market, namely: dealing with dependencies, rich 3rd-party libraries (and most of them are FOSS) and a packaging tool for Mac App-Store!.

I wouldn't mind writing 3 different UI code as long as I can share the back-end part and that shareable code works consistently across platform (i.e.: something that communicate with an embedded database like SQLite).

Can anyone share their experience using Mono for cross-platform desktop application that requires DB connection and potentially deal with Service API (i.e.: Twitter, Dropbox, etc)?

My requirements are as follow:

1. Installer/Packager

Something that can help me to generate installer for Windows 7, Mac AppStore, Ubuntu software center (or .deb). RPM would be nice but I can live with writing shell script.

2. Build+Dependency management (don't know if NuGet works flawlessly or not in Linux/Mac)

Maven spoiled me (people who dislike Maven please close your eyes...). I've read that Mono has xbuild but the documentation seems... lacking.

3. Unit-testing

Something where I can run unit-tests through the IDE so I can debug directly from my unit-tests when bugs are found.

4. Good enough 3rd-party libraries

I'm down writing missing libraries if needed but my first priority is the app itself.

Re:A glimpse into a new programming language under developme... by ndd on Saturday December 28, 2013 @08:30PM (#6977694)
I recently worked on a small-ish desktop app that shuttled data between a HID USB device and a web service. We targeted Windows and OSX. The UI portion of the application was very simple and I still found the Xamarin/GtkSharp combination buggy and frustrating.

We used Wix for the Windows installer and the included OSX tools to make the Mac installer (http://s.sudre.free.fr/Stuff/PackageMaker_Howto.html was helpful).

A TeamCity build system using NuGet worked fine for building both flavors, though the Mac build was really just a shell script that TeamCity launched. We used the Xamarin compiler for Mac.

In hindsight I wish we had taken (found?) the time to go all the way and write separate OSX specific UI code and not used GtkSharp. And not require the install of the Mono framework for Mac users-- that really kills the experience. Supposedly you can bundle in Mono with the Xamarin .Mac product but we haven't found the time to get that far yet.

*EDIT: I failed to mention explicitly this was C#/Mono. Also for those interested I used http://www.signal11.us/oss/hidapi/ as a wrapper around the Mac HID USB APIs and it worked fine.

Re:A glimpse into a new programming language under developme... by davidw on Saturday December 28, 2013 @08:21AM (#6974932)
> Does anyone have any recommendations for the easiest way to write cross-platform GUI apps that can run without an internet connection?

Granted, for many people, it's about as hip as Rails is to a newly converted node.js fan, but Tcl and Tk are still a pretty good way of writing smaller apps that run cross platform. Like someone else says, if you want a native GUI, you really need to write that separately for each platform. But that's a big investment, and for some systems, it might not be worthwhile.

Re:A glimpse into a new programming language under developme... by krisgenre on Saturday December 28, 2013 @09:19AM (#6975021)
A webapp doesn't necessarily have to be hosted on the internet. You can try with embedded server - Java + Jetty + GWT.
Re:A glimpse into a new programming language under developme... by bluefinity on Saturday December 28, 2013 @08:02AM (#6974903)
If you want to use C#, the easiest way is probably using GtkSharp. I don't know if there's a way to use the VS GUI designer, but MonoDevelop has a built in GUI designer that works with GtkSharp -- and MonoDevelop runs on Windows too.

Might be worth trying out. You can still run your application on Microsoft's .NET stack on Windows, GtkSharp supports it just fine, and because it uses GTK it will look native on all of the supported platforms.

Disclaimer: I haven't actually tried any of the above.

Re:A glimpse into a new programming language under developme... by jbeja on Saturday December 28, 2013 @09:34AM (#6975055)
If python is the language that you are gonna use, you would try Kivy cross-platform framework to make GUI for desktop and mobile.
Re:A glimpse into a new programming language under developme... by sillysaurus2 on Saturday December 28, 2013 @10:27AM (#6975166)
I just tried Kivy. Thanks for telling me about it! Kivy is pretty awesome: very easy to use, and it Just Works on all platforms, even mobile. It's also painless to deploy Kivy apps to users, which is great.

It's hardware accelerated, so I can write my own custom GLSL shaders for the UI, which is pretty cool. I bet I could even implement a Mario-style game using Kivy. The main application window is just a GL context, and all the UI widget rendering is done via GL.

Unfortunately the Kivy UI seems to be riddled with bugs, and the UI widgets themselves are very alien. For example, the Kivy file browser widget seems to be incomplete (it lacks basic features) and confusing (it behaves nothing like a native file selector). So Kivy is probably too jarring of an experience for users... if I use Kivy in its current form, all my users would balk at the unintuitive UI, since Kivy's widgets don't look or feel anything like native platform widgets. And since users would also be fighting Kivy's UI bugs, I predict every user would immediately ragequit my app. (E.g. drag-selecting text within multiline textboxes seems to be broken, etc.)

That said, Kivy is very close to being an effective way to effortlessly write crossplatform GUI apps. The main reason to use Kivy is because it's so easy to write useful apps with it. I wrote one in about 15 minutes from start to finish. The API is a pleasure to use, and the data binding design is especially brilliant.

Kivy seems pretty fantastic for writing internal tools. Data visualization via Python is now a cinch thanks to Kivy. For example, it'd be easy to write an app that shows the current status of all your server instances. And of course at that point it'd be easy to extend your app's functionality with features like "right click on a server instance to spawn an SSH session into it". Stuff like that is a breeze thanks to Kivy.

Time to try out everyone else's suggestions. Up next: Clojure + Seesaw. (This thread has been incredibly helpful... So many interesting ideas. Thanks, everyone!)

Re:A glimpse into a new programming language under developme... by sbrother on Saturday December 28, 2013 @11:03PM (#6978305)
Kivy excels at a lot of things, but I'd say that its real value shows when you want to quickly make a cross-platform mobile app that also happens to run on desktop OSes. The widgets and markup language (KV) are designed to be used in a multitouch environment, and they seem pretty alien when used with a mouse and keyboard. They are pretty intuitive when used on a tablet or phone, though -- I recommend you try compiling your app for Android before giving up on the framework.

That being said, even when compiling for PC it's worked very well for me when a client wants an internal tool and is willing to give up a native feel in exchange for fast (cheap!) development. I wrote this for UCLA a few months ago, and I think the whole thing only took me about 20 hours: https://github.com/sbrother/wassum-lab-lick-program/

Re:A glimpse into a new programming language under developme... by chas on Saturday December 28, 2013 @04:22PM (#6976670)
I have had similar experiences with Kivy. I previously developed a simple game with PyMT[0] relatively easily, so I was very excited when Kivy came out. I had another project requiring multitouch support on a PC recently and decided to use Kivy and it immediately crashed my window manager every time I tried to run it which turned me off pretty quickly.

I ended up doing the multi-touch UI in JavaScript and HTML instead. It felt much clunkier to work with, but I wasn't comfortable with wrangling Kivy's instability for the rest of the project.

[0] http://cleichner.blogspot.com/2011/02/multitouch-project.htm...

Re:A glimpse into a new programming language under developme... by platz on Saturday December 28, 2013 @06:59AM (#6974800)
From Joe Duffy's Blog [1]:

"Finally, you might wonder, “Why not base it on C++?” As we’ve progressed, I do have to admit that I often wonder whether we should have started with C++, and worked backwards to carve out a “safe subset” of the language."

...

"I do expect to take our learnings and explore this avenue at some point, largely for two reasons: (1) it will ease portability for a larger number of developers (there’s a lot more C++ on Earth than C#), and (2) I dream of standardizing the ideas, so that the OSS community also does not need to make the difficult “safe/productive vs. performant” decision."

"But for the initial project goals, I am happy to have begun with C#, not the least reason for which is the rich .NET frameworks that we could use as a blueprint (noting that they needed to change pretty heavily to satisfy our goals)."

[1]: http://webcache.googleusercontent.com/search?q=cache%3Ajoedu...

Re:A glimpse into a new programming language under developme... by catnaroek on Saturday December 28, 2013 @09:32AM (#6975049)
> But there's a huge downside: C# only works on Windows.

Not true. And, even if it were, how is that in any way a downside from Microsoft's point of view? As a Linux user myself, the main reason why I switched from Windows is that all the exciting advances in programming languages are happening in * nix-land, mainly Haskell and Rust. If there were some super-duper-awesome language for which Windows were the first-class platform, I would seriously consider switching back. I do not give a single damn about software freedom, technical excellence trumps all else.

> So, assuming the language develops into everything that's promised, you're left with something on which you can't do mobile, can't do big data, probably won't work very well for scientific computing.

Or Microsoft could be aspiring to make Windows a viable platform for all of those applications. Just because today Windows sucks for them, it does not mean it has to suck forever.

> So the best you can hope for, basically, is a better C#. But not good enough to take on Java.

Java's sole achievement is being consistently (as in "in the same way") crappy on all platforms. I would much rather be locked into a single platform for which there is an awesome language.

Re:A glimpse into a new programming language under developme... by edwinnathaniel on Saturday December 28, 2013 @11:40AM (#6975322)
Some of the .net libraries only run on Windows CLR. Example: DotNetOauth. Many other people pointed out other libs as well.

Kick-ass language with poor ecosystem is the common symptoms of academic language: for fun but lack of productivity and not battle tested.

Re:A glimpse into a new programming language under developme... by mcdougle on Saturday December 28, 2013 @10:21AM (#6975148)
I dunno. I agree with you that "only works in Windows" is not a downside for MS, but.... I'd argue that the best way for them to make Windows a good programming platform would be to make it better and easier to program in the other languages already there -- C++, Java, PHP, Rails all work on Windows, just... not as easily as on *nix. Although I guess a new, good language wouldn't hurt.
Re:A glimpse into a new programming language under developme... by raptormissle on Saturday December 28, 2013 @06:48PM (#6977219)
>I would much rather be locked into a single platform for which there is an awesome language.

So you would rather be locked into a single crappy platform with a crappy language that only works on that single crappy platform?

Re:A glimpse into a new programming language under developme... by catnaroek on Saturday December 28, 2013 @08:02PM (#6977534)
> So you would rather be locked into a single crappy platform with a crappy language that only works on that single crappy platform?

Please explain how you arrived at that conclusion.

Re:A glimpse into a new programming language under developme... by romanovcode on Saturday December 28, 2013 @06:10AM (#6974717)
C# developer here, also love the language.

I completely agree and I only hope that this new thing will be just as good as C# but fully cross-platform. It would be great.

>mobile

Xamarin is pretty solid, although it costs a lot.

Re:A glimpse into a new programming language under developme... by hhariri on Saturday December 28, 2013 @07:06AM (#6974815)
You looked at Kotlin? As a C# developer I'm loving the language and it is x-platform.

And that's despite my assumed bias, because I work at JetBrains.

Re:A glimpse into a new programming language under developme... by pswenson on Saturday December 28, 2013 @11:29AM (#6975301)
kotlin looks cool. But it's missing some minor things that would make it much more friendly:

* no regex literals

* a little verbose(instead of [] for arrays, it's "Arrays")

* hashes IMO should be JSON

* why doesn't null evaluate to false? God I hate writing if (a != null). I'm much happier in javascript/ruby/groovy land where if can type "if (!a)" or "unless a" or even cooler "raise Exception("a should not be null") unless a"

* why did the world standardize on camelCase instead of snake_case ? the world was wrong about this!

basically a little more javascript and ruby influence would have been good. make the language more "fun" and expressive. There is no equiv of the ||= operator or | for joining arrays, etc

But the big things it's missing are more ecosystem features: * REPL

* an alternative build system (please don't make anyone use maven!) should be an interpreted scripting language. I'd look at Rake or Gradle for inspiration

* rails like web framework

Re:A glimpse into a new programming language under developme... by vorg on Sunday December 29, 2013 @04:21AM (#6978977)
Trouble with all the build systems is they're language based, and the best systems use the worst languages, and vice versa.
Re:A glimpse into a new programming language under developme... by Sssnake on Saturday December 28, 2013 @01:56PM (#6975806)
>kotlin looks cool except they should do all kinds of dumb stuff as if it were a scripting language

It is a statically typed language designed to try to drag java programmers kicking and screaming into the 1970s. Virtually everything you listed would be a bad change. Just use a language that is actually similar to what you want.

Re:A glimpse into a new programming language under developme... by pswenson on Saturday December 28, 2013 @10:37PM (#6978201)
This attitude is why java is stuck in the stone ages. Any ideas coming from the dynamically typed world are "dumb".
Re:A glimpse into a new programming language under developme... by Sssnake on Saturday December 28, 2013 @11:05PM (#6978314)
No, dumb ideas are dumb. It has nothing to do with java. Haskell is statically typed, and it is far more advanced than the languages you are thinking of when you think advanced.
Re:A glimpse into a new programming language under developme... by pswenson on Sunday December 29, 2013 @10:27AM (#6979807)
which ideas are dumb and why?

btw being a jerk doesn't help your case.

lesson in civil discourse by example: "I don't think that a ||= operator is a good idea because XXX"

Re:A glimpse into a new programming language under developme... by Sssnake on Sunday December 29, 2013 @07:50PM (#6982422)
Trying to turn a language into a totally and completely different language is dumb. This is not complicated. Civil discourse also requires that you take the time to read and comprehend words before you reply to them with crap.
Re:A glimpse into a new programming language under developme... by pswenson on Saturday December 28, 2013 @10:59PM (#6978291)
look at Rust btw. Statically typed, but heavily influenced by the scripting languages. You should set them straight!
Re:A glimpse into a new programming language under developme... by Sssnake on Saturday December 28, 2013 @11:05PM (#6978312)
I've seen rust. I don't know what you think is so heavily influenced by scripting languages, you'll have to share.
Re:A glimpse into a new programming language under developme... by trimbo on Saturday December 28, 2013 @09:59AM (#6975102)
Kotlin seems nice but when's Kotlin going to be "for real"?

What I mean by that is, when will it go 1.0? When will we see a major project from Jetbrains implemented in it?

Kotlin has been around for a couple of years now and Jetbrains still won't answer these questions as far as I can see[1].

[1] - http://devnet.jetbrains.com/message/5490337?tstart=0

Re:A glimpse into a new programming language under developme... by dodyg on Saturday December 28, 2013 @10:49AM (#6975207)
You can start with the latest build. It is that good. There is no need to wait for the 1.0 version.
Re:A glimpse into a new programming language under developme... by trimbo on Saturday December 28, 2013 @11:52AM (#6975354)
I'm sure it's good. It's just not for real yet.

* If you read the link, there is no guarantee of backwards compatibility to the current point within future releases. This is why they're still in milestones.

* Jetbrains has yet to show us that they are, themselves, committed to Kotlin by implementing something major in it.

* They won't provide a timeline for 1.0.

I love thinking about and toying with new languages, but when it comes to sitting down and doing stuff, I need to know the environment has enough commitment such that I don't have immediate code rot.

Re:A glimpse into a new programming language under developme... by EpicEng on Monday December 30, 2013 @11:46PM (#6989018)
So you would use a pre-1.0 version with no guarantees of backward compatibility to implement something real? Something that a business depends on, not just something you can toss up on your GitHub page to look cool? I would fire you as soon as we tried to update to a new version and had to spend weeks fixing your now broken code.
Re:A glimpse into a new programming language under developme... by talloaktrees on Saturday December 28, 2013 @08:34AM (#6974949)
I've been really impressed by Kotlin after trying it out for a week. I didn't have huge problems with Java (I accept it for what it is) but it really is nice to user a more modern Language. (note: I've never tried Scala)
Re:A glimpse into a new programming language under developme... by _random_ on Saturday December 28, 2013 @09:02AM (#6974993)
Did you re-implement ReSharper or any of your _major_ products in Kotlin?
Re:A glimpse into a new programming language under developme... by bartwe on Saturday December 28, 2013 @09:10AM (#6975007)
I want to like it but the lack of value type structs and other GC avoidance features will keep its performance at java levels.
Re:A glimpse into a new programming language under developme... by dodyg on Saturday December 28, 2013 @10:45AM (#6975199)
And for wide variety of server side applications, Java level performance is awesome
Re:A glimpse into a new programming language under developme... by venomsnake on Saturday December 28, 2013 @06:40AM (#6974768)
Project Rotor will be left in the history books as the "Java killer that was never unleashed". I remember using C# back in 2005 and just thinking how far ahead of everything it was. But it was never allowed to leave the shackles of MS.
Re:A glimpse into a new programming language under developme... by thirdsight on Saturday December 28, 2013 @06:46AM (#6974781)
They did release it, source code and all. Unfortunately with a shit license.

I had it building on FreeBSD back then!

They did the right thing for them but not the community. Isolation and ecosystem ate tightly controlled at Microsoft and always have been. It's how devdiv remain scarily profitable.

Re:A glimpse into a new programming language under developme... by tluyben2 on Saturday December 28, 2013 @06:25AM (#6974737)
Xamarin has been nice so far; it's not that expensive compared to any serious project, but it should be cheaper to capture larger audiences. The free version is very crippled even for trivial projects.
Re:A glimpse into a new programming language under developme... by sjs1234 on Saturday December 28, 2013 @11:25AM (#6975288)
It is a systems language. The competitors are c, c++, go, and D. Within Microsoft it's just c and c++. Competition with Java is irrelevant, c# already occupies that space. Microsoft has enough need and scale that a systems language that picks up internal use is justified. The use case is making platforms, not crossing them.
Re:A glimpse into a new programming language under developme... by catnaroek on Saturday December 28, 2013 @12:01PM (#6975369)
Go, a systems language? I would not be so sure. Stop-the-world garbage collection and dynamically typed interfaces seem like a poor fit for this niche.
Re:A glimpse into a new programming language under developme... by sjs1234 on Saturday December 28, 2013 @12:23PM (#6975463)
Ack ... I'm largely ignorant of the details of go other than its original positioning. Do the semantics of go constrain gc implementation in such a way that it precludes low latency? Or is it just not a focus of the implementors?
Re:A glimpse into a new programming language under developme... by catnaroek on Saturday December 28, 2013 @12:35PM (#6975504)
Although Go has channels for civilized communication between goroutines, the language does not have a native notion of what data is owned by which goroutine, which pretty much forces garbage collection to stop the whole world.

This, together with pervasive mutability, means that communication using channels is merely a convention that can easily be circumvented.

Re:A glimpse into a new programming language under developme... by Sssnake on Saturday December 28, 2013 @01:53PM (#6975791)
>I'm largely ignorant of the details of go other than its original positioning

It is a faster python with a very primitive type system tacked on. I don't know how they ended up there from their original idea of a systems language, but they did.

Re:A glimpse into a new programming language under developme... by catnaroek on Saturday December 28, 2013 @02:06PM (#6975871)
> It is a faster python with a very primitive type system tacked on.

And concurrency primitives in the core language. (In a properly designed language, these could have been made part of the standard library, though.)

And worse error-handling facilities than the original Python.

Re:A glimpse into a new programming language under developme... by computerslol on Saturday December 28, 2013 @01:49PM (#6975766)
It looks like you have a very narrow perspective on C#.

I've never tried running .net on a non-windows platform, so I can't comment in that space. I'll leave that to someone else.

As someone who's built bespoke big data applications, scientific computing (if we're both talking about large scale computation for analytics), desktop applications, server applications/services, and web sites (one of which is within the US top 150 on alexa) in c#; I'll have to disagree that anyone working in the language is stuck with LoB applications and ETL tools.

Re:A glimpse into a new programming language under developme... by moomin on Saturday December 28, 2013 @02:22PM (#6975974)
I think you're missing my point, it's about sweet spots. C# has a sweet spot on windows desktop and ETL style data processing. You could have written all of those things in C++, Java or Python. But the ecosystem isn't there. There's no Hadoop, SciPy, Django or Rails. For crying out loud, just running a less compiler on Windows required someone to sit down and rewrite it from scratch. (The node story has improved on windows since then.)

And none of this looks likely to change. Windows has been a second rate development platform for some time now, and Microsoft don't mind.

Re:A glimpse into a new programming language under developme... by computerslol on Saturday December 28, 2013 @07:24PM (#6977385)
You're right. I am completely missing your point.

I can't speak for all .net shops, but in my experience you roll your own. You sit down, discover your problem, and write a solution for whatever you need from scratch specifically tailored to your need and performance requirements. Afterward, you understand the code (and the intent behind it) very very well.

I don't lament the lack of third party frameworks. I take them as an inspiration when I find interesting ones, and I know my toolset well enough to re-work their solutions and make them my own in pretty good time.

For me, as long as whatever it is is meant to run on windows (and doesn't require native performance), C#'s sweet spot is whatever I decide it needs to be.

Having a C#-like language in which I can write code with performance comparable to native will put some icing on my cake.

Re:A glimpse into a new programming language under developme... by moomin on Sunday December 29, 2013 @12:29PM (#6980319)
Believe me, I'm a great advocate of building the thing you need rather than blinding using libraries, but there's some great stuff out there: lessc, RabbitMQ (although that works well on Windows), Riak, Postgres, neo4j, hadoop, jQuery (Microsoft saw the light on that one), elastic search, pygments. Of those, Microsoft can offer alternatives to 2 of them: MSMQ and SQL Server. The others are sufficiently costly to re-implement that you're likely to just try to work around the problem (I'd love to see someone attempt a DB with Riak-like reliability on .NET... RavenDB is not that DB.)
Re:A glimpse into a new programming language under developme... by computerslol on Sunday December 29, 2013 @03:48PM (#6981306)
If you like Riak, there is a .net client library. There is a .net port of lessCSS. RabbitMQ works with .net. You can access postgres with .net. I didn't see any features of Neo4J that I can't do pretty easily with MSSQL and a custom DAL. You can talk to Hadoop from .net. I've been using jQuery with ASP.net since it was released. Elasticsearch runs on windows, and I don't see why you can't use it with a .net project. I don't really see the point of pygments, but it looks like it's pretty easy to use with IronPython.

So in those instances you have a choice. You can use those libraries/products as they stand, or you can roll your own.

Re:A glimpse into a new programming language under developme... by pjmlp on Saturday December 28, 2013 @03:49PM (#6976494)
>And none of this looks likely to change. Windows has been a second rate development platform for some time now, and Microsoft don't mind.

Says who?

Those of us that use GUI environments not stuck in 70's terminals workflow think otherwise.

Re:A glimpse into a new programming language under developme... by edwinnathaniel on Sunday December 29, 2013 @10:06AM (#6979723)
It's getting better a bit since 2-3 years ago but before that Microsoft was always stuck in the 90's style of development while other platforms have moved forward significantly.

Nuget is a late attempt to follow Maven and yet still behind.

EntityFramework came in late and I heard ppl moaned.

No Docker...

Chocolatey came in late.

So yeah... Says the parent thread and me.

Re:A glimpse into a new programming language under developme... by pjmlp on Sunday December 29, 2013 @06:39PM (#6982106)
That is still light years ahead of coding with vi/emacs in UNIX SYSTEM V style, like many here still seem to do.

I only do it when I am left without any other choice, maybe growing up with Amiga/Smalltalk/Oberon GUIs has spoiled me.

Re:A glimpse into a new programming language under developme... by moomin on Sunday December 29, 2013 @12:48PM (#6980413)
Yeah, Microsoft's ORM solutions are pretty horrible but then... so is NHibernate. But NHibernate was better and five years earlier, so it was really hard to see why Microsoft even bothered with EF.

Only ORM I use is the wonderful Dapper.NET.

Re:A glimpse into a new programming language under developme... by moomin on Sunday December 29, 2013 @11:32AM (#6980062)
You've heard of IntelliJ, right?
Re:A glimpse into a new programming language under developme... by pjmlp on Sunday December 29, 2013 @06:36PM (#6982082)
Me yes, but the bash/vi/emacs guys not.
Re:A glimpse into a new programming language under developme... by admnor on Wednesday January 01, 2014 @12:46PM (#6995648)
There is Hadoop, Microsoft have been pursuing it aggressively recently.

SciPy type stuff is best handled using F#, which also works on Mono, and has some features that I haven't seen in any other languages (e.g. Type Providers).

There are multiple .NET web frameworks, including Microsoft's own ASP.NET MVC and Web API, but also OSS efforts like FubuMVC, Nancy, ServiceStack, Simple.Web and more, most of which work as well on Mono as on MS .NET.

As you say, the Node story on Windows has improved lately, and most current languages work as well on Windows as on any other platform.

C# itself is probably second only to JavaScript in terms of cross-platform development: Xamarin for Mac and mobile; Mono for Linux (yes, it's incomplete, but Linux people should be used to that); Unity for game development across consoles, mobile devices, web and traditional PCs. By "cross-platform" I don't necessarily mean write-once-run-everywhere, which results in lowest common denominator dreck anyway, but the ability to reuse your skills and some code in many different environments and domains.

Re:A glimpse into a new programming language under developme... by Kiro on Saturday December 28, 2013 @08:38AM (#6974955)
> (yeah, I know about Mono)

Mono solves everything you complain about and that's the only mention it gets?

Re:A glimpse into a new programming language under developme... by nkohari on Saturday December 28, 2013 @10:36AM (#6975184)
I don't know about desktop or mobile, but my experience with Mono for web applications has been pretty awful in comparison to Microsoft's implementation. I have a tremendous amount of respect for the Mono team, but it's just not a good enough replacement.

It's actually caused me to stop writing C#, because I can't stand managing Windows systems, but there isn't really a good alternative.

Re:A glimpse into a new programming language under developme... by _random_ on Saturday December 28, 2013 @09:01AM (#6974991)
It's like saying "Java only works on old Nokia phones (yeah I know about all other ports of JVM)".
Re:A glimpse into a new programming language under developme... by sophacles on Saturday December 28, 2013 @12:10PM (#6975410)
Not really. We've tried running several C# programs on mono, and as of a few months ago, the effort to port them so they will work on mono was pretty intense, and the performance was lacking.

C# (especially when developed in VS) is a nice language and environment, but cross-platform is not one of it's strengths.

Re:A glimpse into a new programming language under developme... by _random_ on Saturday December 28, 2013 @02:08PM (#6975877)
I am sure I would have similar issues with Java on *nix because of my lack of experience with both. Cross-platform is definitely a major C# strength at least in the mobile space given the power of Xamarin tool chain. Android and iOS do matter and they are not Windows.
Re:A glimpse into a new programming language under developme... by Locke1689 on Saturday December 28, 2013 @01:25PM (#6975666)
Ah, but you forgot to note that this language is being developed in the context of a research operating system, so there's no guarantee it even runs on Windows ;)
Re:A glimpse into a new programming language under developme... by JTenerife on Monday December 30, 2013 @12:35AM (#6983208)
> C# only works on Windows

That's not true.

> yeah, I know about Mono

And you know it :-). I agree if you want to express that C# on Linux is a niche. But there're big projects using it in production. Have a look at the Mono project page. Also, have a look at Xamarin.

> can't do mobile, can't do big data, probably won't work very well for scientific computing

There's no language that does all these things well. Java is for Android and big data suited, but not for scientific computing. Fortran, C and C++ are great at scientific computing, but certainly not for mobile (except Qt on niche plattforms). Objective C is not appropriate for big data and scientific computing. Rust and Go aren't the can-do-it-all languages / ecosystems either.

C# and the .NET ecosystem are actually second to Java in terms of reach and versality. Taking Xamarin into account C# has the top spot for mobile.

> equally I worry that it'll be used as a way to generate patents to prevent the ideas being used elsewhere

FUD

Re:A glimpse into a new programming language under developme... by rplnt on Saturday December 28, 2013 @06:23AM (#6974733)
> yeah, I know about Mono

What's wrong with Mono? I worked with C# only briefly and I really liked it (as opposed to Java.. but maybe I just had better tools). If I'd need something a bit faster than python, C# would probably be my choice. That's assuming it's portable to other platforms...

Re:A glimpse into a new programming language under developme... by taude on Saturday December 28, 2013 @07:05AM (#6974812)
I've tried working with Mono on my Mac. Meh. You loose a big part of the eco-system of third-party libraries because almost every program I've written uses a ton of third-party libraries. When ever you google soething on C#, you'll likely be getting windows specific results.

Once you go down the pain of getting Mono to run on Linux...you may as well have just written your program in Java (or something else).

While I loved working with C#, once we moved down the path of moving off Windows platform, it's just easier to learn a new language and change your tooling.

Re:A glimpse into a new programming language under developme... by makomk on Saturday December 28, 2013 @07:58AM (#6974897)
Also, Mono's own ecosystem of additional libraries works better on Windows than on Linux. A while ago, I used a project that used an SQLite binding from the Mono project. They decided to discontinue development of this library in favour of a newer alternative, and it was then totally broken by subsequent Mono updates - but it continued to work fine on Windows with .Net. So any projects that still use this library are basically impossible to get working on Linux/Mac because Mono has awful backwards compatibility with the Mono Project's own libraries compared with .Net.
Re:A glimpse into a new programming language under developme... by knocte on Saturday December 28, 2013 @10:49AM (#6975209)
Quite funny that you try to generalize a statement from what appears to be just one single example (note: mono developer here and this is the first news I have about a fuckup like this).
Re:A glimpse into a new programming language under developme... by finnw on Saturday December 28, 2013 @07:46PM (#6977459)
It comes with the territory, I'm afraid. Some users will try something once, find a bug or limitation, decide the platform sucks and never touch it again (and if the platform is worthless, why bother filing a bug report.) I've been guilty of it myself quite a few times. First impressions count for a lot, and they can be difficult to control.
Re:A glimpse into a new programming language under developme... by octotoad on Saturday December 28, 2013 @07:34AM (#6974862)
"the pain of getting Mono to run on Linux"

What's painful about 'apt-get install mono-runtime mono-mcs'? (or your distro's equivalent)

Its main target platform is/was Linux.

Re:A glimpse into a new programming language under developme... by taude on Saturday December 28, 2013 @08:07AM (#6974910)
Getting my app to run was the hard part, not the Mono libraries itself. Even on OS X, it was pretty straightforward to get the libraries on there.

But once you started needed ASP.NET MVC, specific database drivers and setup, it become non trivial quickly, especially since stuff isn't as well documented as most other mainstream open source techs...

Edit: Also, to try and help our transition to running on Linux easier, we even integrated ServiceStack for a lot of the database drivers into the app. (Note: ServiceStack is one seriously great library if you are working in .NET-land)

Edit: Adding, that if I'm going to go through all this trouble to have a sub-set, and not-up-to-date version of the .NET framework and it's ecosystem to run as open source, I'd rather just use Java, and it's full ecosystem and be done with it.

Also, using MonoDevelop on my Mac was very uninspiring.

Re:A glimpse into a new programming language under developme... by Zverik on Saturday December 28, 2013 @07:51AM (#6974886)
You forgot mono-winforms. And most users do forget it and then complain to a developer that the software does not work.
Re:A glimpse into a new programming language under developme... by AnthonyAkentiev on Saturday December 28, 2013 @09:40AM (#6975070)
I am big C++ fan, but i understand that the C++ language is going into nowhere. It's like "all in one" solution that is too big, too hard to learn and use nowadays. I've been using C++ for more than 10 years, still many things are shocking me ))

I am sure C# is the "Next Main Desktop App Dev. Language". I really wish MS would OPEN-SOURCE it one day. You can read article in my blog about that here (really short): http://anthonyakentiev.github.io/blog/2013/12/08/what-if-see...

I wish C# will be used freely everywhere - on Apple, on Android, on Linux... Really - Mono/Xamarin does not have a full .NET/CLR/C#/frameworks support.

Re:A glimpse into a new programming language under developme... by asveikau on Saturday December 28, 2013 @01:58PM (#6975821)
I disagree that C++ is going nowhere. The last few years has had more interesting stuff than most of the language's history.

First C++11 which added lots of interesting stuff. (Lambdas, move constructors, threads as part of the language spec, better smart pointers, and more.) Most of this was added in a very clever "C++ way" - for example lambdas that can be inlined as functors and can take advantage of copy constructors and RAII kind of blows my mind. Major compilers picked it up pretty quickly. Already people are talking about C++14.

I will agree that its history makes it a sort of Byzantine language (I really prefer the simplicity of C for a lot of things), but there is a lot to be optimisitic about for C++ in the last few years. With the latest standards and best practices the language it ought to have been for a long time is finally getting out.

Re:A glimpse into a new programming language under developme... by OGC on Saturday December 28, 2013 @06:31AM (#6974750)
Work with Mono and report back..
Re:A glimpse into a new programming language under developme... by ksk on Saturday December 28, 2013 @07:47AM (#6974880)
>So the best you can hope for, basically, is a better C#. But not good enough to take on Java.

From the linked material - What are you basing this statement on?

Re:A glimpse into a new programming language under developme... by _random_ on Saturday December 28, 2013 @09:04AM (#6974996)
C# itself is better than Java, so the new language must be 2x better than Java
Re:A glimpse into a new programming language under developme... by finnw on Saturday December 28, 2013 @07:48PM (#6977473)
The language is better, but the backend and ecosystem are not.
Re:A glimpse into a new programming language under developme... by lukasm on Saturday December 28, 2013 @02:41PM (#6976073)
I think MS has finally realised that they no longer have monopol. Have a look at F# totally open source and work well on Linux. TypeScript is distributed with npm.
Re:A glimpse into a new programming language under developme... by mpg33 on Saturday December 28, 2013 @10:16AM (#6975137)
I don't see why Microsoft would create something that would work on other systems....they want people to use Windows.
Re:A glimpse into a new programming language under developme... by yareally on Monday December 30, 2013 @04:54AM (#6983896)
Of course they want people to use their OS (just like Apple wants people to use theirs), but that does not mean they always lock the language into the OS. They created TypeScript, licensed it under Apache 2.0 and made the installer for it an npm package in Node[1].

[1] npm install -g typescript and it's installed and ready to go wherever you are using Node.js

Re:A glimpse into a new programming language under developme... by acqq on Saturday December 28, 2013 @01:32PM (#6975693)
And they even let their the conflicts of interests influence the development of their programming languages. C# is the best example. There are more reasons why C# has poorer performance and less libraries outside of Windows but most can be tracked to the interest in Microsoft to have something tightly enough controlled and bound to Windows.
Re:A glimpse into a new programming language under developme... by grandeb on Saturday December 28, 2013 @11:26AM (#6975293)
I miss the HN of old where there were hardcore technical discussions about the merits and demerits of the technical approaches in such posts. Here we have almost none of those and instead there is lot of horse beating about aspects that are not even announced yet, taking sides in big tech politics etc, especially in upvoted comments, a trend which I previously noticed slowly dominated and then killed Slashdot. I guess I must be getting too old for HN and the marked shift in the audience.
Re:A glimpse into a new programming language under developme... by asveikau on Saturday December 28, 2013 @02:11PM (#6975900)
I haven't been on here long enough to remember an HN of old, but I totally agree that on a lot of topics the depth is lacking here. Witness that TFA is all about how GC makes C# kind of suck, and that is the big thing they are trying to fix. Any commenters showing signs of grokking this? Nope, they are mostly talking about C# being awesome.

I think a lot of folks here have a hard time thinking about a world without GC or that GC might ever be a bad thing.

Re:A glimpse into a new programming language under developme... by moomin on Saturday December 28, 2013 @02:33PM (#6976033)
For the record, top rated comment here, and I do a fair bit of C++ as well as C# and am fully aware of how awesome have proper control over allocations would be. My frustration is that once they've finished, I don't believe it would be any more use than C# in practice. (There's a nice language struggling to get out of C++14.)

However, Rust exists and is unlikely to be as encumbered as what Microsoft produces.

Re:A glimpse into a new programming language under developme... by asveikau on Saturday December 28, 2013 @04:35PM (#6976724)
Perhaps you are right that I am painting HN with too broad a brush. I do see some good points made scatteringly in this discussion, such as yours.

On Rust, and also this project (I believe the following point is mentioned elsewhere in this thread as well): There's one thing I don't get about the whole thing. People who want a low-level language with lots of control have C and C++. People who want a high-level language with GC etc. have lots of options today as well. So, why Rust, and why this MS project? C and C++ have faults but the people who care about them are well aware; if nothing else they are a known quantity. People who don't care about any of this will just pick the higher-level stuff.

I guess I'll have to try one of these languages out to form a better opinion.

Re:A glimpse into a new programming language under developme... by dbaupp on Saturday December 28, 2013 @07:29PM (#6977410)
I can only speak for Rust, but Rust does actually give you the flexibility and unsafety of C, but this is an escape hatch; you can write most of your program with the memory and data race safety that Rust provides, only dropping down to the super-low-level C-like code when absolutely necessary.

I.e. you can rely on the compiler to verify most of your code, only the explicit `unsafe` blocks (which are normally very rare, especially with some considered abstractions that keep all the unsafety in one place) absolutely need auditing for things like buffer overflow and use-after-free (unlike C/C++ where any code in the whole codebase can have these problems).

Re:A glimpse into a new programming language under developme... by pjmlp on Sunday December 29, 2013 @04:54AM (#6979049)
Because before C became widespread, there were languages that allowed the same type of systems programming while allowing safer coding, like Modula-2.

C's widespread made systems open to buffer and pointer misuse exploits, patched by external tooling and multiple attempts at OS levels. All of them still far away from the desired outcome.

Re:A glimpse into a new programming language under developme... by sergiotapia on Saturday December 28, 2013 @11:43AM (#6975335)
For what it's worth if I'm getting voted up in my comments, I take it as a sign that HN is declining.