[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: 358
Thread images: 27

File: dijkstra.png (44KB, 643x220px) Image search: [Google]
dijkstra.png
44KB, 643x220px
What are you working on, /g/?


Previous Thread: >>57856284
>>
>>57861948
Im currently working on consuming myself in self-pity.

The job hunt is driving me ever closer to despair. I haven't started crying about it yet, but once it gets to that point I'm probably going to have a mental breakdown like the one I had in college that left me miserable, suicidal, and caustic to anyone who happened to be near me
>>
>yfw AoC is some shitty company selling products and they make AoC to get free code
>>
File: ritchie.png (234KB, 480x480px) Image search: [Google]
ritchie.png
234KB, 480x480px
Please don't upset Mr. Ritchie!

>What are you working on?

>Learning any new languages?

>Coding questions?

>How's that job search going?
>>
>janitor throwing a hissy fit over anime
can't say i'm surprised.

>>57861948
how would the world be different if haskell was as popular as java?

would we have noncancerous haskellscript?
>>
>>57862142
>over anime
No, it's obvious that they just got rid of shitposters. Trapfags, frogposters and the like.
We're now in the awkward position where the old thread is below 310 posts now.

>>57862064
Nothing
None
No
I'm not looking for a job right now.

I really need to start doing some shit again. I keep having these ideas for shit I want to do, but I keep forgetting what they were, or I just lose motivation.
>>
>>57862142
>would we have noncancerous haskellscript?
Yes, in fact I don't see what stops us replacing Javascript with Haskell aside from popularity.
>>
>>57862170
>replace shit with shit
fitting
>>
>>57862142
We'd have unreadable, unmaintainable code because people suck too much @ functional programming in general because it's a harder paradigm to get used to, on top of the "name your variables like they're math" haskell syndrome.

Honestly, Java might be a pain in the ass because of the overhead it comes with for pretty much anything, but at least it's somewhat easy to navigate. Haskell is a clusterfuck (in practice) because not every developer writes decent Haskell, but most devs can write half decent Java.

In a perfect world though, we'd have some performant mix of OOP and Functional programming to do things.
>>
>>57862194
>In a perfect world though, we'd have some performant mix of OOP and Functional programming to do things.
In a perfect world, OOP would never have existed.
>>
If FP is so good, then why is it so slow?
>>
>>57862194
>people suck too much @ functional programming in general because it's a harder paradigm to get used to
Because they were cucked by OOP.
>>
>>57862226
Haskell is fast. Much faster than Javascript.
>>
>>57862194
>In a perfect world though, we'd have some performant mix of OOP and Functional programming to do things.
In a perfect world, we wouldn't have OOP at all.
It's fundamentally flawed.
>@
Why the hell did you do this? Was it really such a time saver to press Shift+2 instead of just 'a'+'t'?
It just makes you look like an idiot.

>>57862226
FP has some important ideas, but having a completely pure language comes with a lot of efficiency problems because you constantly have to copy shit.
I prefer to apply functional ideas to procedural code.
>>
But why come Python is the best FP?

is that the best they have to offer?
>>
>>57862223
Your statements makes no sense. Proper OOP (I.e not a clusterfuck of inheritance but properly used composition and abstraction) has its benefits as does functional programming.

Everything being immutable has drawbacks in, for example, the fact that there is overhead in mutating lists when you have to essentially deep copy during every modification.

Instead of being tied to a paradigm, be sensible and use the best tool for the job. You sound like as much of a faggot as the people that shill for a particular language instead of using a language best in a particular domain.
>>
>>57862247
Must be a troll.

>>57862237
Javascript as a benchmark for anything....
I remember my first year in computer science too.

>>57862244
It's a useful abstraction when done right, especially to encapsulate components.

It's jsut very hard to pull off properly without it being a clusterfuck of your usual "OMG GUYS you can extend a parent class and a child class xd"
>>
>>57862248
Proper OOP IS a clusterfuck of inheritance.
What you want is watered down "not really OOP" OOP, like you'd see in C++

>everything being immutable has its drawbacks
Mutability is nothing to do with OOP, and there are mostly FP languages with mutability.

>deep copy when mutating lists
That's exactly the opposite of the truth.
Because it's immutable, you can just reference the old data structure (it won't be modified).

>best tool
This is a meme meant to reduce discussion.

>>57862270
We're talking about replacing Javascript.
>>
>>What are you working on?
Secret.
>>Learning any new languages?
Php. Had no idea it was actually as simple as it was. I imagined it was this large interconnected piece that web servers had agreed on or something.
>>Coding questions?
I wish I had stuff dpt could have a cool talk about.
>>How's that job search going?
Not doing any
>>
What could cause an unexpected percent sign in program output? I've had this happen more than once. Also I'm programming in C++.
>>
>>57862248
>Proper OOP
That is just as bad as what we have now.
OOP prescribes shared mutable state. Even if you take OOP seriously, you end up with a massive tower of unobvious and unhelpful abstractions and code that is very indirect.
>>
programming poll
http://www.strawpoll.me/11810045
>>
>>57862292
Printing the character '%'
>>
>>57862284
PHP is fun, mang. It's like ice cream. It's bad for you, and you shouldn't eat it every day, and everyone has a million reasons as to what's wrong with eating it, but it sure is a guilty pleasure.
>>
Knowing Haskell should be a criminal offense.
>>
>>57862311
It's not a guilty pleasure if there's no pleasure in it
>>
>>57862311
it's more like shit. It's bad for you, and you shouldn't eat it every day, and everyone has a million reasons as to what's wrong with eating it, and it's fucking shit
>>
>>57862307
The key word in my question is "unexpected". If I had a statement in my code to print a modulus character it wouldn't be so.
>>
>>57862355
Post your code.
>>
>>57862321
What isn't fun about it? Everything is included from the beginning, it's all held together with bits of duct tape and chewing gum, and everything JUST WERKS.
It's like python but even more retarded.

>>57862346
There's nothing wrong with messing around with PHP anon, I don't suggest using it for a real project. Why don't you call your_ass.remove("stick")
>>
>>57862355
Yes, but I don't see why else.
Maybe you're converting an integer into a character.
>>
>>57861948

did Dijkstra ever wholeheartedly endorse anything other than expensive fountain pens?
>>
>>57862280
>proper OOP
indeed. It's absolute hell and people have to stop pretending they're doing OOP.
>>57862248
>not a cluster fuck of inheritance
Well that's not the issue with OOP.
>composition and abstraction
Inheritance for composition is an extremely poor way of doing composition.
>abstraction
Well OOP does far more than establish a suitable
>instead of being tied to a paradigm
The idea of FP being the opposite of OOP is something OOP programmers perpetuate a lot. There's no real opposite to OOP. You shouldn't consider OOP in contrast to FP really. Consider it in contrast to imperative programming practices. It's far more sane. Imperative programming principles generally don't much care for encapsulation while in OOP its one of the primary reasons for the design.
So there's a clear contrast there which is worth exploring.

I genuinely want to see 'oop' programmers post some of their code examples. Because I'm pretty sick of all these claims with nothing to back it up. We see tons from other practices here but at most when you look at object oriented code we see someone posting about the very basic shit.
>>
>>57862369
i think i know you. you're the dude in my theory of computation who makes an ass out of himself when you get so angry about how your tiny php brain can't understand the concepts being taught
>>
>>57862369
> What isn't fun about it?
Syntax is awful, code features are horrific. It's like if JS had a stroke (and js is fucking awful to begin with), it would be PHP.

it "just works" but at the same time, for larger projects becomes harder to scale properly and securely.
>>
>>57862399
I said that it was retarded already. I also said you shouldn't use it for a real project.

>>57862392
Nah, that guy sounds like a real sperg. I've been programming for 8 years and I mainly use C and C++. How's your sophomore year going, anon?
>>
>>57862295
it's painfully obvious that he's the one in the thread sperging out over it. live feed of him trying to purge /dpt/ of anime posting
https://www.youtube.com/watch?v=y9lkxK45IaE
>>57862369
it's a shitheap that is harder to write a program that doesn't run in than the opposite
>>
>>57862311
>fun
It's an incredibly onerous syntax for no real reason. I can quickly see why even new programmers dislike it.
I just hadn't realised what role it fills. I was assuming it was some kind of scripting language for managing all kinds of shit that's integral to a webserver.
My current impression is that it's just a language for programmatically generating html. And naturally I can see how in that process you can kick off all kinds of processes on the server.

It makes C++ web backend development seem much more attainable. Something I've had some thoughts about learning.
But I'm just 10-30 minutes into Php so ill walk that path first.
>>
>>57862449
Look up webAssembly
Soon there will be C++ front end

The zanyness doesn't stop in the webdev world. As for php still a gajillion jobs for php due to Wordpress/Magento/Salesforce, esp Salesforce.
>>
>people complaining about new threads being made
>old thread was actually vacated instantly
Good. You're learning. It doesn't matter.
Other generals aren't Anal about it.
>>
>>57862368
#include <iostream>
#include <cstdlib> //exit()

using namespace std;

/* Class Definitions */
class ArithmeticError{
int operandb;
char operatr;
public:
ArithmeticError();
ArithmeticError(char op)
{ operatr = op; };
ArithmeticError(int opb, char op)
{ operandb = opb; operatr = op;};
int get_bottom() { return operandb; };
char get_op() { return operatr; }
};

int safe_add(int, int) throw (ArithmeticError);
int safe_sub(int, int) throw (ArithmeticError);
int safe_mult(int, int) throw (ArithmeticError);
int safe_div(int, int) throw (ArithmeticError);

int main()
{
int opa, opb, result; //variables for two operands
char opr;

cout << "Enter two integers (separated by a space) for a math operation: ";
cin >> opa >> opb;

cout << "Enter an operator (+,-,*, or /): ";
cin >> opr;

try{
if (opr == '+')
result = safe_add(opa,opb);
else if (opr == '-')
result = safe_sub(opa,opb);
else if (opr == '*')
result = safe_mult(opa,opb);
else
result = safe_div(opa,opb);

cout << result;
}


catch(ArithmeticError e)
{
if (e.get_op() == '+')
{
cout << "ERROR: SUM IS HIGHER THAN 255. EXITING...\n";
exit(1);
}
else if (e.get_op() == '-')
{
cout << "ERROR: DIFFERENCE IS LESS THAN 0. EXITING...\n";
exit(1);
}
else if (e.get_op() == '*')
{
cout << "ERROR: CANNOT MULTIPLY BY ZERO. EXITING...\n";
exit(1);
}
else //operator is '/'
{
cout << "ERROR: CANNOT DIVIDE BY ZERO. EXITING...\n";
exit(1);
}
}


return 0;
} //end main


int safe_add(int operandA, int operandB) throw (ArithmeticError)
{
int sum = operandA + operandB;
if (sum > 255)
throw ArithmeticError('+');
return sum;
}

int safe_sub(int operandA, int operandB) throw (ArithmeticError)
{
int diff = operandA - operandB;
if (diff < 0)
throw ArithmeticError('-');
return diff;
}
>>
>>57862503
Also the functions I removed to fit it into the character limit.

int safe_mult(int operandA, int operandB) throw (ArithmeticError)
{
if (operandB == 0)
throw ArithmeticError('*');
else
return operandA * operandB;
}

int safe_div(int operandA, int operandB) throw (ArithmeticError)
{
if (operandB == 0)
throw ArithmeticError('/');
else
return (operandA / operandB);
}
>>
>>57862520
>>57862503
I ran the code myself. No % here.

./test
Enter two integers (separated by a space) for a math operation: 255 0
Enter an operator (+,-,*, or /): +
255
>>
>>57862561
Thanks for taking the time. Maybe it is some iTerm fuckery.
>>
>>57862292
Make a shunting yard algorithm.
>>
>>57862585
No problem. It may be, I looked over the code and there is definitely no reason for it to be printing that.
>>
>>57862142
we have Purescript already
>>
File: yui does the cute thing.gif (802KB, 500x545px) Image search: [Google]
yui does the cute thing.gif
802KB, 500x545px
I spent way more time on day 6 than I should have, but the answers are gibberish and I thought I screwed up with my first solution.

Post your day 6 solutions!
struct freq {
int count;
char ch;
};

int sort_freq(const void *a, const void *b)
{
struct freq *x = (struct freq *)a;
struct freq *y = (struct freq *)b;
return x->count - y->count;
}

int main(void)
{
char *ins = get_filebuffer(DAY(06));
char arr[8][1024] = { { 0 } };
unsigned i, j, idx = 0;
char *tok = strtok(ins, "\n");
while (tok != NULL)
{
for (i = 0; i < 8; i++)
arr[i][idx] = tok[i];
idx++;
tok = strtok(NULL, "\n");
}
idx = 0;
char msg[2][16] = { { 0 } };
for (i = 0; i < 8; i++)
{
struct freq rep[26] = { { 0 } }; /* lookup table */
for (j = 0; j < 26; j++)
rep[j].ch = 'a' + j;
for (j = 0; arr[i][j]; j++)
rep[arr[i][j] - 'a'].count++;
qsort(rep, 26, sizeof(struct freq), sort_freq);
msg[0][idx] = rep[25].ch; /* most common */
msg[1][idx++] = rep[0].ch; /* least common */
}
for (i = 0; i < 2; i++)
printf("Part %d Message: %s\n", i + 1, msg[i]);
free(ins);
return 0;
}
>>
>>57862637
Why would you replace Javascript with Purescript if you could replace it with Haskell?
>>
>>57862652
Purescript is much nicer than Haskell in many ways
>>
>>57862670
>
>>
Should I learn C--?
>>
>>57862825
Isn't that designed to be a low level intermediate language for compilers?
>>
>>57862825
>>57862841
It is, be a bit of a waste of time
>>
>>57862825
>>57862849
It's pretty stupid that they call it that, considering it's not a subset of C.
I suppose it's just a retarded as C++ though.
>>
which mappend is better?
>>
>>57862369
The documentation is really unfun

Funnily enough most of the real documentation is in the comments on the documentation. It's bizarre for documentation for a language to have a comments system like it's some kind of blog, but thank god PHP has it.
>>
>>57862292
try
$echo -n test

I'm pretty sure it just signifies there wasn't a trailing newline
>>
>SAXEception: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserilize

Anyone know what the hell is this? Currently getting fron a soap webservice with
>java
>>
>>57862924
neither
(defun concat-map (f xs)
(reduce #'append (mapcar f xs) :from-end t))
>>
>>57863044
>2017
>SOAP
>>
>>57862389
>Well that's not the issue with OOP.
What are you on about? Inheritance is the only difference between OOP and FP.

https://www.youtube.com/watch?v=eJzp-w8Zuak
>>
>Want to contribute to big open source project
>Find issues labelled as "easye", "entry level" or "low complexity"
>Still don't understand what I should do to fix them
Being stupid is hard.
>>
>>57863080
Its called being a wagecuck
>>
OpenSSL has some pretty awful documentation
>>
File: advent05.webm (1MB, 148x94px) Image search: [Google]
advent05.webm
1MB, 148x94px
rate my hacker UI
>>
>>57863181
Actually the code is just too retarded to make sense.
>>
>>57863251
If I was smart I'd be able to understand even the most retarded pieces of code.
>>
File: output.webm (1MB, 640x480px) Image search: [Google]
output.webm
1MB, 640x480px
>>57863248
I did that too.

>tfw core2duo
>>
>>57863295
I know that feel
>>
>>57863248
>>57863295
wow, so cool your apps can do a meme thing
why don't you write real programs instead of jerking about the way texts are written
>>
File: output.webm (1MB, 640x480px) Image search: [Google]
output.webm
1MB, 640x480px
>>57863356
Why are you so angry?
Here's the no fun allowed version, mr fagtron.
>>
>>57862894
And c#. And Javascript. It's cancerous, they tack onto good languages and have nothing to do with them.
>>
>>57863393
>Java
>Good language
>>
>>57863402
Okay, fair. Popular.
>>
Wait, why did you faggots make a new thread, the old thread is still at 273 posts.
>>
>>57863424
only one faggot did, anon
>>
File: uuuu.webm (109KB, 112x44px) Image search: [Google]
uuuu.webm
109KB, 112x44px
>>57863356
I added colors and blinking text just for you
>>
>>57863424
It was over 310, but then a janitor cleared out a bunch of posts.
>>
>>57863445
What was removed?
>>
>>57863455
Just go look at some 4chan archive.
>>
File: 1447833173718.jpg (100KB, 590x426px) Image search: [Google]
1447833173718.jpg
100KB, 590x426px
Is it possible to output the program window of a java application into a virtual webcam?

So that it has a inbuilt sharing function that can just plug into anything that uses webcams.
>>
>>57863540
like as a stream cam? for the output to appear youd have to output the webcam feed into the java program or else the the java output would overlay the web feed. assuming you want it streamed. is that what you want?
>>
Where can I find developer's documentation /reference for the 8086 processor with all the registers and instruction?
Bonus points if its all in one pdf.
>>
>>57863719
google it
>>
import std.stdio;
import std.string;
import std.array;
import std.conv;
import std.math;

DIR update(DIR d, immutable char change)
{
final switch(change)
{
case 'R':
final switch(d)
{
case DIR.N:
return DIR.E;
case DIR.E:
return DIR.S;
case DIR.S:
return DIR.W;
case DIR.W:
return DIR.N;
}
case 'L':
final switch(d)
{
case DIR.N:
return DIR.W;
case DIR.W:
return DIR.S;
case DIR.S:
return DIR.E;
case DIR.E:
return DIR.N;
}
}
}

struct Coords
{
int x;
int y;
}

void calc(ref Coords c, DIR d, int steps)
{
final switch(d)
{
case DIR.N:
c.y += steps;
break;
case DIR.S:
c.y -= steps;
break;
case DIR.W:
c.x -= steps;
break;
case DIR.E:
c.x += steps;
break;
}
}

enum DIR { N, S, E, W };

void main(string[] args)
{
DIR dir = DIR.N;
Coords c;
int steps;
File input = File("day1input.txt", "r");
while(!input.eof())
{
string[] ins = input.readln.chomp().split(", ");
foreach(string str; ins)
{
if(str == "")
{
continue;
}
auto change = str[0];
str = str[1..$];
steps = to!int(str);
dir = dir.update(change);
c.calc(dir, steps);
}
}
writeln(abs(c.x) + abs(c.y));
}


Just started AoC today, was really overthinking the solution for Day 1 earlier
>>
>>57863735
Already did. That's why I'm asking.
>>
>>57863189
>current year
>still being a wagecuck
>>
Does anyone here program in public? here's my one experience with it
>finish college with friend
>go to mcdonalds
>we decide to write some code
>log onto the wifi
>load up vim
>start writing git push pull etc.
>getting weird looks
>whatever
>manager comes over
>if you don't stop hacking people and leave we're going to call the police
>explain it's just a text editor
>no I'm not stupid its a hacking tool disguised as a text editor please leave
>we leave
is this a common thing or is it just because I live in a small tech illiterate town?
>>
>>57863853
>I live in a small tech illiterate world.
fixed
>>
>>57863853
I got kicked out of a starbucks for using i3 because i had a bunch of shell windows open and I was updating my packages.

Also, you probably handled yourself like a sperg, that's why you were kicked out.
>>
>>57862064
>>What are you working on?
Nothing finished my project list for the year so nothing until next year
>>Learning any new languages?
nope
>>Coding questions?
nope
>>How's that job search going?
getting £1200 p/m in disabilities so not looking for work right now, looking into what certs to get and trying to beef up my resume for the time being
>>
>>57863869
don't think I sperged
>sir stop hacking people and leave before we call the police
>I'm not hacking anyone I'm using a text editor called vim you can google it
>it's a hacking tool disguised as a text editor please leave
>>
>>57863853
You write code in a Starbucks or local coffee shop not fucking mcdicks you uncultured fuck
>>
>>57863889
>text editor
>What the fuck does that mean? is it a hacker tool?

You should have told them you're a CS major and this is your school assignment.
>>
>>57863719
documentation im not sure but a chart with the register flags is an easy google search away. ive been looking for the documentation myself.
>>
>>57863892
we don't have a starbucks or a coffee shop, in my town you can only get coffee from mcdonalds or a food truck
>>57863903
this is a good idea thanks
>>
>>57862825
It's a macroassembler for x86.
>>
>>57863931
Why the fuck would you sit down with a laptop while eating food and getting your hands greasy and greasing up your laptop and you know what

fuck you.
>>
>>57863957
I ordered my food sat down ate it wiped my hands with a serviette then drank my drink whilst programming
>>
>>57863983
I only ever see homeless people with laptops at mcdonalds and they're all here for the free wifi.

it's almost like "making apps" has become your latest must have personality accessory and you just want everyone to know it
>>
>>57864007
It's almost like hating hipsters has become the newest and freshest trend on 4chan and you just want to be in a social group
>>
>>57864007
I sat in a corner so barely anyone could see my screen, the friend I was with doesn't have a mic so talking face to face make doing stuff together a lot easier and notice when the manager did come over I didn't mention I was programming I just told him I was using a text editor, try again anon
>>
>>57864038
You got kicked out for flaunting your newfound social identity as a "coder".
>>
>>57864081
man you really have a problem with me don't you? read my post I got kicked out cause they thought vim was a hacking tool, also how is siting so barely no one can see my screen using my laptop and not mentioning coding to anyone once flaunting it? at this point I think you're just shitposting for (you)s
>>
File: output.webm (910KB, 1920x1080px) Image search: [Google]
output.webm
910KB, 1920x1080px
>>57861948
>What are you working on, /g/?
Thanks to search engines and /sqt/, I've got a working version of an image tagging system for Win7(*.png and *.jpg). About to make a GUI, and improve the process of adding tags (since I have hundreds of thousands of images to tag).

Sorry for shit webm quality; my copy of WebmConverter completely broke and I can't be bothered finding the right bitrate in command line ffmpeg.
>>
>>57864098
Well it's your fault for making your vim look like a hacker tool.
Post your vim, I bet it looks like a hollywood hacker terminal.
>>
File: aragorn.png (134KB, 323x241px) Image search: [Google]
aragorn.png
134KB, 323x241px
>>57864102
>uses python
>doesn't use ML to auto tag images based on their content
lmaoing at ur life
>>
aaaaaaand Day 2
import std.stdio;
import std.string;
import std.conv;

bool in_range(int num, int low, int high)
{
return num >= low && num <= high;
}

void move(ref int from, char to)
{
final switch(to)
{
case 'U':
if(!from.in_range(1, 3))
{
from -= 3;
}
break;
case 'D':
if(!from.in_range(7, 9))
{
from += 3;
}
break;
case 'L':
if((from + 2) % 3)
{
--from;
}
break;
case 'R':
if(from % 3)
{
++from;
}
break;
}
}

void main(string[] args)
{
File input = File("day2input.txt", "r");
while(!input.eof())
{
string line = input.readln().chomp();
if(line == "") { continue; }
int initial = 5;
foreach(char c; line)
{
initial.move(c);
}
write(initial);
}
writeln();
}
>>
>>57864111
it's just default vim with nerdtree
>>
>>57861948
Posted this earlier in python thread but more relevant to dpt:

I'm thinking about building my own custom taskwarrior clone because of reasons.
Thing is I've mostly been fucking around, doing academics and webdesign and have very little knowledge of the standards in open source project. I'd like for it to catch on a bit, would be cool if there'd be some contributors/feedback but not really sure how to go at it:
- Total 100% TDD or just start working and build tests when the foundations are there
- Google style guide or strict PEP?
- Same for comment
- For a relatively small app/api like this, first draw up ideas and specifications or get a working base system and improve from there?
- Would people expect either a custom storage/db driver, small 3rd party (tinydb-like) or full established solution (sqlalchemy) for such thing
- Any standard mistakes on first OSS project?

Maybe I should try and get involved in someone else's project first, but it's so difficult to read yourself into 5k+ lines of code with sparse comments and no structure description

Thanks
>>
File: 06-another-sexy-pose.png (251KB, 540x960px) Image search: [Google]
06-another-sexy-pose.png
251KB, 540x960px
>>57861948
I'm working on a multiplayer 3rd person shooter with sexy furries where you can walk up walls and walk on roofs (gravity is localized).

Go to 0:43 for an example:
https://www.youtube.com/watch?v=54numkwW_u8
>>
>>57862292
You forgot the newline
>>
>>57864123
Where's part 2?
I wanna see how other people handled the weirdly shaped keypad.
I just made a 2D array and filled the edges with null terminators so it would know not to go inside like
case 'R': x += (!!pad[y][x + 1]);
>>
>>57864178
this is literally a shittier Overgrowth.
Why do this?
>>
>>57864206
Because it's fun to write code
>>
I'm new to /g/ and I'm having an issue understanding how NoSQL Wide Column Store Cassandra works. Should I post it in here or in the stupid questions thread?
>>
>>57864201
I completely forgot there was a part two
>>
>>57864228
>stupid question
You should post here.
>>
So apparently I'm not allowed to use "in" and "out" in WebGL1 shaders, what am I supposed to use instead for plebs still using WebGL1?

>>57864178
Aiming in third person is kind of hard, you should probably allow tab or something for quickly switching between first and third person if not abandon third person altogether; when multiplayer is implemented, there'll be plenty of opportunity to see the playermodel without seeing yourself.

Also, you shouldn't be afraid to use more environmental polygons, and don't make everything so dark.

By the way, is that Unity?
Every engine has its subtle graphical differences, and that looks like Unity.
>>
>>57864120
What is this ML? And why did no-one mention it in any of the places I asked before making this program?
>>
File: 1462009493557.gif (2MB, 580x433px) Image search: [Google]
1462009493557.gif
2MB, 580x433px
>>57864387
Machine learning.
>>
>>57864331
Use varying. "in" and "out" (if I remember correctly) was introduced in GL 3.

Yeah you're probably right. The "fuck you" hand is a placeholder for the first person view, I'm working on being able to switch between the two views. There's going to be platforming and I feel like 3rd person view is way better for that than 1st person.

Everything is a placeholder, that's why it looks like shit right now.

It's not Unity, I'm writing it in C++ using Urho3D.

> Are there many shader gurus on /g/?
>>
File: Capture.png (8KB, 276x128px) Image search: [Google]
Capture.png
8KB, 276x128px
>>57864324
I guess that was a stupid question. my bad. Anyways here comes the wall of text. I hope this isn't as stupid as it sounds.

I am familiar with SQL and MySQL and I am trying to learn the Cassandra NoSQL. I'm having a hard time wrapping my head around how Cassandra stores data, specifically in relation to the table/column family, as it all feels very abstract. I'm referencing the following site https://www.tutorialspoint.com/cassandra/cassandra_data_model.htm

I'm working from the terminal in Ubuntu using the cqlsh application. Pic related is the output I'm getting from my code (shown below). No guide seems to tell me how the parts of the table actually fit into the whole scheme of things, or at least not in a way that makes sense.

Can someone help me work out how the hell this is any different from SQL, albeit with restricted commands/different syntax, or point me to a guide that does?

[spoiler]I tried to install a GUI to help me visualize my data but I'm a shit at linux and fucked something up.[/spoiler]

The code is
CREATE KEYSPACE example
WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
USE example;
CREATE TABLE users (column_name varchar, column_value varchar, PRIMARY KEY (column_name));
INSERT INTO users (column_name, column_value) VALUES (‘username, ‘joe’);
INSERT INTO users (column_name, column_value) VALUES (‘password, ‘weak’);
INSERT INTO users (column_name, column_value) VALUES (‘email’, ‘[email protected]’);
SELECT * FROM users;
>>
>>57864387
He wants you to do file/image recognition of some kind to automatically tag your files based on your previous tags or the internet or whatever

It's everyones dream but nobody really implemented it successfully ever
>>
>>57864411
Varying in place of what?
Surely it can't replace both?

Also, there's not much to learn about shaders, it's just two things:
>being good at math
>not using fucking if statements, those slow shaders down like crazy
>>
>>57862483
>Web Assembly
Is that worth grinding and learning for potential jobs?
>>
>>57864201
I did it in python because I'm trying to rush through this and it's a little boring but it works.
#!/usr/bin/env python3

from sys import argv,exit

input_filename = "input"
if len(argv) > 1:
input_filename = argv[1]

try:
directions = open(input_filename)
except OSError:
exit("Cannot open file \"{}\"".format(input_filename))

#1 2 3
#4 5 6
#7 8 9
next = {
'U':{ 1:1, 2:2, 3:3,
4:1, 5:2, 6:3,
7:4, 8:5, 9:6
},
'D':{ 1:4, 2:5, 3:6,
4:7, 5:8, 6:9,
7:7, 8:8, 9:9
},
'L':{ 1:1, 2:1, 3:2,
4:4, 5:4, 6:5,
7:7, 8:7, 9:8
},
'R':{ 1:2, 2:3, 3:3,
4:5, 5:6, 6:6,
7:8, 8:9, 9:9
},
}

# 1
# 2 3 4
# 5 6 7 8 9
# A B C
# D
next2 = {
'U':{ 1 : 1 ,
2 : 2 , 3 : 1 , 4 : 4 ,
5 : 5 , 6 : 2 , 7 : 3 , 8 : 4 , 9 : 9 ,
'A': 6 , 'B': 7 , 'C': 8 ,
'D':'B'
},
'D':{ 1 : 3 ,
2 : 6 , 3 : 7 , 4 : 8 ,
5 : 5 , 6 :'A', 7 :'B', 8 :'C', 9 : 9 ,
'A':'A', 'B':'D', 'C':'C',
'D':'D'
},
'L':{ 1 : 1 ,
2 : 2 , 3 : 2 , 4 : 3 ,
5 : 5 , 6 : 5 , 7 : 6 , 8 : 7 , 9 : 8 ,
'A':'A', 'B':'A', 'C':'B',
'D':'D'
},
'R':{ 1 : 1 ,
2 : 3 , 3 : 4 , 4 : 4 ,
5 : 6 , 6 : 7 , 7 : 8 , 8 : 9 , 9 : 9 ,
'A':'B', 'B':'C', 'C':'C',
'D':'D'
},
}

sol = ""
pos = 5
sol2 = ""
pos2 = 5
for line in directions:
for letter in line:
if letter in next:
pos = next [letter][pos]
pos2 = next2[letter][pos2]
sol = sol + str(pos)
sol2 = sol2 + str(pos2)
print(sol)
print(sol2)


I'm trying to go back and do some of these in esoteric languages though. I think I have a fun idea for this in befunge.
>>
>>57864456
Yeah you replace both "in" and "out" with "varying". You write to it from the vertex shader and you read from it in the fragment shader.
>>
>>57864409
>>57864452
>Machine learning
Right, I understand now. I don't hang around tech communities much so I haven't seen it as an acronym before. Cheers.

Maybe he's right though. I can create a recaptcha ripoff to make people to tag my images for me. Perfect!
>>
>>57864539
My vertex shader and fragment shader both contain in and out though.
For the vertex shader, "in" gets the data used for the varyings and "out" gives the adapted data to the fragment shader.
For the fragment shader, "in" gets whatever the "out" mentioned before was, and "out" determines the colour of the pixel.
>>
>>57864540
If you're tagging for personal use it might be better to let it compare your tags and images, it's done faster and you'll get less files tagged 'nigger'

>>57864483
just fyi: you're overriding built-in function next(), this might be unsafe


Anyone with ideas on >>57864152 ?
>>
>>57864581
>overriding next
oh, that's funny
thanks for the warning. is there some way I can get python to warn me about that sort of thing?
>>
>>57864571
I think I'd need to see code to understand more closely what you're doing.
>>
>>57864589
Use pylint
>>
rate my befunge
99*:00"tupni"i$$>v  (stack has number of lines left on top)
<v < v k!`0: < +-30 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> & & & 73p53p33p & & & 75p55p35p v ; run like so: ;
A B C> 099*g48*-.a,@ ; $ cfunge advent03b.bf < input ;
^ < v p73 p75 p77 & & & < ; it requires that the input file be named "input" ;
D E F > 33g35g+37gv ; as well as that the input be redirected in on stdin ;
A + D > G ` ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
G H I !
v _ 35g37g+33gv
D + G > A `
!
v _ 33g37g+35gv
A + G > D `
! triangle checks out
v _ 099*g1+099*p
> 53g55g+57gv
B + E > H `
!
v _ 55g57g+53gv
E + H > B `
!
v _ 53g57g+55gv
B + H > E `
! triangle checks out
v _ 099*g1+099*p
> 73g75g+77gv
C + F > I `
!
v _ 75g77g+73gv
F + I > C `
!
v _ 73g77g+75gv
C + I > F `
! triangle checks out
^ < _ 099*g1+099*p


>>57864627
cool alright. I'm kinda new to python. thanks for the help
>>
>>57864613
Here's an example of a simple vertex and fragment shader pair.
In particular, note the lines with exclamation marks, since they're all the lines to do with the ins and outs of colouring.
var vertexShaderSourceColoured2D = `#version 300 es
precision mediump float;

uniform mat3 u_matrix;
uniform vec2 u_resolution;

in vec2 vertexPosition;
in vec3 RGB; //!
out vec3 colour; //!

void main() {
float aspectRatio = u_resolution.x/u_resolution.y;
vec2 position = (u_matrix * vec3(vertexPosition, 1.0)).xy;
gl_Position = vec4(position.x/aspectRatio, position.y, 0, 1);
colour = RGB; //!
}
`;

var fragmentShaderSourceColoured = `#version 300 es

precision mediump float;

in vec3 colour; //!
out vec4 outColour; //!

void main() {
outColour = vec4(colour, 1); //!
}
`;
>>
>>57864637
Not familiar with befunge but well designed.
Top left is slightly messy, but staircase effect in lower right is very nice.

8/10, what does it do?
>>
>>57862194
>on top of the "name your variables like they're math" haskell syndrome.
If your function is complex enough that you need to start using local variable names, then you fucking up
>>
>>57864660
Yeah, so in the older days of GL you had to do

vertex shader:
varying vec2 vertexPosition;
varying vec3 RGB;
varying vec3 colour;

void main() {
float aspectRatio = u_resolution.x/u_resolution.y;
vec2 position = (u_matrix * vec3(vertexPosition, 1.0)).xy;
gl_Position = vec4(position.x/aspectRatio, position.y, 0, 1);
colour = RGB;
}


fragment shader:
varying vec3 colour;

void main() {
gl_FragColor = vec4(colour, 1);
}


Also how's the ODC going with having to deal with "colour" mixed with "color"? I do this too and it sucks.
>>
AoC 2016, Day 6, Python.

Part 1:
from collections import Counter

def main():
data = []
with open('D6.txt') as f:
data = f.read().strip().split('\n')

print(''.join([Counter(line).most_common()[0][0] for line in zip(*data)]))

if __name__ == '__main__':
main()


from collections import Counter

def main():
data = []
with open('D6.txt') as f:
data = f.read().strip().split('\n')

print(''.join([counter.most_common()[-1][0] for counter in [Counter(line) for line in zip(*data)]]))

if __name__ == '__main__':
main()
>>
>>57864704
Quick follow-up: Your RGB variable needs to be a uniform (I assume):
uniform vec3 RGB


Not a varying .
>>
Hi, doing some Project Euler I was wondering if anyone here knew a formula for working out the total number of combinations of any size of a given list.

I want to use it to find the number of unique numbers possible from a given pool of prime factors.

Example, [2, 2, 3]
gives 5
2
3
2 x 3
2 x 2
2 x 2 x 3
>>
>>57864716
RGB would be defined per vertex.
>>
>>57864661
This is for part 2 of this year's advent of code 3.

In befunge, the code is loaded into an infinite 2d grid of cells (called funge-space) with the first character of the file at 0,0 and going right right and down as positive along those axes. You have a stack (technically a stack of stacks but I don't ever touch anything but the first stack to keep things simple) and you can read from and write to funge-space at runtime.

& (read int) doesn't really give me a way to detect end of file, so what I do is:
>import the file called "input" into funge-space at 81,81 (way out of the way of anything I'm gonna touch
>import pushes values onto the stack to let you know how big the file was in the x and y directions which conviently gives me a line count so I know how many triangles to read in before quitting
>All cells in funge-space default to " " (or 32 or 0x20) so I use an empty cell at 99,0 as my counter for number of correct triangles and subtract 32 off of it when I print it out at the end.
>keep a counter on the stack for how many lines are left in the file and when that hits 0, print off the triangle counter cell and exit
>if the line count is > 0, then put the three sets of lengths into the A B C, D E F, G H I cells
>staircase thing gets those values and checking if they're a valid triangle
>if any two sides add up to less than the third side, then just skip to next triangle
>if the triangle checks out then increment the cell at 99,0
>after checking the set of 3 triangles, decrement line counter by 3 and do it again from checking that line counter is > 0
>>
>>57864771
aw, I forgot that code tags don't do one letter tags. I'd formatted that to have the letter that represents each instruction I mentioned in a code tag
>>
>>57864448

I sincerely hope this is an example of how not to store passwords.
>>
I'm a writer and a fairly good one. I've managed to put up a successful blog on more than one occasion and have made some money off it already. But I've been itching to get into programming and becoming a developer instead? Is there hope for me yet? I'm 28 and I basically have zero knowledge of actual programming and have not built anything except web sites all my life. But I want to. Where do I begin?
>>
>>57864704
Ah, I managed to figure out what was wrong.

"in" for a vertex shader must be replaced with attribute, "out" for a fragment shader must be replaced with gl_FragColor, all else becomes "varying".
But my code still doesn't run on WebGL1, apparently I'm not allowed to use createVertexArray either.
>>
>>57864804
It's just a basic example I saw on a site to learn Cassandra concepts with. I hope nobody would be retarded enough to actually use it.
>>
File: 144395986324.png (867KB, 950x608px) Image search: [Google]
144395986324.png
867KB, 950x608px
>>57863853
>Things that didn't happen: the post.
>>
>>57864815
Why do you want to learn programming? Do you have a specific goal in mind like finding a job?
>>
Where do I learn modern opengl with the element buffers objects and vao's etc.
Preferably something that gives a more complete view and motivation. But still not specs/design sheets from khronos.
>>
>>57864706
What is it rated on?
Because this is really really easy if you just have to provide a working solution right?
>>
>>57863853
I find the library is more accepting of people wishing to learn or some such.
I pretend I often sit in the cafe there and code.
>>
>>57864840
go back to [spam filter censored the word R3DD1T], please

I don't often use that phrase, but please do it.
>>
>>57864856
The first 100 people to solve it on a given day receive points depending on the place (100p for 1st, 99p for 2nd, etc).

Sure you can just "steal" a solution and run it against your input but that defeats the whole point of having fun and solving challenges yourself, besides, at the point that people start posting the solutions the first 100 places are already taken so no points for you anyway.
>>
>>57864840
>I haven't been in the real world with real people since the advent of personal computing devices for the masses
>>
>>57863872
What disability do you have?
>>
In Python, how would I allow a function that is called often from the main to have access to a pre generated list without generating it every time?

Will I need to make a class? From what I understand that shouldn't be the use case of a class.
>>
>>57864826

>I hope nobody would be retarded enough to actually use it.
There will always be people retarded enough to actually use it.
>>
>>57864940
Something like this?
data = []

def make_list():
global data

# generate the data

def frequent_function():
global data

# use the data

def main():
make_list()
while True:
frequent_function()

if __name__ == '__main__':
main()
>>
>>57864939
aspergers and psychosis (too early into my evaluation to diagnose schizophrenia, but the woman who does my weekly evaluations says schizophrenia is likely)
>>
>>57865004
Will you make an operating system dedicated to hime?
>>
>>57865004
That's pretty interesting, can I know more about your psychosis?
>>
>>57864890
Ah I get it
Too bad they release the next one at 6AM for me

>>57864940
You don't have to, variables from outer scope are readably by any function, you don't even really need the global declaration from >>57864997 unless you need to modify the list
>>
>>57863853
I was coding some work stuff in coffee bean and tea leaf because the company firewall is preventing me to do stuff. Its a silicon valley-like place so no one seemed to care.
>>
>>57865013
I don't really have the skill but if I ever did have the skill and exposure terry has I would probably be very similar to him
>>57865018
sure but you'll need to be more specific heres a few noteworthy details - I'm on an anti terrorist watchlist, I've been hospitalized for trying to cut a listening device out of my arm (twice) I carry a knife and wear a stab proof vest and if my doctors knew I was off my meds I would probably be put in a mental institution for a long while
>>
>>57865032
It's funny that this could be true but it also feels so fake. Very interesting. Do you realise you're psychotic sometimes or is everything real to you?
>>
>>57865043
I'd think it was fake if I was you aswell desu, it's rare people with psychosis are as aware and willing to talk about it as I am - sometimes I can kind of talk myself down if that makes sense or after the hallucination or delusion someone can convince me it wasn't real but most of the things the doctors tell me didn't/don't happen I still strongly believe
>>
>>57865061
I see. Thanks for answering
>>
File: 1480382826619.jpg (98KB, 480x480px) Image search: [Google]
1480382826619.jpg
98KB, 480x480px
>>57864840
Wow, it must be nice to be a normie.
>be programming tutor at local college
>some introduction to Microsoft office products class starts right after my shift in my lab
>first week their assignment was literally using Labsim to set up monitors and peripherals
>it's many people in the class can barely into computers
>people in that class frequently come in to bum a computer and do their own thing before class
>lab is barely populated so might as well let them
>one day helping people learn how to C# and HTML for a ASP.NET class
>helping one guuy for a bit
>take a look around the room to see if anyone else needs help
>tfw a normie qt is staring at us with a confused face like we're speaking a mix of Klingon and Elvish
First time I actually felt like a nerd in years.
>>
>>57865061
Gut bacteria can have a massive effect on mental health. Have you ever had a gut microbiome profile done?
>>
>>57865075
I went through trauma before the psychosis started so the doctors think that caused it, not sure I'd even have one done I mean hypothetically they could place a tracking chip inside me or anything
>>
>>57865096
What kind of trauma?
>>
>>57865103
not going to be that specific since it made the news and shit but basically
>girl stalks me for years
>sends me love letters and stuff
>have to move flats several times (police couldn't do much since it was just unsigned letters)
>she finally comes out and professes her love for me
>I turn her down
>then she tries to kill me
This lead to most people in my town recognizing me so the fact that suddenly everyone knew who I was, the doctors think that sudden complete loss of privacy caused my extreme paranoia and psychosis. I've left out some of the more specific details but she had videos of me sleeping and pictures of me walking about and stuff
>>
creating and signing bitcoin transactions in golang.
>>
Angular or react?
>>
>>57865147
Was she hot? How does she know you? Did that really happen or is it part of the psychosis?
>>
>>57863248
>distinct lack of emojis
dropped.

I bet it also can't interface with the new apple touch bar.
>>
>>57865198
she was okay, no idea, I'm pretty sure most of it happened since it made the news
>>
>>57865213
>I'm pretty sure most of it happened
/g/ in a nutshell
>>
>>57865147
it's good you turned her down man, if she won't let someone make choices about who to be with imagine what she'd do to you in a relationship, sounds like a complete cunt
>>
With regards to object composition in Python, how do you refer to a "sub" object in the docstring? It's not a child instance but I can't think what else to call it.
>>
>>57865147
That's fucked up man.

I would definitely look into getting your gut microbiome checked out. High amounts of prolonged stressed can absolutely fuck up your gut microbiome. This is literally what happened to me a few years ago, but with different symptoms.

Basically I moved city to work in a software company. Everything was okay for about 8 months, then guy i worked for got passive aggressive with everything I did. Not sure why, but I best guess is that he was somewhat incompetent and was worried I was going to make him look bad. Anyways, that went on for a few months, as well as a couple of other highly stressful events that around the same time. On top of this I'm also easily stressed and anxiety prone. End result is I started getting sick with flu-like symptoms, then never really fully recovered. I've been diagnosed with "chronic-fatuigue syndrome", which is basically just a catch-all term for "you too tired to live a normal life for a prolonged period of time and we don't know why".

I've done an insane amount of tests at this point and the only thing off is my gut microbiome which shows high levels of dysbiosis (imbalance of the bacteria species), which is well established to be capable of causing chronic fatigue as well as endless amounts of other conditions, namely autoimmune diseases and mental disorders including depression, ocd, autism, schizophrenia and more.

The only cause for this anyone can figure out is the stressful period i went though, which is also a common cause of dysbiosis. People often develop gut problems after things like divorces for example. It happens because the digestive system shuts down when you are under stress, and the brain sends different signals to the gut, changing the environment for the bacteria that live there. With a lot of stress over a long period, this can cause a lot of bacteria to die off, and a lot of pathogenic bacteria to prosper far more than they should.
>>
>>57865249
oh shit I got diagnosed with aspergers after I went through a shit ton of stress and the symptoms got noticed at a much older age, my psychosis came after even more stress - If both of my mental problems are caused by my guts microbiome I would be so happy
>>
>>57865021
Okay thanks, didn't think to try the obvious.
>>
>>57865249
cont...

fucked up guy bacteria can cause problems with almost everything in the body, but particularly mental problems as healthy gut bacteria are responsible for producing a huge portion of the neurotransmitters and other nutrients the brain relies on the function properly.

Do you have any digestive issues that you know of? Any food sensitivities? Feel bloated after food? Pass a lot of gas? Get constipated easy or get diarrhea easy?
>>
>>57864847
I like building stuff. I built my own blogs from when I first began. I've built a few web sites as well but the focus was always mainly on content.

I guess I would want to find a job and part of the pull is I'm imagining that I would make more if I could build one thing... with programming. I'm a do it myself kind of guy is also one of my reasons.
>>
>>57865285
>Do you have any digestive issues that you know of? Any food sensitivities? Feel bloated after food? Pass a lot of gas? Get constipated easy or get diarrhea easy?
none I can digest almost anything without any problems
>>
>>57865277
Where do you live? Burger land?

I would highly recommend looking into fecal transplants. It's basically a therapy where they take poo from a heathy person, put insert into your colon as an enema. The idea is to replace all the bacteria in your gut with the bacteria from a healthy person's gut. It's recently been approved in the US for treating autism.

If you have money, you can get this done in a private clinic. If you're a poor fag you can try doing one of these yourself DIY style, by finding a donor yourself. There are some risks involved in this method though.

Have a look over this website for more info: http://thepowerofpoop.com/
>>
>>57865249
Did you get a faecal transplant?
>>
>>57865312
Any skin issues?
Have you ever tried taking probiotics?
>>
>>57865316
FUCKING
TOP
KEK
>>
>>57865323
No. But I'm looking into getting one done next year. They cost a lot of money to get done clinically, but I'm getting pretty desperate.
>>
Learning C here. I want want to pass three arrays of strings to a function. Which of these is the best approach?

/* Option A */
int somefunction(char **arr1, int arr1_c, char **arr2, int arr2_c, char **arr3, int arr3_c);

/* Option B */
int somefunction(char *arr1[], int arr1_c, char *arr2[], int arr2_c, char *arr3[], int arr3_c);

/* Option C */
typedef struct str_array {
char **arr1;
int size;
} str_array;
int somefunction(str_array arr1, str_array arr2, str_array arr3);

/* Option D */
typedef struct str_array {
char *arr1[];
int size;
} str_array;
int somefunction(str_array arr1, str_array arr2, str_array arr3);
>>
File: 1479446220358.jpg (17KB, 224x266px) Image search: [Google]
1479446220358.jpg
17KB, 224x266px
>>57865316
>fecal transplants
>this is an actual legitimate medical process
I don't want to detract from the good it can do, but this is some next level shitposting in real life
>>
File: 1480968347569.png (28KB, 400x250px) Image search: [Google]
1480968347569.png
28KB, 400x250px
>>57865316
>/dpt/'s retardation level will never be this high
>>
>>57865323
>>57865337
this is the place I'm looking to get it done btw: http://taymount.com/

They have some interesting videos on the subject too.
>>
>>57865316
>It's recently been approved in the US for treating autism.
fucking screencap'd
>>
>>57865316
Okay but how do we decide who has the BEST POO?

And if we all get transplants from that person (or from people who got poo transplants from - his poo-descendants), would the resulting poo-monoculture be a threat to public health with pathogens being selected for how well they can infiltrate that particular poo makeup?
>>
>>57865344
I know man. I've been reading about this shit for 2 years. I still haven't figured out how to explain it without getting a "oh shit, you're serious?" face after a few minutes..

>>57865347
>tfw you will never know they joy of injecting another man's poo up your asshole
>>
i really wanna eat some poo poo right now
>>
>>57865365
Basically I'm saying that when we transplant poos between people we may be playing with forces we don't fully understand.
>>
>>57865359
The fact autism is linked with your gut is not completely wrong. You don't fix it with OOP though. Probiotics and diet improvements are the way to go.
>>
>>57865370

Enjoy your E. Coli.
>>
>>57865395
>>57865395
This is what you should expect.
https://en.wikipedia.org/wiki/Cysticercosis
>>
>>57865244
"composited instance"? "attatched instance"?
>>
>>57865370
What's good for the lower portions of the gastrointestinal tract is not good for the upper portions.

On that basis I would advise against eating poo.

ALWAYS remember that if you need to introduce foreign poo into your body you have to do it from the other side.
>>
>>57865339
Option A and B are literally identical, as are C and D.
I would probably just go with B, but instead of using int for the size, use the correct type: size_t.
>>
Anyone got a cheatsheet for optimal algorithms? Like sorting, prime numbers, palindromes and all that jazz?
>>
Really torn between C and C++
What should I pick? I'm learning both and I like them both.
>>
>>57865421
C if you don't want to commit suicide
>>
>>57865414
Thanks.

I understand the arguments are functionally identical, but I am wondering which one is more common/proper in this sort of use.
>>
>>57865337
>They cost a lot of money to get done clinically
Ha

TYB NHS
>>
>>57865428
What do you mean?
>>
>>57865339
Option A is better IMO. [] operator is just syntax sugar for pointer arithmetic and is unneeded bloat.
>>
>>57865365
>Okay but how do we decide who has the BEST POO?
There's some debate on that still, but at the taymount clinic they do this:
find people who can demonstrate they eat healthy, and have always been generally healthy their whole life, and have always been "naturally" a healthy weight.
Test their microbiome with a stool test.
Make sure that the microbiome is very diverse, and lacks significant amounts of known pathogenic bacteria. As well as parasites etc.
They then take donor stools from them, they process them to remove all the food, toxins, hormones so there is nothing but bacteria left. (stool is 1/3 bacteria by weight)
They then freeze then bacteria for 3 months, and then make for the donot person is still healthy after 3 months. This is to make sure there were no diseases in the donor that were undetectable 3 months ago, but were still present. So it's basically a quarantine to make sure the stool sample is disease free.
After that the sample is ready to be administered to a patient as an enema.

>would the resulting poo-monoculture be a threat to public health
No, because the process actually improves the diversity of bacteria in the gut. Humans currently have the worst gut flora diversity today compared to any other time in history, but recall transplants actually reverse this because you get transplants from many different people, giving you a much improved gut diversity compared to other people.
>>
>>57865446
::::>>>>&&&&const&&&&<TYPE_T>std;;
>>
>>57865433
>which one is more common/proper in this sort of use
Both types are common to see.
You might argue B because it's more obvious that you're using it as an array.
You might argue A because that is what it really is.
>>
>>57865446
Just google C vs C++ beginner or something like that rather than expecting to get a balanced argument here.
>>
>>57865370
It's actually pretty healthy.

>>57865395
So long as you're not eating poo from someone with a chronic E. Coli infection you should be okay.
>>
>>57865415
>sorting
It depends, although most people lazily fall back on quicksort, or something similar to quicksort.
>prime numbers, palindromes
There are too niche to have a "goto" algorithm. However there aren't really many ways to generate primes, and palindrome checking is very simple to do.
>>
>>57865459
I'm not sure I'd trust google on this one.
>>
File: .png (292KB, 480x386px) Image search: [Google]
.png
292KB, 480x386px
Is Erlang any useful outside of telecommunications?
>>
>>57865444
The main clinic for this stuff is actually in london. It's not covered by NHS for anything afaik as it's considered experimental therapy.
>>
File: yumonsa.webm (3MB, 624x350px) Image search: [Google]
yumonsa.webm
3MB, 624x350px
Ask your favorite programming literate anything!!1!

>>57863393
C# has been heavily influenced by C++. While being pronounced Cee Sharp, it does actually represent a C followed by four pluses
C++++ -> C++ -> C#
++


>>57862388
Lisp and Algol

>>57861948
Please use an anime image next time.

>>57854493
>>57854778
Those two are not equivalent at all.
>>
>>57865452
>>57865414
>>57865455
>syntax sugar
Pointers and arrays are not equivalent or "syntax sugar" you mooks.

char *foo = "foobar";
char bar[] = "foobar";


&foo is a char**
&bar is a char(*)[7]

Also the array members will always be on the stack while the pointer members can be elsewhere (i.e. .rodata for string literals).
>>
>>57865540
>Pointers and arrays are not equivalent or "syntax sugar" you mooks
In function signatures, yes they are.
I didn't claim they were the same in general.
>>
>>57865421
Anyone?
>>
>>57865568
Pick C.
C++ is a horrible clusterfuck.
>>
>>57862292
You forgot your newline.
ZSH does that if there's no newline.
>>
>>57865455
>>57865452
What's the argument against C and D then?
>>
>>57865568
>bumping your post 17 fucking minutes later when it's before most burgers are awake

Fuck off.

The answer is probably neither, depending on what you want to do.
>>
>>57862503
God what poo code.
>>
>>57865571
>C++ is a horrible clusterfuck.
Could you briefly explain this?
>>57865580
I'll start bumping it even more if that's what you'd like, rude poster
>>
>>57865599
bump
>>
>>57865577
Unwieldy and unnecessary.
The real way you should do it is:
int somefunction(size_t arr1_c, char *arr1[static restrict arr1_c],
size_t arr2_c, char *arr2[static restrict arr2_c],
size_t arr3_c, char *arr3[static restrict arr3_c]);

If you're looking for those sweet optimisations.
>>
>>57865577
C is too fiddly for larger projects or significant abstraction.

D is a worse C++.
>>
>>57862503
>
cout << result;

Needs to be
cout << result << '\n';

You forgot your newline.

Jesus christ I can't believe people haven't pointed this out yet, I can't believe people haven't even recognized zsh's typical behavior when no newline is present where it prints the % with white background.
You people disgust me, you're all amateurs.

Also don't do
using namespace std;
you tard.
>>
>>57865612
>you tard
Don't bully her! she is learning
>>
>>57865606
thanks for bumping
>>
>>57865610
Cringy as fuck.
int some_function(
char** array1,
size_t array1_l,
char** array2,
size_t array2_l,
char** array3,
size_t array3_l
);
>>
>>57865653
My example is literally better than yours.
It allows the compiler to pre-fetch array elements and can assume that none of the arrays alias each other.
Yours does not allow for the compiler to make those optimisations.
>>
>>57865455
>You might argue B because it's more obvious that you're using it as an array.
Except you only can use it as a pointer.
Using [] in function parameter lists are harmful obfuscation, should never have been valid syntax.
>>
>>57864840
He's not lying. stupid shit happened to me all the time when I was in school.
>>
>>57865666
>trips
Right but it was about the indentation and the way you unnecessarily abbreviate everything.
>>
>>57865696
>about the indentation
I didn't want the line to be 120 characters long.
>unnecessarily abbreviate everything
I just used the variable names from the original example.
>>
>>57865421
bump
>>
>>57865599
C++ is a much more complex language than C, but gives some much-needed abstractions over C that are pretty necessary for building more complex software.

C++ is also much safer, it offers you safe alternatives like std::vector, std::string, smart pointers etc, but still lets you use the unsafe C primitives if you want to (e.g. for performance reasons). If you stay withhin "the safe C++ zone", meaning no raw pointers, no raw arrays, no C-style casts, obey the rule of 0/3/5 etc, it's pretty easy to write very secure software that won't leak memory or crash unpredictably.
>>
>>57865612
>using zsh
>>
>>57865735
>Muh abstractions
What is OOPfags and them constantly chanting that phrase?
They're a fucking cult at this point.
>>
>>57865739
It has the best tab completion.
>>
>>57865747
abstractions are good
>>
>>57865747
not much to do with OOP, really. In fact, the more experienced you get with C++ template meta-programming, the more you'll realize that you can do without most OOP paradigms like inheritance et al.

C++ offers a lot of useful abstractions, OOP is just one of them.
>>
File: .jpg (64KB, 1024x906px) Image search: [Google]
.jpg
64KB, 1024x906px
I propose next /dpt/ OP
>>
>>57865764
>OOP is just one of them
We know at this point that we can just immediately throw out your opinion.
Get your fundamentally flawed programming paradigm out of here.

>>57865760
Too many abstractions are bad, and most abstractions are of extremely poor quality.
>>
>>57865747
templates (variadic templates, ...), common datastructures that everyone speaks (like std::string, std::vector), smart pointers, constructors/destructors, std::thread, ranges (which I greatly prefer over iterators), tuples etc are all extremely valuable abstractions that are not really related to OOP but make programming a lot safer and easier.
>>
>>57865781
As the monarch of this thread I approve
>>
>>57865781
Approved
>>
>>57865784
You keep harping on OOP even though I never made a case for it or even said that OOP is a good thing

I even said that C++ lets you use LESS OOP thanks to template metaprogramming. If you compare an OOP program written in C and how you could express it in C++, you would likely have a more complex class structure in C due to the lack of generics.

read this

https://en.wikipedia.org/wiki/Straw_man
>>
>>57865800
I don't approve.
It needs to be cuter, and it has to be non-trap.
>>
>>57865815
Yes, I know that I'm fucking straw manning.
I'm just trying to start shit.

I do legitimately think OOP is fucking terrible though.
>>
>>57865828
>I do legitimately think OOP is fucking terrible though.
you probably think that because OOP actually is fucking terrible
>>
>>57865784
>and most abstractions are of extremely poor quality.
That's because most programmers are of extremely poor quality.
>>
>>57865821
Why do you think you have the right to do so?
>>
>>57865838
How do you write programs that aren't OOP in the most efficient way? Can you show me an example?
>>
>>57865421
attention here
>>
>>57865850
Because I've been in these threads longer than anyone else here.
I remember when no one complained about the OP anime image.
>>
>>57865828
>>57865838
>OOP
What's that?
>>
>>57865828

I don't think OOP is fucking terrible (it is the most successful programming paradigm so far, and there is a reason for that) but it certainly has some bad points, like deep class hierachies, inheritance, cases where you end up with action at a distance (hard to tell where some relevant code is actually implemented etc.)

But I think we've sorta figured these things out nowadays, and largely avoid them (and/or build languages that avoid them.) The basic concept of encapsulating state into structs as well as allowing methods operating on this state to be associated together with those bundles of state is a good idea. Inheritance can largely just be replaced by templates, and interfaces can also be useful as a way to express contracts explicitly.
>>
>>57865872
depends on the program

>>57865889
OOP stands for OOPS, and it means "an accident"
>>
>>57865890
>and there is a reason for that
Marketing hype, mainly.
>>
>>57865900
>it means "an accident"
That doesn't seem quite right; all of the jobs I see specify that you should understand "basic OOP patterns and usage cases" or something like that.

Why would they all use something bad?
>>
i2p router in C
>tfw broke unit tests with backtrace going deep inside libssl
>>
>>57865911
>Why would they all use something bad?
Because they're dumb code monkeys who don't know anything else.
>>
>>57865911
low skill workers are more profitable
>>
>>57865911
/dpt/ is just too edgy for mainstream garbage like OOP
>>
>>57865879
And? That gives you the right to overrule the decision of an absolute monarch?
>>
>>57865911
>if many people believe in something it must be true
epic
>>
>>57865931
When did /dpt/ become a monarch?
>>
>>57865890
>most successful programming paradigm so far
>not structured programming
>>
File: .jpg (276KB, 1502x1600px) Image search: [Google]
.jpg
276KB, 1502x1600px
>>57865821
>and it has to be non-trap.
It's not a trap, you fucking mong
>>
>>57865943
>structured programming
>not imperative programming
>>
File: anime.png (201KB, 335x365px) Image search: [Google]
anime.png
201KB, 335x365px
>>57865941
No, /dpt/ became a monarchy.
I became the monarch.

>>57865943
"structured" is a meme, almost all code is "structured"
>>
>>57865941
Right now. I declare myself Emperor of /dpt/ and I declare this thread and all subsequent threads to be my private property.
>>
>>57865919
>>57865921
I'm getting conflicting information here.

Are you saying that it's bad to be more profitable and make large code-bases easier to reason about for the weaker members on a large team?

>>57865924
Why would /dpt/ hate something mainstream? I'm new to all of this, so I want to fit in. Should I denounce anything that is common in any given field of work?

>>57865940
Now now, no one said that. It seems like it's the opposite here, where if many people use something, it must be bad.

I thought us 4channlers hate hipsters.

Are we technological hipsters?
>>
>>57865959
>us
please don't associate me with your kind
>>
>>57865959
Just watch https://www.youtube.com/watch?v=QM1iUe6IofM
>>
>>57865954
>almost all code is "structured"
Sounds like you can't see the forest for the trees.

The reason almost all code is structured is that the paradigm was so successful that it became near omnipresent.
>>
>>57865951
I know, sorry if I implied that.
If I only said it had to be cuter, some fag would've chose hime, so as a preemptive strike I included that it had to be non trap so that they could only choose a cute girl (female).
>>
>>57865959
yes, you should definitely hate on anything that's popular. Take pride in only knowing the most obscure languages that guarantee unemployability. It's the right way.
>>
>>57865954
>almost all code is "structured"
Hence: 'Most successful programming paradigm'
>>
>>57865959
>I'm getting conflicting information here.
>Are you saying that it's bad to be more profitable and make large code-bases easier to reason about for the weaker members on a large team?
OOP isn't easier to reason about, it's easier to write.

>>57865984
Addition is the most successful paradigm
>>
>>57865954
Read up on the history of programming languages and the Böhm-Jacopini theorem.
>>
>>57865993
>it's easier to write.
Than what?
>>
>>57865982
Please stop spamming this video; it's likely that you're trying to get clickbux at this point, considering you've been doing it for months.
>>
>>57865993
For the majority, that is. It's easier for fools to use.
>>
>>57865421
bump
>>
>>57865993
Stop being so glib.

The structured programming paradigm was developed decades into the history of programming languages and its adoption was not uncontroversial.

The reason you consider it as inevitable and fundamental as addition is proof of both its success and your ignorance of the subject matter.
>>
>>57866025
Lambda calculus is inherently structured and predates the turing machine
>>
>>57865474

It's the gold standard whenever you need concurrency and reliable systems.

Erlang's processes all take care of each other, can restart each other and so on. Processes can talk to each other in a pretty lightweight way. It's almost like an own operating system. You can also run it directly on hypervisors.

And if you look at Elixir (which is basically Erlang) you'll see plenty of sites that use it.


So yes, it's pretty cool, but for many tasks it's a little bit overkill.
>>
>>57866036
Lambda calculus is not a programming language.
>>
>>57865421
hi. could anyone answer this please?
>>
How to join the secret /g/ discord?
>>
>>57866174
https://discord.gg/7zv7h
>>
>>57866141
get out of my thread
>>
>>57865474
I've used it pretty extensively in the past for networked applications and hardware-control applications.

it has a niche, but other languages/environments like go and nodejs are eating a large part of its lunch, because they have a less weird syntax and a bigger ecosystem of libraries (and a bigger community). Also, erlang is not exactly a fast language (even with HiPE.)

It has advantages over go in that it's preemptively scheduled and has supervisor trees, which make it more resilient in some ways against e.g. processes that fall into infinite loops or crash (supervisors will attempt to "self-heal" the application.) The way it embeds external C libraries and such through port drivers makes it more crash-resilient (very difficult to crash the erlang VM that way.)

It has advantages over node in that it's inherently multithreaded and has a much nicer concurrency model (message-passing over callback hell -- but then, modern JS has promises which are nice too). It takes advantage of high-performance I/O primitives offered by your OS (but so does node)

But the syntax is relatively alien, the standard library is relatively small, the community is small, the library ecosystem is small, a lot of stuff is done "weirdly" if you're coming from other languages.

I've never used elixir, LFE or efene or what those other languages based on the BEAM vm are called.
>>
>>57866163
C++, since it's a bit harder to shoot in the foot
>>
>>57866141
what's a programming language?

>>57866036
same year,no?
>>
>>57866200
>same year
yeah but slightly earlier and by a real man, not a man's man
>>
>>57866200
>what's a programming language?
A langugae you can use to write out a list of mathematical operations to be completed in order.
>>
>>57866199
Is that the only reason? I'm not really concerned about repeatedly failing
>>
>>57866187
How do I shitpost there if I'm not anonymous
>>
File: 1466798559489.jpg (2MB, 2000x2610px) Image search: [Google]
1466798559489.jpg
2MB, 2000x2610px
>>57866163
If youre the kind of person who wants to know how things work before using them, go with C. If you want to start doing things fast and learn what's under the hood later, go with C++.

If you want to do kernel dev or embedded systems, go with C. If you want to do vidya games, go with C++.

There's no rule against learning both. C is a smaller language, so in theory, itd be easier to go from C to C++, but then you still have to pick up a completely different paradigm of programming to leverage its features. So order doesn't really matter as much as some people make it out to. Just go with the one that does more things you like, get good at that, then pick up the other when you get bored of the first.
>>
>>57866225
We literally have a shitposting channel, and you're welcome to shitpost all you want wherever.

Programming is rarely discussed, and the discord serves only as a place to have bite-size, unfulfilling, meaningless discussions with other 4chan-minded people.
>>
>>57866218
>A langugae you can use to write out a list of mathematical operations to be completed in order.
wrong
>>
>>57866242
What is a programming langugae then?
>>
>>57866247
Thank you for asking.

from sicp:
First, we want to establish the idea that a computer language is not just a way of getting a computer to perform operations but rather that it is a novel formal medium for expressing ideas about methodology. Thus, programs must be written for people to read, and only incidentally for machines to execute.
>>
>>57865421
flip a coin
>>
>>57866227
>itd be easier to go from C to C++
I see regular mantra "Don't write C in C++"
>>
>>57866258
none of that contradicts what I said.
>>
So what's the deal with Zed Shaw?
>>
>>57866258
> only incidentally for machines to execute

I'll take "how to write buggy and slow code for the rest of your life" for 100 points.
>>
>>57866227
>If you want to start doing things fast
That's not a concern since I enjoy writing even the simplest shit and I think I'm autistic enough to stick with it
>If you want to do kernel dev or embedded systems, go with C
Yeah, this sounds more interesting to be honest but i'd imagine it's harder.
>>
>>57866219
Don't listen to him. Programming in C++ usually looks like that
>code
>debug
>realize the project implementation is flawed and you need to rethink the structure from scratch
>throw computer away

Whereas in C:
>code
>debug
>run

Bonus for Haskell:
>code
>>
>>57866285
he writes books typically titled "How to learn $X the hard way"

sometimes he says controversial things and then people get butthurt

what more is there to know?
>>
>>57866258
>First, we want to establish the idea that a computer language is not just a way of getting a computer to perform operations but rather that it is a novel formal medium for expressing ideas about methodology.
The latter can just be folded into the generic term 'language'
'Programming language' ought to specifically be about instructing (programming) computers what to do, otherwise it's a useless term.
>>
>>57866314
>controversial
That's an interesting way to spell "wrong".
>>
File: 1466799060921.jpg (44KB, 439x616px) Image search: [Google]
1466799060921.jpg
44KB, 439x616px
>>57866268
Did you not read the rest of that sentence? I might not have been clear enough. I was trying to warn anon against exactly that.

I'm a C programmer, and I'm well aware I'm just as garbage at C++ as most C++ devs are at C. But to a beginner, it seems like it would be a lot easier to go from C to C++. I was trying to say that the reality is a bit more complicated.
>>
File: .jpg (32KB, 300x300px) Image search: [Google]
.jpg
32KB, 300x300px
>>57866300
>Bonus for Haskell:
>code
A-a-a-and never run it
>>
>>57866300
Bonus for haskell:
> code
> memory leak
> quadratic complexity where you didn't expect it
> code too slow
> concurrency bugs
> no usable libraries available to do any real-life work
> deployment doesn't work and takes forever
> community only gives useless and wrong advice and will tell you you're doing it wrong
> discard program and rewrite in C
>>
>>57866328
if you need to run it then it's already imperfect
>>
>>57866283

no, you are wrong. a programming language is not necessary about maths, natural languages have been used for programming with success.

>>57866320
also, don't confuse a computer with a computing machine. a computer can be a machine, but can also be a human.
>>
What's some government type stuff I can program/set up i.e honeypots
>>
new thread when?
>>
>>57866336
>rewrite in C

>spend all your time reinventing the wheel and managing memory
>takes weeks to do a simple task like a quick android app that automates something you do at work with a few API calls
>>
>>57866368
"government type stuff"? wut? What's "government" about honeypots?
>>
>>57866336
also
>need to use project in commercial environment
>need to hire more haskell programmers to work on it
>can't find any
>project fucked
>rewrite everything in C# instead

>>57866343
>not necessary about maths
yes they are
>natural languages have been used for programming with success.
They are still describing a series of mathematical operation you stupid cunt.
>>
>>57866380
you could always finish off the one that won't die here >>57856284
>>
>>57866391
that one is also dying
>>
>>57866381
>a quick android app
quick, not slow
>>
>>57866384
honeypots are commonly used by governments and IIRC they were the first ones to setup honeypots
>>
>>57866381
> weeks

I've actually written cross-platform android/ios apps in C++, it's not bad. There is some initial setup burden (abstracting iOS/android touch events, setting up the EGL/GL ES drawing context etc), but after that it's pretty smooth sailing, and you get optimal performance on all devices.

For games and such it's definitely a viable option
>>
NEW THREAD

>>57866411
>>57866411
>>57866411
>>57866411
>>57866411
>>57866411
>>
>>57866390
>need to use project in commercial environment
>need to hire more haskell programmers to work on it
>can't find any
>project fucked
>rewrite everything in C# instead

>tfw you find a Haskell programmer and they're autistic as fuck and clearly aren't going to fit in to the team
>tfw you actually have options with C# developers

Our shop is completely C# now, primarily because of this. Same goes for other meme languages like Haskell.
>>
>>57866412
Why would the govt set up honeypots? Maybe in very specific cases when they are already investigating someone.

Check out active probing (a technique employed by the GFW of china), that's rather more interesting...
>>
>>57866390
>They are still describing a series of mathematical operation you stupid cunt.

print("Hello")


where the maths here?
>>
>>57866417

p. much this

haskell programmers are largely wannabe-academics who didn't make the grade and have no real-life experience in delivering anything usable.

Usually they are also just using haskell to feel superior over other programmers, but are actually unable to implement even pretty basic algorithms in haskell.
>>
>>57866430
>create list of numbers (a string)
>map them to bitmaps (font)
>transform bitmaps to larger bitmap (render font to console output framebuffer)
and so forth
>>
>>57866430
>>57866430
>programming language is not necessary about maths
>>
>>57866430
well, print is a function, "Hello" can be seen as a vector of numbers (\in [0, 127] in this case), the whole thing gets translated to machine instructions which are mostly about arithmetic (well, except for that most of the instructions are really just shuffling data around between memory and registers, calling functions, jumping around etc)... You can also model the whole program (or even computer) as a state-machine where e.g. an instruction (or expression in your code) is a transformation from S to S' etc

it's a stretch, but if you want then anything is mathematics...
>>
>>57866462
>>57866483
>implementation stuffs
no, where the maths in the code and only the code? implementation is irrelevant.
>>
>>57866497
You're confusing designing and programming.
>>
>>57866497
well, the "print is a function" and "a string can be seen as a vector of numbers" is still true, then.
>>
>>57866497
>no, where the maths in the code and only the code?
We just told you. That's what your code means.

>implementation is irrelevant.
It is if you ever want your code to actually do anything and not just be meaningless text.
>>
>>57866516
you are the one who confuse everything. source code is nothing else than some text meant to be read by either a program or a human, this is why pseudo code is a thing.
>>
>>57866497
Depends on the semantics of the code.
But if we're assuming conventional function application: Beta reduction of the function 'print' with the argument "Hello".
Thread posts: 358
Thread images: 27


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