Wednesday, 2018-07-18

^7heofuckin sailfishos01:35
^7heoalways hoping it will get the community backing of android01:35
^7heobut it does not01:36
^7heoso the manpower stays low AF01:36
^7heoand at he same time I keep breaking phones in frustation01:37
^7heoat this point I'd rather have paid a monthly dev salary instead...01:38
*** zama_ is now known as zama05:20
*** frinring_ is now known as frinring09:39
X65VboHi all. I'm passing in a callback function as a parameter to call when the main function is finished. e.g. add(x, y, finishedfunction). This works e.g. add(1, 2, function() { console.log("I'm done!") })11:38
X65VboHowever, this fails when attempting to pass in values to the finishedfunction -- as the values bind too late (example coming up)11:39
X65Vboe.g. for(i = 0; i < 3; i++) { add(i, i+1, function() { console.log(i) }) }11:41
X65VboNow let's assume add() takes a *really* long time to run. I'd expect the output of console.log to be 0, 1, 2. However because add() takes so long to run, let's say the for loop completes, what I end up with instead if console.log to be 2,2,211:42
X65VboMy question is, how can I get finishedfunction to use the value of i at the time it was passed in to add. And not the value of i, whatever it happens to be when the finishedfunction is called11:43
X65VboHm.... it works when you do this: add(x, y, finishedfunction, arg1), so e.g. add(i, i+1, finishedfunction, i) -- but I'd like to generalise it12:05
r0kk3rzleszek: ooi have you ever looked at PWA support?12:46
leszekr0kk3rz: not sure what that even is14:06
r0kk3rzi'll take that as a no then :P14:07
r0kk3rzPWA = progressive web app, in short the 'add to home' feature on android/ios14:07
coderusX65Vbo: copy parameters in add?14:17
leszekr0kk3rz: you can add a shortcut to the "home screen" with webcat already14:17
leszeklong press and hold on the bookmark star button will create a shortcut14:17
leszekto that website14:18
r0kk3rzim not talking about a shortcut to a bookmark14:34
r0kk3rzthis is launching a single page instance with no window chrome14:37
nh1402[m]it's basically a self contained app of a website, isn't it?14:44
r0kk3rzyeah more or less14:45
r0kk3rztheres a couple of standards things to pay attention to, but thats about it14:46
r0kk3rzbecause then we would have 'official' twitter / google maps / uber / tinder apps14:49
leszekhmm...14:50
leszekI hate that idead though wholeheartedly14:51
r0kk3rzthese things tend to use the latest browser features though, which might kill it a bit14:56
nh1402[m]does the browser support webassembly?15:19
nh1402[m]serviceworkers, webworkers, notifications etc.15:19
r0kk3rzno idea15:29
CustosLimenhi17:48
CustosLimenwhat exactly is sailfish licensing from google for money17:48
CustosLimendoes the open source sailfish OS have android application support17:49
r0kk3rzfrom google? nothing18:07
r0kk3rzthe android runtime sailfish uses is indeed proprietary, but its not licenced from google18:08
*** Nokius_ is now known as Nokius20:26
*** feodoran is now known as Guest3045023:57
*** feodoran_ is now known as feodoran23:57

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!