Catch up on stories from the past week (and beyond) at the Slashdot story archive


Forgot your password?

Submission + - .NET 4.6 optimizer bug causes methods to get wrong parameters

tobiasly writes: A serious bug in the just-released .NET 4.6 runtime causes the JIT compiler to generate incorrectly-optimized code which results in methods getting called with different parameters than what were passed in. Nick Craver of Stack Exchange has an excellent write-up of the technical details and temporary workarounds; Microsoft has acknowledged the problem and submitted an as-yet unreleased patch.

This problem is compounded by Microsoft's policy of replacing the existing .NET runtime, as opposed to the side-by-side runtimes which were possible until .NET 2.0. This means that even if your project targets .NET 4.5, it will get the 4.6 runtime if it was installed on that machine. Since it's not possible to install the just-released Visual Studio 2015 without .NET 4.6, this means developers must make the difficult choice between using the latest tools or risking crippling bugs such as this one.

Comment Re:It's not so easy (Score 2) 217 217 those who you can't trust

You do raise some really good points (although I'm pretty sure I can think of at least a few friends who could go along w/ it), but the trust issue could be greatly mitigated by a video recording of the illicit agreement. If your friend tries to make off with all of it, you have evidence of their complicity.

It is rather baffling that this person didn't execute his plan any better. He should have had his friend buying lottery tickets every day for months beforehand.

Comment Re:Why? (Score 1) 355 355

Java is designed to be cross platform. In this case instead of targeting an operating system, you are targeting another virtual environment. While not perfect, it works much more often out of the box than WINE does.

.NET also targets a virtual environment, called the Common Language Runtime. It's the same concept as the JVM. There is absolutely no WINE involved with running Mono apps on other platforms; they run on a native implementation of the CLR on that platform.

Microsoft themselves only implemented the CLR on one platform, but that doesn't mean it wasn't also designed to be corss-platform. It even has means of querying the platform (usually via System.Environment) rather than assuming Windows-isms.

Comment Re:Justice Department? (Score 1) 223 223

WTF do they have to do with this case? This isn't a criminal proceeding, it's a civil matter.

I've absolutely given up on trying to figure out how our government works. Apparently SCOTUS specifically asked them for their opinion. And here I thought our founders wanted separation of powers, and in particular that the Supreme friggin' Court was intended to be insulated from the ebb and flow of political interests in the other two branches.

I could understand if the Justice Dept decided to file an amicus brief just like everyone else, but I can't understand why SCOTUS specifically sought their opinion.

Comment Re:obvious much? (Score 1) 414 414

No, really? The cost of maintaining is in maintenance? Well, now that's some earth shattering surprise.

I thought the same thing when I first read that, but then again we're talking about an architect for the language that brought us "Foo foo = new Foo();" so a bit of redundancy is to be expected ;)

Comment Re:KDBus - another systemd brick on the wall (Score 2) 232 232

Can you do it faster than on windows, where I plug a usb printer in and it spins for minutes searching windows update for a driver?

The best part is when you then plug the device into a different USB port and it goes through the whole minutes-long process again.

Comment Re:whatever (Score 1) 126 126

The actual content of the reviews doesn't matter much. Whether intentionally or not, people filter out products with less than 4 stars, and Amazon ranks more popular items higher. It's a virtuous circle for the sellers that have higher-ranked reviews. Getting those initial good reviews can make all the difference between two similar or nearly identical products.

Comment Re:Like Coca Cola, git is the real thing (Score 1) 203 203

As a software developer who's been a git user for 7 years, I don't know how I could have written any serious code without git.

Very much this. Git has a steep initial learning curve. The concept of a branch being just a pointer is foreign at first. New users try to fit the concept of a branch into their pre-existing notion that it's the sum of everything that has changed since the last merge.

But once you really understand how Git works, you're ruined for every other version control system. When I'm forced to use TFS for a project, I use Git locally and Git-TFS to keep them in sync. Now I commit often, all day long, tracking all my changes and (relatively) easy rolling them back or reordering them if necessary.

Comment Re:Do they even make one? (Score 1) 452 452

It seems that I can either have a comfortable ergonomic keyboard or one that actually works well, not both. Are there even enough people interested in a keyboard like this to have a chance of it ever being made?

When Jeff Atwood couldn't find exactly the keyboard he wanted, he had the CODE Keyboard designed & marketed. So you just need to start a massively successful community website, cash out, and build one.

I'm actually using a CODE keyboard.. a few minor complaints; I wish it had dedicated media keys but for all in all it's been great (not ergonomic though).

The last person that quit or was fired will be held responsible for everything that goes wrong -- until the next person quits or is fired.