v413
Re:Starship will attempt a launch this weekend
on Tuesday November 14, 2023 @03:57AM (#38260750)
This is the second "law" of the dialectical materialism by Engels:
"The law of the passage of quantitative changes into qualitative changes"
According to Wikipedia it has its roots from ancient Greece https://en.wikipedia.org/wiki/Dialectical_materialism
Re:Was Vincent van Gogh color blind? (2012)
on Sunday September 04, 2022 @06:02AM (#32711498)
Yep, looks like they are the same.
Re:It’s 2022, and Teslas still aren’t stopping for children
on Monday August 15, 2022 @05:41AM (#32467622)
Well here it stops lol
https://www.youtube.com/watch?v=Fu4ZEnIwYZI
Re:Will Bun JavaScript Take Node's Crown
on Sunday August 14, 2022 @07:39AM (#32458432)
Bun is using the JavaScriptCore engine which is the Webkit/Safari Javascript engine. It is not written in Zig.
Re:Flatten Arrays in Vanilla JavaScript with Flat() and FlatMap()
on Wednesday January 05, 2022 @03:35PM (#29814558)
This is not efficient. Each iteration creates a new array instance due to the spread operator.
Re:Windows 11: Just say no
on Thursday September 16, 2021 @04:41PM (#28557266)
React is slow for the perf targets of VSCode.
Re:Implementing Private Fields for JavaScript
on Sunday June 13, 2021 @03:42AM (#27490628)
The # symbol denoting private fields has already been finalized and approved to be a legal part of the language. No going back.
Re:Implementing Private Fields for JavaScript
on Sunday June 13, 2021 @03:40AM (#27490611)
Object properties defined as Symbols (even through classes) are still accessible by e.g.
Object.getOwnPropertyDescriptors(myObject)
Before the private fields, it was possible to create private properties through a WeakMap object which is somewhat clumsy and not very performant.
Re:Simdjson – Parsing Gigabytes of JSON per Second
on Thursday February 21, 2019 @03:16AM (#19215335)
It is already implemented in the current Firefox, Chrome and Safari 12.
Re:TC39 considers renaming flatten and flatMap to smoosh and smooshMap
on Wednesday March 07, 2018 @11:54PM (#16542372)
Some TC39 members proposed this. It is in no way even discussed or decided by the TC39 committee yet. The fancy naming is proposed by some as a solution to prevent name collisions with the flatMap and flatten array methods used by an old version of the Mootools library. I.e. do not break the web.
Re:How one ClojureScripter writes JavaScript (2015)
on Monday December 25, 2017 @01:34PM (#16005174)
The premise of the article that the more objects that mutate state locally are used the more complex and more difficult it is to reason about the system becomes is not true. The core principle of data encapsulation in OOP ensures your system will be manageable as it grows. This principle breaks down the complexity into manageable units of self managed simpler pieces of subprograms that are more easily to reason about. And as history has shown this approach did provide capability to programmers to build more complex and manageable systems.
Re:‘This’ in JavaScript
on Thursday August 03, 2017 @05:36AM (#14918170)
As an event listener "function(e) {this}" is not the same as "(e) => this". With the regular function "this" points to the element on which the event listener was attached to while with the arrow function "this" points to the context (i.e. "this") of its lexical environment.
Re:ECMAScript 2017 Language Specification
on Wednesday July 12, 2017 @03:23AM (#14750752)
why not just use acc[prop] = value ?
Re:STON – Smalltalk Object Notation (2012)
on Wednesday March 15, 2017 @12:48PM (#13877500)
There are global symbols. You use Symbol.for() to either create or retrieve them. E.g. Symbol.for('hello') is available globally through the global registry. It should be noted that an already existing symbol e.g. Symbol('hello') is not the same as Symbol.for('hello') while Symbol.for('hello') === Symbol.for('hello')
Re:What makes WebAssembly fast?
on Wednesday March 01, 2017 @04:18AM (#13762428)
Typescript is designed to be compiled to JS. WASM is designed for staticly compiled languages. Even if there is GC and DOM access through WASM, Typescript will be better off to run for the natively JIT optimized JS path.
Re:What makes WebAssembly fast?
on Wednesday March 01, 2017 @04:14AM (#13762407)
JS will not compile to WASM.
Re:Flv.js – An HTML5 Flash Video Player
on Thursday November 03, 2016 @12:08PM (#12865188)
Or maybe even include the wasm codec/player along with the video. Then it doesn't matter what the platform supports as long as it can run wasm.
Re:Is your JavaScript function actually pure?
on Tuesday September 20, 2016 @01:20PM (#12541189)
Prior to ES5 undefined was overwritable that is why void 0 guaranteed to produce undefined. With ES5 and later using undefined directly is safe.
Re:YouTube change served lower-quality video to Firefox 43 for 2 weeks
on Sunday January 10, 2016 @09:23PM (#10878395)
Feature detection is not always enough. E.g. if a browser reports it has a required feature but that feature is buggy rendering it effectively unusable, then browser detection is necessary.
Re:Exploring ES2016 Decorators
on Monday July 13, 2015 @03:49AM (#9876890)
It is not precisely clear decorators will make it into ES2016 yet (maybe ES2017?). That is why it is better to say ES Next or something like that.
Re:ES6: The features I'm most excited about
on Monday July 06, 2015 @02:41AM (#9837213)
With the introduction of arrow function you won't need to use .bind(this) as arrow functions capture in their lexical scope the variables/keywords: this, arguments, super.
e.g.
setTimeout(function(){alert(this.a)}.bind(this));
becomes simply
setTimeout(() => alert(this.a));
Re:ES6: The features I'm most excited about
on Monday July 06, 2015 @02:38AM (#9837201)
All code in modules is in the context of "use strict" by default so it won't be necessary to use this pragma explicitly.
Re:Vim.js – JavaScript port of Vim
on Sunday November 30, 2014 @02:15PM (#8677735)
Chrome 39 on Windows 7, when scrolling the text gets blurry. On Chrome 41 Canary though things work well and fast.
Re:ESnext – Tomorrow’s JavaScript syntax today
on Sunday October 12, 2014 @12:53PM (#8445790)
Looking at the compiled source, it looks like ES5 and not ES3. They use "use strict" and Object.defineProperties which are ES5 features.
P.S. IE9 doesn't support ES5 strict mode so "use strict" might introduce some subtle bugs for that case.
JS SIMD will support the ARM Neon instructions. Here is the spec http://esdiscuss.org/notes/2014-07/simd-128-tc39.pdf
Re:PDFium: Chrome’s PDF rendering engine is now open-source
on Thursday May 22, 2014 @03:59AM (#7782647)
How about converting this viewer through Emscripten using asm.js. Would be interesting to see performance comparison with pdf.js :)
Re:The Birth and Death of JavaScript [video]
on Thursday April 17, 2014 @07:46PM (#7607239)
You need:
['10', '10', '10'].map(Number);
Re:PS4 UX is powered by WebGL
on Friday November 15, 2013 @03:13PM (#6741858)
Well, PS4 has 3.5GB allocated for system memory. Plenty for running lots of things in the background.
Re:Fat arrow functions in Javascript
on Friday September 20, 2013 @04:41PM (#6420380)
Node.js is the keyword here, not the web.
Re:Fat arrow functions in Javascript
on Friday September 20, 2013 @04:32PM (#6420333)
The "this" value in functions is not lexically scoped. It is determined during function invocation, not during function declaration.