Better HN
topnewbestaskshowjobs
Log inSign up

sofuture

1,089 karma · joined Mar 3, 2010 (16y ago) · 208 submissions

jeff@imsofuckingfuture.com
Submissions

comment 15y ago · link · parent

We went guns-blazing from .Net on physical Windows servers to Linux/Mono/EC2. Mono performance is okay -- we still run a lot of C# utility stuff on Linux with it, no problem (build on windows, push to s3, servers self-deploy).

Forget about web stuff though. Mono fastcgi is not production ready (lots of little things, the interplay of nginx and Mono's fastcgi server 'lost' some routes, particularly scriptmethods).

Mod_mono is better... until you start getting OutOfMemoryExceptions. My understanding of the problem is that the Boehm GC is non-compacting, and thus, unless you (somehow) craft your application memory use patterns perfectly, will run out of memory if you churn through enough allocations.

From the mono ASP.NET FAQ:

Why does the memory consumed by the Mono process keep growing?

Mono currently uses a conservative, non-moving, non-compacting garbage collector. This means that the heap is not compacted when memory is released. This means that applications can produce memory allocation patterns that will effectively make the process grow, just like C, C++, Perl, Python applications would.

It is hence important to not get into patterns that would create these holes, for example such a hole could be created if you create a block of size SIZE, release it, and then create two blocks of size SIZE/2+1.

ASP.NET in Mono is particularly vulnerable to this kind of memory problems because it is easy for developers to define APIs that transfer large blobs of data like entire image files, these would allocate a lot of memory that can easily be fragmented.

A simple solution is to try to write your software in a way that large data blocks are not allocated, but instead your application handles them in blocks (like writing a "copy" command).

So the new GC, S-Gen is available, but for us at least, ~6 months ago it was really buggy. Some of our code would inexplicably cause mono crashes in the allocator. We couldn't run our apps with it, at all.

So ultimately we were left with restarting our webserver process every 30 minutes or so, or we could switch back to Windows web servers. Mono was decently performant, but going back to Windows we had a slight but noticable performance increase.

Don't get me wrong, Mono is awesome for a lot of things, and it kicks fuckin' ass to run my C# on Linux. But the ASP.NET side of things is just not mature enough. It's possible I'm just a bad programmer and if I'd taken the time to re-architect our allocation patterns to play nice with Boehm this story would have a happier ending, but alas :)

P.S. None of this stuff is fresh in my mind right now, so shoot me an email you have more questions or run into any specific situations or whatnot.

comment 15y ago · link · parent

Wow, doing some initial evaluation of moving (some) of my .Net shop to some Sinatra. Why didn't I know about Padrino?

comment 15y ago · link · parent

Linq != Linq To Sql

comment 15y ago · link · parent

For the record, there are a lot of big .NET projects on Github already:

https://github.com/mono https://github.com/nhibernate https://github.com/ravendb

Good to see more momentum in that direction, though of course!

comment 15y ago · link · parent

I've been a staunch .Net defender for a long time, but have almost entirely thrown in the towel at this point. MVC is awesome, C# is awesome, F# is awesome...

but, unfortunately Mono just doesn't cut it (Boehm GC? Really? s-gen is a nightmare too, before you counter with that) and Windows isn't a realistic option for a lot of people.

comment 15y ago · link · parent

Chances are that on any rush hour train there are at least one or two people busking, selling candy or begging. It's a near daily sight for me.

comment 15y ago · link · parent

I'm sorry, but what the everloving fuck?

I see these guys every day on the subway. They have absolutely no impact on my life whatsoever, except the one time I chose to buy a bag of M+M's. I'm not sure how you ended up talking about robbing houses and kidnapping people.

comment 15y ago · link · parent

I use node for new cutting edge things which Django and Python can handle, but not as easily as node.

Like what?

comment 15y ago · link · parent

They did.

comment 15y ago · link · parent

I like irccloud.com quite a lot. A bit different of a product, but still very nice.

comment 15y ago · link · parent

>"Bad" typography isn't a big deal IMO. Yes, it's slightly embarrassing and ugly, in this Unicode-enabled era, that we use <= for "less than or equal to" and != for "not equal to", when Unicode has given us better glyphs. But honestly, I don't see how that costs us much time to get used to.

There's a reason we're not all using APL.

(Okay so there's a couple. But yeah.)

comment 15y ago · link · parent

A lot of really awesome people... with ultimately incompatible value systems.

comment 15y ago · link · parent

I think Ubuntu should zag where Apple zags. I think they're doing it right. They're in a unique position to take an Apple-like path.

I, for one, applaud what they're doing, as much as it terrifies all the half-power-users (I don't mean that as a slight, I do think it's a little silly to get upset about Ubuntu's default WM and claim to 'understand UNIX').

44.

Welcome to Copenhagen Suborbitals(wired.com ↗)

1 points · by sofuture · 15y ago · discuss

comment 15y ago · link · parent

If you don't like the default window manager, use a different one! Arguably that's the point of running Linux.

Ubuntu is so much more than it's default window manager.

comment 15y ago · link · parent

What an abhorrent view. It's a psychopathic justification to shrug off the horrible lives of other people directly impacted by my lifestyle because 'hey, they already had a worse life'.

I'm happy to admit I'm as much a part of the problem as anyone else. I'd like to not forget or justify that away at the very least.

comment 15y ago · link · parent

This is abhorrently unimportant drama. TC has been a trash rag from the start, and their flaming dramatic burnout is just as trash as everything else they've ever published. Go away already. This is publicity coup 101 shit. DIAF.

comment 15y ago · link · parent

pub + sub

comment 15y ago · link · parent

I switched and never looked back :) I did have to (re)map my search keyword 'g' to DDG in all my browsers though!

comment 15y ago · link · parent

Ah-ha, but you can automate so much app management through the admin API. Oh wait, they deprecated and froze the only API that handled that!

comment 15y ago · link · parent

a.{~(/:a+c=:_29 14 _60 12 8 0 _2 5 3 2 11 6 14 _1 8 13){+/\a=:(#.1,5$0),1,(#.1,6$0),0,(2$2),(#:20),~(3*1 1r3,|.i.3)

comment 15y ago · link · parent

Two wrongs don't make a right.

comment 15y ago · link · parent

I mean I wouldn't make technical decisions dogmatically.

comment 15y ago · link · parent

I would choose to write it in however many languages fit the various pieces best. To choose otherwise would be ill-advised.

comment 15y ago · link · parent

The problem with Erlang, is it doesn’t let you do that. Erlang is religious about concurrency. Erlang allows any concurrency model as long as it’s actors. Unlike Java/C++/Scala it doesn’t provide concurrency constructs that allow you to create other concurrency models. It works at a higher level of abstraction.

That's not even close to true. Getting different building blocks from a language/runtime is not the same as not getting any building blocks.

Erlang absolutely thrashes the JVM with it's concurrency features, and easily extends across cores and machines like not much else.

comment 15y ago · link · parent

I don't think that's an easter egg, I think it's just pretty good zero-click info :)

comment 15y ago · link · parent

Windows 7 widgets were also written in HTML and JS. This is the dumbest controversy ever.

comment 15y ago · link · parent

Sure sounds like all the complaints are with Gnome or KDE. Who are all you people not running tiling window managers?!
1234567