![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Exploring the potential benefits of implementing APIs in the style of the Actor Model, even in single-threaded programming environments such as Javascript.
ActorSystem
createSystem()
system.actorOf(IActorFactory) -> ActorRef
Actor
actor.tell()
- fire & forget messageactor.ask()
- ask & await async response from an actoractor.stop()
- send a message instructing an actor to terminateActorContext
context.stop(IActorRef)
- allow an actor to be stopped via a refcontext.gracefulStop(IActorRef)
- allow an actor to be stopped via a ref with confirmation (for sequencing etc)context.actorOf(IActorFactory)
- allow an actor to create more actorscontext.parent
- allow an actor to access it's parent (in order to send it messages)context.self
- allow an actor to access it's own ref (in order to send it's self messages)context.become(newHandler)
- designate a new handler for future messages http://doc.akka.io/docs/akka/current/scala/actors.html#Graceful_Stopcontext.actorSelection(lookup: string)
- allow actor lookups via paths, such as /system
/deadletter
etc receive(payload, message, sender)
sender.reply()
for replying directly to a message
mappedMethods
define 1 function per message name
handle cancellation of pending message should a new one override it
pass state into mapped methods for encapsulated state management
sender
- allow every message access to an ActorRef that allow communication with the sender
receive (payload message sender)
switch payload
case 'ping' sender.reply 'pong'
default sender.reply 'missing'
// callsite
actor.ask 'ping'
|> resp console.log 'resp:' + resp
actorOf(...)
Stop
, context.stop()
or PoisonPill
Terminated
is sent to watchersbecome()
- designate a new handler for future messagesactorOf()
only ever creates a new actor, and it creates it as a direct child of the context
on which this method is invoked (which may be any actor or actor system)./deadletters
all messages sent to stopped or non-existing actors are re-routed here/system
is the guardian actor for all system-created top-level actors, e.g. logging
listeners or actors automatically deployed by configuration at the start of the actor system.FAQs
Actor model (style) API in JS
The npm package aktor-js receives a total of 0 weekly downloads. As such, aktor-js popularity was classified as not popular.
We found that aktor-js 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.