Ivan Novikov

138 posts

Ivan Novikov banner
Ivan Novikov

Ivan Novikov

@ivan7237d

NYC Katılım Ekim 2014
92 Takip Edilen76 Takipçiler
Ivan Novikov
Ivan Novikov@ivan7237d·
@jitl @johnsoncodehk With `yield *` there's again a problem that you can't re-run just the part of the gen fn after `yield *`. It's useful though for cancellation and LazyPromise supports it: #generator-syntax" target="_blank" rel="nofollow noopener">github.com/lazy-promise/l…
English
0
0
0
7
Jake 🎉
Jake 🎉@jitl·
@ivan7237d @johnsoncodehk you can do reasonable “async signal” using something like Effect.ts’s `yield *` if it’s used to resume/restore the current observer after each promise resolves. i also tried a babel plugin but it was quite slow adding a `maybeRestoreAsyncContext` around each `await`
English
1
0
0
27
Ivan Novikov
Ivan Novikov@ivan7237d·
@johnsoncodehk I guess with AsyncContext, there's still a problem that you can't re-run the part of an async function after one of the `await`s, only the whole function. Anyway, I've formalized my intuition into this library based on alien-signals, it was super fun: github.com/lazy-promise/l…
English
1
1
1
413
Johnson Chu
Johnson Chu@johnsoncodehk·
@ivan7237d Interesting idea, but async signals' core challenge is dep tracking across async boundaries. We'll need to revisit this after TC39 AsyncContext lands.
English
0
0
0
58
Richard Feldman
Richard Feldman@rtfeldman·
I understand that LLMs write prose the way they do "because training set," but who are these psychopaths in the training set that put spaces around their em dashes?
English
6
0
9
1.5K
Ivan Novikov retweetledi
Tech Bro Memes
Tech Bro Memes@techbromemes·
Tech Bro Memes tweet media
ZXX
19
171
3K
75.8K
Ivan Novikov
Ivan Novikov@ivan7237d·
@RyanCarniato "I'm trying to create more library/framework authors" sure did the trick with me. Reactively was a big deal too because I couldn't make heads or tails of the actual Solid codebase
English
0
0
1
108
Ryan Carniato
Ryan Carniato@RyanCarniato·
Common misconception. My content isn't to make you better at your job or show you the latest and greatest way to get things done. I'm trying to create more library/framework authors. That requires its own type of critical thinking. If you become more productive, that's a bonus.
English
11
2
161
8K
Ivan Novikov
Ivan Novikov@ivan7237d·
@RyanCarniato @solid_js Might be an irrelevant question, but I’m wondering if in a hypothetical world where promises fire synchronously rather than in microtasks, there would still be a need for ‘flush’
English
0
0
0
424
Ryan Carniato
Ryan Carniato@RyanCarniato·
If I had an approach to async for future @solid_js that requires no wrappers, no compiler, non-blocking render, no coloration, just works. But it requires `setSignal` (and derived values) to stay in the past until `flush` like React. Would you take it?
English
10
3
34
11.7K
Ivan Novikov
Ivan Novikov@ivan7237d·
@mattpocockuk I wonder if there other people who like me go for DYI promises that have the familiar api of regular promises, but have typed errors and are lazy/cancelable
English
0
0
0
50
Matt Pocock
Matt Pocock@mattpocockuk·
I'm at the "building my own type-safe error handling library" part of my eventual Rust/OCaml/Effect arc. Can't rush these things
English
26
6
308
47.5K
Ivan Novikov
Ivan Novikov@ivan7237d·
@mattpocockuk The way I think of it is there are actual errors and there are lint warnings about unused code. TS does both. Example of the first is passing to some function an object w not enough props, example of the second is passing excessive props.
English
1
0
0
23
Matt Pocock
Matt Pocock@mattpocockuk·
What, when you learned it, made TypeScript click for you?
English
126
2
167
92.2K
Wes
Wes@wesleytodd·
@andrestaltz @rauschma Someday I will finally get around to finishing my doctoral thesis titled “The debug package: it’s the worst and you should instead accept a logger as an option”
English
1
0
1
0
Axel Rauschmayer (also on 🦣)
1. In Node.js shell scripts, I use console.log() for output. 2. I also use it for debugging. To distinguish the two use cases, I include unique strings such as '@@@' when doing (2), so that I can find and remove later. Wondering: Switch to sth. else for either (1) or (2)?
English
19
4
51
0
Hunter Beast 🕯️
Hunter Beast 🕯️@cryptoquick·
@erhannah const { log } = console const logger = (...args) => { log(...args) return args[0] } Example: output(logger(input(data), 'log input data'))
English
1
0
2
0
hannah
hannah@erhannah·
hannah tweet mediahannah tweet media
ZXX
46
539
4.3K
0
Bilal Çınarlı
Bilal Çınarlı@bcinarli·
Why do some engineers write their codes by only `pipe`s? I do not believe it is the only way for functional programming. It breaks the readability and the understandability of the code.
English
3
0
2
0
Ivan Novikov
Ivan Novikov@ivan7237d·
@floydophone I wonder if the solution is auto-advancing timers in Jest? I wrote a comment about it #issuecomment-778406733" target="_blank" rel="nofollow noopener">github.com/facebook/jest/… but take it with a grain of salt because I hadn't had much experience testing React components
English
1
0
0
0
Pete Hunt 🚁
Pete Hunt 🚁@floydophone·
even worse, these warnings can be triggered by subtle changes in your dependencies. now you've got implicit coupling between your test case and all of your recursive deps & you need to be constantly thinking about whether something is sync or not.
English
2
0
6
0
Pete Hunt 🚁
Pete Hunt 🚁@floydophone·
how are we all ok with the current state of testing in react? that the act() warning is a constant source of pain & that the solution is to sleep for a nondeterministic amount of time is a huge indictment of how we test.
English
10
2
36
0
Ivan Novikov retweetledi
François Zaninotto
François Zaninotto@francoisz·
1log: console.log() replacement with superpowers, for #NodeJs and the browser. Returns its argument so you can just call log() anywhere, logs Promise resolution delay, supports nested function calls, and plugins! #JS github.com/ivan7237d/1log
François Zaninotto tweet media
English
0
5
14
0