Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror

Comment Re:more garbage comments from non-experts (Score 1) 44

Python "the language" is interpreted.

And the loop doing the multiplication is a C/C++ routine.

Ooops.

For basic math, C++ is ~10,000% faster than Python.
No.
As the math is not done in Python, but in the c libraries.

Perhaps with some generousity in odd cases factor 10 to 100, see below.

Perhaps if you have some nonsense like:
for (int i; i != 100000; i++) {
      var res = random() * random();
}

Where every single statement is interpreted, then it might be a factor of 100 slower. But certainly not 10,000.

However that is not how Python works. The loop above is a C loop, which gets called with a closure.
And many closures are "recognized" by the compiler ... so it calls a perfect loop for it.

Obviously you can construct an arbitrary complex function and call this in a loop and create an example where Python is significantly slower, but not by such an absurd factor.

Anyway. I assume we can agree that the Python program does not need more than a second per multiplication ... and it is only 100 multiplications.

I am tempted to test it, but I am to lazy to google the correct syntax for such a for loop :P

Regarding JavaScript: it only has doubles ... as they thought, a 64bit double can hold 53bits (or was it 52?) integers. And no one needs more than that ... well, I did not check if I personally need more.

Dart and a few other languages do "the same trick". Everything is a double. Unless it is a NaN.
Erm, actually everything is a double or an int or a pointer. If it is Not A NaN ... it is a double. If it is a NaN, the combinations of NaN bits decide if it is a pointer (as pointers usually are maximum 48 bits big, often less), or a special value like null, undefined, true or false (or some other special values like some enums)
NaNs that pop up during floating point operations are never stored in memory ...

Comment Re: I can't wait for the brouhaha that arises (Score 1) 60

I'm not sure you understand what jailbreaking means in the context of AIs. It means prompts. E.g. asking it things and trying to get it to make inappropriate responses. Trying doesn't require any special skills, just an ability to communicate. Yes, I very much DO think most parents will try and see if they can get the doll to say inappropriate things before giving it to their children, to make sure it's not going to be harmful.

(Now, if Mattel has done their job right, *succeeding* will be difficult)

Comment Hallelujah! (Score 2) 18

Instant apps created a lot of complexity and awkwardness in the Android platform. It has consistently been painful to deal with and work around, and been especially challenging for the security team, for a feature with very little user or developer interest. Killing it is definitely the right call.

Comment Re:Can pixel owners request kernel source code? (Score 1) 46

At the text size I like I have enough words on a 4.75 inch screen for readability (better than a newspaper).

I'm in my 40s, but I'm pretty near sighted, so I don't use reading glasses yet, but I feel like in a few years I'll want the current sized phones.

But there are a lot of people under 45.

Comment Re: Ahahahahahaha (Score 4, Insightful) 108

Allowing a customer to service their own stuff while still being responsible for the maintenance contract is a potential nightmare.

No, it is not. You write the contract so that if the customer fucks it up it's their problem, and if you have to undo things that they did when you get there, they have to pay for it.

Slashdot Top Deals

An inclined plane is a slope up. -- Willard Espy, "An Almanac of Words at Play"

Working...