skysight-inc/HackerNews huggingface dataset:
I'm exactly the opposite. Whenever I see a project consisting of 50,000 lines of code, I am amazed that somebody had the stamina to bite down and actually write all that code.

I could never imagine myself writing 50,000 lines, I'm way too lazy for that. Fifty-thousand lines? You could write a universe in that, with a high-level language like Python (or in assembly, a smallish planet).

Semi-kidding aside, it's part laziness and part DRY-principle. I hate writing code twice, even if it's two chunks with similar functionality. If they are so similar (in an abstract way), there's probably a reason for that, and I try to capture that reason into my code by unraveling the similar parts from the specific parts. That usually makes it smaller.

Can you imagine what happens if those 50K lines (comments/white-space aside) all implement nearly unique functionality? Those 64k demos linked upthread are what happens. I'm going to guess those are 100K-250K lines C++ [1], maybe? But then, a prize-winning 64k probably does a little bit more than a basic partial Minecraft engine :-P

Since you're asking "how do their minds work?", maybe I can get a little bit obsessive over this optimizing (wouldn't call it OCD--that would trivialize the disorder), but I do really get a slight "mind itch" if I notice code with duplicate functionality.

[0] Sometimes it doesn't. But often there's other advantages, too. If that's not the case either (or I'm on a deadline), I grit my teeth and write the duplicate code, but I try to make it really obvious that it is duplicate. That way at least it'll compress well :P

[1] Not even the 4K demos use pure assembly any more, compiler tricks and exe packers have become amazing in the past decade since I stopped making them. Not counting the external procedural/generative design tools/Werkzeuge, btw.
I don't really care about the medium itself (though it does seem out of place), but the object of the « performance » sends me back to everything I rabidly hate about our society.
It makes me very grumpy.
This seems like a whole lot of effort for nothing. Why not just use the onerror callback of an image to check if it's loaded?
This. It didn't stop the USA and USSR from directly confronting each other, but the pledge of neutrality and a 'third bloc' formed by many significant countries from disparate parts of the world (particularly key were Yugoslavia, United-Arab-Republic/Egypt, Indonesia, India, etc.) undoubtedly had a big effect to ensure that the rest of the world wasn't about to be 'carved up' into spheres of influence or be drawn into proxy wars.
One main thing I found missing was the OS that the tests were run on. I am not even sure if Windows can be seen as intended OS for node.js. Was the comparison between .NET on Windows vs Node.js on Windows? That might not be fair on the node.js side.

PS: I am a .NET fan, so I want fair comparisons, if I were to use them :)
I was thinking this, too. There's one shot of a concrete apartment block that looks like it could be taken to any number of cities in the former sphere of soviet influence.
The truth about wealth distribution in the States
So .NET with its massive, stable, mature native sorting libs is faster at sorting than async.sortBy, which is about 25 lines of JS. Well, no surprises there.
There are two of these. I'm confused are these two different articles, or just dupes? Anyone there? Pls help.
i might have missed something but it looks like the .NET version sorts by the string values and the nodejs one sorts by calling parseFloat on the string values first. presumably this is going to slow down the nodejs version.
It wasn't wrong on many levels.

- For very obvious reasons, JS (or Python or Ruby) would be slower than Java, C# at number crunching.

- Node.js would handle concurrent connections better than most Asp.Net apps since the framework is non-blocking. Now you could write non-blocking code with .Net, but that isn't how most people write Asp.Net code. OTOH, with Node.js that's the only way you could write an app.

- I am impressed that Node.js actually performed this well in that benchmark. For a dynamic, hard-to-optimize language, being 2.5x slower than .Net (or Java) code is a fairly good result.
Taha mediouni
hgjghfjhg
From the personal point of view is fun, and you learn too.
From the professional point of view you meet potential employers, employees or partner, and you learn too.

Sometimes you go to tech talk that you would never watch at home because you "have other stuff to do", just because is between two other interesting talks... and it often happens that also that one is awesome and you are glad you didn't miss it at the end of the day.
Lean In, It is Tougher for Women
You're right, I did mix them up.
Root Samsung Galaxy S2 I9100 on Android 4.1.2 ZSLSJ Jelly Bean
Exactly. And since human time is much more expensive than CPU time, very few people are writing their web apps in machine code.
I enjoyed metal shop and even woodworking shop, but that didn't stopped me to go to college. In fact, I found those classes to be more important in life than other well established and respectable subjects, such as english and literature.

It isn't a either/or thing. And it shouldn't be.
Yes, but I think it is far worse in the case of built-ins; it is explicitly obvious that "add" is not part of the language, which is not the case with "+". Admittedly this is much more of a problem for new programmers than experts.

To be fair, I think a lot my prejudice against overriding operators is summed up by Bruce Eckel (who explains why it is arguably misguided in the case of Java):

"[Java designers] thought operator overloading was too hard for programmers to use properly. Which is basically true in C++, because C++ has both stack allocation and heap allocation and you must overload your operators to handle all situations and not cause memory leaks. Difficult indeed. Java, however, has a single storage allocation mechanism and a garbage collector, which makes operator overloading trivial -- as was shown in C# (but had already been shown in Python, which predated Java). But for many years, the partly line from the Java team was "Operator overloading is too complicated."

http://www.artima.com/weblogs/viewpost.jsp?thread=252441
I think there will be normal currency fluctuations that people will call a crash, at some point.
.NET native list sorting and Node.JS async.sortBy - Performance Comparison

Fixed that for ya.
Dupe. One with "www.", not the other.
> it shouldn't fit in 500 lines of code.

Talk to me about "shouldn't" when we start breaking the Shannon-limit or other hard information-theoretical limits :-P
Maybe you're a journalist or something. Obviously he can't give away the exact details dude.
I noticed that, too. The owner might be dead, though.
That's because its not a game is a proof of concept
YAY! .Net sorts bytes faster than Async.js sorts floats. In similar news, Go seems to split strings faster than .Net sorts bytes on my laptop. Fascinating stuff.
Another "hey look, node.js isn't good at everything" post. I figured these would have stopped by now.

Why are you using an async sort function when you're not doing anything asynchronous in the sort callback? That's going to entail some overhead obviously, and it also can't take advantage of the sort optimizations v8 implements. Are you trying to show the overhead the asynchronous sort entails? Any overhead it causes would be easily outweighed by whatever asynchronous IO it's doing in that sort function anyway. It is negligible in comparison: not even worth pointing out.

> The key point I want to make is that I am using the async NPM instead of the default blocking Array.Sort.

I don't think you realize how this works. That async sort function is there to help deal with sort callbacks that already have to do something asynchronous. You're doing something synchronous and using that async sort function for no reason. If you're going to run these benchmarks, use the synchronous sort which can take advantage of certain optimizations. Or, you can also just do something actually asynchronous, which would justify using an async sort in the first place.
I'm not saying that PHP docs couldn't be better or more complete. Some (not only but usually less commonly used) modules are barely documented at all.

It's bit strange strange that you gave undocumented function as an example of how PHP functions are documented. :-)

This difference between Python docs and PHP docs is just the thing I noticed when I started having fun with Python which is btw awesome language though finding which lib to use for given task sometimes is hard.

Good thing to do to find out what python function does is running help(module_name.function_name) in interpreter.
If you use full-disk encryption (cryptsetup/LUKS), you can simply shut down (if you feel your password is strong enough) or overwrite the LUKS header (which makes the data practically unrecoverable).
Not sure if Serif or Sans, though...
"Market Oriented" is part of capitalism but I don't think that qualifies this as capitalist, at least not under a definition that works within the capitalist-socialist paradigm.

European socialist politicians could get behind this as readily as capitalist ones. This is really a 'welfare state' solution. Welfare state being the capitalist-socialist compromise that most wealthy countries currently have. IE: (a) Grant citizens rights. (b) Do redistribution while trying to keep the free market as intact as possible. (c) Provide some services directly. (education, health) (d) Support the poorest segments directly.

I agree that a negative tax system would be cleaner (especially on paper) and probably have fewer side effects. But, it's not outside the paradigm of or current system. If you seriously proposed you wouldn't find that socialists object and capitalists support it. You'll find that capitalists and socialists will object or support it based on how progressive it is. IE how much redistribution it does. If it increases redistribution, the right in most countries would object.

Actually, any such radical change would piss off a huge matrix of embedded interests so all politicians would either object or try to manipulate it to suit their (friends') agendas... but that's a function of politics rather than ideology.
Are you insinuating that there is deception being used here? or an inaccuracy? If the blog post was by a node contribute, would you cry foul for that as well? how about giving some counter points against the substance of the blog instead of just attacking the author's credibility based on where he is employed. I am guessing that since you cannot disagree with what was actually said and done by the author, you are grasping at the default fallacy of attacking his character and honesty.
Bank regulation is not the responsibility of the ECB. Each EU country is responsible for regulating its own banks. This is one of the criticisms of the EU system: the currency is continent-wide, but there's no centralized bank regulator.
So you are saying that nodejs is slower in general, and .NET is slower when people don't know how to program in .NET.

To add on top of that, mvc 4 has extremely easy ways to set up async controllers/tasks. However, these are not needed or even WANTED most of the times. They are only really needed in I/O operations, a sector in which .NET excels anyway since you can get ORM magic happening easily.

Also, don't think non-blocking is really non-blocking. What can nodejs when it's waiting for the SQL lock to be lifted? (If there is any)
Please, read the article, not just look at the pictures.

And RailsBerry is one of main sponsors of RailsGirlsKrakow, happening in Krakow just 2 days before it. And Applicake (the organizer of RailsBerry) is one of main sponsors of WebMuses -> https://www.facebook.com/media/set/?set=a.483519771671476.10....
>it is dreading when I noticed that the most present animals are crows

Not necessarily a dread thing... perhaps they're karasutengu; crow spirits who live like mountain hermits and sometimes provide guidance to people. It was also the divine crow Yatagarasu who was sent from heaven to guide Emperor Jimmu to Yamato.
Doesn't matter at all where it started, Cyprus and it's people benefited a lot from the financial bubble (and from EU,) until it collapsed. No country has it better now, taxes are going up and spending is being cut down even in richer countries. Everyone was living in a bubble

We forget how bank operate: they ask you to trust them with your cash and in return they promise to safeguard your capital and even give you interest a year. Well, what if their investments lose most of the money and the government cannot bail them out? They go kaput!
Don't conflate Ruby with Rails. Ruby _is_ slow:

http://benchmarksgame.alioth.debian.org/u32/benchmark.php?te...

http://benchmarksgame.alioth.debian.org/u32/benchmark.php?te...

and so is Python:

http://benchmarksgame.alioth.debian.org/u32/benchmark.php?te...

The only time Ruby or Python are fast is when the program is not running Ruby or Python but running some C code underneath. If your programs only consist of that, you can very well say "this ‘Ruby/Python’ code is fast". But as soon as you have something that isn't in your standard library, welcome to the actual language, and welcome to performance problems.

Elaborating on the implications of this: whenever you actually _use_ the language to do some abstraction, you pay heavily for it: http://bos.github.com/reaktor-dev-day-2012/reaktor-talk-slid...
Why is my TI-99/4A in Black and White?
Well, this got depressing quickly.
I have no idea - seems an appalling idea to me.
A common cause of slowness in .net web app is multiple database round trips during a single request, all happening in sequence. You can write async database calls in .net but they're not the standard / path of least resistance, and by the time you app is hitting these issues, refactoring it all is a big undertaking.

The results do not surprise me, but what I find more interesting is how different ecosystems and frameworks can encourage your average developer to write scalable or non-scaleable apps. And I still think node's model has a lot going for in this regard.
Can you go into more details? This has always worried me about hosting in general - for sites that can't justify multiple servers, or the complexity of setting up MySQL replication, what's the best approach for HA? There's a lot of businesses that fall into this 'important and profitable but not that profitable' range...
lol DDoS by Hackers News is a common curse for small websites. But "Error establishing a database connection" for only 16 points on Hackers News is a shame for Adobe.
> Services (incl. tourism) are great

Until they fail, cause a world-wide recession and main street has to bail out wall street.

> Is the EU unwilling to save their banks?

Ideally, it indeed would be unwilling to save bloated up banks unrelated to the local financial needs.

> fine, let them bail themselves (which is what they are doing). Why the fuck do they have to order a whole nation what to do?

They tried to get money elsewhere, but even Russia didn’t feel like helping out. Now they want European money and I would assume it only to be fair to require that in order to get that money, they have to ensure they won’t need it again in the near future, i.e. scale down their bloated banks which apparently threaten the actual economy on the island.

> What's next? ask luxembourg to start herding cows?

Basically, yes[0]. Though nobody minds banking as long as you don’t request other people’s money to continue banking and last time I checked, Luxembourg didn’t need a bailout.

[0] It might be pointing out that you can run a nice economy not relying on banking even when not herding cows.
Create Mail.app messages from the command line and Ruby
Saw the title and thought it was an early April fools. Got ready to comment how knowing adobe even an app showing just a blank screen would be full of tons of security vulnerabilities and need biweekly updates.
I hope no one contributes a Haskell solution to this farce.
It's a benchmark of .Net's Array.Sort to NPM's third-party async.sortBy, not a benchmark of .Net to Node, and the test does not make sense: async.sortBy is used to sort an array on an asynchronous function, it does not perform an asynchronous sort (which is what the asynchronized Array.Sort does)
I am very sorry for the medical situation. This is very bad and insurance is indeed an issue.
But: I found myself married to a wife who was a full-time student who couldn't work (due to brain dead immigration law), a $900 a month apartment, a car, an almost full-time job and a full-time class load doing my undergrad.

In my opinion each of these factors are your very own choice. There is not a single accidental factor involved in in this and you had the choice to change each of these factors. I just don't think that society owns you the ability to study full time while at the same time financing a dependable adult (incl tuition?), a $900/m apartment and a car.
But fortunately things turned out great for you. Congrats to your successes!
Worth of Active Users - How Much Is Your User Worth?
Please don't encourage them. Even if Haskell comes out on top, I would still be unsatisfied because the rest of the benchmarks are unfair. Lies by confusion are still lies.
>ZERO INTEREST!

>I've already explained that it's CURRENT ACCOUNT (transactional account).

>Not bank paid to me, but I was paying annual fee to the bank in order to maintain this account and debit card.

>Current accounts are usually not affected even if bank goes bankrupt. Upon liquidation, current account holders are paid first, as money on this type of account cannot be gambled by bank. It's most liquid assets, like cash.
I would wager the guess that the world economy in 2013 is slightly incomparable to that in 1812.
seriously, you expect a nation of < 1mil people to have a diversified economy? Have an example?
New ZeroMQ book from O'Reilly by P. Hintjens
Comparing 'Subject A with one thing that is good at' with 'Subject B with one thing that is bad at'.

Interesting!
> huge display of how ineffective it is to run europe without a central trustable government.

Thank our friends in Westminster who first bullied their way in and then have been blocking further European integration for the last 40 years.
Yes when the author writes in the closing paragraph like this:

And that is when you realize that you have such a powerful, flexible framework like .NET under you fingertips with amazing performance like we’ve shown today.
India is simply importing stuff from abroad. Strong economy in last couple of decade has supported such purchase. Unlike USA and most of developed nations, Indian military has never supported Indian Economy, Which is a pity.
Sure - This would be of great help to people in other countries, because they are not filled with lazy free-loaders like the western world. Westerners will blow the money and hold out their hand for more all they will promise in return is a vote to whoever promises to keep that free money coming...
"You are forgetting where and why the financial crisis started."

I don't think it is accurate to say that the 2008 financial crisis had a single cause. If you think it was the boom in sub-prime mortgage lending in the US and the resulting popularity of CDOs and CDSs how did that cause the Irish problem (insane property speculation), Iceland (asset speculation in other countries used borrowed cash), Greece (fiscal irresponsility) etc.
This idea combined with the learnings from the Art of War are a great way to get things done. The key to the Art of War is that it teaches you to recognize "Resistance" which often manifests itself in the form of procrastination, but not just any procrastination, procrastination that makes you think you are actually making progress.
UK banks aren't regulated by the EU, so the banks essentially act as if they were divorced from their counterparts in Cyprus.

The same thing happened to Cyprus banks with branches in Russia.

I'd be more than a bit pissed if I was from Cyprus, though if I was a wealthy Brit or Russian, I'd be very pleased about this...
Five Reasons Startups Are Afraid of Marketing
Actually both browsers look out of place on my Linux box, because they deviate from the desktop theme. I'd rather they looked native. It's really window manager territory. I'm sick of the inconsistencies with tab control etc, accross applications.

At the end of the day, both UIs are primitive. I'm of the believe that the browser can be so much move than a web page viewer.
And it's important to note that the comparison does not make sense: TFAA seems to believe "async.sortBy" performs an asynchronous sort (e.g. delegates the sorting to a threadpool) and that's how he implemented his own "SortAsync": to perform a regular Array.Sort in its own task.

But that's not what async.sortBy does according to its documentation, async.sortBy is used to sort using an async comparator/key function e.g. to sort file names using a stat(2) call, the .Net version would have to sort using an asynchronous IComparator of some sort.

edit: plus, for some reason the benchmark explicitly parses the input strings to floats in javascript (and sorts using that), but seems to sort the raw bytes in the .net version. The C# version further performs the string split in the sparked task, where it's performed in request in JS (not that it'd help since — as I mentioned — the sort itself is incorrect)

second edit: to be fair, I like neither technology and am not a specialist in either, I have a pretty basic basic grasp of both and thus may have made mistakes in my cursory reading, if I have and somebody knows better don't hesitate correcting me.

But as you may see from the paragraphs above, as far as I understand the code this comparison is complete nonsense (even ignoring the rather dubious higher level case of reading a single big file in memory at once, sorting it and extracting a bit of stat, which is unlikely to be IO-bound)
While demoscene stuff is seriously impressive most are using a shit load of DirectX to do what they do in such a small size. They are not bare metal demos.
Visit it later for iPhone: Mark interesting places for visiting them later (S12)
So the two things I don't see are a comparison with BTRFS in terms of speed, and stability. I know ZFS is cool, but while we were waiting for it BTRFS got pretty darn good. I know ZFS has some additional features that BRTFS doesn't have, but If I have to use a unstable or slow filesystem to get those features when I could use by perfectly stable and fast filesystem while I wait for a few nice features I am going to say ZFS has missed its oppertuinity
Until Mono becomes 100% supportable, none of the advantages of .NET outweigh the misery of having to use Windows for development and serving.
Festo is just fascinating. I feel like a child every time they produce a new video like this.
What I mean is that, I do not deny corruption prevalent in India, but, what I do question is his 'sources'. This is an opinion, not a question. I found it doubtful, thus I said. I felt it was worth mentioning, because my family is related to the armed forces as well, so anyone wrongfully hiding behind a fake persona putting a bad light on armed forces is also hurting me.
I'm pretty sure you can find cheaper. Last year I lived right across from the 91st St Y in a similar sized 1BR for $1600/mo. Check out streateasy.
Worse, it's a complete misuse and misunderstanding of async.sortBy: TFA implements a "SortAsync" by performing a Sort call in its own task, byt async.sortBy uses a task (an async callback) as its key function, so it calls and waits on a callback for each item in the original array where SortAsync TFA's SortAsync just blasts a single native Sort when the task runs.
>I've certainly seen weird things like a keylogger inside a 3G Huawei USB device sold I bought in Europe

Don't tease us like that! Spill the beans!
Web Experience Toolkit (WET) - reusable accessible HTML snippets