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


Forgot your password?

Comment made fun of? (Score 3, Insightful) 371 371

People didn't make fun of him, they got him fired. I am in favor of shaming people for incorrect behavior that is still legal behavior. But I don't think we should limit ourselves to socially unacceptable views on women and ethical or sexual minorities. We need to shame politicians and business people that give the appearance of impropriety in their dealings too. And we should be proportional in our response. If someone makes a bad joke, and then softens it when they realize it was a bad joke, we shouldn't get them fired, we should humiliate them for "acting like an ass in public" and watch them more closely to see if they are acting like an ass consistently towards people they work with. The latter is grounds for firing someone, but not a different sense of humor. Even if he was a misogynist, racist, homophobe, it wouldn't really matter as long as he treated all his coworkers with respect and based all decisions on merit. People are allowed to be stupid, and we are allowed (and encouraged) to laugh at them, but not fire them.

Comment which part (Score 1) 345 345

C++ is a decent language to choose for many types of projects, and which pieces of the language depends on which type of project that is.

Embedded applications: There are several sets of best practice for embedded or hard real time c++, no exceptions (unbounded latency), no dynamic memory allocation (fragmentation), no dynamic casting (unbounded latency), no recursion and on and on. There actually seems to be a bit of consensus on this best practice, but it varies with the constraint of your particular system and if it needs some safety committee's approval.

Systems programming (OS or driver): I have never read any best practice documents for this, but the code I have read all looks like C with classes. few or no templates show up I've noticed.

Large scale performance critical stuff (games among other things): Widely varying best practice statements and all sorts of different coding, I have no idea.

Scientific (matlab but faster): who cares, you just want the answer, not the software, right? Don't read this stuff, it hurts. but it usually works.

I always look forward to /. c++ posts. I know I'm being clickbaited by Nerval's but its sooo fun!

Comment Physics too (Score 1) 444 444

This article has some more details on the specific error modes. The examples given in physics involve processing collider result data. When the researchers knew what they were looking for they found it reproducibly. When they didn't have any preconceived notions it was discovered that it was a false positive. Some of these biomed and psych studies were the basis of policy and went un reproduced for years. This is a real problem, we should look for solutions.

Comment Re: better reasons (Score 1) 386 386

They know they need to work on the compile times and if you consider the time it would take the static analysis tool then it is understandable. The dependency detection part of the compile time issue is with cargo. I haven't gotten another make system to work yet but it might solve that problem too. They intentionally decided to hide the compiler flags in cargo so I intentionally decided not to use it. There are people using both autotools and cmake.

The other stuff is just minor as you said.

Comment better reasons (Score 3, Informative) 386 386

Given the support for the functional paradigm that rust has, I am dissapointed that parallelizing folds and maps is so verbose and thought requiring. Not sure why a fold can't just use all the cores like in haskell.

Sting slices vs strings. Verbose again but it works.

No tail call optimization, makes some FP stuff impossible.

No metaprogramming.

Regex library is slow. But I don't use regex and it is on the long list to improve.

Compile times. It rebuilds everything in a library or exe even if you only changed one line. Also it is just slow. Even hello world takes surprisingly long. This is really annoying because I have a habit of recompiling quite regularly as I code.

Cargo, the package manager and build system is inflexible in that it does not let you pass command line parameters to rustc. This means that if you want to cross compile or use simd or any of the other cool stuff you get by building on the llvm back end, you have to roll your own build system with make or cmake or whatnot.

That said, I am still excited about it.

Comment And India (Score 4, Insightful) 703 703

The four most populous countries use the death penalty and in total over 50% of the world population lives in nations where state aurhorized executions occur. Capital punishment is not unusual even among the worlds economic leaders. There are many good arguments against capital punishment but this isn't one. Instead cite 4% of those executed being innocent or the higher cost relative to incarceration.

Comment risk aversion (Score 4, Insightful) 112 112

I disagree. The inventors of the trebuchet had no idea about the Higgs, the inventors of the windmill didn't understand Bernoulli's work, and the first people to take Valerian root had no concept of biochemistry. We can use observed patterns to serve our needs without understanding the reasons for those patterns. Yes a lot of people died eating random plants, but there are a lot of us, and we learn quickly. My favorite part about engineering is using techniques to solve problems that no one understands yet. Its like magic. The best is when a true subject matter expert tells me "that shouldn't work!" and yet it does. Science always catches up and we are the better for it, but that is no reason to proceed with caution when we have so many people, and so much to learn. I would qualify this by saying test subjects should be informed and consenting.

Comment redundancy (Score 1) 158 158

As someone above pointed out, load balancing and redundancy are valid reasons to send packets with source IPs not in the originating AS. That mostly doesn't apply to residential subnets where the zombies are, but one reason does. I sometimes use LTE tethering and my home internet connection simultaneously because the LTE is as fast or faster than my home connection during non peak hours. I don't know if it is doing load balancing between the two uplinks, but why shouldn't it?

Comment loud party (Score 1) 248 248

If your alarm is a very loud sound system playing an obnoxious song, the police might get called for free, no monitoring. Add another track over the song of people talking and perhaps vomiting noisily, and you are set. They won't show up as quickly as if an alarm had been tripped though, unless your neighbors are important.

Comment go (Score 5, Insightful) 237 237

I have heard circumstances like this multiple times. It really bothers me that we have invented a tax code that is on par with the game "go" as far as its ability to be computerized. There are extremely talented individuals making a living interpreting our tax code. Those same people could be doing something far more useful to society than they are now, but we have created an entire industry that sucks them away from more useful endeavors by cobbling together a tax code that is a mashup of bribes to interest groups, bribes to voters, authoritarian interference with our individual lives, and a glass ceiling protecting the one percent. If any highschool graduate can't just sit down with a calculator and pay the *exact* amount owed, we have done something wrong.

My mother is a fish. - William Faulkner