892 karma · joined January 20, 2012
denelxan@gmail.com
Since the bottleneck with native addons is usually data copying/marshalling, and we have direct access to WebAssembly memory from the JavaScript side, using WebAssembly on this "shared" memory might become the best approach for computationally heavy tasks. I wrote about it a bit here[2].
[1] https://github.com/zandaqo/iswasmfast
[2] https://medium.com/swlh/structurae-1-0-graphs-strings-and-we...
That said, in my own experience it was seldom worth it to rewrite something in C++ for performance sake. After rewriting some computationally heavy part as a native addon, I often ended up gaing only ~20% more perfomance at best when compared to properly optimized JS implementation, and even that was not guaranteed since V8 improved rapidly. That was not a good enough reason to keep a whole different tool chain around, so I'd end up going back to JS.
[1] https://medium.com/netscape/javascript-c-modern-ways-to-use-...
In my work, I have come to conclusion that it seldom pays off to go "native" when working with Node.js. More often than not, rewriting some computationally heavy code in C and sticking it as a native module yielded marginally better results when compared with properly optimized js code. Though, that doesn't negate other advantages of using said technologies: predictable performance from the start and re-using existing code base.
In case of Deno, I hope they just stick to following the standards and changing with them. They might not, I cannot vouch for them. On the other hand, I was also skeptical about TypeScript following ECMAScript. I though at some point they'll get too much into conflict and MS will refuse to follow, but so far I've been proven wrong. And from the looks of it, TS even deprecates stuff that is likely to conflict with upcoming ES versions.
Watching Falcons land is one of the few things that still give me warn and reassuring feeling about the future.
Old oil well and refinery sites in the developing world are full of ponds with a mix of water and oil/oil products that often come as a result of cleaning processes. Over time, due to evaporation and dust, these turn into asphalt like hard substances. Mushrooms could be a low cost solution to removing those over time, the slow speed of growth won't that much of issue as with fresh oil spills.
Safari now is the only evergreen browser that does not support it.
I wonder what it means for exobiology, is this true only in Earth conditions or in general, i.e. can we expect life elsewhere to use the same 20 amino acids? Also, if not, how toxic/dangerous would that life be for humans?
- Excerpts (for summaries and excerpts from books and articles)
- Snippets (for code snippets, formulas, etc)
- Reports (for results of research on a subject, e.g. learning new API)
- Papers (copies of research papers)
Dividing notes in such a way also helps to review them with varying frequency. For example, snippets get outdated often (e.g. workarounds for bugs or polyfills) so I have to go over them more often. Reports get updated as I learn new things about a particular subject that has its report. Excerpts are updated only if I decide to re-read the material they cover and extend them. Papers last as long as I'm interested in subject.
Last June I attended my first meet and tanked it: failed all three deadlift attempts due to errors (not following commands, double movement, etc). I started working on technique and won the two local meets that followed. I cannot say I enjoy it as much as I enjoy martial arts, but at the moment I'm just curious to see how much my body can progress within my normal sleep/rest/nutrition regimen.
I have been somewhat seriously lifting for more than a year (~350 Wilks, raw), never had a coach and it's my only regret that I had not worked out the forms with someone early on. I didn't think much of the sport at first and was doing it just for fun. But as I hit heavier weights I had to re-learn all the lifts multiple times because the "canonical" forms I learned from youtube were often ill suited for my body structure.
[1] https://github.com/zandaqo/structurae
[2] https://github.com/zandaqo/structurae#RecordArray
[3] https://blog.usejournal.com/structurae-data-structures-for-h...
From the look of it, in Node.js, WASM suffers less data exchange overhead while been decently close to performance of the native addons.
This tech has its merits, if done right it can increase the overall efficiency of hydrogen tech, however carrying kgs of ammonia in consumers' cars or tons of it in local gas stations when mere grams can kill you is pushing it too far.