Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
> Newcomers roadmap: from where to start learning Gideros "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
Number of tests: 10000000
keepInRange1 11.387515123518
keepInRange2 9.3995061483975
keepInRange3 9.056655447766
I've created empty project, all I have in my 'main.lua':
maxIterations@1000000
local randomSeed,random=Core.randomSeed,Core.random
randomSeed(1,1)function keepInRange1()
randomSeed(1,1);local tempStorage,tempNum=0,5for i=1,maxIterations do
tempNum=random(0,-100,100)
tempStorage=math.min(math.max(1, tempNum), 10)endendfunction keepInRange2()
randomSeed(1,1);local tempStorage,tempNum=0,5for i=1,maxIterations do
tempNum=random(0,-100,100)if tempNum <1then tempStorage=1elseif tempNum >10then tempStorage=10else tempStorage=tempNum endendendfunction keepInRange3()
randomSeed(1,1);local tempStorage,tempNum=0,5for i=1,maxIterations do
tempNum=random(0,-100,100)
tempStorage=10><(1<>tempNum)endend
Core.profilerReset()
Core.profilerStart()for loop=1,10do
keepInRange1()
keepInRange2()
keepInRange3()end
Core.profilerStop()-- print the results of the profiler
result=Core.profilerReport()print("Number of tests:",maxIterations*10)for k,v inpairs(result)dolocal found=falsefor k2,v2 inpairs(v)doif found and k2=="time"thenprint(v1,v2)endif k2=="name"andstring.sub(v2,1,4)=="test"then v1=v2 found=trueendendend
> Newcomers roadmap: from where to start learning Gideros "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
This is because in @Sinistersoft example, the functions under test were called 'testXXX', and he filtered out non matching functions when showing the results. change "test" to "keep" in the last inner loop test
Yes, I perhaps should have explained that a bit more in the blog post.
If anyone else wants to write some blog posts to help others then please get in touch and I'll add access for you.
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
@Apollo14 Can you post the results here, I'd be curious for the results.
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
This is because in @Sinistersoft example, the functions under test were called 'testXXX', and he filtered out non matching functions when showing the results. change "test" to "keep" in the last inner loop test
P. S. It seems that we should avoid standard math library at all costs. It's almost 3x slower, although code may look cute, compared to other variants.
Probably it would be good to add macro operators to replace slow math.sin/math.cos/math.sqrt? (or they can be replaced already?)
Also in some Lua tutorials it is said that localizing math library is helpful, but it didn't make significant difference in this case (neither localizing math. inside function or loop (keepInRange4,keepInRange5), nor localizing it in the beginning of a 'main.lua' file)
Number of tests: 10000000
keepInRange1 10.318172679762
keepInRange2 3.4653780657264
keepInRange3 3.3482103390496
keepInRange4 9.9247725611831
keepInRange5 10.399366280858
> Newcomers roadmap: from where to start learning Gideros "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
@Apollo14 I need an email address to add you to blogger, you can pm me it if you want.
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
I also updated my code - for some reason I used random number generator 1, when they actually start from 0. There isn't a selection yet so I don't think it matters. I re-ran and had the same results.
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
guys, help find the cause of the error in the previous version of gideros there is no such error
:app:incrementalReleaseJavaCompilationSafeguard
:app:compileReleaseJavaWithJavac
:app:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
:app:compileReleaseJavaWithJavac FAILED
BUILD FAILED
Total time: 22.832 secs
C:\212121\mimimi Cat\1\mimimi Cat\tmp\app\src\main\java\com\giderosmobile\android\plugins\ads\frameworks\AdsAdmob.java:432: error: method does not override or implement a method from a supertype
<a href="https://forum.gideros.rocks/profile/Override" rel="nofollow">@Override</a>
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Exec returned: 1
Export failed! See details above.
@SinisterSoft@hgy29 does Luasocket work for html5 exported apps? (if we need to connect to NoobHub server)
> Newcomers roadmap: from where to start learning Gideros "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
yes and no, it works in that the plugin is available, but you can't do UDP nor TCP in html5, so UDP is just not supported and TCP maps to websocket with luasocket. Basically forget luasocket for HTML5 except if you know your server is websocket capable.
yes and no, it works in that the plugin is available, but you can't do UDP nor TCP in html5, so UDP is just not supported and TCP maps to websocket with luasocket. Basically forget luasocket for HTML5 except if you know your server is websocket capable.
Or there's built-in functionality in Facebook API for basic PVP multiplayer?
> Newcomers roadmap: from where to start learning Gideros "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
> Newcomers roadmap: from where to start learning Gideros "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
Has the LuaSocket plugn changed recently? I had NoobHub working with a login/chat system and it worked just fine with TCP/IP.
I'm testing NoobHub, everything works fine. (I've connected to @Overtorment 's test VPS, didn't setup my own server yet)
> Newcomers roadmap: from where to start learning Gideros "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
That says where the new repository is that google wants (in order to find 12.0.1, etc).
If you don't have that then try downloading and installing 2018.6.3 again as I remember for a few hours there was a version available without that fix (it also showed as 2018.6.3).
Be careful as there is also a build.gradle file in C:\Program Files (x86)\Gideros\Templates\AndroidStudio\Android Template so don't change that one.
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
That says where the new repository is that google wants (in order to find 12.0.1, etc).
If you don't have that then try downloading and installing 2018.6.3 again as I remember for a few hours there was a version available without that fix (it also showed as 2018.6.3).
Be careful as there is also a build.gradle file in C:\Program Files (x86)\Gideros\Templates\AndroidStudio\Android Template so don't edit that one.
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
Comments
Likes: Apollo14
Likes: Apollo14
https://deluxepixel.com
Likes: Apollo14
Likes: SinisterSoft, antix
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
In my console I just get:
Number of tests: 10000000
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
Likes: SinisterSoft
If anyone else wants to write some blog posts to help others then please get in touch and I'll add access for you.
https://deluxepixel.com
https://deluxepixel.com
P. S. It seems that we should avoid standard math library at all costs. It's almost 3x slower, although code may look cute, compared to other variants.
Also in some Lua tutorials it is said that localizing math library is helpful, but it didn't make significant difference in this case (neither localizing math. inside function or loop (keepInRange4,keepInRange5), nor localizing it in the beginning of a 'main.lua' file)
Likes: SinisterSoft
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
https://deluxepixel.com
https://deluxepixel.com
in the previous version of gideros there is no such error
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Gideros 2018.6.3 -error ads plugin
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Seems like your AdsAdmob.java file is corrupted around line 432.Just checked, it is fine here with 2018.6.3EDIT: Looking closer at the error log you have, you are using an outdated version of admob libs
admob libs are not updated with gideros?
how to update them?
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
@SinisterSoftHow did you upgrade to 12.0.1?
edit: crutch...
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
https://github.com/gideros/gideros/issues/394
I guess this will go out in the next Gideros version.
Likes: oleg
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
Likes: Apollo14
(like this one? https://github.com/lance-gg/lance )
Or there's built-in functionality in Facebook API for basic PVP multiplayer?
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
https://github.com/gamestdio/colyseus
(it already supports html5 Defold and Construct)
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
my android studio updates only to 11.0.4
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
(I've connected to @Overtorment 's test VPS, didn't setup my own server yet)
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
Google changed the location where the files for google play were grabbed from. You may have an old version of the gradle build file, look at this:
C:\Program Files (x86)\Gideros\Templates\AndroidStudio\Android Template\app
You will see a build.gradle file, edit it (it's a text file) and it should have this section:
If you don't have that then try downloading and installing 2018.6.3 again as I remember for a few hours there was a version available without that fix (it also showed as 2018.6.3).
Be careful as there is also a build.gradle file in C:\Program Files (x86)\Gideros\Templates\AndroidStudio\Android Template so don't change that one.
Likes: Apollo14
https://deluxepixel.com
Google changed the location where the files for google play were grabbed from. You may have an old version of the gradle build file, look at this:
C:\Program Files (x86)\Gideros\Templates\AndroidStudio\Android Template\app
You will see a build.gradle file, edit it (it's a text file) and it should have this section:
If you don't have that then try downloading and installing 2018.6.3 again as I remember for a few hours there was a version available without that fix (it also showed as 2018.6.3).
Be careful as there is also a build.gradle file in C:\Program Files (x86)\Gideros\Templates\AndroidStudio\Android Template so don't edit that one.
Likes: oleg
https://deluxepixel.com