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

 



Forgot your password?
typodupeerror
Get HideMyAss! VPN, PC Mag's Top 10 VPNs of 2016 for 55% off for a Limited Time ×

Comment Re:As a C programmer (Score 1) 292

You are still confusing the OS Feature with the language and not considering the language type.
Python/Haskell/Ruby/Javascript are interpreted languages. There is a OS Particular and compiled program that reads the code and performs actions based on parsing out the text. .NET/Java Compiles into byte code than a particular program executes the bytecode as it is more efficient than trying to parse the real text.
C/C++/FORTRAN.... Are Compiled. There is a program (like GCC) that will interpret the text and convert it into Machine code

These libraries are often compiled in C just because it is a popular language for compiled code. However it doesn't have to be. There are other IPC processes in the OS that we can choose to communicate with other programs so you C code can talk to a Python Program or include your favorite java library as well. As well most of the languages will allow you to go the other way as well.

However it is rather poor form to mix languages (I am of the computer science discipline), I even shy away from including standard linux libraries in a python app, because it makes your code base much more difficult to maintain having to deal with multiple compilers and complex builds and difficult to trace problems, as well harder to distribute.

But to clarify my original point about reusability it was more about the programming discipline of trying to keep your functions and methods more generic and flexible so you don't have a lot of similar functions with minor tweaks. And this isn't a rib against the language it is just the Computer Engineering programming methodology will put value in generic code but not at the expense of performance. While the Computer Science methodology will be more willing to tradeoff performance for less rewriting code in the future. These are tradeoffs that we have to choose to make, they are not necessarily better or worse but people who follow a particular discipline have formed their habits and will default to what they know. Sure with my Computer Science Discipline will have to break the rule and make a particular function for only one job because it needs to run fast because I see it is a bottleneck. And yes the Computer Engineers will make generic functions as they know it will be needed over and over again other wise they will be spending too much time coding the same stuff.

Comment Re: As a C programmer (Score 1) 292

You should be less ignorant and recognize that while you where still learning to lay stones the Indian where inventing positional notation, and they also have some of the brightest mathematicians of all times, including geniuses of the scale of Gauss or Newton. Second, you should see companies like Facebook that built empires out of sloppy code in things like PHP. More importantly, if the task requires memory management, anybody can learn it and like anything else, 90% won't do it well. No news.

Comment Re: As a C programmer (Score 1) 292

Same applies to written English. In the past many people didn't need to write at all. Today, due to SMS and social media, written communication has skyrocketed. However, and in spite of "the horror" it's useful to them.

Same with programming. Many people can change their lives a bit by even learning basic programming. The good programmers will observe this as a surprise, but the reality is that it is expected ANDNKT A BAD THING. Especially if those with bad writing skills are rejected from journalistic positions and those with basic programming skill are not hired to do complex stuff only the best (or the proficient) can do.

Comment Re:As a C programmer (Score 2) 292

If you stick to a C-only subset of C++ you can write your library in C++, but at that point why bother with C++ anyway?

Or you could write your library in C++ but put it behind a C interface. Then you can use all of the expressive power of C++ internally, and provide an API that can be called from any language. And it will still be very close to as portable as if it were written in plain C, because we now have decent C++ compilers on very nearly every platform.

Comment Re:As a C programmer (Score 2) 292

You are confusing the language and the OS feature. That libzip.so will need to be recompiled for every OS once compiled it isn't c code it is a compiled library. I could make a library in any other compiled language say FORTRAN.

If distribution your c code and the new system doesn't have the library then you get into dependacy hell.

Now C is considered portable because you can compile it on a different system. But that Python program I make I can run on Linux or Windows without any changes. Just as long as the interpreter is installed.

Comment Re: This is an Android Problem (Score 1) 161

I wish that there were more phones running plain Android with fast updates.

This article is exactly what we need to make that happen, though ideally we need it to be on CNN, not just Ars. But Ars is a good step. When consumers demand good update policies, manufacturers will provide them. It's a competitive market.

Actually, I think we're further down that road than it may appear. Stagefright was a big kick in the butt for the Android ecosystem. Not because it actually affected any real users, but because it got a *lot* of press. I think many OEMs have realized they need to fix their update problems, because consumers are beginning to care. The problem is that the OEMs product plans for the last few years have not included plans for monthly updates. Planning for that sort of update cycle requires them to change a lot of things in the way they do business. One is closely related to what you mentioned about carrier-specific builds: The OEMs just have too danged many products. It's not uncommon that what appears to the end user as a single model (e.g. Samsung Note 4) is actually one or two *dozen* different devices... each with its own software build. Not because they actually need that many SKUs and not because all of them actually need different software, it's just been easier to do it that way. Now that the pressure to provide updates is being turned up, I think they're looking at how to streamline their product lines and processes to make it more feasible to deliver them. Oh, and they also have to build the cost of the update-related work into their business plans.

However, building phones is a complex process, and device design and planning cycles often run more than two years, so it takes time for changes in approach to reach the market. I think it'll start getting a lot better in the next 1-2 years.

That's why I'm just sticking with Nexus phones.

Me too. Of course, in my case it helps that I get them for free :-)

Comment Re:Missing a big point (Score 1) 585

Of course you didn't talk at all about "handling the current situation" you talked about "self driving" which isn't actually related at all.

I actually don't agree with that, though that's Tesla's position. I don't think semi-autonomous driving is realistic. Once the car can drive itself sufficiently well that people feel safe looking away to text or whatever, they will. Any system that expects that a human will continue paying attention and be ready to take over at a moment's notice is asking for trouble.

Comment Re:Yes, he says to choose the narrow gate (Score 1) 10

Seems like it at my parish. Of course, with the way the folk group bounces between Latin, Spanish, Tagalog, English, and all the others in Malo, Malo; you'd never miss Whoopi.

We've had some seriously tense discussions at my parish over a couple of Archbishop Sample's recent radio shows on the subject of Sacred Music in the Liturgy- especially seeing how often Dan Schutte features in the 8:30 Mass (yes, complete with the hymn he ripped off from My Little Pony).

Slashdot Top Deals

Multics is security spelled sideways.

Working...