This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby --yjit | |
WORKER_THREADS = 4 | |
CHUNK_SIZE = 2**16 | |
# BUG: my city struct is being corrupted when moving from the worker to the main ractor. | |
# `#<struct City min=-11.3, tot=24088.30000000004, max=64.6, n=1164>` becomes | |
# `#<struct City min=-11.3, tot=24088.30000000004, max=64.6, n=nil>`, note that each `n` attribute becomes `nil`. | |
# https://bugs.ruby-lang.org/issues/20165 | |
# I tried changing the Struct to a simple array and still using `move: true`, |