
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
raskell
Advanced tools
Usage:
Reminder: Lambdas can be applied with [*args] notation and .() is syntactic sugar for .call()
f = ->(x) { x + 2 }
f[1] , f.(1), and f.call(1) all evaluate as 3
Lambdas can be partially applied, yielding a new lambda, with call
plus = ->(x,y) { x + y }
plus10 = plus.(10) ## or plus[10]
plus10.(20) evaluates as 30
Lambda Composition with * (right-associative) ( (f * g * h).(x) == f.(g.(h.(x))))
times10 = ->(x) { x * 10 }
minus3 = ->(x) { x - 3 }
double = ->(x) { x * 2 }
(times10 * minus3 * double).(5) evaluates as 70
(double * minus3 * times10).(5) evaluates as 94
Lambda Pipelining with | (left-associative) (f | g | h).(x) == h.(g.(f.(x)))
(times10 | minus3 | double).(5) evaluates as 94
(double | minus3 | times10).(5) evaluates as 70
Lambda Tupling with + (associative)
(times10 + minus3 + double).(5) evaluates as [50, 2, 10]
Objects, when called, act like constant functions that throw away any values applied to them
5.(1,2,3,[4,7]) evaluates to 5
Arrays, when called, map across themselves calling each element with the arguments it was called with
[times10, minus3, double].(5) evaluates to [50, -15, 10]
[plus, times10, 3].(0,1) evaluates to [1, 0, 3]
Note that [plus,times10,3][0,1] evaluates to [plus], not [1, 0, 3], so be careful where you use func[] as shorthand func.() or func.call()!
Streams, when called, map across themselves calling each element with the arguments it was called with
[times10, minus3, double].to_stream.(5).to_a evaluates to [50, -15, 10]
[plus, times10, 3].to_stream.(0,1) evaluates to [1, 0, 3].to_stream
Note that [plus,times10,3].to_stream[0,1] evaluates to [plus].to_stream, not [1, 0, 3].to_stream, so be careful where you use func[] as shorthand func.() or func.call()!
Preface any collection function with F. to call that particular function
F.map.(times10 * plus10).([1,2,3]) evaluates as [100, 200, 300]
Available Operators to Overload in Ruby
(unary) !, ~, +, -
(binary)
**, *, /, %, +, -, <<, >>, &, |, ^, ||, &&
=, +=, *=, -=,
<, <=, >=, >, ==, ===, !=, =, !, <=>
[],[]=
Using in Raskell so far [], *, **, ^, |, &, +, %, <<, >>
=~ and !~ will be good for later when I have 'regular expressions' over arbitrary asterated semirings - then i can match if the data, path, whatever matches a regex of allowable types - this gives us a powerful form of type constraint for free
FAQs
Unknown package
We found that raskell demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.