109 points · by ot · 12y ago · 112 comments
Fortunately, we have the Benchmarks Game and that shows Mono performing well [on synthetic benchmarks...] when compared to a variety of languages.
vs Java: http://benchmarksgame.alioth.debian.org/u64q/benchmark.php?t...
vs Go: http://benchmarksgame.alioth.debian.org/u64q/benchmark.php?t...
vs Python: http://benchmarksgame.alioth.debian.org/u64q/benchmark.php?t...
If anyone is interested in lending a hand, we'd appreciate it since we'd like for the Mono tests remain in Round 9. Thanks!
[1] https://github.com/TechEmpower/FrameworkBenchmarks/issues/78...
- Python 2.5+
- Python Win32 Extensions (for win32 process monitoring)
- GNU Make for Windows
- GNU DiffUtils for Windows
Download bencher.zip from:
https://alioth.debian.org/frs/?group_id=100815&release_id=18...
Then some other helpful person can pastebin the actual results.
Having said that, I've had no performance issues running 3.2 on Linux in general.
I seem to remember that changed; and for a couple of years the benchmarks game did provide measurements for C# F# (.Net and Mono) and Java on MS Vista.
Edit: Seems like many do not know about Nancy, check it out, some even say it's better than MVC. The good side is that it's 100% compatible with Mono because they run tests against it too so you can host your C# websites on Linux.
Github: https://github.com/NancyFx/Nancy
https://github.com/NancyFx/Nancy
EDIT: It seems to be a .NET clone of node.js
(Thus the name. Frank Sinatra's daughter is named Nancy Sinatra)
http://curtis.schlak.com/2014/02/04/setup-asp-net-mvc-4-on-m...
NoWin, Nancy, SignalR & Lego on the raspberry pi:
I'd say there are plenty of alternatives to OWIN (and the .Net stack) for *nix. That's probably why there's not much interest around Mono, too.
SO close...
(as nifty as mvc can possibly be anyway)
public SampleModule() { Get["/"] = _ => "Hello World!"; }
[0] https://github.com/NancyFx/Nancy/wiki/Taking-a-look-at-the-D...
To perhaps clarify a bit, here's what the Hello World example would look like if we added a second route that uses the lambda parameter, and a third route that does something else, and a fourth route that renders a view template.
public SampleModule() {
Get["/"] = _ => "Hello World!";
Get["/hello/{name}"] = p => ("Hello, " + p.name + "!");
Get["/something-complicated"] = _ => {
// complicated stuff happens here
return "OK... we're all done";
};
// A variety of template engines are supported
Get["/my-resume"] = _ => View["resume.cshtml"];
} Get["/"] = _ => "Hello World!";
is actually of the form a = b;Where "a", i.e. "Get["/"]" is an array-like property (http://msdn.microsoft.com/en-us/library/2549tw02.aspx ) and the "b" value assigned to it is an anonymous function with one parameter, i.e.
_ => "Hello World!"
In Nancy these handlers are of the type Func<dynamic, dynamic> ( http://msdn.microsoft.com/en-us/library/bb549151(v=vs.110).a... ) The parameter could be given any legal name, but an underscore is a convention meaning "I am not using this param". public SampleModule()
{
Get["/{id:int}"] = _ =>
{
int id = _.id;
return "Parameter ID is: " + id.ToString();
};
}My dev platform is Ubuntu so I downloaded MonoDevelop and load the GtkSharp example (or maybe it was just the skeleton project template). Hit compile, bunch of errors showed up. Apparently I don't have the GTK libraries. Googled a bit, it looks like I had to download gtk-dev, compile, and do a bunch of things before I can run a "Hello, World" GTK sharp app.
I wade through the net and the tutorials and documentations are either for older versions or just weren't there (for example, integrating with NuGet).
It's a bit sad because I'm sure there are tons of engineering effort went into Mono but it just doesn't feel polished enough.
It's open source but lately I felt that it's more of a teaser for Xamarin than anything else.
Just curious, I've never installed Mono, but my first thought would have been to look for a PPA. Are there none out there? Let someone else figure out the dependencies and configs for you.
Eclupse and Idea need Java to be installed for example. And I'd guess VS needs .NET to be installed.
I suggest trying to compile it all yourself instead of going for packages on Debian-derived systems.
Well, that's how it works on Linux. What else did you expect? That they'd bundle all the Gtk stuff statically?
Maybe the problem is GtkSharp that relies on native GTK, I don't know...
But in Java, I see that they somehow can get SWING to work (and render as GTK..?) without me downloading 3rd-party dependencies.
The nix world never suffered from lack of decent languages, compilers, development tools, ecosystems and runtimes. The only benefit Mono gives nix users is to write software that's easy to run on Windows and that barely registers on most priority lists. It's been, IIRC, 6 years since I last wrote a "real" desktop app. I did it in C#, but Mono couldn't run it because it relied on Windows-only GUI components. Happily, it was never intended to be deployed on non-Windows environments and everyone was happy.
If I needed to write a desktop application (that's so 90's) that runs identically on both Windows and Linux, I'll just write it in Java.
Well, it sort of did. Gnome, for one, could have used a much better language to facilitate faster development and modularity.
The GObject stuff is archaic, and I was there for the Bonobo fiasco too.
the programs were coming out quickly and looking great then FUD.
A real shame, as Mono is great technology with good GTK bindings and integrated well with the GNOME system. I think having Mono as a first-class GNOME environment would have been interesting.
I've spent the past week using Monodevelop and F# to develop compiler tools under Fedora and have thoroughly enjoyed it. Not to mention F# is well supported within IDE, almost equal to VS.
Read between the lines man.
git clone git://github.com/mono/mono.git
cd mono
./autogen.sh
make
sudo make install git clone git://github.com/mono/mono.git mono.git
cd mono.git
./autogen.sh --prefix=${HOME}/opt
make get-monolite-latest # Need mono to compile mono
make EXTERNAL_MCS="${PWD}/mcs/class/lib/monolite/gmcs.exe"
make install
export PKG_CONFIG_PATH=${HOME}/opt
I can now successfully compile and run a command-line hello world, but
a simple gtk-test (and winforms test) fail when attempting to run the
examples. This probably has someting to do with linking and assemblies,
but experimenting with PKG_CONFIG_PATH, GAC_PATH and MONO_PATH makes no
apparent difference... cat <<eof > hello.cs
using System;
public class HelloWorld {
static public void Main () { Console.WriteLine ("Hello Mono World!"); } }
eof
mcs hello.cs
mono hello.exe
> Hello Mono World!
cat<<eof > hello-gtk.cs
using Gtk; using System;
class HelloWorld {
static void Main () {
Application.Init();
Window w = new Window("Hello Mono World!");
w.Show();
Application.Run(); }}
eof
mcs hello-gtk.cs -pkg:gtk-sharp-2.0
mono hello-gtk.exe
> Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or
assembly 'gtk-sharp, (...)If Unity go another major version still using Mono 2.6, they seriously risk losing ground among developers making CPU/memory-intensive games. Or even those concerned about optimizing for mobile platforms.
Mono JIT compiler version 4.0.0 (master/c198a39 Pk feb 21 22:02:35 EET 2014)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: x86
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgenHow is Mono's JIT performance compared to Microsoft's? Are they nearing parity?
http://www.codeproject.com/Articles/212856/Head-to-head-benc...
mvc + mono website on linux success story - i haven't seen one.
On the bright side, I've heard good things coming out of ServiceStack. Apparently it shines in the backend web service department and works well with Mono. It's based on ASP.NET and since the requirements for my little project are fairly minimal, I think it's a bit overkill there. But it's still worth checking out for more demanding projects, IMHO.