/dpt/ - Daily Programming Thread

Previous thread: What are you working on, Sup Forums?

Other urls found in this thread:

web.media.mit.edu/~stefan/isis/
twitter.com/NSFWRedditVideo

First for D

based frogposter

You have been visited by the crossdressing C programmer of Shimoshina Academy!

Good performance, triple indirection, and tail call optimization will come to you, but only if you post "Keep overflowing the stack, Hime!" in this thread.

MOOOOOOOOOOOOOOOOOOOOOOOOOOOOODS

...

I hate it for pepe, but I love it for trump. Thanks for giving me mixed feelings on this OP. Anyways, MAGA.

Have the original.

A stenography program in C.
>mfw trying to understand image formats

KEEP OVERFLOWING THE STACK, HIME

Just use BMP and append everything at the end, because 4chum cannot detect it.

Dog bless.

Thanks user.

>just take the easy way out :)
Na fampai, I'm going for png support. Fuck my sanity.

Good luck.

nth for FUCK C

>muh recursion

...

Trump just wants to make Sup Forums and programming great again.

>>>/kys/

...

Trump supports NSA, so Sup Forums hates him.

I am not the one posting irrelevant to programming political bullshit.

>recursion is always bad

recursion is always unnecessary

I need help getting some abandonware to work.
web.media.mit.edu/~stefan/isis/
Doesn't look like it's been touched in 12 years.
Packages it mentions in the install guide no longer exist.
What do?

He also wants to build the wall and stop jamals and lazy NEETs from abusing welfare, so I'm willing to vote for trump.

as if killary isn't infinitely worse, and not everyone Sup Forums is a stallman-tier freetard you delusional faggot

I see nobody supporting Hillary on Sup Forums.

>and not everyone Sup Forums is a stallman-tier freetard you delusional faggot
These who are not should end themselves.
Also, not wanting NSA to spy on you has nothing to do with being a free-software supporter.

Considering how many times the mods have deleted your threads Sup Forums-infested /dpt/s I wonder why you keep making them.

Enjoy getting spied.

The US already is spying on us numbnuts. I don't approve of a lot of trumps positions, but he's our last hope before the fall of western civilization.

enjoy believing you're interesting enough to get spied on

You're right, let's use a masturbating cross dresser in the op again!

As long as we don't use pepe again, I'm good.

>The US already is spying on us numbnuts
Exactly, and he supports it.

These images are relevant to programming at least.

kill yourself

guys, please stop being idiots and help me

Fuck off carposter.

>Exactly, and he supports it.
Doesn't mean I approve of it. This isn't a cult where you have to agree with every single thing trump says.

Your time must not be very valuable.

NSA spying is one of the most important positions.

fuck off fagposter

Compile it yourself?

Trying to build up a portfolio because I'm a massive retard who focused so much on coursework during uni that I didn't think about internships or job experience.

and you think any viable candidate for the 2016 US presidential election offers a "better" position?

and "spying" and having cyber warfare capabilities is extremely important for national security, if you don't do it then your enemies are going to do it

By the same logic, iteration is always unnecessary.

...

...

>this problem is naturally recursive and I know it'll use TCO, but I'll make my life harder by doing it iteratively because recursion is just always bad

How about you stop watching your degenerate kike cartoons you fucking faggot.

BLOWN

THE

FUCK

OUT

What packages are missing or can't be found?

find a flaw
int strcmp(char *a, char *b)
{
while (*a++ == *b++ && *a);
return a - b;
}

kek

>"recursion sucks"
>proceeds to recover recursion through iteration using a stack data structure

I've tried but it doesn't work.
The errors aren't helpful either.
Make is saying that it can't find things which are right there, which it has already done things with.
It's very strange.

Post errors.

>a - b

nice variable names faget

in this context we're talking about recursive function calls

What's your point?

MAGA

Doesn't check length, prone to overflow.

Returns the pointer minus pointer.

recursive function calls are never necessary, they are very poor form (see NASA guidelines) and are less readable than iterative solutions (you're basically GOTOing to the top of the function instead of just going from top to bottom)

I hope at least you're using libpng.

>C
>checking string length

>he's triggered by gotos

I'm saving that as a last resort. Wanna try and do as much as I can just using the basics.

>recursive function calls are never necessary
Neither is iteration.

>they are very poor form (see NASA guidelines)
NASA disallows recursion because it is "unsafe", i.e. because it can stack overflow in C. Recursion, in general, is not unsafe.

>are less readable than iterative solutions
Compare to:
if first element is a number:
add number to sum
if first element is an array:
recurse over first element
recurse over rest of array


>you're basically GOTOing to the top of the function instead of just going from top to bottom
Iteration is basically GOTOing to the beginning of the loop body.

Developers of file formats provide stuff like that for a reason... potential employers won't be impressed by your insistence on forgoing standard tools.

Thanks for the advice.

that's what strcmp does.
returns 0 if it matches and anything else if it's not a match