It is specifically not a programming language. It is binary bytecode. Like the machine code generated by assembly. Assembly is the language. Machine code is not.
@Mr_Green you write code in some (likely statically typed low level language like C/C++), then pass it to a compiler like emscripten, and it converts it into "bytecode" called wasm. browsers can interpret that wasm code.
I don't know about the future of wasm. If Chrome could do without bytecode (so to speak), I am not convinced the parsing time is so important out of benchmarks that we need a new bytecode.
Not really, if you ask me. It is something the browsers are already doing. Problem is each browser is doing it differently, so we are adding a new system that they need to 100% agree on and which they can survive without.
(Because the browsers would not change what they are doing now)
I used to list on my resume the apis, libraries, standards, etc. that I used (and still remember). I gave up when, in a revision some years ago, it reached three digits midway.
I was shocked when I learned that most web devs don't know HTML5 is not HTML version 5. Not the one that the browsers implements. The implemented one is just HTML, Living (no "5" at all).
i am converting an application from global scope to use browserify,I have a question regarding the use of lodash,the application has lodash chains everywhere,should i import the entire library or just smaller modules
@nlper Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
yeah, @SomeKittens I have gone crazy ever since i discovered _.tap and _.thru,my chains just get longer and longer,also do i need handlebars.runtime.js if i use hbsfy??
var myNameSpace = {};
myNameSpace.Utils = {
a : function () { // do something... },
b : function () { // do something... },
}
window.onload = function () {
myNameSpace.Utils.a();
}
I want to use (native) promises in my frontend app to perform XHR request but without all the tomfoolery of a massive framework.
I want my xhr to return a promise but this doesn't work (giving me: Uncaught TypeError: Promise resolver undefined is not a function)
function makeXHRRequest (method,...
@winresh24 Please don't post unformatted code - hit Ctrl+K before sending, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
@Mr_Green firefox already implements most of the stuff, nightly has classes as well. I think only the reflect api and polishing of error messages etc. is left. and some debugger work.
the __nosuchmethod__ and other spidermonkey specific stuff might be removed later on
@Mr_Green As long as the V8 team want to take. They do not implement asm.js optimisations, they are the last to migrate DOM to prototype chain, they say implementing es6 make V8 slower and disable it by default. Go figure.
@PreetiMaurya Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
@MadaraUchiha If the article is 10k words, and you want to display the first sentence of 20 articles, when you do it on client side (CSS) you would be pumping 200k words to the client only to display 20 lines.
somewhere some random programmer sitting in a dark office room would have figured some method to solve this through when his manager would have said "oh you did it, cool. now tell me why this android app is not working on my lumia".
here is the link.. what I need to do is on a json success the selected quantity which was used or sent in the jQuery each() only should have its class 'changed' removed. Currently what's happening is it removes all
@MadaraUchiha stiil it doesn't make sense to send to the client 10k article just for the first few bytes. You can save a summary and then just use CSS to manipulate it
@THE Please don't post unformatted code - hit Ctrl+K before sending, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
@MadaraUchiha I can attack these questions specifically, but perhaps you were taking my point too far. I mean sometimes the server have to cap data to whatever is useful / meaningful to the client, and not blindly dump whatever is in database. I did not mean the server should do all processing. Client and server can share the load.
var myNameSpace = myNameSpace || {};
myNameSpace.Utils = {
a : function () { // do something... },
b : function () { // do something... },
}
window.onload = function () {
myNameSpace.Utils.a();
}
@CSᵠ Microsoft's solution would be to scale the app all the way up. A full screne Skype on a 5k monitor should definitely look beautiful. Think how fine the text's anti-aliasing will be
TBH, I don't see any problem in just sending the first n characters. thinking about super edge cases of summary looking funny at some random occasion is moot.
There's no point spending 500% of your time optimizing EVERYTHING, when you could have gotten 99.8% of the speedup effect had you just measured and optimized 1 or 2 components
Also, optimization more often than not comes at a price of code readability
If I had to choose between the two, readable code trumps performant code.