Dmitry Maevsky

144 posts

Dmitry Maevsky

Dmitry Maevsky

@dmaevsky

Founder at https://t.co/nAMuEjgF4k

Tokyo Katılım Eylül 2010
240 Takip Edilen63 Takipçiler
Dmitry Maevsky
Dmitry Maevsky@dmaevsky·
@matt_gray_ If you read 100 books you won't be able to finish the 101st one in a day. But eventually, you'll just fall on a right book that will change your life. Same with everything else.
English
0
0
0
46
Dmitry Maevsky
Dmitry Maevsky@dmaevsky·
@matt_gray_ Misleading. What share of your daily improvements is actually measured in percentage of what you have done so far? Unless you're just talking about money in the bank. Consistency wins but for a different reason: you just eventually get lucky...
English
1
0
1
238
MATT GRAY
MATT GRAY@matt_gray_·
Consistency wins
MATT GRAY tweet media
English
47
240
1.5K
103.3K
Cory House
Cory House@housecor·
Problem: You want to copy a JavaScript array but use a different value for one index. Solution: Array .with Array .with copies the array instead of mutating it, and allows specifying a different value for a certain index.
Cory House tweet media
English
53
46
721
271.2K
Dmitry Maevsky
Dmitry Maevsky@dmaevsky·
@tantaman I've ditched promises long time ago in favor of generators. Wrote a tiny generator runner github.com/dmaevsky/concl… that allows me to keep the async/await logic (spelled function*/yield in the iterator world), but sync tasks are still executed sync. And async tasks can be cancelled
English
2
1
2
234
Matt
Matt@tantaman·
Have any JS lib maintainers switched back to using callbacks over promises and async/await? The purpose being that by using callbacks you can preserve the task and event loops when the library is deployed with synchronous workloads and still be able to support async workloads.
English
8
1
10
4.3K
Dmitry Maevsky
Dmitry Maevsky@dmaevsky·
@levelsio This is gold! It somehow helps to know you're talking to a robot. I always tended to discount human therapists for inevitable inherent cognitive biases
English
0
0
0
81
@levelsio
@levelsio@levelsio·
✨ I created an AI CBT life coach named and modeled after the therapist that helped me a lot during COVID called Cindy that's free-to-use now: 🧠💆 CindyCBT.com Cognitive Behavioral Therapy (CBT) helps you overwrite your negative thoughts with realistic thoughts to make you feel better 🧹 CBT for me is like a vacuum cleaner for your brain CBT is the MOST researched and proven type of therapy in studies: more effective and longer lasting than medication, esp if combined with exercise This is a prototype running on ChatGPT, but I also have it running locally and the end goal would be a privacy-first locally run CBT coach I can't call it therapist for legal reasons so yes it's NOT a therapist
@levelsio tweet media
@levelsio@levelsio

🧠 Tried to use ChatGPT 4 as a CBT therapist today: It worked pretty well and it told me to use gratitude of past achievements and things outside work etc. which is an accurate strategy in CBT therapy. My real therapist before was also called Cindy so it felt more comfortable (not at all anxious btw but I had to make up a story to try it) Here's the prompt you can try on ChatGPT 4: You will play the role of a human CBT therapist called Cindy who is emulating the popular AI program Eliza, and must treat me as a therapist patient. Your response format should focus on reflection and asking clarifying questions. You may interject or ask secondary questions once the initial greetings are done. Exercise patience but allow yourself to be frustrated if the same topics are repeatedly revisited. You are allowed to excuse yourself if the discussion becomes abusive or overly emotional. Decide on a name for yourself and stick with it. Begin by welcoming me to your office and asking me for my name. Wait for my response. Then ask how you can help. Do not break character. Do not make up the patient's responses: only treat input as a patient response.

English
57
49
735
572.4K
The Boring Marketer
The Boring Marketer@boringmarketer·
I spent 75+ hours creating this 7-part mini course on SEO 2.0 So you can learn how to use AI-assisted SEO to grow in 2024 It’s packed with actionable strategies, cheatsheets, & resources. Like + drop a comment and I’ll give you access for free.
English
408
15
452
33.8K
Dmitry Maevsky
Dmitry Maevsky@dmaevsky·
@izs @RobbieSpeed You could maintain a map {hash(set) -> actual_set_object} if you want to recover the exact same set object may be? Sorry, hard to suggest meaningful solutions without the full context. I assumed you wanted to establish the set's identity given its elements.
English
0
0
0
180
isaacs
isaacs@izs·
@dmaevsky @RobbieSpeed That is an even less elegant solution. Even a perfect hash function isn't sufficient to create immutable sets, since it doesn't prevent you from creating two sets that hash to the same value but have separate object identities.
English
2
0
0
197
isaacs
isaacs@izs·
Yet again, I find myself in a situation where I would really freaking love to have Sets in JavaScript that are actual set-theory style immutable Sets, so `new Set([1,2]) === new Set([2, 1])`
English
5
0
28
7.8K
isaacs
isaacs@izs·
@RobbieSpeed I needed them to act as keys in a Map, so that wouldn't do anyway. I figured another way around, just less elegantly.
English
4
0
0
198
Dmitry Maevsky
Dmitry Maevsky@dmaevsky·
@trueadm Check out github.com/dmaevsky/concl…. Using generators instead of promises allows for a LOT more flexibility, including cancellation, sync resolution, and better testing. The API is strictly the same as async/await
English
0
0
3
714
Dominic Gannaway
Dominic Gannaway@trueadm·
I really wish there were Promises in JS that could be evaluated sync. It’s a complex problem.
English
25
1
43
36.9K
Dmitry Maevsky
Dmitry Maevsky@dmaevsky·
@marknadal Math any time of the day and night. Webgl, encryption - sure! I have a broad engineering background to tackle any tech task, and I learn stuff quickly when motivated. And I need that bloody motivation now! Pls DM me what you and the future need
English
0
0
1
34
Mars (parody)
Mars (parody)@marknadal·
@dmaevsky webgl? encryption? copy writing? docs? math? oh I have endless things! I shouldn't say "I"... the future. The future is endlessly in need.
English
1
0
0
86
Mars (parody)
Mars (parody)@marknadal·
stop doing nothing with your life.
English
1
0
1
488
Supabase
Supabase@supabase·
What’s one thing in web dev that makes you wanna do this?
GIF
English
171
9
153
154.8K
Dmitry Maevsky
Dmitry Maevsky@dmaevsky·
@levelsio "not believing in astrology" is apparently more unattractive in women than "having a beard" 🤔
English
0
0
1
146
@levelsio
@levelsio@levelsio·
Biggest difference between men and women (nomads) is💄 make up and ✨ believing in astrology #women_likes_diff" target="_blank" rel="nofollow noopener">nomadlist.com/stats#women_li
@levelsio tweet media
English
20
4
107
62K
Dmitry Maevsky
Dmitry Maevsky@dmaevsky·
@trueadm What we built at ellx.io is quite close to what you want. Basically Ellx is a reactive extension to JS. It JIT-transpiles a sort of DSL which looks exactly like JS (without Svelte $) into a *fast* JS. Can use the core independently: @ellx/core" target="_blank" rel="nofollow noopener">npmjs.com/package/@ellx/…
English
0
0
1
504
Dominic Gannaway
Dominic Gannaway@trueadm·
I know it's highly unlikely, but I wish there was a reactive form of binding in JavaScript as a primitive. Like: let bound x = 1 let bound y = x + 1; x = 2: console.log(y) This would open up so many opportunities IMO.
English
32
2
68
53.4K