Re:Dynimize: Speed Up MySQL with CPU Performance Virtualization
by stephenr on Wednesday May 09, 2018 @11:44AM
(#17030694)
I’ve given up waiting for nodejs to become a reliable environment. Just recently the `is-even` package came to light and highlighted that things aren’t getting any better than when leftpad was a thing.
I can’t wait to see tc39’s response to the `is-even` shit show after they decided to just add leftpad to the stdlib.
Re:Dynimize: Speed Up MySQL with CPU Performance Virtualization
by da_chicken on Wednesday May 09, 2018 @12:06PM
(#17030928)
Wow, I hadn't heard about the is-odd/is-even/is-number thing. That's hilarious and awful.
Reminds me of: https://github.com/jezen/is-thirteen
Re:Dynimize: Speed Up MySQL with CPU Performance Virtualization
by stephenr on Wednesday May 09, 2018 @12:19PM
(#17031063)
The “best” part of it all is that apparently js engines have an internal optimisation for `foo % 2 === 0`, because it’s such a common thing.
This clown was using a bit wise operation in `is-even` “because everyone already knows about % 2 === 0`, and thus was hurting performance (on top of whatever extra memory is used for the module, function call overhead etc)
"Oh, this is just for a test mock up. Nobody is supposed to actually use this to install it for real."
Well, to experienced people it makes you look moderately stupid, and to inexperienced people it looks like an elegant solution. It's actively hostile to secure system planning.
It reminds me of the NPM left-pad debacle[0] and some of the criticism[1] that came up from that.
0: https://www.theregister.co.uk/2016/03/23/npm_left_pad_chaos/
1: http://www.haneycodes.net/npm-left-pad-have-we-forgotten-how...