Better HN
topnewbestaskshowjobs
Log inSign up

ivan7237d

11 karma · joined Jan 25, 2017 (9y ago) · 15 submissions

Submissions

comment 2mo ago · link · parent

As an aside: isn't there something liberating about small primitives like Observable or Signal or a Promise? You're buying into an idea, not an implementation.

2.

Show HN: With generators/DI, LazyPromise has become a tiny alternative to Effect(lazypromise.com ↗)

1 points · by ivan7237d · 2mo ago · 1 comment

comment 10mo ago · link · parent

Author here. What's pretty cool about LazyPromise is that when it's paired with Signals, you can do some of the stuff that you'd otherwise do with functional reactive programming, but you don't have to tell your team to learn RxJS or another FRP library - instead there is an API that capitalizes on the existing knowledge of the native promise.

comment 10mo ago · link · parent

Author here. Good questions.

About the two error channels: what I tried to do is to make it really easy to not use typed errors when you don't need them. In that case your promise is typed as `LazyPromise<Value, never>`.

Signals is a reactive primitive that has been initially introduced in SolidJS framework and have then made their way to other frameworks like Angular.

comment 10mo ago · link · parent

Yeah, I think this will cover the basic use-case, although the way I'd approach this is by starting with AbortSignal API and then maybe creating a wrapper around it. In a way `eager` and `lazy` functions from LazyPromise library are such wrappers.

comment 10mo ago · link · parent

Yes, do take a look, I've just added a `log` function that makes it easy to play around with lazy promises and see everything that's going on.

7.

Show HN: LazyPromise = Observable – Signals(github.com ↗)

34 points · by ivan7237d · 11mo ago · 10 comments

8.

I've used the pipe() function 2,560 times and I can tell you it's good(obvibase.com ↗)

1 points · by ivan7237d · 5y ago · discuss

comment 5y ago · link · parent

I created a library that lets you log much more information about an RxJS observable than just next/errors/completions. And it's not only about logging to the console: you can inspect log messages in unit tests. Looking forward to your feedback!

10.

Show HN: 1log, a library for logging and testing RxJS observables(obvibase.com ↗)

1 points · by ivan7237d · 5y ago · 1 comment

comment 9y ago · link · parent

Hey a quick question — which Flow extension are you using? There's the official one called "Flow Language Support" and another one called vscode-flow-ide.

UPD: sorry, I just realized you were talking about Reason, never mind.

12.

Show HN: A Chrome extension that displays number of HN comments for current page(chrome.google.com ↗)

3 points · by ivan7237d · 9y ago · discuss