I Wrote Superhuman Code By Hands

preview_player
Показать описание
Enable Subtitles for Twitch Chat

Chapters:
- 00:00:00 - Live Session
- 01:26:24 - Offline Footnote

References:

Support:
- BTC: bc1qj820dmeazpeq5pjn89mlh9lhws7ghs9v34x9v9
Рекомендации по теме
Комментарии
Автор

Conditions, loops and infinite memory, seems like my girlfriend is Turing-complete after all.

soumen_pradhan
Автор

Tsoding writes superhuman code to save us from AI

idkncc
Автор

This is what writing C++ templates feels like, absolute insanity.

brambasieldev
Автор

1:26 the time tsoding has fallen into web-dev

luigidabro
Автор

Take is possible to implement:

```ts
type Length<Xs extends any[]> = Xs['length']
type Take <N extends number, Items extends any[], acc extends any[] = []> = N extends Length<acc>
? acc
: Items extends []
? acc
: Take<N, Tail<Items>, Append<Items[0], acc>>
```

nikita-nikita
Автор

We now need C FFi for typescripts type system, so we can use raylib.

theevilcottonball
Автор

Typescript by default does not interpret code in `node_modules`. If the lib contains `src/*.ts` code, you should
1. check lib's package.json. It should either contain `types` field or `exports.*.types` field. If it does, you _should_ be able to import it as usual
2. if instead it points it's `main` field to `src/index.ts` or similar, then you need to add 'node_modules' in the `tsconfig.json` in the `include` list

ankhzet
Автор

Looking at functional programming code makes me feel like my mom when she looks at me. Confused and disappointed

Mekelaina
Автор

With all the type magic happening here, is it possible to implement Ada's "range as a type" in TypeScript?

chaitanyadubakula
Автор

its great that you're showing the thought process that goes into this. also interesting to see that you implemented it in a simpler manner than their convoluted mess. can you do this for some gnarly C++ meta template code. I got a suggestion, the clang/llvm AST Matcher code

fhools
Автор

TS may not load types from package if it doesnt contain exported module (in js context).

lk
Автор

The author could argue that his project works... on his machine 😅

amuerta
Автор

Ts can do everything but it can't tell you if function throws an error 😂

dankobgd
Автор

Technically speaking, you can call Tsoding Daily a Tsoder.

pinniporker
Автор

Tsoding can you adopt me, my dad left me for react :(

cslearn
Автор

If you want to patch tsc to not restrict the complexity of types, it is probably enough to grep for its source code and remove the checks surrounding the lines. There seem to be only 2 checks in src/compiler/checker.ts

maxsilvester
Автор

typescript just got a whole lot cooler

lucianchauvin
Автор

WTF TS IS BASED NOW???

really enjoying your videos and learning/coding style. from outside it looks like nerdy and complex, but actually straightforward and maxing simplicity

eazypeazy
Автор

I love this guy... He is my "inner animal" because I complain like him when I have to see other's people code.

ecosta
Автор

this looks like LISP paper page 13, quote and eval implementation.

Kersich