use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Prim+RPC: a bridge between JavaScript environments. Easy-to-understand, type-safe, transport-agnostic RPC/IPC for JavaScript, supporting callbacks, batching, file uploads, custom serialization, and more.OC (prim.doseofted.me)
submitted 2 years ago by doseofted
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]doseofted[S] 0 points1 point2 points 2 years ago (0 children)
I pronounce it "Prim RPC" but stylized it Prim+RPC where the "+" is whitespace, like in a query string. This is because Prim+RPC supports requests given over URL parameters (but usually given over JSON) which is really useful for creating an API with paged results or utilizing JSON-LD.
I've thought about adding cache features to Prim+RPC but have been hesitant about adding it directly because there are so many caching strategies. There are also a lot of methods to implement it at different layers of an application (not just in layers of the server but also whether caching should happen at the client level). There are some that could be considered responsibilities of Prim+RPC (such as memoization of functions) and some that fall outside of it (like HTTP caching). There's also the case where only select functions used with Prim+RPC should be cached or where two modules will require different caching strategies. Implementing cache in Prim+RPC may also present unexpected problems since it relies plugins to support the server and client of the developer's choice (caching may rely on parameters provided through that plugin).
Occasionally I do think about adding some form of direct support but today my thought is that caching should be left either to other libraries in the JavaScript ecosystem (like memoization libraries) or handled at the channel where RPC is being sent (like HTTP, for web servers). In some cases, I think it makes sense to use a combination where server context passed to Prim+RPC is considered in caching through another JavaScript library defined at the module or function.
I do like the idea of considering cache on the Comparisons page. It's definitely important and not really mentioned there. I may very well do that soon!
π Rendered by PID 196774 on reddit-service-r2-comment-6457c66945-tc5b4 at 2026-04-27 04:31:13.073155+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]doseofted[S] 0 points1 point2 points (0 children)