Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror

Comment: Re:Rust (Score 1) 641

by Thiez (#48558881) Attached to: How Relevant is C in 2014?

The Rust language is intended to reach version 1.0 soon (either before the end of the year or early 2015), which comes with the promise of being backwards compatible. However the Rust standard library is still undergoing stabilization and parts of it may still change for a while. Right now a lot of work is being done in that area, to stabilize the most important bits.

Mozilla is also working on Servo, a research-project to develop a browser engine in Rust. The goal is to experiment with more parallelization in the browser, and Rust is supposed to help by making it easier to write correct multithreaded code. To do this Rust has a strong focus on ownership of data.

Rust can run without a runtime and the standard library is split up into several parts (which is not invisible to users of the standard library) that can be used separately when you choose to compile without the standard library. The advantage is that when you target, say, a platform that does not support dynamic memory allocation, you can still use the parts of the standard library that do not require allocation (liballoc). Or you can go without libc bindings. So it is relatively easy to run Rust on bare metal. You could write an operating system in Rust if you wanted to (and I think some people are trying to do just that, but I haven't heard from them for a while).

Comment: Re:Low Level System Software (Score 1) 641

by Thiez (#48554653) Attached to: How Relevant is C in 2014?

C is great for low level stuff since it is capable of generating machine code that has zero dependencies. K&R even explicitly mentions "non hosted mode" with no libc and implementation defined entrypoint semantics. In fact, it is the only language in mainstream use today that has this feature (aside from assembly.)

I very much doubt that is true. For instance, I think Rust can also make that claim.

Privacy

The Correct Response To Photo Hack Victim-Blamers 622

Posted by samzenpus
from the who's-to-blame dept.
Bennett Haselton writes As commenters continue to blame Jennifer Lawrence and other celebrities for allowing their nude photos to be stolen, there is only one rebuttal to the victim-blaming which actually makes sense: that for the celebrities taking their nude selfies, the probable benefits of their actions outweighed the probable negatives. Most of the other rebuttals being offered, are logically incoherent, and, as such, are not likely to change the minds of the victim-blamers. Read below to see what Bennett has to say.

Comment: Re:Weeding Out (Score 1) 270

by Thiez (#47929577) Attached to: College Students: Want To Earn More? Take a COBOL Class

Your statement is shit. "Some guy I knew a long time ago once used threads for some unspecified purpose and when he got to thousands of threads it become very slow". Well that is just great. What was he trying to do? How was he trying to do it? You act like your anecdote proves something but without this information it contributes nothing to what could have been an interesting discussion.

Since the discussion was originally about COBOL, are you suggesting that language is more suited to massive multithreading than Java? If so, why? And if you truly need thousands of threads, perhaps you need Erlang?

Comment: Re:The only good thing (Score 4, Insightful) 511

by Thiez (#47550185) Attached to: Suddenly Visible: Illicit Drugs As Part of Silicon Valley Culture

Someone who deliberately cuts off their own legs with a chainsaw don't get sympathy. So why should addicts?

I imagine someone who would do that on purpose must be suffering from some serious mental problem, or must have been blackmailed or under some kind of duress. Certainly they do deserve sympathy and help.

Comment: Re:Old news (Score 1) 199

by Thiez (#47287655) Attached to: Overeager Compilers Can Open Security Holes In Your Code

What "undefined" means here for most compilers is that it will make the best attempt it can under the C rules but the results may vary on different machines. Ie, it will use the underlying machine code for adding two registers, which may wrap around or possibly saturate instead, and the machine may not even be using tw's complement.

No, that would be implementation defined behavior.

Comment: Re:Let gay men donate (Score 1) 172

by Thiez (#47218753) Attached to: Human Blood Substitute Could Help Meet Donor Blood Shortfall
While one might argue that forbidding them from donating is unfair, or has a basis in incorrect assumptions, let us not pretend that allowing gay men to donate blood would make a significant difference if a shortage exists. What percentage of the population is a homosexual male? Perhaps 3%?

Science and religion are in full accord but science and faith are in complete discord.

Working...