Previous day | Jump to hour: 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | Next day

Seconds: Show Hide | Joins: Show Hide | View raw
Font: Serif Sans-Serif Monospace | Size: Small Medium Large

Click in the nick column to highlight everything a person has said.
The Logo icon identifies that the person is a core developer (has commit access).

#rockbox log for 2021-03-20

00:04:13_bilgus_dconrad interested in lua?? :)
00:06:02dconradhah, I only know I've seen the word lua before, that's the extent of my knowledge
00:06:13dconradsome kind of webdev thing
00:07:40_bilgus_nah its a scripting language
00:08:19dconradwell shows how much I know XD
00:08:25_bilgus_they use it a lot for allowing users to change configurations in games
00:08:44_bilgus_but here its kinda been twisted to our will with our own extensions
00:10:09_bilgus_its not particularly a favorite of mine I just picked up the port because I see it as a way to let the users make their own stuff anyways looking for example scripts or even fully fledged
00:10:25_bilgus_I have a few in demos/lua_scripts
00:10:36_bilgus_the menu is created in lua aswell
00:10:59_bilgus_anyways its kinda fun and always looking to rope in help :P
00:11:29dconradhaha I see, well I'll take a peek and see if I can get the gist
00:12:27_bilgus_theres also some black voodoo stuff that allows it to scan the source files and create memory maps of rockbox internals
00:12:37_bilgus_but I wouldn't start with that
00:13:25_bilgus_the metadata dumper and the settings dumper uses that
00:13:44_bilgus_oh also Boomshine in games its lua
00:14:26_bilgus_and even a hex viewer
00:16:29_bilgus_print_lua_func will spit out a file that shows all the commands available
00:24:56***Saving seen data "./dancer.seen"
00:25:35 Quit dconrad (Quit: Connection closed)
00:45:00 Quit JanC (Remote host closed the connection)
00:45:23 Join JanC [0] (~janc@lugwv/member/JanC)
00:46:45 Quit ac_laptop (Ping timeout: 256 seconds)
01:39:22 Quit massiveH (Quit: Leaving)
02:24:57***Saving seen data "./dancer.seen"
03:05:56 Join bertrik [0] (~bertrik@rockbox/developer/bertrik)
04:15:04 Quit APLU (Ping timeout: 258 seconds)
04:21:17 Join APLU [0] (
04:25:00***Saving seen data "./dancer.seen"
05:09:53 Join lebellium [0] (
05:37:55 Join TheLemonMan [0] (~lemonboy@irssi/staff/TheLemonMan)
05:37:57 Quit jdarnley (Ping timeout: 256 seconds)
05:46:02 Join J_Darnley [0] (
06:25:02***Saving seen data "./dancer.seen"
08:02:30 Quit Galois (Ping timeout: 256 seconds)
08:21:46 Join jdarnley [0] (
08:23:15 Quit J_Darnley (Ping timeout: 246 seconds)
08:25:03***Saving seen data "./dancer.seen"
09:41:41 Join ac_laptop [0] (~ac_laptop@
10:25:06***No seen item changed, no save performed.
11:13:06 Join calebccff [0] (
11:13:06calebccffOh damn I didn't realise how much rockbox uses lua
11:13:51braewoodsit generally doesn't
11:14:05braewoodsaside from some scripting examples i've not seen it used
11:14:15calebccffoh aha, nonethless it's cool that it's there as an option
11:14:23calebccffRather than having to write bare metal C
11:14:28 Join cereal_eater [0] (
11:23:47 Quit cereal_eater (Quit: Connection closed)
11:26:25_bilgus_lua hasn't fully been integrated into the core but its come a long way
11:28:36_bilgus_I really need a way to load pre-compiled modules which I saw a ram overlay method in the imageviewer plugin that might be a way forward
11:35:34braewoods_bilgus_: dlopen for rockbox?
11:47:00 Quit Saijin-Naib (Read error: Connection reset by peer)
12:06:23 Join Saijin_Naib [0] (
12:10:29_bilgus_another way is to put the bytecode compiler in a separate plugin and turn it into a loader I can run stuff compiled locally there just isn't any reason to currently
12:12:43_bilgus_so I think the way I might do it is do the compile figure out which modules are needed and have several plugins chosen at runtime that fit the needs of the script
12:13:32_bilgus_overlay it in the ram and use the rest as ram for the script
12:25:07***Saving seen data "./dancer.seen"
12:52:18braewoods_bilgus_: i've heard some people using duktape
12:52:30braewoodsbut that's JS and no idea how good its memory footprint is
12:55:36 Join J_Darnley [0] (
12:56:52braewoodsbut in this day and age
12:57:00braewoodsJS might make more sense due to how common it is
12:57:13braewoodsbut i dunno, replace lua with a JS implementation?
12:57:16braewoodshow does it compare?
12:57:18 Quit jdarnley (Ping timeout: 246 seconds)
13:04:05calebccffI think JS takes a LOT more overhead
13:11:50braewoodsmaybe so
13:11:58braewoodsi just know interpreted languages are always going to be slower
13:14:59calebccffyeah definitely
13:16:30_bilgus_work could be put into porting lua-jit JS is not a good idea on embedded me thinks
13:17:15braewoodsdespite its flaws lua is usually the most resource efficient
13:17:37_bilgus_especially once you gut the floats
13:18:26_bilgus_it could also use some asm for the OP code switch and eek out a bit more
13:19:49_bilgus_but there are lots of mods to the port now I had moved to 5.3 originally but it had way worse memory needs
13:20:10_bilgus_no sorry 5.2
13:20:19calebccffThere'd probably be a lot of benefit to getting newer GCC working to be fair, although that's a whole different kettle of fish :P
13:20:19braewoodsis 5.3 better?
13:21:26_bilgus_I cherry picked from 5.2 to do some of the things I wanted and added some ideas from elua
13:22:22_bilgus_I added all the graphics stuff and more and still ended up with more memory free than the initial 5.2 implementation I ported
13:24:14_bilgus_the jump between lua ad C and back that context switch is the big bottleneck in lua
13:25:27_bilgus_(at least in rockbox land)
13:31:01braewoodsmakes me wonder if TCL would use too much ram
13:31:48braewoodsbut in any case it's probably going to remain a novelty
13:32:08braewoodsit's not a good choice for serious code due to the limited resources of what we're writing code for
13:36:12_bilgus_380 kb free after loading a simple memory check script on the clip zip
13:36:32_bilgus_it starts at ~ 550 kb
13:37:50_bilgus_but it also has the option to tke over the playback buffer
13:38:03_bilgus_then its sitting at 1.5 meg or so
13:38:54_bilgus_I added some of the lua emergency garbage collector and it will only take over the playback buffer once the plugin buffer is so fragged or so full it can't alloc
14:10:26 Join MrZeus [0] (~MrZeus@
14:25:08***Saving seen data "./dancer.seen"
14:41:24 Quit JanC (Read error: Connection reset by peer)
14:41:44 Join JanC [0] (~janc@lugwv/member/JanC)
14:48:48 Quit MrZeus (Ping timeout: 245 seconds)
15:05:39 Quit TheLemonMan (Quit: "It's now safe to turn off your computer.")
15:30:10 Join jdarnley [0] (
15:31:43 Quit J_Darnley (Ping timeout: 245 seconds)
16:25:10***Saving seen data "./dancer.seen"
16:48:41 Quit calebccff (Quit: Idle timeout reached: 10800s)
17:33:14 Quit ufdm (Read error: Connection reset by peer)
18:10:20 Join cereal_eater [0] (
18:11:44 Quit jdarnley (Ping timeout: 240 seconds)
18:15:29 Join ufdm [0] (
18:16:13 Join J_Darnley [0] (
18:20:42 Quit cereal_eater (Ping timeout: 240 seconds)
18:25:12***Saving seen data "./dancer.seen"
19:05:29 Join MrZeus [0] (~MrZeus@
19:13:02 Quit lebellium (Quit: Leaving)
19:28:18 Join S|h|a|w|n [0] (~shawn156@unaffiliated/shawn156)
19:54:55 Join massiveH [0] (
19:58:04 Join ufdm_ [0] (
19:58:04 Quit ufdm (Read error: Connection reset by peer)
20:20:21 Join cockroach [0] (~blattodea@pdpc/supporter/active/cockroach)
20:25:16***Saving seen data "./dancer.seen"
20:56:08 Join advcomp2019 [0] (~advcomp20@unaffiliated/advcomp2019)
20:58:56 Quit advcomp2019__ (Ping timeout: 240 seconds)
21:05:53 Join Galois [0] (
21:10:37 Quit Huntereb (Ping timeout: 265 seconds)
21:11:34 Join Huntereb [0] (
21:18:08 Quit Huntereb (Ping timeout: 240 seconds)
21:21:05 Join Huntereb [0] (~Huntereb@2603:9001:5a04:bbe7::69)
21:33:33 Quit MrZeus (Ping timeout: 264 seconds)
21:52:57 Quit S|h|a|w|n (Read error: Connection reset by peer)
22:06:27 Quit Acou_Bass (Quit: ZNC 1.8.2 -
22:09:07 Join Acou_Bass [0] (
22:25:18***Saving seen data "./dancer.seen"
22:28:06 Quit cockroach (Quit: leaving)
22:35:42 Join charliebrown [0] (
22:36:38 Nick charliebrown is now known as charlie_brown (
22:36:51 Quit charlie_brown (Client Quit)
22:38:14 Join orangejuice365 [0] (
23:20:06 Join f1reflyylmao [0] (
23:22:03 Quit f1refly (Ping timeout: 246 seconds)
23:22:03 Nick f1reflyylmao is now known as f1refly (
23:26:00orangejuice365I was wondering if someone can point me towards how to get graphics with transparency working? I notice 'Flipit' bitmaps use a pink background and I'm assuming that it shows transparent on grayscale screens?
23:26:00orangejuice365Also would SDL run on the iPod Mini?
23:32:02 Quit ufdm_ (Quit: Leaving)

Previous day | Next day