c3c icon indicating copy to clipboard operation
c3c copied to clipboard

Make hot reloading work

Open lerno opened this issue 10 months ago • 3 comments

A problem with hot reloading is that the dynamic lookup tables will point to the wrong thing.

This could be solved by having a way to locate them and repatch them.

lerno avatar Feb 14 '25 11:02 lerno

Also, it would be nice to have a simple caching of full stdlib object files, they got rebuilt every time I run c3c test/run/etc. I think it takes a major part of compilation time.

alexveden avatar Feb 14 '25 16:02 alexveden

Please also consider another case of hot reloading - LSP syntax/error checks. It would be great to have kinda compilation c3c server, which holds parsed std lib and maybe a project files in memory. So the LSP server could send changes to a c3c server for syntax checks via stdin, and get results via stdout.

Currently, c3c run parsing on full stdlib and project at each run.

alexveden avatar Feb 18 '25 07:02 alexveden

Those are different concerns @alexveden

lerno avatar Mar 10 '25 09:03 lerno