New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/joshkunz/lmr

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/joshkunz/lmr

  • v0.0.0-20240210065221-bd4732b3d9eb
  • Source
  • Go
  • Socket score

Version published
Created
Source

LMR: Little MapReduce (or Local MapReduce)

lmr is a tool for executing MapReduce-shaped tasks on a workstation. It's similar to tools like xargs or parallel but provides a bit more structure around job execution, failure handling, caching, and output management.

LMR is currently experimental, and may undergo significant API changes before a proper v1 release. Depend on it at your own risk.

Reference

Mapper Protocol

A mapper is provided as the first argument, and is required. A mapper can be a binary on the PATH, any executable file, or a shell command. The mapper is executed for each input chunk. The chunk is provided on stdin. By default any mapper stdout is grouped under a "default" key. Additional outputs keys can be created by writing to files in the "results" dir. This directory is provided to the mapper script in the LMR_RESULTS_DIR environment variable. For example, executing echo ... > $LMR_RESULTS_DIR/foo would produce an output with the foo key.

Roadmap

  • Mapper
    • Better error messages on stage failure
    • Configurable parallelism
    • Optional Resubmission
    • Chunk output caching
      • Cache management commands
      • Configurable Cache Size
    • Progress Bar
    • Performance stats on map stages
  • Reducer
    • Keyed output protocol. E.g. what happens when there are multiple keys?
    • Script reducer
    • Canned reducers
      • Concat + custom separator
      • Json Array
      • sum
  • Project
    • Code Health
      • CI
      • Tests
      • Lints
      • Separate Modules
    • Example in docs
    • Binary builds

FAQs

Package last updated on 10 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc