this post was submitted on 06 May 2025
1158 points (96.8% liked)

Programmer Humor

23083 readers
1731 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] toastmeister@lemmy.ca -2 points 1 day ago (3 children)

Could AI allow you to write code in python, and then turn the python into a static language with static variables at least?

[–] cx40@programming.dev 1 points 20 hours ago (1 children)

But the main benefits of static typing is in making the programming part easier. What do you gain from translating dynamically typed languages into a statically typed language?

[–] toastmeister@lemmy.ca 1 points 19 hours ago (1 children)

Well that can't be true, why would anyone have ever made a dynamic typing system?

[–] cx40@programming.dev 2 points 18 hours ago

That's also to make programming easier. Different programmers have different needs.

[–] Honytawk@feddit.nl 1 points 1 day ago* (last edited 1 day ago) (1 children)

A language to do what?

That is just programming with extra steps

[–] toastmeister@lemmy.ca 1 points 1 day ago* (last edited 1 day ago)

Well python is slow due to garbage collection and dynamic types, if AI could fill those in it would make programming far easier at least.

You could write low level drivers in python.

[–] russjr08@bitforged.space 1 points 1 day ago

I don't see how that's going to work out well. That's asking to end up with a mess that you're just going to have to rewrite anyways.

I do not even have a complete hatred for AI like a lot of folks do, but I don't trust it that much (nor should anyone).

You'd be better off with an actual deterministic transpiler for that (think TypeScript -> JS but the other way around I suppose), not something with a ton of random variables like an AI.