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


Forgot your password?

Slashdot videos: Now with more Slashdot!

  • View

  • Discuss

  • Share

We've improved Slashdot's video section; now you can view our video interviews, product close-ups and site visits with all the usual Slashdot options to comment, share, etc. No more walled garden! It's a work in progress -- we hope you'll check it out (Learn more about the recent updates).


Comment: Re:One good reason... (Score 1) 793

by mzs (#40521425) Attached to: What's To Love About C?

I do realtime embedded. I made a kernel that had C++ support and it would crash on boot. The watchdog timer would fire before all the C++ support initialization routines would finish. I had to disable the watch dog timer temporarily. I think it was the exception and io streams initialization code that was the culprit. The whole exceptions thing can be bloated depending on implementation to varying degrees. But in the end what is more bloat (checking return values all the time or exception frames handling all the time) I do not know.

Comment: Re:Speed versus complexity (Score 1) 406

by mzs (#40338751) Attached to: Intel Dismisses 'x86 Tax', Sees No Future For ARM

True, but that's not the case with ARM though since thumb mode. Most instructions are then two bytes. ARM also has some neato features in it's instruction set, like you can shift for free almost every time you do anything else with a register like arithmetic. Also condition codes only change when you want them too. And almost every instruction can be conditional. This makes it so that the little cache there tends to be is utilized pretty well and you don't really need the branch prediction logic as much. I think unlike the other RISC chips, in the case of ARM, IA32 keeps up only since they are made in more modern efficient process to a greater extent.

Comment: Re:Perl's strength (Score 1) 192

by mzs (#40080343) Attached to: Perl 5.16.0 Released

I agree and unless there's something in CPAN pretty much already solving my problem (which happens a lot actually), I almost always choose python so I'm being honest unlike that person that somehow thinks the python makes more sense. I think that with perl, it depends how much shell scripting someone did first. Somehow a person needs to have experience with some syntax that's not like C/java/pascal and has reached the limits of shell scripts plus tools like sed and awk first before perl clicks or they can see the value in it.

Comment: Re:Tell me one thing this brings to the table (Score 1) 138

by mzs (#40007951) Attached to: SciRuby: Science and Matrix Libraries For Ruby

Sorry if I caused any offense. I don't know them, I'm sure they are great. I was just replying in regards to the list of reasons, which I thought was weak in my opinion. Sometimes I get cynical and snarky, again I apologize. I should have stopped at before all that you quoted, it was a reasonable response the words I wrote before that. Basically that not much has kept-up with visualization, especially in a browser. I worked (wow now more than fifteen years ago) on that as my first job after graduation, it sort of depresses me the state of scientific visualization to this day, hence why I got so grumpy in my reply. Cheers

Comment: Re:Tell me one thing this brings to the table (Score 0) 138

by mzs (#39947033) Attached to: SciRuby: Science and Matrix Libraries For Ruby

Wow that's pretty bad, the only reason in that list that makes any sense is the rails one. But there have been lots of visualization packages for science for decades. It's just that it's a brand new group of people, not familiar with what is there, only familiar with what they know already or what there is buzz about, and they want to use that. These are ruby coders after all.

Comment: Re:Smartphones, Cars, Premium Cable, pest control (Score 1) 530

by mzs (#39946487) Attached to: Why You Don't Want a $99 Xbox 360

I've bought a new car and one for my wife, I took the cash back once and once the 0% precisely for the sort of calculation you did. There was a big trade in one case that made the financed amount small and the relative percentage of the rebate big enough (and I still had a big enough cushion of savings afterward). It's just not as simple as you initially made out as it's free money - take the 0%.

Comment: Re:I always thought (Score 1) 138

by mzs (#39946405) Attached to: SciRuby: Science and Matrix Libraries For Ruby

That principle allows you to have line noise that parses in other languages, make is harder to do that in python, so I don't know really if it should be followed to such dogmatic ends. There still is a lot of freedom in presentation in python after all. The cstyle and later astyle commands are a taste thing, some C coders liked it, others didn't. I always like to use whitespace to help me and others understand code and have it in a consistent style from the get go, not have a script or program munge it for me. I can have my editor auto indent python code too though, I use that a lot like when moving a block of code into a function, its moves over to the left on paste. Also about the new coders and pasting from examples on the web, having your editor change tabs to spaces always including (especially?) on paste seems to do the trick pretty well for those that do not want to deal with that headache.

"It ain't so much the things we don't know that get us in trouble. It's the things we know that ain't so." -- Artemus Ward aka Charles Farrar Brown