Flooring using double bitwise not

An interesting tidbit from Thomas Fuchs’ Extreme Javascript Performance:

~~(1 * 12.5) is faster than parseInt(12.5).

The ~~ is a double bitwise not, and the multiplication by one forces a string into a float.

Via Janne’s Delicious stream.

Ilya

DHL paid my VAT

To my online shoe shopping experience, I’ll add that I received a letter from DHL today, notifying me that they’d paid my VAT, and that I’d need to pay them back. The bill is straightforward, and the administrative fee they added on top of the VAT is reasonable (£1.25).

(In Finland, your package either gets stopped at the customs, where you pay VAT on pick-up, or it doesn’t.)

So, when comparing overseas prices online, this also should be taken into account.

Ilya
  • etiolate, v.tr.
    1. Botany. To cause (a plant) to develop without chlorophyll by preventing exposure to sunlight.
      1. To cause to appear pale and sickly: a face that was etiolated from years in prison.
      2. To make weak by stunting the growth or development of.
  • NY Times: The Trolls Among Us.
  • Home
  • About
  • Preferences


RSS

November 2009

Mon

Tue

Wed

Thu

Fri

Sat

Sun

 

 

 

 

 

 

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

Oct   Dec

Beared souls

caught together