{"id":16066658,"url":"https://github.com/presidentbeef/melon","last_synced_at":"2025-03-20T07:44:21.866Z","repository":{"id":10372059,"uuid":"12515521","full_name":"presidentbeef/melon","owner":"presidentbeef","description":"Application communication paradigm for MANETs (PhD project)","archived":false,"fork":false,"pushed_at":"2018-06-01T23:45:14.000Z","size":54,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-14T18:08:41.762Z","etag":null,"topics":["adhoc-networks","manet"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/presidentbeef.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-01T04:11:51.000Z","updated_at":"2019-08-29T09:38:14.000Z","dependencies_parsed_at":"2022-09-08T01:10:09.749Z","dependency_job_id":null,"html_url":"https://github.com/presidentbeef/melon","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/presidentbeef%2Fmelon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/presidentbeef%2Fmelon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/presidentbeef%2Fmelon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/presidentbeef%2Fmelon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/presidentbeef","download_url":"https://codeload.github.com/presidentbeef/melon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244574799,"owners_count":20474818,"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":["adhoc-networks","manet"],"created_at":"2024-10-09T05:42:22.288Z","updated_at":"2025-03-20T07:44:21.843Z","avatar_url":"https://github.com/presidentbeef.png","language":"Ruby","readme":"## MELON\n\nMELON is a new communication paradigm for mobile ad hoc networks (MANETs).\n\nThis library is a prototype implementation of MELON in Ruby.\n\n### Concepts\n\nConceptionally, MELON communicates via a semi-persistent shared storage space.\nMessages are retrieved by matching them against a template (similar to tuple-spaces).\nTemplates may really be any features, but in this implementation messages are arrays and they are matched using arrays with either literal values (e.g., `1`) or classes (e.g, `Integer`).\n\nMELON has two basic types of messages: read-only and take-only.\n\nRead-only messages may only be retrieved by copying, never removed from the storage space.\nThese can be considered \"broadcast\" messages.\n\nTake-only messages may only be retrieved from the storage space by removal, and only once.\n\nAll messages may only be retrieved once by a given process. Messages are retrieved in per-sender FIFO order. In other words, messages from a given sender will be retrieved in the order that sender stored them.\n\nMELON also provides bulk read and take operations.\n\n### Operations\n\n* `Melon#store` - store a take-only message\n* `Melon#write` - store a read-only message\n* `Melon#take` - retrieve a matching take-only message\n* `Melon#read` - retrieve a matching read-only message\n* `Melon#take_all` - retrieve all available matching take-only messages\n* `Melon#read_all` - retrieve all available matching read-only messages\n\nRetrieval operations are blocking by default. They will block the process until a matching message is found. To return `nil` after a best-effort search of available processes, pass `false` as the second argument.\n\nNote all retrieval methods are best effort. There is no guarantee that a matching message will be retrieved, even if it exists.\n\nGuarantees:\n\n* Each message will only be retrieved at most once per process\n* Matching messages will be retrieved in per-process FIFO order\n* Take-only messages can only be retrieved at most once\n\n### Requirements\n\n* Ruby\n\n### Installation\n\n```\ngit clone git@github.com:presidentbeef/melon.git\ncd melon\ngem build melon.gemspec\ngem install manet_melon*.gem\n```\n\n### Example Applications\n\nSee README.md in the examples directory for information about running the code examples.\n\n### Documentation\n\nSee [here](https://escholarship.org/uc/item/8md1h50q#page-82) for more details about MELON.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpresidentbeef%2Fmelon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpresidentbeef%2Fmelon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpresidentbeef%2Fmelon/lists"}