Better HN
topnewbestaskshowjobs
Log inSign up

uriva

18 karma · joined Sep 15, 2015 (11y ago) · 33 submissions

uriv.me
Submissions

1.

Show HN: ViewChat – Read real AI agent conversations instead of trace trees(view-chat.com ↗)

1 points · by uriva · 1d ago · discuss

2.

Why I Wrote Safescript(medium.com ↗)

5 points · by uriva · 6mo ago · discuss

3.

Safescript – A Language for AI Era(safescript.cc ↗)

15 points · by uriva · 6mo ago · 2 comments

4.

Anomalisa: Zero config anomaly detection with Welford's algorithm and a KV store(anomalisa.uriva.deno.net ↗)

1 points · by uriva · 7mo ago · discuss

5.

Show HN: TheAgentMail – email for AI agents with karma-based spam prevention(theagentmail.net ↗)

1 points · by uriva · 9mo ago · discuss

6.

Show HN: Kindred – Find people interested in what you're building(kindred-frontend.onrender.com ↗)

2 points · by uriva · 9mo ago · discuss

7.

Answer questions and find the most similar person to you on Earth(justlikeyou.fun ↗)

2 points · by uriva · 1y ago · discuss

comment 2y ago · link · parent

Get the convenience of a global variable, without any of the shortcomings.

Often while programming you have a need to pass in an object deep in the call stack. It can be a singleton or a special resource, such as a database handle, a browser for automated scraping, or just some value that you get early on and is needed in many places.

The common way this is handled is either by passing the value down the call stack - which is safe but highly cumbersome and results in signature duplication (i.e. the same parameters are written along the call stack), or a global variable is set - which is unsafe, hard to test and limits your ability to use the same code in different contexts, or to mock the value for testing.

This library leverages the NodeJS async_hooks API for a better solution - you can wrap an async function with an injector, and everything within the execution of this function and its constituents can access the value using a global getter function.

While the getter itself is global, the value it gets varies according to what was injected in this specific call stack.

So you get the flexibility of a global variable, with the locality of a value passed down a specific stack.

9.

Inject values to a contextual stack in JavaScript(github.com ↗)

1 points · by uriva · 2y ago · 1 comment

comment 3y ago · link · parent

Thanks I'm really glad you likes it:)

comment 3y ago · link · parent

EnglishScript - Embed natural language functions alongside your javascript code using LLMs

12.

EnglishScript – Embed natural language functions alongside JavaScript using LLMs(github.com ↗)

2 points · by uriva · 3y ago · 3 comments

13.

Securing open source requires better programming languages(uriv.medium.com ↗)

1 points · by uriva · 4y ago · discuss

14.

Doing Less – A Fix for Corporates(medium.com ↗)

1 points · by uriva · 5y ago · discuss

12