« first day    last day (170 days later) » 

12:14 AM
@BenjaminGruenbaum a bit - few months ago. The API wasn't much complete then in spidermonkey nightly. but I think I told you about it before as well :P
(surprisingly it was for a freelance project)
 
@AwalGarg Was it faster?
 
@copy yes. The reason I used it was because I was working with a ton of data (neuroscience).
And normal calculations weren't performing well. Clients just wanted it to work "in a browser". no matter which browser
so custom compiled ff, custom app, all hack.
 
Neat
I have many projects that might benefit from simd
 
 
8 hours later…
8:28 AM
@copy why would it be a JIT? What advantage would it have over ASM?
@SomeKittens not sure what your map is, but sounds nice :)
@AwalGarg yeah, I tried it for a numerical calculation project in Node - ended up wrapping Eigen instead.
 
 
10 hours later…
6:13 PM
^ I enjoyed the first one a lot. I understood only part of it, though, because of my feeble knowledge about optimizing compilers. You guys would probably enjoy it much more.
 
7:01 PM
@BenjaminGruenbaum map.norsecorp.com
 
7:30 PM
If you're around and want to help out with optimizing some DOM code, lemme know
 
7:58 PM
@BenjaminGruenbaum Web Assembly will have specific support for JITs (github.com/WebAssembly/design/blob/master/…)
 
8:15 PM
@copy that's awesome, I didn't know that - I'm still not sure I understand why it'd JIT for static languages. If it's an opt in sounds cool.
@SomeKittens oh, that thing is awesome, we actually gave (a much lamer version of) it as an exercise for students once - was fun.
@AwalGarg debugger hook sound awesome!
That whole article looks very promising - and much saner than what they previously did.
Second article is nice - but less interesting.
 
@BenjaminGruenbaum Thanks, if anyone's heard of us, they've seen our map
 
@SomeKittens :)
What the heck does do even do? esdiscuss.org/topic/…
I don't understand why we'd want to add another keyword for that :/
 
I get it, 1 + 7 = 8
 
@BenjaminGruenbaum and you can just use a tagged template
 
@BenjaminGruenbaum What does do do? It's pretty neat, it's an expression which contains statements
 
I like how that one guy popped in just to correct her (which in no way invalidates the point she was making)
 
8:33 PM
// you can have:
let foo = do {
    if (bar) 4;
    else 5;
}
 
caitp doesn't really need an introduction on the list haha
 
Imagine a more complex scenario than that
 
@Zirak so let foo = bar? 5 : 4 ?
I don't have an imagination
 
12 secs ago, by Zirak
Imagine a more complex scenario than that
With loops and shit
 
woah, it's in V8 under a flag that's cool!
 
8:34 PM
okay, then you know how you complained that javascript has statements, and for has a result but it's a statement, so you can't but it in interesting places?
Well, do
 
Then why not make for and if an expression? What would that break?
 
Or more concretely:
 
pew pew pew
 
// what once was
var foo = (function () {
    // statements and shit
    return result;
})();

// is now:
var foo = do {
    // statements and shit
    result;
};
 
8:35 PM
Why the hell would you want arbitrary code in your template strings?
Why the hell would you want logic in your templates?
 
It's like what arrow expressions did to shrink some function definitions, omitting some cruft and return.
 
Because it's easy and useful?
 
@BenjaminGruenbaum Because that would make sense, and we can't have that.
 
@BenjaminGruenbaum Logic in templates is definitely not useful.
 
What do you mean no statements!?
 
8:36 PM
@MadaraUchiha sure it is, templates can have lots of logic - what they shouldn't have is state.
 
It'd be weird to have no statements in the FunctionDeclaration vs. FunctionExpression sense, but other than that, I'm game. Since do is basically a BlockStatement which has a result.
 
There are lots of decisions templates get to make in how to present data - templates need conditionals and loops and that makes them able to express pretty much anything.
 
@Zirak ML says hi
 
@Zirak I'd also make functions return the last expression like Scala but that's not something that could even be done.
 
@copy It's definitely not a new thing, I've seen it in other languages. Just maybe a nice to have.
 
8:38 PM
So basically, coffeescript :P
 
@BenjaminGruenbaum That would break a lot of code since people rely on no return === undefined.
I imagine, at least
 
Lots of stuff I wouldn't steal from CoffeeScript (ranges, operators, ->, scoping and its own do) but I'd definitely steal "everything is an expression" and @ for this.
 
Also, under this room's rules, pretty much nobody from the js room is allowed in
I don't fit any of those
But I do need a shower
 
cough and a shave cough
 
Definitely shave
 
8:41 PM
I shave where it counts
 
@Zirak Butt hair really doesn't count.
 
@Zirak js room is too much noise for me - plus you wrote some libraries. JS room is kind of a help desk and it's hard to have discussions there without interruptions.
 
You have zero say in that
I did nothing noteworthy, no lies. Just spoke a lot in the js room and answered some questions.
 
@BenjaminGruenbaum this. everything should be an expression :D
 
@BenjaminGruenbaum The biggest problem is that we don't have a real way to subtly tell help vampires and quasi-help vampires to go away, and that the discussion in the room is more important than questions.
The Lounge did it, but they're the lounge, and we all know how they look
 
8:44 PM
@Zirak you worked on a PR for chrome, and built several things involving it - so there's that. Plus, I'm looking for people who actually are interested in having discussions about things like simd.js, or what do means - that's less than 10% of the JS room. It's not like I'm trying to keep anyone out as much as I want a different culture.
 
@Zirak it says "Deep and proven understanding of the spec", so there we go :P
 
@MadaraUchiha the JS room is a good and healthy chat room, I'm still a member and room owner and this room is not intended as a replacement. I just find the culture there problematic for these discussions.
 
And if "ESDiscuss participation" can be made more specific to something like "more than 2 messages in ESDiscuss with 1 or more contextual replies", even I fit in :D
 
I think we're wasting a keyword for do. iIt would be a lot nicer to have a block with nonstrict semantics.
 
@MadaraUchiha @BenjaminGruenbaum I'd put my 2 cents as well: I think benji just wants a little corner for quality discussions free from interweaving messages of caprica saying "welcome newbie, read rules now" or someone dumping a row of annoying GIFs suddenly which harm readability. IMO, that is a fairly justified wish, and this room and the JS room can coexist.
5
 
8:52 PM
Exactly, thanks.
 
It's also nice to have a discussion room, rather than a "shout opinions loudly" room
 
@SomeKittens WELL I THINK YOU'RE RIGHT
 
I'm trying to formulate an opinion about DSLs like JSX and what can be done with them. I think it would be really nice if for example - SQL code inside my code was statically checked like JSX as part of the build process.
Being able to define literals and statically analyzing those literals could be very empowering.
Template tags are still strings - really powerful strings. I want to embed languages not strings.
 
@BenjaminGruenbaum I'd like to see a general way of embedding other languages in JS code (like HTML's script tag which is open to extending and not just limited to JS, example wasm)
 
The important part is the static analysis - JSX is just so simple and nice.
 
9:04 PM
well if we get a syntax which can tell the JS parser something like "skip this part, this is for some other parser", we can do just about anything.
 
@BenjaminGruenbaum sugar.js?
Also, how'd it go today?
btw a co-worker and I are thinking of using duktape or something similar in some niche project. It sounds like it'll be four levels of hell.
Especially since we'll need to extend it with our own functions
 
 
1 hour later…
10:39 PM
@AwalGarg yeah, pluggables could be cool.
@Zirak Not quite, I want a whole different grammar not just macros.
@Zirak went well, talked about open source and how to write cleaner code.
 
@BenjaminGruenbaum You think it worked?
 
10:58 PM
@Zirak I hope it did, we'll see
 

« first day    last day (170 days later) »