[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/dpt/ - Daily Programming Thread

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 366
Thread images: 45

File: dpt debiru java.png (557KB, 433x713px) Image search: [Google]
dpt debiru java.png
557KB, 433x713px
old thread: >>59291825

What are you working on, /g/?
>>
File: r.png (488KB, 2550x3300px) Image search: [Google]
r.png
488KB, 2550x3300px
>>
>>59294171
Second for Rust users shitposting because they can't actually get anything done
>>
>be me
>write a single line of C in a file
>save it
>compile it
>link it
>run it
>my entire system is compromised due to C's unsafety
>>
File: 1457639633993.png (641KB, 636x616px) Image search: [Google]
1457639633993.png
641KB, 636x616px
Employed Coq programmer reporting in.
>>
>>59294189
What does an average C toddler do with their ultra sophisticated ANSII C with maximum undefined behaviors?
>>
So how many concurrent routines are you running right now? 2? 3?
>>
>>59294171
That book is actually one of the best java books I read compared to Head First Java, Effective Java, Thinking in Java, and all the other good ones.
>>
File: 1476804876543.jpg (71KB, 487x497px) Image search: [Google]
1476804876543.jpg
71KB, 487x497px
>tfw Rusters try to justify their inability to program by attacking C
sad!
>>
>>59294194
Wait till you have to deal with microprocessors. You have no idea if it is the hardware or your code.
>>
>>59294213
>doesn't deny it
I don't use C at any rate, so I don't know
>>
>>59294181
>know your libraries
This is programming for people who aren't dealing with actual problems. Seriously. When you're dealing with a problem in programming that demands engineering skills your libraries aren't 'solutions'. They're tools.

And in my experience woefully insufficient tools because they naturally aren't adapted to my specific problem. So you avoid them.
>>
>>59294213
Write your OS
>>
>>59294226
>inability to program
lol yea fucking noobs making noob bugs in the kernel and openssl amirite
>>
>>59294226
That's not them actually, they would say C(ancer). anyone who says "c toddler" is most likely a pajeet who likes POO.
>>
File: YOU!.jpg (278KB, 1920x1080px) Image search: [Google]
YOU!.jpg
278KB, 1920x1080px
>>59294181
>be employed webdev faggot
>spend 8 hours adding 24 new external dependencies to my software project because I don't know how to write a fucking leftpad function
>pat myself on the back because I did my very best!
>>
>>59294241
Jokes on you I use Redox
>>
File: 1474373650932.png (164KB, 413x352px) Image search: [Google]
1474373650932.png
164KB, 413x352px
>The old thread lasted less than 2.5 hours
These threads have been too fucking quick lately, and the quality of the threads show that.
Stop shitposting so much.
>>
since when did /dpt/ become okay with Java?
>>
>>59294257
The jokes still on you my friend ;)
>>
>>59294264
i rather have java shitposting than anti-C zealotry
>>
>>59294248
>lol look at these FOOLS
>they're running the world and they're not even doing it perfectly
>how dare they do anything, the most bug free code is code that wasn't written in the first place
>lets never write anything of note to convert people to our language or anything, programming is for losers who want bugs
>>
>>59294276
anti-C zealotry is actually java shitposting.
>>
>>59294276
C stands for Cancer
>>
>>59294281
no, those are rust faggots
>>
>>59294264
are you using some sort of alternative version of /dpt/?
>>
Compilers in RUST
OS in RUST
Utilities in RUST
Programs in RUST

C is DEAD
Linux is DEAD

The NEXT generation is HERE
WIPE your drives and INSTALL the NEW generation of SAFE, FAST, CLEAN, INCLUSIVE code

THE lingua franca is RUST now
FUCK OFF if you write C
FUCK OFF if you read C
FUCK OFF if you think C has any reason to be used anymore
This is the YEAR OF RUST
The YEAR OF REVOLUTION
CULTURAL REVOLUTION IN PROGRAMMING
VIVA RUST
VIVA SAFETY
FUCK C
>>
File: haskell quote.png (1MB, 790x960px) Image search: [Google]
haskell quote.png
1MB, 790x960px
>>59294307
>Compilers in [Not Haskell]
but why
>>
>>59294307
This

C apologists are NSA shills plain and simple. Rust makes it harder to produce vulnerable programs as it actually implements safety precautions like Bounds checking, dangling pointer prevention, data race prevention, lifetimes etc. This is against the interest of the NSA and so they are shilling C so that people continue to produce exploit prone, unsafe and vulnerable programs.

Ignore the NSA/C shills. Programming in C should be banned and outlawed.
Say no to security exploits, say no to the NSA. Your data and your privacy is worth preserving.
>>
>>59294292
wrong. they don't say "c toddler". only POO faggots do that, so most likely j*va or c*
>>
>>59294326
All me
>>
the day has come where Java is no longer a meme language among /dpt/ feels good man
>>
I suggest making a seperate thread just for C(ontainment)
>>
>>59294205
Where, Inria? What did you do? How much did you fuck up?
t. OCamlfag
>>
>>59294347
>"""meme"""
>>>/r/abbit
>>
File: akari bleh.jpg (43KB, 690x460px) Image search: [Google]
akari bleh.jpg
43KB, 690x460px
>let's prevent C rookie mistakes by enforcing autistic pointer lifetime limitations
>what's that? explicit pointer lifetimes are making your program needlessly complex???
>oh what's that? you know what you're doing and you don't need you be handheld by your compiler?
>FUCK YOU!!!
>>
>>59294236
>You don't need tools to solve a problem
>>
File: img_007.png (266KB, 462x628px) Image search: [Google]
img_007.png
266KB, 462x628px
>>59294217
3.
>running SCFT+Anderson acceleration in C++
>running odeint in Fortran
>running finite element in Go
>mfw
>>
I like Java and Rust myself, it's Darwin's language, everyone who can't do C gets trapped inside and keeps C community clean of retards. Thanks Java and Rust! :D
>>
File: 15822597.jpg (5KB, 370x334px) Image search: [Google]
15822597.jpg
5KB, 370x334px
>>59294395
Akari loves Rust
>>
>>59294423
>finite element in Go
what the fuck?
>>
>>59294426
Why can do C again?
>>
>>59294358
>Where, Inria?
Nah.
>What did you do?
I'm not sure I understand the question. I'm just doing some work for CERN.
>>
>>59294395
>>59294430
I want to FUCK Akari's mouth just like Rocco Siffreidi did with Nataly Gold!!
>>
>>59294407
You don't need all tools to solve a problem. Not at once. Some tools can easily be replaced by others and give you a different result that may be preferable.

Most standard libraries is a box filled with hacksaws, sledgehammers and nails. Note the plural.
>>
>>59294426
I like Lisp myself, it's Darwin's language, everyone who can't do Lisp gets trapped inside the parentheses and keeps Lisp community clean of retards. Thanks Lisp! :D
>>
>>59294450
Delete this post you fucking pedo
>>
>>59294447
I meant how did you end up there. Was it part of a PhD program or something? I don't know any other way to end up working with Coq..
>>
File: 15626158.jpg (29KB, 716x403px) Image search: [Google]
15626158.jpg
29KB, 716x403px
>>59294458
>You don't need all tools to solve a problem.
riiight, so you are so 1337 you don't even import pre existing libraries
>>
>>59294488
Sometimes being all fancy with your toolbox only hurts you. But if you have no desire to understand I won't force you.
>>
>tfw finding inner peace and serenity thanks to the simplicity and elegance of imperative programming
Is it the one true way of dealing with dysthymia?
>>
I've literally never seen a software project in rust.
Ever.
>>
>>59294486
How about I delete ur life kid
*deletes ur life*
>>
>>59294511
>dealing with dysthymia
Seriously might think that at this point.
It's why I program so much.
>>
>tfw the textbook your professor wrote is in the /dpt/ OP
comfy
>>
File: 1455749649222.gif (148KB, 340x340px) Image search: [Google]
1455749649222.gif
148KB, 340x340px
>mfw waiting for my book on mail
>>
>>59294522
*teleports behind you*
Nothing personal, kid.

>>59294518
Well that might be pushing it a bit far, there is that rustc compiler written with Rust.
>>
>>59294535
your professor isn't Daniel don't lie
>>
File: ayano_akari.jpg (99KB, 537x758px) Image search: [Google]
ayano_akari.jpg
99KB, 537x758px
>>59294537
What book is it anon-chan?
>>
>>59294538
*lowers hoodie, revealing a second face on the back of my head*
>>
>>59294487
No, I don't even have a formal education.
>>
>>59294529
Now if only I could stay focused for more than 10 minutes on something. I'm more on the irritable/angry side of the spectrum during dysthymic episodes.
>>
>>59294518
Redox
Servo
Amethyst
>>
>>59294217
like,, maybe 5, or 6 right now. my dude
>>
>>59294547
I took him for Object-Oriented Programming, Data Structures and Algorithms, and C++. Then I transferred out of that school.
>>
>>59294518
I am using Alacritty right now
>>
>>59294518
>Typical C toddler loves to live under rocks
https://github.com/redox-os/redox
https://github.com/Kintaro/wtftw
https://github.com/way-cooler/way-cooler
https://github.com/imazen/imageflow
https://github.com/PumpkinDB/PumpkinDB
https://github.com/rust-bio/rust-bio
https://github.com/PumpkinDB/PumpkinDB
https://github.com/vberger/wayland-rs

Enjoy being stuck in the 80's
>>
>>59294596
How is he as a professor? I am curious

Also, why did you transfer out of that school?
>>
File: programming-in-d-front.jpg (186KB, 1800x1412px) Image search: [Google]
programming-in-d-front.jpg
186KB, 1800x1412px
>>59294552
>>
Any C programmers here? I wanna kick your ass.
>>
>>59294618
Same here
>>
>>59294618
*teleports behind you*
>>
>>59294609
He meant projects with real use in the real world anon
Enjoy your toy language. but this is an adult programming thread. See ya
>>
>>59294618
>C
>Programmer
toddler*
>>
Work as a JS developer mostly express js shit and some ng2.
Doing maintenance work on a federal gov crm
>>
>>59294635
>toddler
NSA agent*
>>
>>59294627
What is the real world? Is there a fake world?
>>
File: 1487822049152.png (231KB, 342x342px) Image search: [Google]
1487822049152.png
231KB, 342x342px
>>59294627
>adult programming thread.
Jesus Fuck these pre teen C fanboiis I swear
>>
>>59294626
*safely teleports behind you with no risk of overflowing my teleport buffer*
>>
>>59294627
Servo and firefox
>>
>>59294657
*fails due to lack of feature and appropriate compiler support*
>>
File: 186.png (31KB, 300x100px) Image search: [Google]
186.png
31KB, 300x100px
>>59294627
What is an adult programming thread?
And why are you referring yourself in third person?
>>
>>59294609
>github shit
>github shit
>github shit

Enjoy your 2017. Please try to have an independent thought, the future depends on it.
>>
>>59294663
Again, he meant applications with real world use. Chrome is written in C++ for example
>>59294652
You want to fuck pre teen bois? I guess it's not shocking coming from a Rust coder
>>59294651
Yes, the one Rustards live in

I promise I'll try Rust when I get some blue hair dye and a nose ring tho
>>
File: confused_undines.jpg (77KB, 704x524px) Image search: [Google]
confused_undines.jpg
77KB, 704x524px
>>59294440
Sorry I was just cumming handsfree and cleaning up my skirts. What seems to be the problem anon?
>>
>>59294651
>>
File: 1488869296301.png (228KB, 3316x1896px) Image search: [Google]
1488869296301.png
228KB, 3316x1896px
Did a tripshit just reply to me?
kek
>>
Let's build the hardest C exercise possible, friends.
/* complete this function so that the output is the average of a and b */
uint64_t average(uint64_t a, uint64_t b) {
uint64_t c;
/* get to work now! :) */
return c;
}
>>
>>59294676
You were so embarassed by your programming skills you had to project on me? Cute
>>
>>59294697
>refers himself in third person again
C toddlers are getting desperate here
>>
>>59294611
He's very impersonal. His lectures are mostly reading the book and going through its examples. You could probably pass his classes with minimal effort as long as you do the homeworks, which each drilled a specific topic without overwhelming you too much in other areas. The exams tested concept knowledge without kicking your ass about programming semantics.

I transferred to a better school in my state for a different major, and I feel like my programming classes here don't really teach the concepts as well as I learned in his classes. For example, I didn't get credit for C++ at my current school so I'm taking it again, and the assignments are much harder than his were, but I don't feel like they're driving home a specific concept or paradigm.

I took data structures and C++ with him at the same time and it was pretty much the same class but in different languages. Well, minus all the JavaFX shit he made us do in data structures.
>>
>>59294712
What is an adult programming thread, C toddler?
>>
>>59294701
some fucking tortoise pla- what? i must know the rest!
>>
>>59294711
Average two integers in C and realize how shitty C(ancer) is
>>
>>59294698
Why do you use Go for computational code?
>>
>>59294702
Probably not, there are no tripcodes in this thread.
>>
>>59294713
>calls me a toddler in an attempt to feel equal to me
I hope you'll be able to feel proud about yourself instead of trying to overcompensate anon
>>
>>59294741
How do you average two integers in Java, Pajeet?
>>
Jesus Christ why are C tards so obnoxious?
>Javafags hate 'em
>FP fags hate 'em
>JS fags hate 'em
>C++ fags hate 'em

BAN C
>>
>>59294747
BTFO!!!!
>>
>>59294759
By being paid actually.
>>
C is Communism
>>
>>59294771
No, you moron, what is the algorithm?
>>
>>59294771
KEK
>>
>>59294742
Because I just learned it and it's a kawaii language.
>>
File: 1481403342500.jpg (2MB, 2000x4000px) Image search: [Google]
1481403342500.jpg
2MB, 2000x4000px
>>59294765
Meant for >>59294771
>>
File: diagram.png (150KB, 2436x507px) Image search: [Google]
diagram.png
150KB, 2436x507px
Is CompCert the pinacle of software engineering and why do you all answer yes?
>>
>>59294395
 unsafe 
>>
>>59294615
Good man
>>
>>59294800
False, the "BTFO" post came before Pajeet's reply. So it couldn't have been replying to it.
>>
>>59294799
I agree but I'd feel weird if I used a GC'd language for a FE code.
>>
>>59294724
The way the book is written it makes the concepts easy to understand and keeps re enforcing the concepts so you can do the programming exercises very easily which is the sign of a great teacher to make complex concepts easy to understand for starters.
>>
File: 1488491035624.png (96KB, 1920x1012px) Image search: [Google]
1488491035624.png
96KB, 1920x1012px
>>59294821
You seem upset. Am I making you upset?
>>
Studying for an exam on Machine Organization.
Just wrote a memory allocator not to long ago and now we're focusing on caches.

How fugged are you all for exams?
>>
>>59294838
C's printf is better
>>
>>59294844
I dropped out because mental illness so pretty fugged
>>
File: 1487463346405.png (97KB, 1934x1069px) Image search: [Google]
1487463346405.png
97KB, 1934x1069px
>>59294846
Is it? KEK
>>
>Even D fags hating on C(ancer)
>>
>>59294854
What illness?
>>
>>59294871
autism
>>
>>59294854
Man I wish I was mentally ill so I could drop out and not worry about exams.
>>
Ah yes the old unspecified behaviour meme.
>>
Thanks to Rust and Javafags this is now a shitposting thread and it's ruined. Well done!
>>
>>59294857
Yes, it is.
>>
>>59294871
>>59294854
Here. I have IED, basically anger management issues on steroids.
>>
>>59294883
No you don't it is no fun and messes you up
>>
>>59294890
>ah yes
>>>/brit/
>>
File: 1488899567722.jpg (40KB, 319x389px) Image search: [Google]
1488899567722.jpg
40KB, 319x389px
>>59294899
Enjoy your unspecified behavior in stdio LMAO. Cry all you want C is trash
>>
>>59294883
I'm not exactly not worried. I'm losing it no matter what and it's not like I get special treatment afterwards.
>>
>>59294824
>GC'd
T-that's what Go is?
>>
>>59294857
Ayy lmao is this photoshopped?
>>
>>59294931
No it's genuine C experience :^)
>>
>>59294912
I use printf in Haskell all the time.
It's pure, and monads, so no need to worry about sequence points.
>>
>>59294857
You decremented twice before the printf function call, so i would be 1.
You're simply a retard.
>>
>>59294946
>C rekt count++
>>
>>59294949
REALLY NOW? ARE YOU SURE THAT'S WHAT HAPPENNED?
>>
>>59294949
Oh boi
>>
>>59294867
You do realize D was specifically created to fix perceived flaws in C and C++? Of course D fags are going to have criticisms of C.

>>59294912
You wouldn't have unspecified behavior if you followed the standard.
>>
Where are these rust shitposters coming from?
>>
>>59294970
>God damn it ken, there is an UB in the standard I/O library
>"oh okay we'll fix it by pretending it doesn't exist and hoping users don't use it"
>Fucking brilliant
>"Of course, in C we keep things simple: simply denying the breakages"
>>
>>59295006
The UB doesn't exist in stdio, it exists in the convention for passing arguments to functions.
>>
Good thread dudes
>>
File: 1453766357284.gif (237KB, 276x268px) Image search: [Google]
1453766357284.gif
237KB, 276x268px
>>59294181
>>
>>59295014
That doesn't fix anything
>>
>>59294962
>>59294967
you literally decremented twice.
you passed the same variable 3 times, expecting a different output
>>
>>59294171
Reminder that as long as Common Lisp exists, your language's special snowflake syntax will never be unique.
>>
>>59295030
Uhm, I'd suggest you compile that shit with Clang, it "magically" doesn't decrement twice and posts 3 2 1 instead of 1 1 1 (typical C autism)
>>
>>59294857
This example again?
This has to be bait, no one can be this stupid.
Prefix -- is an assignment operator. If you faggots understood how computers work you would see why the C example behaves the way it does, but you don't so you shill D and rust.
>>
>>59295056
>>>/lit/
>>
>>59295042
Are you saying that clang is a defective compiler that literally jumps between stack frames and destroys any semblance of cachelining in order to execute code in the exact order you wrote it?

That's really unfortunate if it's true.
>>
>>59295072
>Something working as the users intends to
>"It's defective"
C fanboys, everyone
>>
>>59295072
Why are my C functions read top to bottom?
>>
>>59295084
Clang executes side effects from left to right, a completely arbitrary design decision.

If you don't want this shit, stop packing your function calls with side effects.
>>
>>59295084
>Anything working
>C
>>
>>59295084
>>59295090
C++ doesn't have this problem. C autists can go burn in hell
>>
I hate C with fiery passion. What's the language for me?
>>
reminder that monads force sequencing explicitly
>>
Everything that doesn't have unspecified argument evaluation order is losing efficiency to C. Sometimes order matters, sometimes it doesn't. If it does, you order the statements, if not, you don't.
>>
>>59295126
Lisp
>>
>>59295130
Does C have monads?
>>
>>59295067
Is that a compliment?
>>
>>59295126
Haskell is about as different from C as possible
>>
>>59295140
More importantly? Does C have any modern functionalities at all? Fucking 80's garbage
>>
Do you use docker /g/?

I'm currently debating whether it's a bad practice to use environment variables for building an image or not. We are installing production or development packages based on an envvar (prod has some webserver added while dev has debug tools and uses the framework's mini dev server). I think envvars are good for configuration when running a container, but using them during build is just easier than having multiple dockerfiles. What do you think?
>>
VERY polite reminder that if you use a language with a built in Rubbish Scavenger, it's a language for teenagers and careless morons only!!
>>
>>59295140
you can add them
>>
>>59295151
Fuck everything I'll learn haskell now


Does rust support Functional Programming?
>>
File: 1379400036054.gif (3MB, 290x173px) Image search: [Google]
1379400036054.gif
3MB, 290x173px
I write SQL procedures for a living, can you all take turns spitting on me, please?
>>
File: functional-right.jpg (512KB, 1131x1600px) Image search: [Google]
functional-right.jpg
512KB, 1131x1600px
Daily Reminder: Functional Programming is the one true paradigm

>rust a shit
>c a shit
>>
>>59295151
What do you consider ``modern functionalities"?
>>
>/agdg/ calling me a code monkey because I don't use OOP or design patterns
>>
>>59295140
Nope. Lisp does. And even then, monads aren't important in Lisp.
>>
>>59295163
>Does rust support Functional Programming?
Not nearly as well as Haskell or OCaml

If you want to learn, start with the Haskell wikibook
>>
>>59295168
string input = strip(readln());
>>
>>59295165

I have an opportunity to start over my dev environment. I have visual studio, what else should I get?
>>
>>59295168
Anything that involves swallowing cocks on a daily basis.
>>
>>59295182
>this kills a C.cuck
>>
>>59295165
Rust is a functional language.

>>59295180
Rust is just as functional as any ML.
>>
>>59295173
>gamedev
>no oop

go there rn and post "I am a code monkey"
>>
>>59295173
What's the matter, can't handle REAL criticism? You're just a baby! A smelly baby who cries alot!
>>
>>59295195
>gamedev
>OOP
>>
>>59295160
Maybe the waste harvester is not the bottleneck for my application so it doesn't really matter if it's gonna let me write fast & safe code easily and with cheaper code monkeys.
>>
>>59295168
Fix your defected keyboard, it's just as bad as C language

And start with proper lambdas, exception handling, strict type checks, runtime checks, constructors etc
>>
>>59295210
Games are written in C++
>>
File: haskell levels.jpg (179KB, 1200x1198px) Image search: [Google]
haskell levels.jpg
179KB, 1200x1198px
>>59294590
>>
>>59295182
Can't C do that?
Don't tell me no
>>
>>59295164
Been there man. Somehow they don't get that parametrized queries are just as good and keeping them in code gets them into version control.
>>
>>59295229
C++ is multi-paradigm.
>>
>>59295192
>Rust is just as functional as any ML.
No, it isn't
>>
>>59295244
No heavy games are written in procedural programming
>>
>>59295240
It could if you wrote the functions. But other languages have them right there.
>>
Rust is more inclined towards FP than OO, it doesn't have many OO features while it has many FP features
>>
>>59295165
>FP
>leftist bullshit
no. remove yourself from this thread.
>>
>>59295229
>not being iterative programming master race
>>
>>59295256
But they all use Lua
>>
>>59295165
Rust is functional
>>
>>59295270
Rust is imperative + some FP
It's a step in the right direction, but it's not a very big step
>>
>>59295165
So how do you do functional programming in assembly language?
>>
>>59295270
Nobody cares about your shit meme language, just fucking die already.
>>
File: 1476016365112.png (411KB, 500x503px) Image search: [Google]
1476016365112.png
411KB, 500x503px
>>59295268
C doesn't even have strings
>>
>>59295221
>he doesn't know about tex typography
Can Rustmonkeys stop embarrassing themselves?
>>
>>59295229
Game engines are written in C++. Games are written in unrealscript/unityscript/Lua/c#/javascript/blueprints/etc
>>
>>59295296
C is a shit meme language see >>59294857
>>
>>59295256
How do you know? Lots of recent engine development stuff is about data oriented design (procedural) and high parallelism (functional). OOP provides nothing when it comes to cache optimization and lock free concurrency.
>>
>>59295182
What does "strip" do?
>>
>>59294857
>using a garbage compiler
>>
>>59295297
It has ints and arrays. Everything else is an implementation detail.
>>
>>59295306
Yeah I know how to use "quotations" instead of using `backticks` like an autistic toddler
>>
>>59295312
This, OOP is as dead as Rust.
>>
>>59295321
cool cool, C hacker masters use
 immutable char (int)[]
to show off epeen
>>
>>59295329
Rust is NOT dead, Rolling Stone Magazine just praised it as THE MOST important language of the last 50 years. Vanity Fair call it "a quantum leap", Playboy Magazine thinks it's "hotter than Paris" NOT DEAD NOT DEAD NOT DEAD
>>
>>59295351
immutable
isn't a C keyword.
>>
>>59295297
kek
>>
>>59295366
>C keyword.
I don't use C(ancerous) language hence that's not C
>>
FUCK C... and FUCK WHITE PEOPLE
>>
>>59295398
Fuck off /pol/
>>
>>59295353
What tiddies die playboy use in their article?
>>
>>59295398
>/pol/ trash
Get out
>>
File: 1470930284936.jpg (447KB, 800x800px) Image search: [Google]
1470930284936.jpg
447KB, 800x800px
>>59295221
C doesn't have exception handling?
>>
Isn't it American spring break right now? Is that why the last bunch of threads have been so awful?
>>
C does not even have contract programming LEL
>>
>>59295398
FUCK RUST... AND FUCK FAGGOTS.
>>
File: 1487308169712.jpg (144KB, 900x750px) Image search: [Google]
1487308169712.jpg
144KB, 900x750px
>mfw Rust shills are BTFO
>>
Just printed out a page of Rust code and took a FAT SHIT on it
>>
If I'm good at maths should I learn Haskell?
What's the easiest FP to learn?
>>
>>59295426
/dpt/ hasn't been good since before the image wars.

You should know this.
>>
>>59295428
>what are header files
>>
>>59295473
post picture
>>
>>59295477
It's been particularly bad these days.
>>
>>59295473
I just took a snippet of C code and found 32 exploits of it
:^)
>>
>>59295384
In >>59295351, you claimed it was C.
>>
>>59295475
If you want to learn Haskell, read the wikibook
It can be a pain to install though (unless linux)
>>
>>59295516
Is haskell the easiest one to get started with?
>>
>>59295422
You return errors and check them with ifs just like your modern rust and go langs
>>
>>59295487
It's always been in some sense shit, how shit it is depends on the day. The past month has been particularly shit because people reply to the rust shitposters.

I've seen /dpt/ in worse states.
>>
>>59295473
>FAT
>Not ext4
>>
Just printed out a page of Haskell and stapled it to my wife's face and fucked her missionary style for the first time ever, I couldn't stop staring at the beauty of the code, I blew my wad in seconds
>>
File: 1446311513257.jpg (98KB, 1920x1080px) Image search: [Google]
1446311513257.jpg
98KB, 1920x1080px
>>59295536
>the rust shitposters
>>
>>59295475
Learn Lisp.
>>
>>59295496
you wouldn't find an exploit even if it was stuck up your ass so deep that you had trouble walking
>>
>>59295475
https://bartoszmilewski.com/2014/10/28/category-theory-for-programmers-the-preface/
>>
>>59295562
29 backspace LOL
>>
>>59295521
No.
>>
does C have operator overloading
>>
Do you boys even make software? This looks like a e-peen thread to me.
IMO if you can make it work and maintainable then it's good. Doesn't matter which lang you use.
>>
File: test (2).png (716KB, 811x599px) Image search: [Google]
test (2).png
716KB, 811x599px
>>59295475
Learn quantum computing.
>>
>>59295598
no?

sad!
>>
>>59295611
IF IT'S C IT'S GONNA CRASH
RUST FOREVER!!
>>
>>59295611
Fucking C apologist convert to Rust now or so help me G*d (who doesn't exist) I will shred you
>>
>>59295612
Your regex is shit.
>>
How proficient should one be in any given language before attempting to learn another one?
>>
>>59295633
that wasn't regex that was pseudo-NF
>>
File: 1483135677975.jpg (189KB, 495x700px) Image search: [Google]
1483135677975.jpg
189KB, 495x700px
C programmers are like people who yell #NOTALLMUSLIMS
Every time a vulnerability/exploit is discovered they pray C isn't to blame again.
When inexorably it turns out that, yes, C is again to blame they drag out the "moderate Muslims" that can write perfect C code every time
>>
>>59295646
Whatever it is you did it wrong.
>>
>>59295640
At least 15.
>>
Does C have Lambdas?
>>
>>59295612
So 2 letters then underscore then at least one more letter or number other than 0?
>>
>>59295656
Prove it
>>
>>59295623
>>59295627
But why do you care so much? Im not a c or c++ programmer at all btw.
>>
>>59295666
With a Clang extension, yes. We like to call them "clangbdas"
>>
Reminder Rust has compile time and runtime bugs that make any of its output as unreliable as any other language (except CompCert).
Really makes you think huh...
>>
>>59295672
It's pure autism.
I bet he doesn't even know rust.
>>
>>59295652
>perfect C code
That's just as fictional as unicorns
>>
>>59295652
What's wrong with tall Muslims?
>>
>>59295666
GNU C supports anonymous functions.
>>
>>59295679
The only reason Rust "programmers" think their pet meme language has no bugs is nobody has ever written code in it that got used in production.
>>
>>59295678
Only Clang huh?
One that C users like to call broken?
>>
>>59295579
Yes.
>>
>>59295652
There is no perfect C code, just undiscovered exploits.
>>
>>59295700
i heard they wrote gay porn site in rust recently, it is very popular
>>
>>59295719
wtf, I love RUST now
>>
>>59295678
How do I use them?
>>
File: 1487776988114.png (60KB, 645x968px) Image search: [Google]
1487776988114.png
60KB, 645x968px
Does C have monads?
Or are C toddlers' little brains cannot comprehend what monads are?
>>
>>59295613
>Read this with me
No, go away. Second worst girl. I'll read it with Sumire.
>>
>>59294181
Stop bringing violence onto this board by assuming genders
>>
>tfw tired from working all day and no energy to bully C coders
>>
You must sign a code of conduct and put on stockings before writing Rust
Steve is watching
>>
>>59295736
What languages support monads?
>>
>>59295687
What's wrong with this C code?
#include <stdio>

int main(void)
{
return(puts("Hello, World!"));
}
>>
>>59295736
No?


Sad!
>>
>>59295761
Anything with HKTs. Even C++.
>>
>>59295670
Any grammar that fits that pattern as correct is objectively wrong. + is just the icing on the shit cake.
>>
>>59295736
You can describe monads in C

>>59295761
If it has void pointers and function pointers, it probably can
>>
>>59295761
My language.
>>
>>59295761
Lisp.
>>
>>59295761
Typical C toddler
>>
>>59295770
Nope. The grammar returns the same output for all inputs.

>>59295774
Can you show me your compiler?
>>
>>59295736
silly lad, only God can create Monads.
>>
>>59295764
>#include <stdio>
>>
>>59295764
HAHAHAHAHAHAHAHAA

IN
FUCKING
LINE
1

C is CANCER
>>
>>59295782
Only if you're in Australia anon
>>
>>59295764
stdio.h is what you're supposed to be including.
puts returns non-negative on success, so you're returning a failure code for successful execution of your program.
You have unnecessary brackets in your program. 'return' is not a function.
>>
>>59295782
Why do you want to see it? And how would I show you the whole compiler?
>>
File: dober4.jpg (104KB, 1024x576px) Image search: [Google]
dober4.jpg
104KB, 1024x576px
>>59295749
>tfw he works as a gay prostitute because there are no jobs in rust
>>
>>59295794
ɐilɐɹʇsnɐ ɯoɹɟ ui ƃuiʇɹodǝɹ
>>
>>59295764
Reminder to BAN C
>>
>>59295782
>returns the same output for all inputs
id?
>>
>>59295764
haha lawl noob u can't handle C(ancer)
>>
>>59295764
Too small to do anything worthwhile.

You want to know what has 0 bugs? No code at all.
>>
>>59295764
>#include <stdio>
How embarrassing.
>>
>>59295836
Humans make mistakes

C toddlers are in denial of that.
>>
>>59295778
Never touched the thing. I'm a Python embryon.
>>
Oh boy I actually feel discouraged about learning C.
>>
>>59295823
id returns different output for different inputs

(const r)
where r is what i intended
>>
*vape in*
C is shit.
*breaths*
>>
>>59295857
Learn D. C is garbage
>>
>>59295797
>You have unnecessary brackets in your program.
Those are parentheses, not brackets.

>'return' is not a function.
Neither is sizeof.

>>59295826
>t. retard
>>
what could the const function be used for?
>>
>>59295865
Only hipsters like old trash like 70's music and 70's programming language to be "retro"
>>
File: 1488638147656.jpg (162KB, 1537x896px) Image search: [Google]
1488638147656.jpg
162KB, 1537x896px
>>59295866
>mfw C is garbage but still thousands of times more popular than D
>>
File: 1487405871275.gif (706KB, 1280x1086px) Image search: [Google]
1487405871275.gif
706KB, 1280x1086px
>>59295857
Please learn do C. Pentesters and the whole infosec field need to eat too
>>
>>59295882
>const function
>>
>>59295857
Learn Haskell instead.
>>
>>59295882
Usually as an argument to a higher order function. It's also "return" for the function monad.
>>
>>59295885
Unfortunate. Shitty things tend to be more popular.

Like snapchat, windows etc
>>
File: 1467842847925.jpg (2MB, 10000x6600px) Image search: [Google]
1467842847925.jpg
2MB, 10000x6600px
>>59295866
>calls C garbage
>suggests D instead
>>
>>59295889
ayy
>>
>>59295889
Reminder that Rust isn't formally verified. It's not even an ANSI, ISO, or ECMA standard.
>>
This thread's lit af my senpaitachi
>>
>>59295878
The definition of bracket in my country is ( ), and be used to refer to basically anything which encloses a statement.
(round brackets)
[square brackets]
{curly brackets}
<angle brackets>

I always forget that this place is infested with filthy Americans.
>>
>>59295857
Learn JAI
>>
>>59295893
const :: a -> b -> a
how the fuck is this not a function?
>>59295898
>Usually as an argument to a higher order function
can you show an example?
>>
COBOL IS GREAT
>>
>>59295914
Your ISO standard is just a placebo
>>
>>59295882
beginsWith = zipWith const <=< reverse

"asdf" `beginsWith` "as"
>True
>>
File: 1488746990856.jpg (45KB, 720x720px) Image search: [Google]
1488746990856.jpg
45KB, 720x720px
>>59295914
NOT ALL MUSLIMS
>>
>>59295914
Also, there's only one compiler
>>
>>59295895
Learn Lisp instead.
>>
>>59295929
Does anime corrode brain?
>>
>>59295918
>in my country
What sort of country are you from?
>>
make new thread
>>
>>59295922
MAKE FORTRAN GREAT AGAIN
>>
>>59295920
map (const 10) [1, 2, 3, 4, 5] = [10, 10, 10, 10, 10]
>>
>>59295933
No, I'm actually creating a compiler for it.
>>
>>59295943
Here you go, fag.
This thread was literally up for less than 2 hours.

New thread:
>>59295944
>>59295944
>>59295944
>>
>>59295920
>const :: a -> b -> a
>how the fuck is this not a function?
Uh, that's pretty clearly two functions...
>>
File: 1455998238619.jpg (90KB, 675x900px) Image search: [Google]
1455998238619.jpg
90KB, 675x900px
>>59295937
Not as much as C code corrode security in programs
>>
>>59295914
>ECMA standard
Are you serious right now? An RFC released on April 1st is more of a standard than anything from ECMA.
>>
>>59295971
>>
>>59295964
is this bait
>>
>>59295968
Can't argue with that
>>
>>59295964
infer the type of the second function.
>>
New thread
>>59295971
>>
>>59295972
Rust isn't an April 1st RFC, either. That's the point.
>>
>>59294711
LOL I GET IT BECAUSE YOU HAVE TO CAST THE DIVISOR TO FLOAT BECAUSE PEOPLE FORGET THAT INTS ALIAS DECIMALS AND SO YOU PUT THE RETURN TYPE AS AN INT SO IT'S ACTUALLY IMPOSSIBLE TO FILL IN THE FUNCTION AND HAVE IT RETURN THE TRUE AVERAGE FUCKING LMAO SENPAI SENPAI
>>
>>59295973
>>59296000
The new thread already exists, idiot:
>>59295957
>>
>>59296022
>what is type inference
>>
>>59295975
yes
>>
>>59296022
>C experience
>>
>>59296069
nothing wrong with tat
>>
>>59295182
This is easily implemented in C.
>>
>>59296245
Go implement run time checks first
>>
>>59296047
>Wanting Java's obtuse type promotion
No seriously, why the fuck would you want that?
>>
>>59296343
do you even know what type inference is or are you just being retarded on purpose?
>>
>>59296360
Mostly the latter
>>
>>59296258
run time checks is code-word for bloat

>>59296343
No, it means that if the task is described as "find the average of two integers", the programmer should infer that the desired result is an integer.
>>
>>59296546
MUUUUH BLOAT XDDDDDDDDDDDDDDDDDDDDDDDDDD
>>
>>59296546
>the programmer should infer that the desired result is an integer
Completely wrong.
This is a mentality of a small sect of C programmers.
>>
>>59294171
just wanted to drop by and say that that book is beast.
Read it
Do the exercises in it
Learn it
Embrace it

You shan't ever be unsuccessful, unless ofcourse if god wills it.
>>
>>59296578
It's perfectly in line with C semantics. If an arithmetic operation takes two arguments of the same type, the result should also be of that type.
>>
>>59296723
>It's perfectly in line with C semantics.
not sane for every other language

>. If an arithmetic operation takes two arguments of the same type, the result should also be of that type.
>>
>>59296743
>not sane for every other language
So we shouldn't conform to C semantics when writing in C? Do you also write S-expressions in Java?
>>
>>59296788
I don't think it's sane for C either.
Why should == return a long?
>>
>>59296788
>>59296818
And more to the point, it's a specific task.
Someone has told you "average these numbers"
>>
>>59296818
>Why should == return a long?
Doesn't it return a bool? Which may be implemented "under the hood" as a long, if you're compiler is retarded.

>>59296834
If you're equating "average these numbers" with "average two ints", you're implying that for the purpose of this task, "number" means "int". So if the return type is "number", that implies it really means int.
>>
>>59296933
They don't say that the return type is "number", they say "average some ints", and it doesn't imply anything about the return type
Thread posts: 366
Thread images: 45


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.