{"id":20608927,"url":"https://github.com/tpunt/imagex","last_synced_at":"2025-06-23T08:41:52.145Z","repository":{"id":82886181,"uuid":"56152352","full_name":"tpunt/imagex","owner":"tpunt","description":null,"archived":false,"fork":false,"pushed_at":"2016-04-13T13:25:30.000Z","size":967,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-17T03:13:49.868Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tpunt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-13T13:04:06.000Z","updated_at":"2017-12-06T11:41:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"6e3b0161-cefd-4d02-9fd7-5c41bb197f26","html_url":"https://github.com/tpunt/imagex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpunt%2Fimagex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpunt%2Fimagex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpunt%2Fimagex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpunt%2Fimagex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpunt","download_url":"https://codeload.github.com/tpunt/imagex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242256402,"owners_count":20097969,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T10:12:15.769Z","updated_at":"2025-03-06T17:41:22.674Z","avatar_url":"https://github.com/tpunt.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Imagex\n\nThis library enables for fractals to have their workload sliced into different\norientations, where each chunk is run in a separate process. See the\n[About](about) section for information on what it can do.\n\nWhilst the functionality is basically complete, there's still a lot more work\nthat needs to be done, including:\n - Testing\n - Documentation\n - Code cleanup\n - More examples with better information\n - ...\n\nExposed APIs will most likely change, so do not rely on it yet...\n\n\n## Installation\n\nFetch the code from this repo - installation via Hex is not available yet...\n\n\n## About\n\nThis library schedules processes to run each chunk a fractal has been divided\ninto. It enables for the following slicing modes:\n\n`:horizontal` slicing:\n\n![horizontal slicing](docs/mandelbrot_h.png)\n\n`:vertical` slicing:\n\n![vertical slicing](docs/mandelbrot_v.png)\n\n`{:grid, :horizontal}` slicing:\n\n![grid horizontal slicing](docs/mandelbrot_gh.png)\n\n`{:grid, :vertical}` slicing:\n\n![grid vertical slicing](docs/mandelbrot_gv.png)\n\n\n## Usage\n\nHere's a simple script that runs the mandelbrot algorithm (from my Exmbrot\nlibrary, to be released) on 2, 4, 8, 16, 32, 64, and 128 processes for all slicing modes:\n```elixir\n1..7\n|\u003e Enum.map(\u0026(round(:math.pow(2, \u00261))))\n|\u003e Enum.map(fn chunks -\u003e\n    imagex_processor = struct(Imagex.Processor, [chunks: chunks,\n      slice_mode: {:horizontal},\n      image_width: 2048,\n      image_height: 2048,\n      cutoff: 100])\n\n    {time1, _} = :timer.tc(Imagex.Processor, :run, [imagex_processor, Exmbrot, :task])\n    {time2, _} = :timer.tc(Imagex.Processor, :run, [%{imagex_processor | slice_mode: {:vertical}}, Exmbrot, :task])\n    {time3, _} = :timer.tc(Imagex.Processor, :run, [%{imagex_processor | slice_mode: {:grid, :horizontal}}, Exmbrot, :task])\n    {time4, _} = :timer.tc(Imagex.Processor, :run, [%{imagex_processor | slice_mode: {:grid, :vertical}}, Exmbrot, :task])\n\n    IO.puts \"#{time1}\\t#{time2}\\t#{time3}\\t#{time4}\"\n  end)\n```\n\nFormatted output of run times (with process count down the left and slicing mode\nalong the top):\n\n![run times](docs/mandelbrot_run_times.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpunt%2Fimagex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpunt%2Fimagex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpunt%2Fimagex/lists"}