Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×

Comment Re: PEP 394: /usr/bin/python should not be python (Score 4, Insightful) 94

What's the size of an int again ?

sizeof(int);

The base types in C are implementation/platform defined. That is considered a feature as it allows decisions to be made that make the most sense for the platform. In general this means the int type is going to be the fastest type.

In modern C practices though there are the u_intXX_t types that allow you to select a specific size integer, should you need that.

The real flaw with C is the whole preprocessor mess. If you were going to attack C about something, that is what you aim at.

Comment Re:Are you implying... (Score 4, Informative) 27

"professional" brewers do know exactly what's in their beer?

There are several varieties of beer, (lambics come to mind in particular). that use "wild caught" yeast. This is instead of being inoculated with a standard yeast strain. It's pretty difficult to tell exactly what yeast and other microbes you've caught, so each batch often ends up different. Often the microbes in addition to yeast can add sour or fruity type flavors, but really, the brewer typically does not know exactly which microbes are in the brew.

Comment Re:But why? (Score 1) 304

Do you have an HDMI TV? Have you noticed that it takes many 10's of seconds to turn on?

There was a brief period in history where TVs came on instantly, post-tube era, but pre-HDTV. So like..mid 1980s to late 90s-early 00s?

Now we have TVs that take longer to come on than the old tube sets took to warm up. So much for digital making everything better :(

Comment Re:Surprisingly Distant (Score 4, Insightful) 375

Distant. but a realistic date. First, it sends a signal to the auto industry that they better start planning for a petrol/diesel phase out. Second, it gives time to build the infrastructure to support whatever new fueling method ends up winning out.

Now one thing to point out, they're not talking about eliminating ICEs. You very well could have an ICE running on methane, propane or alcohol for example and those would be allowed. So a interim mandate of hybrids or some particular technology is shortsighted too.

I do admit though, this is a lot more hope than action.

Comment Re:Great guy (Score 4, Informative) 181

So instead we got the 640k barrier, config.sys, interrupt conflicts, extended/expanded memory, 8.3 filenames, segmented memory...

640K barrier is IBMs fault for putting the BIOS at the top of the first 1MB instead of the bottom. Interrupt conflicts, I think you can blame this on IBM too. 8.3 filenames came from CP/M.

EMS/XMS and memory segmentation are FAR more the fault of Intel given these are CPU architecture related.

So...that leaves config.sys(which isn't that terrible really).

 

Comment Re:Oil changes (Score 1) 129

Exactly this. I've got a 2008 VW Jetta with 230,000 miles on it. The oil been changed at pretty much exactly 5000 miles as specified in the service manual.. I've pretty much have stuck with Mobil 1. Could I get a lot longer out of that oil, sure. One thing I don't think people think about is, how well does the oil filter hold up to high mileage.

Since I'm doing the work myself, I'm usually looking at a $35-40 oil change. Just need to take the occasional trip to the waste transfer station to discard the old oil and filters. As a side note, those plastic bin that cat litter come in are great for storing your used oil.)

It certainly doesn't hurt the car to change the oil frequently, your wallet maybe a bit.

Comment C coders are brain damaged (Score 3, Funny) 99

Once you get your head around crap like triple pointers, function pointers and all of the other head bashing elements of C, your brain is just..screwed. C is such a masochistic language that you REALLY must be in love with it to persist. Normal people just go FU and move on to something with more hand holding, not that there is anything wrong with that. So this is why C programmers stay up late, they simply cannot help themselves :(

   

Comment Re:Oh please (Score 1) 204

gcc used to accept -fwritable-strings to allow for writable strings as mentioned in the sample. Generally only really, really old code needed this I believe gcc 4.x removed this feature. I think this was always an implementation defined feature, one where the spec is silent on how to treat these strings.

Most people these days will do something like the following to simulate:

char s[] = "hello world";

*s = 'H';

The assignment will work this way, since the string literal is copied to the stack.

Comment Re:Open.... (Score 1) 287

I don't think that word means what you think it means...

They mean Open as in the 1980s-1990s version of "Open" like Common Open Software Environment or the Open Software Foundation. None of these have anything to do with Free Software(as in you get the source), but with open specifications. In that sense, Microsoft does have an "Open" platform, most of their protocol specs are available even if they are bastardized versions of standard protocols, same with most of their APIs, they tend to be fairly well documented.

Slashdot Top Deals

Anyone can make an omelet with eggs. The trick is to make one with none.

Working...