Hackal: if it’s an array,.

 
Heagle: He doesn’t like things running on top of things it seems

Florentine: It would be interesting to write a babel that outputs to asm. hmmm yes.

Tumulty: Soteros: you can’t do that really. asm is a strict subset of JS

Bosco: No i mean literal ***embly code

Tumulty: Sure you can, but what would be the point?

Tumulty: So you can run your JS programs on your trusty MIPS board in the closet?

Tumulty: You jump to that register all you like then

Nored: Tumulty: where you cant run your code is a pretty severe limitation. For instance a binary library written in C can run pretty much anywhere. JS code is still stuck to whereever there is a JS run time environment.

Tumulty: Nored: that binary can be ported with emscripten to JS

Tumulty: Nored: and, “places arbitrary C can run” are *dwarfed* by “places arbitrary JS can run” at this point

Nored: It can, but I still need emscripten and JS run time

Tumulty: Not “need”. “get to have”

Nored: Another way to think about it is that you can write a fast C compiler in C, but you cannot write a fast enough JS compiler in JS. This is due to environmental limitations on where the code can run more than anything else.

Slot: I have a for loop inside a function. Does calling return inside a for loop behave as break in this case?

Emperor: It will also return the function

Nored: Hackal: return breaks both the loop and the function

Azure: Alright thanks for help.

Nored: Hackal: np, it becomes more complex when you have nested functions and you want to break the outer function from the inner

Crout: Nothing complex in my case https://jsfiddle.net/rpf5pbsc/

Wyche: Nored: that’s why we have nodejs ;

Nored: Soteros: node is just a different API

Tumulty: Nored: yes but why would you need to do that

Bidle: Hackal: that would be much neater using an iterator of some kind

Bidle: Do we have Array#every in es5?

Tumulty: Array.prototype.every

Konopacki: Tumulty: function every

Bidle: There you go then hackal!

Nored: Tumulty: what if I wanted to write stand alone applications in a JS like language that have nothing to do with the web

Tumulty: Nored: then you use node, or node-webkit. it’s done all the time.

Bidle: Yep, clojurescript can run on node

Tumulty: Nored: github’s Atom editor, and Microsoft’s new one i forget the name are both built with node-webkit / bw.js

Bidle: Isn’t the ms one just visual studio still?

Holderby: Tumulty, atom is built with electron, not nw

Nored: Tumulty: node-webkit is a viable solution, but I would still prefer a static compile state for an application that can be installed to the client directly without a helper environment

Tumulty: Biddlecome: isn’t electron nw under the hook?

Tumulty: Nored: that’s what node-webkit is

Ohm: Tumulty, nope, it’s their own, uses chromium

Tumulty: Bidle: https://code.visualstudio.com but it’s a new thing

Broadnay: In what order Array.prototype.every go? Because I know that my streams array will have streams ordered by views from highest to lowest

Tumulty: Hackal: arrays are always ordered the same.

Tumulty: Hackal: “stream” and “array” are two unrelated types.

Nored: So far Atom is the only editor I have running my app in directly. I need to figure out how to make editor plugins for my app

Tumulty: Ugh, the plugin model

Bidle: Tumulty: yep, that’s the one

Bidle: Tumulty: i believe hackal is talking about streams as the name of their array of objects

Cromley: I have a string of x/y point data

Tumulty: Hackal: if it’s an array, then it’s indexed, and literally everything will iterate it from 0 to .length – 1