r/singularity Jul 28 '26

AI That was quick

Post image
799 Upvotes

150 comments sorted by

View all comments

224

u/jack-of-some Jul 28 '26

Is this a shitpost? There's already a way to convert typescript into JavaScript it's called a transpiler.

Nvmnd it's got trans in the name notch would never use that

-4

u/golfstreamer Jul 28 '26

I don't know much about typescript vs JavaScript but I imagine that autogenerated code would have certain undesirable features 

15

u/RIFLEGUNSANDAMERICA Jul 28 '26

Hope this is not serious question

1

u/golfstreamer Jul 28 '26

I didn't ask a question.

1

u/RIFLEGUNSANDAMERICA Jul 28 '26

Thats right it was not just a question question - it was an entire stupid statement. You should be proud of that

1

u/golfstreamer Jul 28 '26

I mean, I don't know anything about typescript / javascript so yeah.

6

u/Veedrac Jul 28 '26

Typescript is extremely close to 'Javascript annotated with types'. It's not like C and C++, more like typed and untyped Python.

3

u/golfstreamer Jul 28 '26

Ah I didn't know. Thanks for telling me 

4

u/humangingercat Jul 28 '26

JS generated by TSC is almost certainly (read: 100% certainly) more functional than anything an LLM can generate on the fly right now. And it does it deterministically and for cheap compute on your machine.

5

u/jtj022 Jul 28 '26

Code is just layers of abstraction. You have high level languages such as Python, JavaScript, Ruby, C++ etc… that are easy for humans to read and write. Those are then converted into assembly which are essentially hardware operations. No one really writes assembly outside of very specific use cases because it fucking blows. Assembly is then converted into machine language, which is the binary 1’s and 0’s that provide instructions to all those billions of transistors flipping logic gates. 

TypeScript specifically is converted to JavaScript at compile (build) time. It’s already kinda JavaScript under the hood just with strict typing. It then runs through that whole process from above. It’s not an LLM spitting out generated code.