« first day (2227 days earlier)      last day (2720 days later) » 
01:00 - 21:0021:00 - 00:00

9:02 PM
@MatthiasHerrmann Set up a listener on the list itself
The listener accepts a single argument, event
event.target will be the actual list item that got clicked.
 
@MadaraUchiha ty :)
implemented it and it is working fine
 
Is there a question regarding why ({}) evaluates to {} and why {} evaluates to undefined?
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaarrrrrrrrrrrrrrrrggggggggggghhhhhhh
make: *** [lwip_decoder.target.mk:168: Release/obj.target/lwip_decoder/src/decoder/init.o] Error 1
make: Leaving directory '/mnt/nfs/public_html/sass-01/node_modules/lwip/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
I fucking hate this shit
does anyone has any idea why this could be failing, when I run: npm install sprity-lwip
halp
 
9:24 PM
!!>{}
 
@Shmiddty "undefined"
 
It's a block, not object literal
 
yep
 
See here
So ({}) is seen as an object instead of a block? What's the reason?
 
@AndrewLi because () can only contain statements
(I think those are called "statements")
 
9:27 PM
@tereško oh makes sense
expressions?
 
maybe
 
yes, they're called expressions
 
<= has not academic knowledge in JS
I think I have never read a book or even a tutorial on JS
aaaaaaaaaaaaaaaanyway
can anyone help me with that error above?
what make it worse, if I do installations of lwip, node-gyp, sprity and some other packages in magical order, sometime the installation will work
 
I have also been deleting that folder, but I think it had no effect
 
9:31 PM
Hmm. Restarting your computer? Dunno
Not well versed in node or npm
 
@AndrewLi there are so many different solutions in that thread
godspeed @tereško, i had build programs with node-gyp that were never resolved
 
9:48 PM
@bitten ya know what is the worst part?
I have 3 other directories, with same project cloned, where I have managed to build it
 
how can i debug these slow frames? the call is 3ms yet the frame is 30ms
 
... after ~3 hours of fucking about
 
@tereško npm ¯\_(ツ)_/¯
it must be something really low-level
 
fuck npm
 
@bitten what do you mean? There's a profiler
 
9:50 PM
it's a fucking javascript package manager- it should not have such thin as "low level"
 
@tereško are you saying that JS should be limited to high-level?
 
@towc it says my animation frame took 3ms to run, i can't see what else is taking 27ms
 
@towc I am saying that NPM should not be compiling C code
 
@bitten did you check the profiler? The list version
@tereško but why?
if that allows you to make the product more efficient..
 
@towc i don't know what i'm looking at, but do you mean this?
 
9:52 PM
@bitten yup
@bitten it's nothing confidential :P just a bunch of function names. No need to worry
 
@towc it's so fucking efficient, that it does not work
 
@towc just cleaning up the one boxes
er okay
so do you know how to debug from here? :p
i'm not familiar with this tab
 
that tab just shows you how much time each function takes, both on average within the function, and how much time it took since execution time of the program
 
hm okay
it looks like it's one of the models..
 
as you're using THREEjs, most of that won't make sense to you, right?
but if you click on one of them, you'll see the stack, which includes where you called it from
as in, imagine you have this thing:
function first(){ second(); }
function second(){ third(); }
function third(){ /* a thing that requires a lot of time to compute */ }
the profiler will show third on top, as it's where most of the execution time is spent
but you want to know why'd you call third so often, and if you click third on the profiler, it will show you that second called it, which was called by first
say second is your THREEjs abstraction layer, and third is the effective function THREEjs uses
 
9:56 PM
ah okay
yeah i think i'm finding it?
 
you're seeing the webgl functions, but you can see what THREEjs function you've called (second), which in turn you can find where you've called by looking at the correspondant of first
in simpler words: play around until it makes sense
 
i may have found it by mistake but i found where some of the models are being drawn and updated
yeah.. the latter part
taking these models out is improving it already
 
also, remember that even if you calling the webgl functions may only require 3ms, there's a lot going on in the background that runs independent of the cpu (gpu), so that may be taking 30ms
although the difference shouldn't be that noticeable, unless you've done something very wrong, or you wrote a benchmark script designed to do exactly that :P
 
but it's strange, i cut out those models and now i get a similar timeline just with a better frame
i get a lot less on the main tab/stack too, even though i didn't remove any functions
 
blame the mexicans
 
10:03 PM
@bitten don't pay too much attention to things that aren't near the top. it's mostly random noise below a certain point. the jit compiler will optimize differently and inline more when things get more intensively used
 
^
 
Is it possible to get index of a certain HTMLElement in a HTMLCollection?
 
alright, thanks guise
 
@AndrewLi yes
 
@towc But wouldn't it be comparing objects which wouldn't be equal?
 
10:07 PM
and it's easily googlable too :)
 
Since HTMLElements are objects, it would be looking for equal objects
 
which is fine
 
It is?
 
if you === two objects, the engine is "comparing their addresses". If the variables point to the same address, then they're the same object
you can test it
 
oh of course!
facepalm
 
10:09 PM
either way, you can also use .indexOf
although it's not very straightforward
 
I was thinking of a clone for some reason
Thanks!
 
np
 
10:30 PM
hmm ... looks like I will be back bitching about NPM in ... emm ... 10 hours
I hope someone will be online with more experience than "yeah, node-gyp is a bitch"
:P
 
lol
did you open a ticket with sprity-lwip?
 
 
1 hour later…
Knu
11:50 PM
Is there a term/verb for turning into an object? (akin to stringify)
 
01:00 - 21:0021:00 - 00:00

« first day (2227 days earlier)      last day (2720 days later) »