@rose like u are just a programming language and u are bullied because everyone makes fun of u for associating yourself with the class weird kid
@rose nono the “weird” one in the sense that its the one that acts all big and cool but is actually just deeply insecure and tries too hard
@rose its just old .. but idk i feel like python s typing is much much better suited to a dynamically typed language than what typescript does , idk
@rose instead of being normal and adding optional type hints to be used with a static type checker , its a whole ass js superset that compiles down to native untyped js
turning an interpreted language into a compiled one is such an unnecessary tradeoff
@fiore nether snake typed fuck or javascript with more tooling are worth anyone’s time. the fact that there are domains that require these languages is proof that god is ether absent or malicious.
@fiore if you need a degree to fly off the handle about shitlangs then i’m fucked.
@shitpostalotl no , i mean that i unfortunately still need to use python since its kinda a hard requirement for my field :P python and fortran
@fiore damn thats like the two worst ones. nightmare major.
@Skelozard @rose pretty sure it needs a js step first . v8 cannot run typescript
@fiore @rose @Skelozard Yeah
nodejs typescript support isn’t even real. it only supports a subset of typescript: https://nodejs.org/docs/latest/api/typescript.html#type-stripping
@fiore @Skelozard @rose and it does that by just replacing all the typescript features by whitespace lmao it doesn’t typecheck at all
@Skelozard @fiore @rose transpile is just compile. But from text code to text code instead of text code to garble code
if you make use of v23-only features in your node package i will actually hate you because that shit isn’t gonna work on any of my computers all of which run Node v22
@fiore @rose @Skelozard @kimapr did you not know this 😭
this has always been how TypeScript works, it’s only checked by the tsc compiler and never by the runtime
Bun and Deno also just replace it with whitespace
@jessew @kimapr @rose @Skelozard i thought bun n deno just . ran it thru tsc first ???
@fiore @jessew @rose @Skelozard yeah like bun marketing was like “unlike node we have typescript builtin” and it just. doesn’t? apparently? lmao?
@kimapr @jessew @rose @Skelozard i think node implemented ts compat after . so ig at the time it sorta made sense ?
@fiore @rose @Skelozard @kimapr nah that would be really really slow, tsc is notoriously slow to run
Also TypeScript has a bunch of weird transformation features from the olden days before the modern JS ecosystem are a thing, which would make this even more complicated
But really it’s fine like it is, TypeScript is and always will be a compile-only type system
@fiore @kimapr @rose @Skelozard browsers will also never implement a typing system because of how incredibly slow it would be
@jessew @Skelozard @kimapr @rose at least python is honest abt this lol
Ada Freya - Neptuwunium
@ada @jessew @rose @Skelozard @kimapr thats much better than just replacing it w whitespace yea
@ada @Skelozard @fiore @jessew @rose i mean like half of nodejs is written in javascript, so a lot of nodejs features aren’t “native” in the first place
@jessew @fiore @rose @ada @Skelozard that’s no javascript. what’s that @s doing there?
@jessew @Skelozard @ada @fiore @rose i love how the last commit on that file is “revert reimplementing this in C++”
Ada Freya - Neptuwunium
Ada Freya - Neptuwunium
@fiore @jessew @rose @Skelozard @ada cpp considered EPIC
actually no i hate the C PreProcessor, C++ is goated tho
@fiore @Skelozard @ada @jessew @rose lowk hate how it’s impossible to tell if “cpp” means c++ or c preprocessor because its the same acronym
Ada Freya - Neptuwunium
@fiore @jessew @rose @Skelozard @ada that’s one way to solve this conundrum
@ada @jessew @rose @Skelozard @kimapr bjarne should stay as far away as he can from italy
@ada @Skelozard @fiore @jessew @rose yeah no that’s even worse. “cxx” what is this a porn movie?