Search found 45 matches

by Imagic
Wed May 29, 2024 11:25 am
Forum: Support and Development
Topic: Garbage Collector and FFI
Replies: 23
Views: 7715

Re: Garbage Collector and FFI

Hi, Reading the thread it is likely that you are affected by LuaJIT issue#1167 . Unfortunately the interaction between the Lua and C semantics through the FFI is not trivial. You can try the proposed workarounds to force the JIT compiler analysis (or in general the VM) to see the object as used unti...
by Imagic
Fri Aug 11, 2023 4:17 pm
Forum: Games and Creations
Topic: Grumpy NES emulator
Replies: 23
Views: 38129

Re: Grumpy NES emulator

Thanks for the update. I found a repository with the MoonScript sources, but it doesn't have the amount of documentation I was hoping for, and maybe not the latest improvements too. Apparently there were desires to remove projects and contributions from the author, thus it's not as interesting to lo...
by Imagic
Fri Aug 11, 2023 7:26 am
Forum: Games and Creations
Topic: Grumpy NES emulator
Replies: 23
Views: 38129

Re: Grumpy NES emulator

Hi, I'm interested in understanding/improving the performance issue, but it seems the repository has been removed. As a general solution to the JIT limitations I tend to use rudimentary dynamic compilation on top of it, i.e. to dynamically produce Lua code that can be more easily JIT compiled. But I...
by Imagic
Mon Jul 17, 2023 3:30 pm
Forum: Libraries and Tools
Topic: love-webp - WebP library [archived]
Replies: 12
Views: 17048

Re: love-webp - WebP library

Hi, I don't have the knowledge to easily and confidently build a shared library for Android, if that is even desirable. If you are already building LÖVE for the app, building WebP should probably be part of that process. Also, I am no longer working on that project; I archived it on GitHub. If I wor...
by Imagic
Sat Jan 08, 2022 5:13 pm
Forum: Libraries and Tools
Topic: ELProfiler - statistical/sampling profiler
Replies: 4
Views: 10540

Re: ELProfiler - statistical/sampling profiler

Now that LÖVE 11.4 is released and uses LuaJIT 2.1, this library should no longer be used. Here is the result with the built-in profiler with the same parameters by adding at the top of main.lua: require("jit.p").start("lv") 46% world.lua:193 <- 97% Garbage Collector <- 3% Compil...
by Imagic
Thu Nov 18, 2021 4:50 pm
Forum: Libraries and Tools
Topic: Luaoop - OOP library
Replies: 1
Views: 11940

Re: Luaoop - OOP library

Released 2.0.

Complete rework based on the xtype library, now a dependency.
It solves previous limitations, correctly handles inheritance and simplifies everything.
by Imagic
Thu Nov 18, 2021 4:41 pm
Forum: Libraries and Tools
Topic: Luaseq - Asynchronous helper library
Replies: 9
Views: 18923

Re: Luaseq - Asynchronous helper library

"Real" doesn't mean much. Lua coroutines are VM threads, and what are commonly called threads are system threads. Those mutexes are for VM threads, where there is concurrency, but not at the same level. E.g. think about a computer where there are system threads, but a single core, no instr...
by Imagic
Thu Nov 18, 2021 3:25 pm
Forum: Libraries and Tools
Topic: Luaseq - Asynchronous helper library
Replies: 9
Views: 18923

Re: Luaseq - Asynchronous helper library

Released version 1.1.

It features better error propagation and mutexes.
by Imagic
Sat Jan 02, 2021 2:37 pm
Forum: General
Topic: Optimization Stuff
Replies: 40
Views: 50866

Re: Optimization Stuff

We can't just say that "Lua is slow by design" or "C is fast by design". There is a lot of work involved to make something fast, from the highest to lowest levels, from compiler developers to game developers. And being fast is not the only relevant thing; in fact, most of the cod...
by Imagic
Sun Dec 27, 2020 1:38 am
Forum: General
Topic: Optimization Stuff
Replies: 40
Views: 50866

Re: Optimization Stuff

I want to add something which seems to be lacking when speaking about optimizations and not the regular not subtle "you should not think about optimization". Optimizing is complicated. It's not just about the complexity of the optimization in itself, it's also about the heuristic behind it...