-
Notifications
You must be signed in to change notification settings - Fork 643
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
All Crystal frameworks are using a now deprecated function #6443
Comments
Thanks for catch up @jeremyevans, we definitely need to upgrade codebase. Could also be great to have some warning on deprecation (I mean using CI or else) |
@jwoertink @waghanza I made #6558 to test using this approach. I currently use this for a small binary that needs to trigger multiple child processes. Unfortunately I couldn't get the test suite to run on my local machine because |
Could just ignore it, it's only deprecated so not like its going anywhere anytime soon. Maybe by the time Crystal 2.0 comes around, MT support will be better supported and can just leverage that. Might even work already, but haven't did much with it yet. Plus multi process doesn't have the same overhead so iirc gives better perf anyway. |
Spider-gazelle already supports non-forked clustering, replacing this line with:
(and threads if built with threading enabled - although then you'd want to disable clustering) |
@jwoertink I switched the Amber benchmark to use https://github.com/the-benchmarker/web-frameworks/blob/master/crystal/amber/src/amber.cr |
As of Crystal 1.8,
Process.fork
is now deprecated https://github.com/crystal-lang/crystal/blob/master/CHANGELOG.md#180-2023-04-14Here's the PR where it was deprecated.
All of the current Crystal frameworks use these lines in order to spin up multiple processes for speed.
web-frameworks/crystal/lucky/src/lucky.cr
Lines 12 to 13 in f4fb1bc
web-frameworks/crystal/toro/src/toro.cr
Lines 23 to 24 in f4fb1bc
Since Crystal 1.8 deprecates this, and Crystal 1.9 could potentially remove it, we may need to find a new way to test all of these.
The text was updated successfully, but these errors were encountered: