{"id":20372832,"url":"https://github.com/sidmishraw/lambda-transportation-proto","last_synced_at":"2026-06-01T03:31:56.763Z","repository":{"id":86400597,"uuid":"103082363","full_name":"sidmishraw/lambda-transportation-proto","owner":"sidmishraw","description":"Simple prototype for lambda transportation","archived":false,"fork":false,"pushed_at":"2017-09-11T17:18:43.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-09T15:23:49.903Z","etag":null,"topics":["java8","lamda","poc","seralization","transport"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/sidmishraw.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":"2017-09-11T02:49:58.000Z","updated_at":"2017-09-11T02:51:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"1322e158-6d6d-41d7-b6c0-cf53f83a9ce7","html_url":"https://github.com/sidmishraw/lambda-transportation-proto","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sidmishraw/lambda-transportation-proto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidmishraw%2Flambda-transportation-proto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidmishraw%2Flambda-transportation-proto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidmishraw%2Flambda-transportation-proto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidmishraw%2Flambda-transportation-proto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sidmishraw","download_url":"https://codeload.github.com/sidmishraw/lambda-transportation-proto/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidmishraw%2Flambda-transportation-proto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33759178,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["java8","lamda","poc","seralization","transport"],"created_at":"2024-11-15T01:15:11.701Z","updated_at":"2026-06-01T03:31:56.739Z","avatar_url":"https://github.com/sidmishraw.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Expriment to check the serialization of lambdas in Java\n\nMoving the functionality around with the objects.\n\nTo run the simulation:\n\n`java -jar test_lambda.jar cr \u003cobject-name\u003e`\n\nCreator:\n```\nSidharths-MBP:Desktop sidmishraw$ java -jar test_lambda.jar cr ob1.pp\nArgs length = 2\nWriting the object to file\nWrote the object to file! Now sleeping for 30s\nDone!\nSidharths-MBP:Desktop sidmishraw$\n``` \n\n`java -jar test_lambda.jar co \u003cobject-name\u003e`\n\nConsumer:\n```\nSidharths-MBP:Desktop sidmishraw$ java -jar test_lambda.jar co ob1.pp\nArgs length = 2\nWaiting 1 minute before reading in the serialized object\nStarting!...\nRead in the object with the object Id:Sid#0001\nExecuting the object's lambda\nFROM Inside Lambda:: Sid#001's lambda is executing\nLambda execution complete\nDone!\nSidharths-MBP:Desktop sidmishraw$\n```\n\n\n## Update#1\n\nUsing the embedded Javascript engine to transport logic for the various agents/objects seems to be a better and more powerful option than serializing and deserializing lambdas.\n\nTo illustrate this, lets refer to the script engine invocation in `io.sidmishraw.core.MainDriver.scriptIt` method. It uses the Nashhorn JS embedded engine to execute the JS script.\n\nThe `StandardLambdaObject` takes reads in the contents of the script from a file named `lamda.js` and saves it inside as a strin which is then saved in the serialized object file.\n\nWhen the other process reads from the object file, it can get the script from the object and send it to the embedded engine to execute the script and doing what was expected from the lambda.\n\nSample output:\n```\nsidmishraw@Sidharths-MacBook-Pro ~/Desktop\u003e \njava -jar test_lambda2.jar cr myLambda3\nArgs length = 2\nTesting out ScriptEngineClass\nWriting the object to file\nWrote the object to file! Now sleeping for 30s\nDone!\nsidmishraw@Sidharths-MacBook-Pro ~/Desktop\u003e \njava -jar test_lambda2.jar co myLambda3\nArgs length = 2\nTesting out ScriptEngineClass\nWaiting 1 minute before reading in the serialized object\nStarting!...\nRead in the object with the object Id:Sid#0001\nThis is being called from within the script with the message:: Hey there from within my JS script I say hello world!\nOver and out!\n\n\n\nLambda execution complete\nDone!\nsidmishraw@Sidharths-MacBook-Pro ~/Desktop\u003e \n```\n\n   ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidmishraw%2Flambda-transportation-proto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsidmishraw%2Flambda-transportation-proto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidmishraw%2Flambda-transportation-proto/lists"}