Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experimental daemon support + some polish #13

Merged
merged 15 commits into from
Oct 31, 2023
Merged

Experimental daemon support + some polish #13

merged 15 commits into from
Oct 31, 2023

Conversation

Altoids1
Copy link
Owner

Changelog

  • João can now be run as a daemon on Linux! This requires compilation in Safe Mode.
  • Fixed several bugs in Safe Mode, and tweaked the max values to improve its usability.
  • Modified compilation to use a precompiled header, to (maybe?) reduce compilation times.
  • João now tends to have /main output JSON encodings of its return value, to improve its usefulness in a pipeline context.

The full I/O loop isn't here yet, but it does actually fork and then do an IO block to wait for input from its input pipe. Very cute c:
:^)

I might need to do a lot of work to modify how emissions are done >:/
Thanks Meson, love you babe
Kinda buggy, but actually pretty important for handling how the Daemon interfaces with other things.
Basically just avoids double-accessing to check that a value is available or not in a couple relevant hashtables.

Performance improvement is negligible in simple programs, and up to 5% improvement in object-heavy code.
Also gives HashTable a new method: empty()! He's so grown up <3
:^)

There's still more warnings, but this should make finding compile errors a lot less of a hassle!
This is a surprise tool that will help us later :^)
Looks like something caused this to be a weird crash, instead of a peaceful exit out of the program. Strange!
@Altoids1 Altoids1 merged commit 7684e57 into main Oct 31, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant