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

 



Forgot your password?
typodupeerror
Compare cell phone plans using Wirefly's innovative plan comparison tool ×

Comment Re:problems, lol (Score 2) 211

I write web services for remote clients to send information to. 50 msec includes the time to establish a TCP connection to the nginx frontend (written in C!), then to run a little bit of Python code to massage the request and either store it in a database (probably written in C, or maybe Java) or fetch data from one, then to return the results to the remote client. At a previous employer, my code did that about 80,000 times per second, averaged 24/7. At the shop before that, we load tested to 500,000 requests per second but it was only for a few minutes sustained at a time.

When was the last time you personally wrote code to handle 500Kops? Did you know that those durn whippersnappers at Google runs a big chunk of their stack on Python and that they'd laugh at our tiny it doesn't matter to the end user. If we could have reduced a 50ms transaction to 10ms by altering the speed of the light signals carrying our requests, we probably would have. But since we live in a universe with physics, the best we could possible hope for was to reduce the time spent in application code to 0.000ms and thereby drop the entire transaction time to 49ms.

Comment Not Apple's responsibility to police Ireland (Score 0) 482

I don't like Apple, but the idea they fine Apple for an agreement between Apple and IRELAND is bullshit.

It's not Apple's job to ensure Ireland's offer is in conformance with EU policy. That's it. It's a company's duty to its shareholders to legally reduce its tax burden; by making an agreement with a GOVERNMENT, they fulfilled their role completely.

Of course, it's far /easier/ for the EU to try to punish Apple, as they really don't want to engender any more centrifugal forces in the EU right now by whomping Ireland with a $15bn invoice.

Comment Re:problems, lol (Score 1) 211

Or, you know. You could actually learn how to write good code at the most powerful level. That's a radical thought.

I did, and that's why I'm using Python. I'm capable of writing web services in C, but who the hell's got time for that craziness? Also consider Amdahl's Law: in most of stuff I write, the "running code to process data" bit is a teensy portion of wall clock time. Much more is spent in socket handshaking or waiting for database queries to finish. Out of a 50ms request lifecycle, perhaps 1ms is spent inside a box that I have complete control of. Even if I rewrote it in assembler (C is for high-level pansies) to be 1000x faster, the request would still take 49.001ms. An assload of work porting security-sensitive code into an untyped languages so that the end result can be 2% faster? Yeah, no. My boss would fire me with a quickness if I proposed that.

I'd be much more likely to rewrite performance-critical code in Go or Rust. They're as fast as C but without the death of a thousand cuts like gotofail waiting to ruin your careful planning. Life's too short to waste it hacking in languages that hate you and make you want to look incompetent.

Comment Re:Unsustainable pricing on high tech gadgets (Score 2) 111

It doesn't cost $800 to manufacture an iPhone. More like $100. In the US it would maybe be $150. It is Apples greed that is the blame.

There are always lines around the block on launch day. People cheerfully buy tens of millions of each iPhone. If people are willing to pay that price without a gun to their head, and there are alternatives that they could buy instead but they choose to buy iPhones anyway, how do you justify describing it as greed?

Comment Re:Never do anything on the actual computer (Score 2) 212

I did exactly this, using Qubes at home. It took a little getting used to, but once you get the hang of it, it makes sense. It greatly reduces the risk of things like XSS and browser exploits leaking banking or other important information. I don't particularly consider myself the enemy of any state, but the increasing number of drive-by exploits targeting Joe Nobody for the purpose of extracting money (whether ransomware, stealing card numbers, whatever) makes this a reasonable course of action even for people not participating in espionage or whatever.

Shame that trying to game in a VM sucks hard, but that's the tradeoff.

Comment Seriously, we have the government we deserve (Score 2, Insightful) 311

Russia has INVADED and IS OCCUPYING a neighboring country (one they laughingly signed a note to protect, no less).
China is essentially playing Age of Empires 2 in the South China sea, grabbing territory by building watchtowers and not giving a fuck about what anyone thinks.
The EU is disintegrating as people start to realize manually bolting countries together doesn't actually make them act like a single country.
Our economy is a sham based on completely phony numbers, contrived to enrich a tiny cadre of elites that drift in and out of power (always making more money with each step) like minglers at a garden party.
Our media is essentially a giant cumrag, soaked and dripping with the lowest-common-denominator vulgarity and venality.
We have one candidate for president that is a COMPLETE ASS and a know nothing buffoon who's like a cartoon character of himself, while the other candidate is corrupt to the very soul of her being, if she HAD a soul.

And what we're worrying about is whether films fairly represent women?

Where the fuck are the Visigoths to come climbing over OUR walls? Seriously, it's about time. If Rome was like this near the end, they probably welcomed it.

Comment Re:Logic Says It Should Be Legal (Score 1) 391

When are drugs like flupirtine going to be available in the US?

When the DEA can figure out the correct amount of Tylenol to require to be added to every pill to ensure that anyone taking enough to get high will die. Just because it's not an opioid doesn't mean it doesn't make people feel good, and our government cannot allow that under any circumstances.

Comment Re: IP law has nothing to do with logic. (Score 0) 391

hrcck... krrkk...

Just a minute sir, I understand that you are in urgent need but we are still reviewing your account details.

gkk... ackk...

OK, we have determined you have a credit card with a $4000 limit and a current balance of $381.17. This brings your charge for our lifesaving drug to 3618.83. Do I have your permission to proceed?

hkk...

Ah, sorry, I charged this to your bank card and it was rejected with an overdraft fee. I've reprocessed it to your VISA and it was approved.

...

Sir? Sir?

Slashdot Top Deals

How many weeks are there in a light year?

Working...