Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×

Comment Re:Still... (Score 1) 193

I think he was just pinging me for the ideas, which do predate my efforts and is certainly fair -- I started my whole "object" approach to c in 1985.

Of course, the whole point was to avoid using compiler tech that generated code I didn't intend it to generate, and in that sense, I got what I was after.

I wish I could still write my code in assembler, though. I was never more at home than when churning out 6809 or 68000 code.

Comment laser levelling (Score 4, Informative) 133

The fields I drive by on my way to work put the lie to the author's premise. A week ago, I saw a road-scrapper type device running around a field that had a spinning laser positioned more or less in the center of the field. The laser provided a level reference that the scrapper responded to moment by moment by lifting or lowering the blade. The machines are designed to build a field with a precise gradient so the farmer can minimize the amount of water needed to irrigate the field as well as to uniformly irrigate the crop. The water may be free but lifting it from the aquifer isn't.

Further down the road, there was a device that was building perfect raised beds covered in plastic. Strawberries need to be grown in well drained soil and the raised beds provide that. The plastic is used to keep a fumigant on the bed until it decays instead of leaking into the atmosphere prior to seeding. Once the soil is fumigated, it's planted by an automated planter that leaves the plastic in place to reduce evaporation - again to save water.

The next field over was being harvested by a machine that requires two people to operate it. Ten years ago, there'd be a crew of 30 doing the same task.

The industrial revolution upended farming from what it was centuries ago and that process hasn't stopped since. The net result is fewer people are needed to grow more food at a lower cost. Downside is calories have become so cheap that most of us are overfed.

Comment Re:Still... (Score 4, Interesting) 193

Have you ever written C code which uses a switch statement based on what type a struct/union is and calling the relevant code for it?

No. When I use structures as objects (which is often), they almost always contain a pointer to a block of general methods appropriate to that structure, as well as containing any methods unique to the object, all of which are called through the object/structure, so it would be unusual, at least, to be testing the object type in order to choose an object-specific procedure to call. However, I do mark each object type with a specific ID and serial as they are created, along with a tag indicating what procedure created them, as these things facilitate some very useful memory management and diagnostic mechanisms.

Have you ever used qsort?

I am aware of qsort. But I have my own multi-method sort library that I use. Most of them locate the comparison mechanisms they are to use through the procedures specified by the objects they are asked to sort. Likewise list management, memory management, certain types of drawing primitives and image processing primitives, image handling mechanisms, associative storage, basically anything I have run into that I thought likely I would need more than once. I am positively locked into the idea that if I write it, I can fix it, and the number of bugs and problems that fall into the "maybe they'll fix the library someday" class are greatly reduced. I'm a little less picky if I have the source code to a capability I didn't actually write and can supply my own version if and as needed. A good example of something like that is SQLite. Actually having the source code and compiling it in reduces my inherent paranoia to a somewhat duller roar.

Comment Been there, had that done to us (Score 3, Insightful) 748

People owning and running businesses should be allowed to choose whith whom they associate and do business and then the ones which discriminate against otherwise good, paying customers can rightfully go under instead of being propped up by the policies of the state.

That's precisely the kind of thinking that led to child labor in factories and mines; it is also why we have to subsidize low paying jobs through our taxes so people can survive at a (somewhat) more reasonable level. It is what led to "whites only" and "separate bathrooms"; It is why the male/female employment ratios are so skewed; it is why older engineers are replaced by younger ones who know far less and don't have families to support; it is why the EPA, or something like it, really needs to exist. And so on.

Business, large and small, incorporated or not, as entities, resemble people only to the degree that most of them, left unregulated, exhibit sociopathy and/or psychopathy. History has shown this explicitly, time and time again. No one is guessing about this: the facts have been in for a long time, and new facts consistent with the old continue to arrive with distressing regularity.

The idea that business, left to its own discretions, will do the right thing is nothing more than a fantasy. Unregulated business is a very bad idea, and further, the premise that bad businesses will automatically fail because customers will do the right thing is equally bankrupt, and for many of the same reasons. Large numbers of people are both selfish and disinterested in the welfare of others.

Comment No wonder you're anonymous (Score 2) 748

Yes but that doesn't make the intestines a sexual organ.

Any body part with nerve endings and/or usable contact surfaces can be brought into play in sexual relations under the right circumstances. This has nothing do do with the gender of the party or parties involved. The fact that you don't know these things speaks very poorly about your competence and experience in the sexual arena.

Comment Still... (Score 3, Interesting) 193

...using c. Although I do like to comment thusly, and so prefer a compiler that understands at least basic c++:

// comment

I like to stay as close to the metal as I can get. I'd use assembler, but many of my projects are cross platform, so c it is.

Slashdot Top Deals

One way to make your old car run better is to look up the price of a new model.

Working...