HN user

orp

318 karma
Posts14
Comments44
View on HN

Hi,

Quick comment on item 2.3: SHOULD NOT update a var using loops or conditions.

you conclude that this expression is the best option: val sum = elements.map(_.value).sum

This expression is not equivalent to the previous options in performance and memory, as the map expression will create a entire new sequence.

For large sequences, a better option is to write: val sum = elements.view.map(_.value).sum

According to site you're citing, the nomination was actually an attempt at satire by a Swedish MP:

"Apparently though, Brandt never intended the nomination to be taken seriously. Brandt was to all intents and purposes a dedicated antifascist, and had intended this nomination more as a satiric criticism of the current political debate in Sweden."

No need for complex explanations when a simple one is given.

Meta comment - as somebody who recently introduced Scala into an organization as our preferred language for new development (co-existing with a Java code base), I'm really happy to see all the demand for Scala engineers here.

'actually have them interacting positively with people in the United States'

Most (all?) Iranian players would probably be playing on European servers.

This is in part due to the hour differential, and partly because WoW clients sold in Europe automatically (only?) connect to EU servers.

In far too many hours of playing WoW, I've never encountered a player from the US.

Oh, I realize that. I even agree with their reasoning.

I just don't like the fact that their algorithm is so bad that I came up as a false positive. Algorithms is the one place you don't expect Google to fail.

I mean, come on, the have thousands of my emails, my geolocation, my facebook profile is public, and they can't figure out Or is my real name?

I've been using Windows for many, many years now. Never encountered anything like it.

In addition, I don't think it's a random bug. Having a standard error file that programs are supposed to write to, without any sort of automatic control by the user or (better) the OS is not 'being ready for prime time'

I am unfortunately forced to disagree.

I recently moved my home machine from Windows to Linux. After a little research, I picked Ubuntu 11.10 (with Unity).

The installation went by pretty smoothly, everything seemed to work out of the box. The only manual configuration I had to do was to teach my Linux box to ping my Windows laptop. So far so good.

Then, 2 weeks later, my disk went out of space.

Turns out Ubuntu has a hidden log file that logs errors, with no sanity checks on size, and it hit 300+ GB.

In addition, flash still isn't smooth in full screen.

Easy to install and use? Reasonably so. Ready for prime time? I think not.

I've used BDB a lot over the last 10 years, embedded inside a C++ server, and I have to say I've been disappointed in its multi-threaded scalability.

Running a single threaded access pattern can easily get you 20K plus reads/sec, but if you try to run more threads the throughput per thread just goes down, up to a point where more threads actually slow you down.

Make sure to run extensive benchmarks if you consider using it in a multi-threaded application.

I've never tried running BDB in a multi-process architecture, so I have no idea how it'd behave when used that way.

Agree 100%.

In fact, I think self-driving cars together with decent electric engines (which already exist) can revolutionize urban landscape.

Just imagine how quiet and pollution free our cities will be if the only traffic allowed inside are electric cars, who automatically go to charge themselves when necessary.

I just watched the entire video, and it's really interesting.

I especially recommend the part about how reflection is implemented in Scala 2.10. It explains the Cake pattern and how Scala self types enable dependency injection.

Good stuff

Well, if you think percentage wise, I guess for a given book I'm reading 50-90% of the text. That's far more than a summary.

Emotionally, it's certainly enough to get attached to characters, which is the point. But the way my brain likes to read (it's not a conscious decision, just the way I do it), is to skip a lot of the description, and get to the interesting bits (dialog, action scenes, etc).

I certainly miss out some subtleties, but if you and I read the same book we could have a meaningful discussion about it, probably without you realizing that I likely read it in half the time and only paid attention to about 80% of the content.

Interesting. I read about the same way, and I find that I'm using something very similar to your heuristic (looking for dialog signs, skip-reading long descriptions, etc.)

I call this 'reading for the plot'.

I also suffer from the same issue with remembering names. I wonder if the two phenomena are related.

Almost none.

When people think they're in the right - they sue (or defend).

Further, because of the 'loser pays' system, if the case is obviously bogus or blown up, often a lawyer will agree to take up a defense just for the right to claim the other side's expenses (e.g. instead of paying the lawyer, the lawyer takes a relatively small fee plus the right to any 'expense fees' leveled on the other side).

In addition, I believe that in most of Europe lawyers cost a lot less than they do in the US (certainly so in Israel), to which a contributing factor is that less litigation going on.

C++ has the same issues.

To add another example, binary only distributions (e.g. some commercial software) bring their dependencies with them, meaning that you have to use roughly the same environment (compiler version, stl) to use them.

Libraries work a lot better in VM languages.

A friend of mine got seriously hooked into WoW. She's still hooked.

However, she's made quite a few online friends that translated to real world friendships, and even met her husband in-game.

I guess that counts.

When I was a team leader, I was asked to rate my team members on a curve. Management stressed that this was important, and that we all had to conform.

I told my boss I had no intention of destroying my team, and handed out ratings and reviews as they were deserved.

Never heard this particular line from Management again.