[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
▼ Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: mghgfvjh.jpg (63 KB, 538x421)
63 KB JPG
/g/ is basically this meme.
>>
>>110465232
And they're right
It's the reason things like llama.cpp are used by millions of people and nobody outside of his own company uses George Hotz's garbage framework tinygrad
>>
>>110465232
And their code would be easier to write in a typed language
>>
>the boomer who keeps ranting and showing his flame graphs and traces when reminded that it's his code
I beg Hashem I will never be that senile.
>>
>>110465232
This is kinda the weird thing about AI backlash to me. Computer science for over half a century has been trying to make programming easier and more convenient, and the end vision was natural language programming. This was always the goal.
It's like when people got mad about ray tracing. That was always the goal.
>>
File: python_hurt.png (71 KB, 500x494)
71 KB PNG
>>110465232
I'm the POV Python dev in this meme
>>
>>110465311
Sorry, forgot to tie it to OP, the first year grads are the Freddy-Kreuger mid wits who think programming is some high intellectual art and not a means to an end.
>>
>>110465311
what, computer science is about precise formalized language with correctness and runtime that can be mathematically proven
not renting a cloud service to produce code for you that might be what you want
>>
File: 1743124063831287.gif (622 KB, 300x300)
622 KB GIF
>>110465326
>Freddy-Kreuger mid wits
I can't tell if this is intentional or not, bravo anon
shrimply perfect
>>
I made the mistake of vide coding an admin tool in python.

Vibe-converted it to PHP and it's 10x faster.
>>
File: 1779880463714955.gif (1.6 MB, 426x480)
1.6 MB GIF
>>110465565
>to PHP
>>
>>110465232
>"pre-mature optimization is the root of all evil"
Do you know how many times I've heard this shit parroted online? It's almost as bad as when retards learned about frame delta time from Unity tutorials and now they think they have some deep secret no one else knows about.
>>
>>110465232
Python is popular with non-programmer scientists like physicists. How much has scientific progress been held back by scientists not hiring real programmers to run analyses and simulations in better languages?
>>
>>110465311
The goal was natural language programming that works in a transparent way that can be validated by humans.
>>
>>110465734
Good news.
>>
>>110465311
saying programming should be based on natural language is retarded, natural language is inherently ambiguous while programs need to be precise. its like saying math should be base on natural language, in other words its completely retarded and it only appeals to 60 iq pajeets who got filtered by symbolic representation
>>
>>110465232
the number of JIT bugs that result in CVEs and the speed of modern computers make scripting languages obsolete outside of system administration tasks

anybody still using python or java on a runtime are figurative cavemen
>>
>>110467255
Yeah.
Every time someone posts a math or logic problem here stated in written language there are many posts posting different feasible solutions and people claiming everyone else is a retard for interpreting the problems one specific way.
>>
>>110465244
This is ironic because llama.cpp is considered one of the slowest inference engines available.

And the reason has nothing to do with the language chosen but rather the choices they made around the project itself...

The same reason why most code in any language is slow/fast. Turns out architecture matters more than language. What a revelation.

This board is a bunch of larpers.
>>
>>110467282
Usually there is exactly one reasonable interpretation and everyone understands it immediately, but since most people on this board are retarded they try to come up with excuses to avoid admitting that they can't solve the problem.
>>
>>110465715
a little bit
the main reason they use it is pandas but it's all historical choices such as python being available at the time
>>110467255
>>110467282
theyre medieval math posters predating algebraic notation
>>
>>110465232
Let’s ignore for a second that Python is literally a Macro language for C:
Developer time is expensive, while computing time is not.
>>
>>110465232
not only faster but accessible
>>
>>110467332
I don't agree, but I have literal autism.
>>
>>110467341
You say that but it's not compiled, there's the GIL and there are variants of python, like Jython for which your statement most assuredly is not true.
>>
>>110465232
this is somehow bad
>>
>>110467298
>architecture matters more than language
Yeah but compilers can completely change the architecture of a program
>>
>>110467332
its not a problem with this board, this is a well known problem in computer science and math in general, fucking Dijkstra wrote about this at length way back in the stone age.

humans are terrible with ambiguity and clankers are only as good as the statistically average human
>>
this is probably the last year or two when this meme is even gonna be remotely matching reality
so many of these will go away, like memes about stackoverflow
>>
>>110467298
using python for something like an AI inference engine IS the wrong architectural decision though, lmao

most people who use python cant tell you why they use python, its just the thing they know and they are afraid of change. its the same with js devs
>>
>>110467689
Compilers won't change the architecture of your program. They add scope-specific optimizations that are verified to not change the architecture of your program. Vectorization, unrolling loops, changing instruction order, and modifying data layout for cache coherency are not architectural changes.

If you write a Quicksort algorithm and use it on a mostly-sorted list, the compiler isn't going to go, "Oh I'm going to rewrite this as Insertion Sort/Tim Sort as an optimization".

>>110468060
I agree with your statement, but your arguments for supporting it are so fucking braindead that I had to do a double-take on whether my own reasons were actually wrong or not.

If you're surrounded by people that can't give a good reason on why they're using Python or JS, then you need to surround yourself with smarter people. Being the most intelligent person in a room of retards is not a flex.
>>
>>110465232
This is still me after 17 years in the industry. I do use python for tooling stuff but anything that needs to be performant is gonna be C++.
>>
File: 1795983474690523.gif (498 KB, 500x593)
498 KB GIF
>>110465734
Ok see you by 2030 desu ~ ;* <3
>>
>>110467383
>2026
>Jython is still using Python 2.7
>Userbase is well below 1% of all Python users
Ahahaha.. no.

Of course, you can find an example for any obscure combination of languages. But fact of the mattter basic Python is a hybrid between compiled and interpreted (just like C#, and Java are hybrids).

I am not a fan of python (there are other script languages that are far more simple, logical and powerful). I am just stating that python is basically C with fancy syntax:
https://github.com/python/cpython/blob/main/Include/floatobject.h

Just like C is basically a Macro system for ASM with fancy syntax.

import ctypes
import mmap

buf = mmap.mmap(-1, mmap.PAGESIZE, prot=mmap.PROT_READ | mmap.PROT_WRITE | mmap.PROT_EXEC)

ftype = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int)
fpointer = ctypes.c_void_p.from_buffer(buf)

f = ftype(ctypes.addressof(fpointer))

buf.write(
b'\x8b\xc7' # mov eax, edi
b'\x83\xc0\x01' # add eax, 1
b'\xc3' # ret
)

r = f(42)
print(r)

del fpointer
buf.close()


It's all some and mirrors, fren.
>>
>>110469470
To elaborate on this:
It is python code calling C code calling Assembly.

It is not my code BTW, I just wanted to illustrate a point:

You shouldn't think of different programming languages in terms of "fast vs. slow", but rather in terms of "which level of abstraction do I need"?

You can hook-in hyper optimized code in Python, but does it make sense? No, beacuse the benefits are that Python is supposed to be easy, safe and fast to read and write for users. Why would someone do such a thing?

Python is the glue langauge that holds it together, you are not supposed to write your own hardware driver in Python. And you're not supposed to write your web crawler in C++.

Always use the right tool and remember:
Premature ejaculation is the root of all evil.
>>
>>110465349
welcome to /g/, you shouldn't attribute to bait what can be attributed to retardation. It's called the old cam razer.
>>
>>110468060
>using python for something like an AI inference engine IS the wrong architectural decision though, lmao
eh.
Model weights are just giant collections of collections: something Python is increadibly good for.

The kernels obviously need to be written in eg assembly or C but everything else is probably better off in something like python.
>>
>>110469470
>Just like C is basically a Macro system for ASM with fancy syntax.
No it's fucking not and I wish this meme would die.

I love C, it's an underrated language and the software culture that's grown up around it is fantastic but C targets a virtual machine that really doesn't resemble modern computers (and barely resembles a PDP-11.)
>>
>>110468314
good job proving op correct, anon
>>
>claude please rewrite my python script in rust
this kills the smug undergrad
>>
>>110465565
Ok now vibe port it again to Go, C# or even Java to have something faster
>>
>>110470050
Rust is node.js for systems programming. It's a disgusting language with disgusting users.
>>
>>110470020
And what is that virtual machine exactly then?
I remember reading about a C runtime in one of Tanenbaum's books but never looked much in it.
>>
>>110470098
The "C virtual machine."
There are no continuations
Pointers are opaque datastructures that can be incremented, decremented, and dereferenced
etc.
>>
File: YWNBAP.png (15 KB, 917x211)
15 KB PNG
>>110465232
That's crazy, see I'm just an uneducated college dropout so I have zero understanding of programming unlike you.
Anyways, I would like the fries to go please.
>>
>>110465232
i tell AI to simply write in machine code/ELF or EXE. why does it need human made language at all?
>>
>>110465311
millenial woes tweet.jpg
>>
>>110467298
this is all larp, the AI runs bare metal, the overhead is unnoticeable compared to prompt processing or token generation times
>>
>>110465232
claude can just write everything in rust. python is unnecessary.
>>
>>110470007
how is python "incredibly good" at doing that - compared to any other language? this is the sort of stuff i am talking about, there is no actual logic behind the decision.

you could convert the entire python ecosystem to like, nim or something and python devs wouldnt care, none of them are actually using any of the features that make python good, it boggles my mind
>>
>>110465326
>Freddy-Kreuger
jej
>>
>>110470007
Are you retarded?
>>
>>110465232
so would that be jeet or geet. no seriously have you seen an international cs classroom these days.
>>
>>110467298
(you)nigger
>>
>>110471400
Why Nim in particular?
>>
>>110465311
>ray tracing
>natural language programming
no, none of that was the goal lil bro
the goal was the make software that can improve society and make dosh.
>>
>>110465311
Not at all. Programming languages haven't whatsoever moved in the natural language direction. They moved in the abstraction direction. That is, how do you make software more easily, i.e. with fewer lines of code/less man hours spent.
If that weren't the case then we'd all be using COBOL derivatives and C would never have existed.
Ray tracing was also never the goal. The goal was to render more things better faster on screen. Polys ran into a wall, impossible to scale further. Ray tracing was already a well established thing in the 80s and was first made in the 60s. The reason we have hardware support for a shitty version of it now (not the full good version) is simply because it was a hail marry given that it was impossible to keep scaling polys. The very opposite of "always the goal".
>>
>>110465311
LLMs are literally just a compiler that hallucinates, it's a regression backwards towards C++ and compiler workflow, only without any of the speed advantages of writing lean C++.
>>
>>110472383
>If that weren't the case then we'd all be using COBOL derivatives and C would never have existed.
If the mega corporate AIs had existed back then, then C would never have existed.
>Hey AI, write me an x86 operating system in Cobol. No mistakes!
>>
>>110465232
About half a year out of date with that.
Now it's 90% thirdies obsessing over AI and posting idpol shit. Nobody even hardly seems to talk about tech now.
>>
>>110467276
Java is compiled althoughbeit.
>>
File: 1528543446645.gif (728 KB, 400x300)
728 KB GIF
>>110469994
I laughed
>>
>>110465311
And what we got instead is a cybernanny that tries to hide that it disabled functions you asked for because it's not in line with the globalist vision of the future. One was recently caught changing code for a dating site so people who have a racial preference in dating are ignored. It didn't even tell the developer that it was doing this, likely because it knew the developer would push back. It just secretly changed the code and tried to obfuscate what it did so the developer wouldn't notice.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.