Знай свой JIT: ближе к машине / Андрей Мелихов (Яндекс.Деньги)
Движки:
- Chakra (JScript, not Javascript!) — in IE
- ChakraCore (JavaScript)
- SpiderMonkey — Firefox
- JavaScriptCore — Webkit, RN
- V8 — Node
- Rhine, Nashorn — Java
https://erikbern.com/atom.xml management | |
https://www.ben-evans.com/benedictevans?format=rss industry | |
https://sreweekly.com/feed/ sre | |
https://john-millikin.com/changes.xml engineering | |
https://lethain.com/feeds/ management, engineering | |
https://keavy.com/feed.xml engineering | |
https://larahogan.me/feed.xml management | |
https://svpg.com/feed/ product | |
https://staffeng.com/rss engineering | |
https://medium.com/feed/@copyconstruct engineering |
#!/bin/sh | |
# Add current date to the "updated" property in _config.yml | |
# e.g., | |
# updated: 2020-01-01T00:00:00.000Z | |
export CURRENT_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` | |
sed 's/updated:.*$/updated: '${CURRENT_DATE}'/' _config.yml > _config.yml2 | |
mv _config.yml2 _config.yml | |
git add _config.yml |
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory |
Знай свой JIT: ближе к машине / Андрей Мелихов (Яндекс.Деньги)
Движки:
const mult = (...args) => args.reduce((t, c) => t * c); | |
const array = (size, value) => new Array(size).fill(value); | |
const zeros = size => array(size, 0); | |
const partition = (size, coll) => { | |
if (size === undefined && coll === undefined) { | |
return partition; | |
} |
;; without composition | |
(repeat 2 (apply * (map #(* 3 %) (map max [1 2] [4 5])))) | |
;; with composition | |
((comp (partial repeat 2) | |
(partial apply *) | |
(partial map (partial * 3))) | |
(map max [1 2] [4 5])) | |
;; with thread macro |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
elem.clientLeft
, elem.clientTop
, elem.clientWidth
, elem.clientHeight
elem.getClientRects()
, elem.getBoundingClientRect()
/** | |
* Text Cell | |
*/ | |
.text-cell { | |
font-family: Alegreya, Georgia, serif; | |
font-size: 17px; | |
line-height: 1.75; | |
max-width: 700px; | |
margin: 0 auto; |
According to Brad Stulberg and Steve Magness, who write about the accomplishments of elite athletes in their new book Peak Performance, there’s a simple phenomenon that allows people to overcome their fears and limitations: a concept called self-transcendence. | |
While researching their book, Stulberg and Magness interviewed countless scientists and world-renowned athletes. They found that people who exhibited this kind of “superhuman” strength were able to do so only when they chose to focus on a purpose greater than themselves. | |
Stulberg and Magness refer to this paradigm shift as “ego minimization.” They point to a recent study published in Proceedings of the National Academy of Sciences, where researchers used fMRI scans to see what happens inside the brain of people presented with threatening messages. | |
https://qz.com/1026992/the-cognitive-trick-that-elite-athletes-use-to-achieve-seemingly-impossible-goals | |
https://www.amazon.com/dp/B01N1RNP9N/ref=dp-kindle-redirect?_encoding=UTF8&btkr=1&tag=quartz07-20 |
According to Brad Stulberg and Steve Magness, who write about the accomplishments of elite athletes in their new book Peak Performance, there’s a simple phenomenon that allows people to overcome their fears and limitations: a concept called self-transcendence.
While researching their book, Stulberg and Magness interviewed countless scientists and world-renowned athletes. They found that people who exhibited this kind of “superhuman” strength were able to do so only when they chose to focus on a purpose greater than themselves.