i take it that you just self btfod.
congrats. its the first occurrence thereof i have seen today
3 weeks ago
Anonymous
I sure did little ESL 🙂
3 weeks ago
Anonymous
nice.
at least youre self conscious
3 weeks ago
Anonymous
>jeet can't understand sarcasm
I'm not surprised
3 weeks ago
Anonymous
i do its just that i dont give a shit about what you meant
>python itself is written in C
anon.........cpython lost, it's over
point still stands.
whoever says you cannot do a good job with C is uninformed
laso rust doesnt even have a standard
and theyre still arguing about core functionalities 18 years into the development.
i do its just that i dont give a shit about what you meant
[...]
point still stands.
whoever says you cannot do a good job with C is uninformed
laso rust doesnt even have a standard
and theyre still arguing about core functionalities 18 years into the development.
>and reinvent the wheel constantly
Oh so bespoke artisinal hand crafts are bad now?
It's funny because people pay top dollar to a chef to make something that a factory could easily make. They'll pay to see a play in person. They'll pay to see a concert in person.
But if you dare write the same 10 line function more than once in your life you're an idiot for reinventing the wheel.
>a specialist solution will always beat a generalist one.
while i understand where you're coming from here, you can't honestly say that many people specialise in the kinds of things you typically use libraries for
that's kinda the point, both to save time writing code that has already been written, but also so you can use code from a specialist
like take a example of say, a text editor, you need code to autodetect the encoding the of the text, lets assume you aren't a specialist in text encodings, few people are, would you write your own bespoke super-duper encoding detection (which works with like, 3 encodings most of the time because you only have english text on hand), or do you just use a library developed over years with robust support for 50 different encodings and takes 100x less effort?
a specialist solution will always beat a generalist one.
unless someone drops the ball
[...]
youre pathetic, scrub
why do you even address me?
or tl;dr, too many people nowadays think they're the specialist and you end up with lots of programs that do common tasks poorer than a free library provides (also see NIH syndrome)
>be FAAGMAN "engineer" >fill 500ft2 studio apartment with expensive paintings and other fine art >get mad when someone writes an 11 line function >YOU COULD HAVE USED A LIBRARY FOR THAT INSTEAD OF REINVENTING THE WHEEL REEEEEEEEEEEEEEEEEE!
>if anything C is one of the simplest language
Why is the C standard more than 700 pages? C is not simple. It lacks features which people confuse with being simple.
c standard is 700 pages long bc corporate thought they can make programmers cheaper by introducing the standard library.
which is part of the posix standard.
c is a simple language.
coporate made it complicated
Us Pychads own the entire data engineering, science and AI market. Also got a good foothold on the webshit space with FastAPI, Flask, Django and teaming up with Typescript.
There's really no intersection or conflict between C and Python anyway. Go cry about rust or C++.
>Use Django >Want to add an AND clause to a join >Find out it's literally impossible in that dogshit framework >Use Go and Gorm instead.
Django naggers will 43% eventually.
You literally can not tell Django to do a left outer join with an and clause. It can't be done, not even joking, it's literally impossible. Just let me write SQL. >Prove me wrong
Pro tip: You can't
3 weeks ago
Anonymous
>doubling down on being filtered
3 weeks ago
Anonymous
>Can't prove me wrong >Just shit posts
Typical street shitter lmao.
3 weeks ago
Anonymous
>filtered by the easiest framework of them all >but I am the street shitter
LMAO
3 weeks ago
Anonymous
>Still can't prove me wrong
Enjoy your subpar ORM, I'll continue being a SQL chad.
3 weeks ago
Anonymous
I know we're shitting on Django and python but allow me to bring attention to this: sequelize fucking sucks and I just wasted 3 hours trying to fix a fucking bug because you can't modify the JOIN clause at all. Let me join by fucking subquery you fucking naggers
3 weeks ago
Anonymous
I hate all ORM's at this point, They all just fucking suck so much dick.
3 weeks ago
Anonymous
ORMs have always been cope for retards who refuse to learn SQL
>we compile assembly into machine code and pretend assembly has high performance >we run machine code on blackbox branch prediction electrical circuits and pretend machine code has performance
The runtime and standard libs are there to allow the program to run as a standalone executable and to translate things the programmer sees as basic operations to machine code. Python has all this too, but it's hidden in the Python executable that your programs can't run without.
import ctypes as C
scanf = C.CDLL("libc.so.6").scanf
a = C.c_double(0)
b = C.c_char(0)
c = C.c_double(0)
scanf(b"%lf %c %lf", C.pointer(a), C.pointer(b), C.pointer(c))
print(f"{a} {b} {c}")
oh no no no C bros we got too cocky
Is there a common implementation for dynamic arrays/vectors for C? Or even a string type with known length instead of the null terminated one?
I don't want to make my own, and I'm on linux.
Idk. C++ has weird UB, and like four constructors. Also OOP sucks, classes suck. Do all C niggas really implement all basic shit? Isn't there a decent std lib that I can get somewhere? Like does the Linux kernel really doesn't have a dynamic array lying around somewhere that I can just import? Or even a known length string?
> Do all C niggas really implement all basic shit?
i would really be the worst person to ask that question
i never wrote idiomatic c.
i write pretty much everything from scratch bc writing idiomaitic c implies you need to know the code of the standard libraries to avoid footguns.
and idiomatic c can be extremely asinine sometimes like idiomatically putting a string from stdin into an array implies computing the length of the string 4 times iirc.
i mean, for a c-ultist, making a dynamic array is trivial and how you make it depends on your use case
is it small enough to sit on the stack? you could use vla's
or maybe its too big for the stack, but not very large either. you could just pre-allocate a bunch of memory and have basically a vector which you might resize only a couple of times during your whole runtime
are you gonna re-order it? how? how many elements?
it might be a good idea to have a linked list that you allocate in a bloc so your memory is contiguous and so you have kinda the best of an array and a linked list
i mean, the appeal of C-like is that you can do whatever you want with it (bc you can write C in C++. no problem at all. its stylistically incorrect, but you absolutely can do that)
you could just ignore the oop part in c++, but still use its standard data structures.
i believe john carmack writes in such a style in c++. very rare use of c++'s higher level functionalities
the only reason you might want to use c over c++ is because c does way less things behind your back than c++. and thats because it has less functionalities.
These threads are always filled with the same completely braindead naggers that just spout shit without ever providing even a single crumb to back up any shit they say. HURR FUCKING DURRRRRR THE SKY IS GREEN!!!! WHAT DON'T THINK SO????? WELL UR A DUMB FAGGIT HURRRR DURRRR!!! Fucking do everyone a favor and kill all of your relatives before eating a fucking bullet.
By the way when you do decide to blow out that empty cavity on your shoulders be sure to tell me so I can show up to your burial plot and piss on your grave.
People who shill for languages like C on this board always defend it by saying that if you don't program in C, you don't understand memory management, pointers, etc. The average large-scale software project has bigger fish to fry than that. Abstracting the problem beyond the scope of needing to manage a bunch of pointers is helpful. The loss in performance is fine because it's easier to interface with a language like Scala for big data processing than C.
Most people shilling C don't understand this because they aren't employed. They're genuinely too stupid to understand that most people who don't work in C had the same CS101 class as them. People who program in higher-level languages understand pointers and memory management. They're just working on problems where that autistic fixation on something so low-level is an actual waste of time. C shills don't understand this because they're nocoders who've read exactly one book on the topic and decided they're among the smartest programmers to have ever lived. This people should be IP banned because that add nothing of substance to any discussion that happens here.
Lazy bait, but I'll bite. >C++ is a production language
And my hammer is a tool. That doesn't mean my hammer is the correct tool to trim my hedges. C++ is good a things that Scala JVM languages aren't and vice versa. Trying to force one language to do everything makes you look like either a student or a dunning-kruger retard maintaining a legacy monolith and mistaking his 30-year-old stack for the universe correct way of solving any problem. >and it is "like C"
If saying languages "like C" get shilled here by nocoders is enough to set you off like this, unplug your router and drop it into the toilet because you're mentally unfit to use the internet.
>"webshitter" >shilling C++
All you had to say was "I work for the government and make $20/hour," anon. No need to encode it in this much misplaced smugness. Are you about to spread your ass even more to see if waterfall will fit in there too?
was a bit annoying to figure out in nim but its nice how it checks the types
import strscans
var
x, y: float
c: char
if scanf(readLine(stdin), "$f $f $c", x, y, c):
echo x, y, c
else:
echo "fail"
Never use Python; Always use Ruby
>Always use Ruby
rude
lewd
said nobody
if anything C is one of the simplest language, except you're just going to fuck up everything and reinvent the wheel constantly
That's why we use Go
GOated opinion
>except you're just going to fuck up everything and reinvent the wheel constantly
only when youre green
python itself is written in C
yet people use python as a safe language.
youre allowed to pick up your brain from the walls and ceilings now
>only when youre green
what did he mean by this?
it means "novice", poojeet
also its extremely rude to talk about someone whos in the same place as you in the third person
>python itself is written in C
>yet people use python as a safe language.
are you literally retarded?
arguments or shut the fuck up, midwit
you are not worth my time 'jeet go poo in the loo
i take it that you just self btfod.
congrats. its the first occurrence thereof i have seen today
I sure did little ESL 🙂
nice.
at least youre self conscious
>jeet can't understand sarcasm
I'm not surprised
i do its just that i dont give a shit about what you meant
point still stands.
whoever says you cannot do a good job with C is uninformed
laso rust doesnt even have a standard
and theyre still arguing about core functionalities 18 years into the development.
i dont even think about these dweebs.
>I have to share the board with these people
>python itself is written in C
anon.........cpython lost, it's over
India isn't sending their best
holy shit this is funny
>samefag just cant let it go
many such cases.
you can pretend theres 10k people who call me stupid
i still wont care.
what part in "your opinion is irrelevant" dont you understand?
literally just joined the thread schizo
2 hrs late
get lost scrub
whatever jeet fuck off
not a jeet, scrub
youre a scrub confirmed tho
Even if you aren't a pajeet (doubt it) you act like one, which is even worse
ugh
scrubs are resistant to learning i guess
go poo in the loo sir
you turned out to be even more scrubbish than i suspected
you need to be over 18 to post here, scrub
fuck you scrub so what if I am indian? you haven't even given any arguments
>Buck broken so bad to admitting you are indian
Holy shit just get off here
bad move anon
never be defensive with scrubs
>jeets are trying to band ogether
Ohnonono this is pathetic
geg
Python is a language, i.e. a collection of paradigms. It isn't "written" in anything.
Python interpreters are implemented in other languages, such as Cython.
https://cython.org/
u a webshitter too?
z0yboy detected
>and reinvent the wheel constantly
Oh so bespoke artisinal hand crafts are bad now?
It's funny because people pay top dollar to a chef to make something that a factory could easily make. They'll pay to see a play in person. They'll pay to see a concert in person.
But if you dare write the same 10 line function more than once in your life you're an idiot for reinventing the wheel.
>bespoke artisinal hand crafts
>this is how neetcoders actually see themselves
a specialist solution will always beat a generalist one.
unless someone drops the ball
youre pathetic, scrub
why do you even address me?
I'm sorry sir I won't redeem it next time
fuck you scrub i'm proud to be indian i don't give a shit about what you hace to say about me
and thats the correct attitude.
adequate. commendable even.
>jeets proud of being jeets
Ohnonono
yes.
prido of ones origins.
something you will never experience, scrub.
its genius.
it gives you total freedom
>straight up admitting to being a jeet
This is beyond pathetic truly. Jeets are subhuman go do the needful sir
dont make me tap the post again, scrub
No seriously this is pathetic
nobody asked tho.
You are a jeet, your opinion is useless, do the needful sir
>please notice me uwu senpai
Zz
Jeets btfo
>uwu senapi y u no noticing?
cuz im not noticing, scrub
idk, post tits or something
be original, maybe i will notice then
Nah fuck off jeet
>n-no u
thats not original, scrub
you gotta do better than that
>implying you are being original
Just kiss eachother at this point ffs
hes desperate for my attention.
but hes gotta EARN me
I apologize for what I sad indian-sama, let's make love not war
i will teach you love, scrub
the bharat kind of love
come 'ere now you sexy beast
uwu
*smooch*
-and they lived happily ever after-
-the end-
bloody bitch... NEVER insult INDIA again fucking scrub
fuck you bloody bitch i will never back down from being PROUD indian even if I have to poo by the railroad
Only an idiot is ashamed of his race.
>a specialist solution will always beat a generalist one.
while i understand where you're coming from here, you can't honestly say that many people specialise in the kinds of things you typically use libraries for
that's kinda the point, both to save time writing code that has already been written, but also so you can use code from a specialist
like take a example of say, a text editor, you need code to autodetect the encoding the of the text, lets assume you aren't a specialist in text encodings, few people are, would you write your own bespoke super-duper encoding detection (which works with like, 3 encodings most of the time because you only have english text on hand), or do you just use a library developed over years with robust support for 50 different encodings and takes 100x less effort?
or tl;dr, too many people nowadays think they're the specialist and you end up with lots of programs that do common tasks poorer than a free library provides (also see NIH syndrome)
>be FAAGMAN "engineer"
>fill 500ft2 studio apartment with expensive paintings and other fine art
>get mad when someone writes an 11 line function
>YOU COULD HAVE USED A LIBRARY FOR THAT INSTEAD OF REINVENTING THE WHEEL REEEEEEEEEEEEEEEEEE!
>reinvent the wheel
use a library
>b-but python
from op import homosexual
>if anything C is one of the simplest language
Why is the C standard more than 700 pages? C is not simple. It lacks features which people confuse with being simple.
c standard is 700 pages long bc corporate thought they can make programmers cheaper by introducing the standard library.
which is part of the posix standard.
c is a simple language.
coporate made it complicated
coporate made *things complicated
why are you doing something python does automatically? dont complain if ur purposely cheating the interpreter
>seething about python in 2023
Us Pychads own the entire data engineering, science and AI market. Also got a good foothold on the webshit space with FastAPI, Flask, Django and teaming up with Typescript.
There's really no intersection or conflict between C and Python anyway. Go cry about rust or C++.
>Django
Anyone using Django needs to be shot. No exceptions; Djan-naggers against the wall.
Seethe more
>Use Django
>Want to add an AND clause to a join
>Find out it's literally impossible in that dogshit framework
>Use Go and Gorm instead.
Django naggers will 43% eventually.
>filtered by fucking django
TOP FUCKING KEK
You literally can not tell Django to do a left outer join with an and clause. It can't be done, not even joking, it's literally impossible. Just let me write SQL.
>Prove me wrong
Pro tip: You can't
>doubling down on being filtered
>Can't prove me wrong
>Just shit posts
Typical street shitter lmao.
>filtered by the easiest framework of them all
>but I am the street shitter
LMAO
>Still can't prove me wrong
Enjoy your subpar ORM, I'll continue being a SQL chad.
I know we're shitting on Django and python but allow me to bring attention to this: sequelize fucking sucks and I just wasted 3 hours trying to fix a fucking bug because you can't modify the JOIN clause at all. Let me join by fucking subquery you fucking naggers
I hate all ORM's at this point, They all just fucking suck so much dick.
ORMs have always been cope for retards who refuse to learn SQL
basit
Sometimes its the tools and not the craftsman.
> uses ORM
pathetic
>filtered by Django
>uses GORM instead of normal SQL in Go
you're a fucking retard
> We wrap C code into Python wrappers like numpy and pretend Python has high performance
>noooooo you can't execute compiled code from python because.....you just can't
>We compile C code into assembly and pretend C has high performance
>we compile assembly into machine code and pretend assembly has high performance
>we run machine code on blackbox branch prediction electrical circuits and pretend machine code has performance
So, based on that pic
>C
>relies on magic in the standard lib
>bloated CRT
>Python
>everything is clear, no hidden stuff, no under the hood magic
>can inspect CPython bytecode if you're really curious
The runtime and standard libs are there to allow the program to run as a standalone executable and to translate things the programmer sees as basic operations to machine code. Python has all this too, but it's hidden in the Python executable that your programs can't run without.
>-ly gonna get you a job
too sad you won't every know, OP
wow look how both of them use another simpler language embedded within them that's weird
import ctypes as C
scanf = C.CDLL("libc.so.6").scanf
a = C.c_double(0)
b = C.c_char(0)
c = C.c_double(0)
scanf(b"%lf %c %lf", C.pointer(a), C.pointer(b), C.pointer(c))
print(f"{a} {b} {c}")
oh no no no C bros we got too cocky
You are doing it wrong and the code is not equivalent, retard, also you are not checking for errors.
Is there a common implementation for dynamic arrays/vectors for C? Or even a string type with known length instead of the null terminated one?
I don't want to make my own, and I'm on linux.
>I don't want to make my own
dont use C then
thats literally its selling point
use c++ instead
what youre missing in C is one of the selling points of C++ over C
Idk. C++ has weird UB, and like four constructors. Also OOP sucks, classes suck. Do all C niggas really implement all basic shit? Isn't there a decent std lib that I can get somewhere? Like does the Linux kernel really doesn't have a dynamic array lying around somewhere that I can just import? Or even a known length string?
> Do all C niggas really implement all basic shit?
i would really be the worst person to ask that question
i never wrote idiomatic c.
i write pretty much everything from scratch bc writing idiomaitic c implies you need to know the code of the standard libraries to avoid footguns.
and idiomatic c can be extremely asinine sometimes like idiomatically putting a string from stdin into an array implies computing the length of the string 4 times iirc.
i mean, for a c-ultist, making a dynamic array is trivial and how you make it depends on your use case
is it small enough to sit on the stack? you could use vla's
or maybe its too big for the stack, but not very large either. you could just pre-allocate a bunch of memory and have basically a vector which you might resize only a couple of times during your whole runtime
are you gonna re-order it? how? how many elements?
it might be a good idea to have a linked list that you allocate in a bloc so your memory is contiguous and so you have kinda the best of an array and a linked list
i mean, the appeal of C-like is that you can do whatever you want with it (bc you can write C in C++. no problem at all. its stylistically incorrect, but you absolutely can do that)
you could just ignore the oop part in c++, but still use its standard data structures.
i believe john carmack writes in such a style in c++. very rare use of c++'s higher level functionalities
the only reason you might want to use c over c++ is because c does way less things behind your back than c++. and thats because it has less functionalities.
a, b, c = input().split()
a, c = int(a), int(c)
You are stupid
These threads are always filled with the same completely braindead naggers that just spout shit without ever providing even a single crumb to back up any shit they say. HURR FUCKING DURRRRRR THE SKY IS GREEN!!!! WHAT DON'T THINK SO????? WELL UR A DUMB FAGGIT HURRRR DURRRR!!! Fucking do everyone a favor and kill all of your relatives before eating a fucking bullet.
By the way when you do decide to blow out that empty cavity on your shoulders be sure to tell me so I can show up to your burial plot and piss on your grave.
why is everything a pointer in C
so retarded
>why do I need to use memory addresses when using computer memory WAAH
>
People who shill for languages like C on this board always defend it by saying that if you don't program in C, you don't understand memory management, pointers, etc. The average large-scale software project has bigger fish to fry than that. Abstracting the problem beyond the scope of needing to manage a bunch of pointers is helpful. The loss in performance is fine because it's easier to interface with a language like Scala for big data processing than C.
Most people shilling C don't understand this because they aren't employed. They're genuinely too stupid to understand that most people who don't work in C had the same CS101 class as them. People who program in higher-level languages understand pointers and memory management. They're just working on problems where that autistic fixation on something so low-level is an actual waste of time. C shills don't understand this because they're nocoders who've read exactly one book on the topic and decided they're among the smartest programmers to have ever lived. This people should be IP banned because that add nothing of substance to any discussion that happens here.
>like C
C++ is a production language.
and it is "like C".
i guess i found the cs 101 student itt
Lazy bait, but I'll bite.
>C++ is a production language
And my hammer is a tool. That doesn't mean my hammer is the correct tool to trim my hedges. C++ is good a things that Scala JVM languages aren't and vice versa. Trying to force one language to do everything makes you look like either a student or a dunning-kruger retard maintaining a legacy monolith and mistaking his 30-year-old stack for the universe correct way of solving any problem.
>and it is "like C"
If saying languages "like C" get shilled here by nocoders is enough to set you off like this, unplug your router and drop it into the toilet because you're mentally unfit to use the internet.
>correcting your retardation is a personal attack
yep. not only cs 101
not only webshitter
but also a fag snowflake
the complete trifecta
why you webshitters are so obnoxious?
not all of you are, but obnoxious people are always webshitters.
why?
>"webshitter"
>shilling C++
All you had to say was "I work for the government and make $20/hour," anon. No need to encode it in this much misplaced smugness. Are you about to spread your ass even more to see if waterfall will fit in there too?
oooh
youre triggered hard
look, its not my fault youre getting replace by a dyslexic ai
just get better, scrub
retarded nagger.
>python is simp-ACK
Skill issue
was a bit annoying to figure out in nim but its nice how it checks the types
import strscans
var
x, y: float
c: char
if scanf(readLine(stdin), "$f $f $c", x, y, c):
echo x, y, c
else:
echo "fail"