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

 



Forgot your password?
typodupeerror
×

Comment Re:Force them to warrenty whole unit.. (Score 1) 526

Well I do have to admit that when I took my Mac into the shop the guy at the Genius Bar didn't even blink when I told him it was running Linux. So none of this "you are running the wrong software" shenanigans there.

As a counter-example, I had "you are running the wrong wireless access point" problems from the Genius bar. My wife was seeing occasional DNS resolution failures and generally slow web browsing, which turned out to be packet loss between the laptop and the access point. At least two techs immediately argued that the problem must be the access point, and that we should replace it with an AirPort. It took four tries (phone calls and in-person) to find someone who would honor ping statistics from a variety of wireless devices.

Comment Re:Replusive (Score 1) 505

I'm not saying Javascript is superior or inferior to C.

I'm not trying to argue that any language is better, either. I originally responded to this:

Name one other language that is as well supported and as broadly implemented as JavaScript?

and your subsequent reply moved the goalposts by arguing about deployment effort. Yes, you're right, C software requires more work to deploy to N platforms, but that is irrelevant to the presence of broad multi-platform support. I'm really not trying to say that C is better than Javascript. But surely it has a larger footprint across platforms!

I think it's safe to say that you prefer C to the exclusion of everything else.

Actually, no. I can read C fine, but I don't code fluently in it. I usually switch between C++, Python, and bash depending on the task.

Comment Re:Replusive (Score 1) 505

and you must compile for every platform.

Yes, deployment requires compilation once per target. How many platforms exist which have a javascript interpreter but no C compiler? I believe my point stands.

Since nobody has offered any other languages to your challenge, I'll suggest Lua as a trivial alternative: the core language is implemented in ANSI C, so it is likely that Lua is portable to any platform that supports C. However, the core functionality of Lua is ridiculously hamstrung (ANSI C doesn't support sockets, for example) so the language is not well-suited for general-purpose programming.

Comment Re:Replusive (Score 1) 505

C is ubiquitous.

Except on platforms that ban third-party native applications.

Even if the walled gardens don't permit software implemented in C, it is extremely likely that some part of the walled garden's own software stack is still written in C—because C is ubiquitous.

Comment Re:Replusive (Score 2) 505

Many fighting games feature reaction windows no more than 5 ms wide, and some have windows ~1 ms wide. And players can hit them.

I've heard of fighting games (e.g. Street Fighter) with 1 frame windows, but the games were 60 fps ~ 16.67ms. That is more in line with your figures from John Carmack's experimentation. Your 1ms figure does not sound credible, can you provide a reference?

Comment Re:Whitespace, again (Score 1) 432

He made the case [why one should never use Python] very convincingly.

How so? It sounds like you and the AC are just looking for an excuse to whine. Let me explain again: I maintain a non-Python codebase with horrendous whitespace, and a Python codebase with consistent whitespace. The non-Python codebase is full of maintenance developers shitting on each other's indentation, and it makes future maintenance more expensive.

Comment Re:Whitespace, again (Score 1) 432

[whitespace] can't be discerned thoroughly via ordinary tools used in the ordinary way like cat,

How frequently do you look at code with cat, that invisible whitespace errors are a problem? It doesn't even paginate, ferchrissakes.

... less,

I have no solution on this one, but as a quick hack I would start by searching for tab characters, or more-than-one space characters. The terminal highlight should help.

... vi,

This works just fine in vim (not sure about vanilla vi):

:set list listchars=tab:\\_

That makes all hard tabs look like \___. Replace with prettier unicode line-art as you wish. I maintain a non-python codebase with some rather... creative... variations of whitespace, and it is trivial to match local whitespace conventions with listchars enabled.

... emacs

I'm not an emacs guy, but if vim has a solution then I'd put money on the existence of an emacs solution.

I never got a straight answer to how python deals with a mixture of tabs and space characters in the indenting.

I do work with python regularly, and I still can't answer this. The practical solution is "don't mix indentation styles." While it is more than zero effort to do this, it should be all up-front effort learning the capabilities of your tools, and trivial effort day-to-day.

Comment Re:Regulate this (Score 1) 295

In fact, it's very popular to pull over when rain/snow/fog is so thick.

It doesn't take much snow to cover lane markings, and pulling over is not a practical response to a fresh layer of snow. Snowfall is a different story, but snow on the ground is the problem at hand:

And now that white line is very reflective on almost all roads (speaking from the US at least), it seems that, if anything, we can tone down the headlights.

Comment Re:We vote on leaders not lightbulbs (Score 1) 1146

LEDs are hard in most places, but it is getting better.

I'm a fan of CREE can lights. High CRI, a good coating, and built-in trim makes them look better than the previous lights. I haven't had them very long, but so far they are handling brownouts better than anything with a ballast. The remaining CFLs tend to discolor (toward pink???) and dim significantly if they are not fed exactly the right voltage. The biggest downside is that the LEDs cost about 10s the cheapo "pink" CFLs, which adds up quickly. It will take years to see any cost savings even with 100% survival rate of the LEDs.

Comment Re:Why not quantum entanglement? (Score 1) 236

sampling at 50 times a second

Using quantum entanglement to achieve zero transmission delay, and then only looking at it once every 20 milliseconds? You may as well just use fiber, as half of the time you will still receive information ahead of a polling-based QE system. Now, the benefit for the QE system increases as the fiber distance increases, so your idea still makes sense for mutli-planetary HFT. Just... not between Chicago and New York.

Slashdot Top Deals

After any salary raise, you will have less money at the end of the month than you did before.

Working...