Gil Tayar Profile
Gil Tayar

@giltayar

Followers
4K
Following
17K
Media
235
Statuses
7K

software developer @ microsoft ⚜ dad ⚜ javascript fan ⚜ Builder of build systems https://t.co/cpsnOm48Vl ⚜ and lots of love ❤️ @gil.tayar.org 🦋

Israel
Joined August 2007
Don't wanna be here? Send us removal request.
@giltayar
Gil Tayar
8 years
Matisse: "When working, [. ] there is a constant back and forth until the work and I are in harmony. Like a writer, I am always revising, going back and making new discoveries". I feel this is also true for my creative process as a developer.
Tweet media one
0
4
34
@giltayar
Gil Tayar
9 months
🦋.
0
0
2
@grok
Grok
1 day
Join millions who have switched to Grok.
17
16
132
@giltayar
Gil Tayar
10 months
RT @amsterdamski2: רוב הזמן אנחנו מתעסקים בכאן ועכשיו. במיקרו. לפעמים, כדאי לקחת רגע ולהסתכל קדימה, על המקרו. ובמקרו, איך נאמר את זה, המצב….
0
237
0
@giltayar
Gil Tayar
10 months
RT @noamhonig: Exciting news! 🎉 Starting a Remult project is now easier than ever!. npm init remult@latest. Get a fully functional Remult a….
0
4
0
@giltayar
Gil Tayar
11 months
RT @Khelsilem: "A vote is not a valentine. You aren't confessing your love for the candidate. It's a chess move for the world you want to l….
0
82
0
@giltayar
Gil Tayar
1 year
Ooh. ! I'm honored, @mattpocockuk!.
@mattpocockuk
Matt Pocock
1 year
Which of these snippets do you prefer?
Tweet media one
1
0
1
@giltayar
Gil Tayar
1 year
What do you think of this?. (resources.cache ??= {})[cacheKey] = {. }.
5
0
7
@giltayar
Gil Tayar
1 year
RT @BDYemini: חייבים להגיע להפגנות.חודשים שלא הלכתי להפגנות. אני לא אוהב דברים ודוברים רבים. העברתי עליהם ביקורת. אבל לא עוד. הערב חייבים….
0
277
0
@giltayar
Gil Tayar
1 year
A new use for Github Copilot: you need to change same code in a complex code way, but in three or more different places. I changed it in one place, went to the other places and told Github Copilot - "do the same change for . " ( needs some prompt engineering 🪄). Time saver!.
0
0
2
@giltayar
Gil Tayar
1 year
As @satanacchio politely showed me, the reason was _not_, as I thought, performance, but rather it was just the first step in a process that intends to support most of TS. See the roadmap link here for more information:.
@satanacchio
Marco Ippolito
1 year
0
0
1
@giltayar
Gil Tayar
1 year
I wonder whether these restrictions will move code in our ecosystem to follow those restrictions, or. These restrictions will be too much and the outcry from them will make Node.js remove them and lose the performance gains.
1
0
3
@giltayar
Gil Tayar
1 year
As @mattpocockuk surmised, these are exactly the restrictions that the type annotations proposal puts in place. The proposal was originally called "types as commments", or to paraphrase in this context "types as code that can be whitespaced" 😁.
2
0
5
@giltayar
Gil Tayar
1 year
I love it! But I wonder whether this works for existing projects. My guess is no, and any project of sufficient length will probably not conform to the above restrictions.
1
0
2
@giltayar
Gil Tayar
1 year
Moreover, for backward compatibility reasons, if you want to use TS, you must use file extensions not only in ESM, but also in CJS, and it must be .ts/.mts, because again, no code changes.
1
0
3
@giltayar
Gil Tayar
1 year
And they really _are_ stripping types - just replacing them with whitespace! Amazing. Performance is also the reason why you MUST use `import type` if you're importing types - because they're stripping only imports that have `type` in them.
1
0
7
@giltayar
Gil Tayar
1 year
You can find this quote here:.
1
0
2
@giltayar
Gil Tayar
1 year
"The type stripping feature is designed to be lightweight. By intentionally not supporting syntaxes that require JavaScript code generation, and by replacing inline types with whitespace, Node.js can run TypeScript code without the need for source maps.". Performance!.
1
0
6
@giltayar
Gil Tayar
1 year
Node.js TypeScript support is out! I heard that js code-generating features like enums are not supported, and I wondered why, given that the transpiler they're using DOES support it. Well. it seems that it's written in the docs: .🧵.
3
1
25
@giltayar
Gil Tayar
1 year
RT @ReactNext: Check out this great talk by @giltayar from #ReactNext24!. @Microsoft
Tweet media one
0
1
0
@giltayar
Gil Tayar
1 year
CDD - Combination Driven Development . (aka Combinatorial Programming). Let's try this combination of code. Shit, it didn't work. Let's try another combination. That didn't work either. Try another combination. Repeat until it works.
1
0
3