Conversation

python is a ststically typed language

2
0
5
@fiore mid looks at mid and says "wow, you're peak"
1
1
3
@fiore the gazelle may be quicker than the zebra, but in the end they'll both be caught by the tiger
0
0
5

@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

1
0
1
@fiore the people who associate themselves with the "weird" ones are often the nicest..
1
0
0

@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

2
0
1

@rose tries to look like the cool kids but has no personality

1
0
1
@fiore sure but python doesn't have much of a personality either
Having a shit typing system and awful styling isn't a personality, it's a mental sickness
1
0
1
sure but you literally described me in school tho

CC: @rose@social.pinkro.se
1
0
0

@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

1
0
1

@eris @rose no i m just bad at expressing myself in written english

0
0
1
@fiore I have never used typescript I don't know how it works lmao
1
0
0

@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

2
0
2
@fiore I mean translating down to a different language isn't that uncommon, typescript is an okay trade-off since a properly typed language is clearly wanted but not doable since js doesn't do types
I mean in the end it's not much different to compiling C code to assembly code, just that for the web the "low level" language is js
1
0
2

@rose u can go bother a haibane or a green pepper abt that

2
0
1

@coolbean @rose js generated byb tsc is just unreadable i hate it it might as well be wasm to me

1
0
2

@bl00d @rose on fedi , no matter the topic , every thread either dies short or becomes long enough to become about federation issues

0
3
2
@rose @fiore no! its what i need to run forth in the browser! please dont take this from me i want forth frontend forth backend forth everything

or i could learn reasonML but thats cringe
2
0
2

@coolbean @rose soon im gonna never touch a web browser ever again and only live in geminispace and be happy

0
0
0
btw, you do know that python's type hints are not checked by anything in python, right?
1
0
1
@rose @fiore or scheme, scheme on wasm seems good too
0
0
2
i don't care you're an idiot
2
0
0
me finding out this thread was a joke: fiore added to typescript lovers list

CC: @fiore@brain.worm.pink
1
0
1

@eris NO I HATE TYPESCRIPT TOTAL TYPESCRIPT DEATH

2
0
1

@desea @eris fair but in some fields python is a hard requirement so its nice to have the option to statically type it . also “the full suite” lmfao u literally just need a linter

0
0
0
@fiore @eris it's best linter for js ever, makes this language bareable
2
0
2

@bl00d @eris uhh that point is based on the opinion tgat TOTAL JAVASCRIPT DEATH KILL IT KILL IT KILL IT

1
0
1
@fiore @eris uhh that point is based on the opinion tgat TOTAL PYTHON DEATH KILL IT KILL IT KILL IT
1
0
1
true, and the best part is it's just optional type hints for a static linter, very nice design

CC: @fiore@brain.worm.pink
1
0
0
sure thing ruby on rails web developer
1
0
1
uhh that point is based on the opinion tgat TOTAL SNACKS DEATH KILL IT KILL IT KILL IT

CC: @fiore@brain.worm.pink @bl00d@yourwalls.today
0
0
2
@eris @fiore i prefer to use ts with forced typing, using 'any' should be forbidden
1
0
2

@eris ruby is a disgusting language it should drop off a cliff

2
0
2
@eris @fiore Nooo ruby is bad its disgusting that its all words and well structured instead of 3 different language syntaxes merged into one (python)
1
0
0
that would be a pretty cool cliff, covered in rubies
0
0
2

@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.

1
0
1

@fiore if you need a degree to fly off the handle about shitlangs then i’m fucked.

1
0
0

@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

1
0
0

@fiore damn thats like the two worst ones. nightmare major.

1
0
1

@fiore @rose

  1. It’s transpiled, not compiled
  2. It doesn’t need to be the case. From v23.6 onwards, Node.js runs TypeScript natively
2
0
0

@Skelozard @rose pretty sure it needs a js step first . v8 cannot run typescript

1
0
0

@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

1
0
1

@fiore @Skelozard @rose and it does that by just replacing all the typescript features by whitespace lmao it doesn’t typecheck at all

1
0
1

@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

0
0
1

@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

1
0
0

@fiore @jessew @rose @Skelozard yeah like bun marketing was like “unlike node we have typescript builtin” and it just. doesn’t? apparently? lmao?

2
0
0

@kimapr @jessew @rose @Skelozard i think node implemented ts compat after . so ig at the time it sorta made sense ?

0
0
0

@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

2
0
1

@fiore @kimapr @rose @Skelozard browsers will also never implement a typing system because of how incredibly slow it would be

0
0
1
@kimapr @fiore @Skelozard @jessew @rose deno uses either tsc and tsgo

https://github.com/denoland/deno/blob/5cee3a317d1c9e64a7d6c09763921fe854ad086c/cli/tsc/mod.rs#L873

that seems to be what people mean with "typescript built in", it's never native.
2
0
0

@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

1
0
1

@jessew @Skelozard @ada @fiore @rose i love how the last commit on that file is “revert reimplementing this in C++”

0
0
1
@kimapr @jessew @Skelozard @fiore @rose https://philomates.github.io/articles/2021-10-06-shadow-realms-in-jsc/

it appears that it's passed through a generator that makes it call native C++ code;

> The JS-based implementation of ShadowRealm.prototype.evaluate first calls to the @evalInRealm host function that we implement in C++ here.

and that seems to be the case

https://github.com/WebKit/WebKit/blob/07d844568b32de8569440d060810ad2f57b3ee6d/Source/JavaScriptCore/bytecode/Opcode.h#L116
2
0
1
@fiore @Skelozard @jessew @kimapr @rose so it appears that @ emits a opcode that gets ran through the JIT compiler later
1
0
1

@fiore @jessew @rose @Skelozard @ada cpp considered EPIC

actually no i hate the C PreProcessor, C++ is goated tho

2
0
1

@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

2
0
1
@kimapr @Skelozard @fiore @jessew @rose it's like a drunk + that fell over and is taking a nap

which accurately describes c++
1
0
1

@ada @Skelozard @fiore @jessew @rose yeah no that’s even worse. “cxx” what is this a porn movie?

2
0
0
@kimapr @Skelozard @fiore @jessew @rose clang _is_ the sound robotgirls make when--
0
1
2