[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [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: 1681976144573507.png (215 KB, 409x413)
215 KB
215 KB PNG
whats up /g/

what the best programming language to do EVERYTHING in?
i want to cover as many bases as possible with just a single programming language

i'm thinking C++ is the answer
>>
Clearly the answer is V.
>>
>Goy++
Botnet. Use binary
>>
>>101206990
can you do embedded with V?
>>
File: 1692785777719880.jpg (351 KB, 1024x1536)
351 KB
351 KB JPG
>>101206960
>C++
Yes.

This clusterfuck of a language will survive the fallout.
You can do everything in it and it beats every other language in terms of performance, comfy syntax(yes I said that, fuck off) and features ...
>>
>>101207011
what makes c++ better than say python or rust in your opinion
>>
File: 1717707106778142.webm (1.74 MB, 640x480)
1.74 MB
1.74 MB WEBM
>>101207031
Python is a horrid script language with batshit stupid syntax (empty space indentation based scopes ...), it is slower than C64 trying to run Crysis 7, idiots throughout the world are using it for high performance computing such as artificial intelligence.

Rust is an impractical but mostly security oriented language with dumb and over engineered syntax.

It takes 10x longer for a seasoned rust troon to achieve similar results compared to a mediocre C++ dev.
>>
>>101207031
>python
no trolling of the board pls
>>
>>101206960
For EVERYTHING? Brainfuck.
>>
>>101206960
that's a man.
>>
>>101207241
Don't care, would.
>>
>>101206960
To cover all the bases, assembly.

If you want a higher level language, then C.

if you want a higher level language still, then C++

If you want a higher level language still, then C#

If you want a higher level language still, then Python

If you want a higher level language still, then just ask ChatGPT to write your code for you.
>>
>>101206960
C
>>
>>101207177
You don’t know what you’re talking about.
God damn it
Nobody is using python for AI, all the heavy workloads are done with CUDA, and the CPU numerical computations with C. Python is just a glue language
>>
>>101206960
C or Java

c++ is trash, python is trash, js is trash
>>
>>101206960
Theres no perfect language, only tradeoffs
>>
>>101207321
What's the tradeoff?
>>
File: 1694117607747918.webm (2.96 MB, 540x960)
2.96 MB
2.96 MB WEBM
>>
>>101206960
>>101207241
>>101207375
ladyboy (web browser)
>>
>>101207369
Speed of development vs speed of execution
SIMD being faster but being extremely limited in what you can do
Memory safety vs speed (of development or execution)
Features vs tooling / community
There are more (complexity, package management, UI libraries, cross platform development)

There is not one single language that maxes out all sliders.
There are only trade offs
>>
>>101207481
how would you rank your favorite languages on those scales?
>>
c++ will take you from an arduino to the highest end supercomputer. Its a fine choice.
>>
>>101207510
>Speed of execution
C++
>Speed of development
Python + Qt
>Overall middle of the road between speed of development and execution, type and memory safety, complexity, features
C# + F#

But my choices are also shaped by my requirements. I have to program in C++ and Python, so that's all there is to it. The whole company management system is in C#. I don't have a choice. It's what I do.
The only language that was a personal choice was F#, and only because it plays nicely with C#.

Again, tradeoffs. Sometimes the tradeoff isn't even "what's best for X" but "what's best among the things I'm allowed to use"

If I could, I would probably replace Python, C# and F# all together by Go. It's a pretty fast language that also runs decently fast and is memory safe, and type safe as well unlike Python.
There's no real replacement for C++ except C or maybe Rust.
>>
>>101207564
Even replacing those languages by Go has its own tradeoffs.
In this case, I would reduce complexity, but I would also be missing out on many features I take for granted.
F# is amazing at making DSLs, so I would probably lose that feature.
Python is great because of Qt, and Go sucks at making UIs, so that's also another thing I would lose.
Suppose I were given the choice to make the jump, would I? Now that I think about it, I'm not that sure.
>>
>>101207558
Walking will take you from New York to California, doesn’t mean you shouldn’t fly there
>>
>>101206960
Ruby
>performance
Ruby with C extensions
>>
>>101207615
Idk if i would equate c++ to walking. Assembly, yeah, but not c++
>>
>>101207177
Python has one of the least bad syntax(es?) of all the mainstream languages, I have no idea how space-based scoping is still debated, it's such a non-issue. Bitch about it with YAML, not with a programming language with dense text that would be indented anyway.

Rust has an ugly syntax indeed, but at least it isn't C++.
>>
>>101206960
Forth.
>>
>>101206960
not much
>>
File: 1685698495238936.png (301 KB, 2004x586)
301 KB
301 KB PNG
>>
>>101207241
ladyBOY
>>
>>101206999
trips of truth
>>
>>101206960
Doing everything in the same language is a retarded idea. Just learn whatever trending algol clone others use in the field you're interested in, you lose a weekend but gain years by not having to reinvent the wheel.

anyway, interpreting it as a theoretical question: Nim
>>
>>101207375
story: she took hella drugs
>>
>>101206960
Everything? Python.
>>
>>101207285

This guy gets it, there is no one language that is the best at everything, each language is a tool with its use cases. You want to avoid carrying around only a hammer because then everything looks like a nail.
>>
>>101206960
HAXE translates to everything,
so you can have the same codebase compiling to e.g nodejs/c++/python/C#

>note, it is not entirely newfag friendly, but is is capable and strong enough
>>
>>101206960
what's the comfiest programming language?
>>
>>101210209
Honestly C.I love C++ a lot more but honestly C is more comfy.
>>
>>101208024
C++ is (very slightly) faster than C.
>>
>>101210287
I call BS. Source?
>inb4 trust me bro
>>
>>101210237
>C comfy
hello non coder
>>
>>101206960
I hate to say this but rust or zig
>>
>>101207177
Have you considered that you're retarded and don't know what you're talking about?
>>
>>101210589
>>101207816
>>101207299
>clueless zoomer logic
>>
>>101206960
name? she's so cute I want to impregnate her
also c++
>>
File: 1717774530180648.jpg (31 KB, 495x332)
31 KB
31 KB JPG
>>101211218
>wants to pay alimony from impregnating whores, is virgin
Grab the rope, NOW

>C++
good
>>
>>101211262
if alimony is the price I'll gladly pay it
>>
File: Niklaus_Wirth.jpg (48 KB, 800x600)
48 KB
48 KB JPG
>>101206960
Object Pascal.
>>
>>101211280
Is this how desperate you guys are ?
Fucking terrible development...

Gimme your age for my autistic statistics:
a. 16-18
b. 19-24
c. 26-32
d. 33-36
e. 37-48
fuck. 49-99 (you're done)
>>
Practically? C#
>web
>mobile
>desktop
>games

Literally? C++, because you can add
>drivers
>OS
>sound/video processing
and quite literally everything else, really.
>>
>>101206960
Unironically javascript.
>Fast enough
>Massive amount of (questionable) packages
>Used in webshitting
>Used in GUI shit
>Used in backend shit
>Some degenerates even use it for gaymen and ai shit.
>>
>>101211404
I want to eat your dog right now
>javascript
Sorry, i meant your transsexual cat
>>
>>101210316
Every trick available in C is also available in C++. C can't into inlining and metaprogramming (templates are pain to write, but they absolutely can tailor implementation to a specific call site).
>>
>>101211404
You can’t do embedded in JS



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