[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: 321
Thread images: 30

What are you working on, /g/?

Old thread: >>59580498
>>
>>59586527
Defecating in a ceramic bowl.
>>
>>59586527
Programming.
>>
>>59586527
Coding.
>>
>>59586527
>>59586501
This
>>
>>59586527
Developing.
>>
>>59586527
I am learning C++ but when would I ever use my classes for programming?
I mostly do alogirthms, sorting, searching but none of these involves making my own class.
I am sad.
>>
>>59586527
Conceiving.
>>
>>59586527
contemplating
>>
>>59586731
I'm wondering if you're coming from C or assembly language. I use classes very rarely, too.
>>
>>59586527
Creating.
>>
>>59586527
Shitposting.
>>
>>59586731
>>59586760
Do you use structs? Structs are classes too.
>>
The program below shows that if you have a destructor then your should have copy constructor and copy assignment operator or else undefined behaviour is imminent.
How do I understand this. I get segmentation fault but why?

#include<iostream>
class Hasptr{
public:
std::string *p;
int i;
Hasptr(const std::string& s = std::string()):
p(new std::string(s)),i(0){}
Hasptr(const Hasptr& temp);
~Hasptr();
};
Hasptr::~Hasptr(){
delete p;
}
Hasptr::Hasptr(const Hasptr& temp){
//p = new std::string(*(temp.p));
p = temp.p;
i = temp.i;
}
void function(){
Hasptr *dummy1 = new Hasptr("LA");
Hasptr dummy2(*dummy1);
std::cout<<"Address of string member in dummy1 "<<dummy1->p<<std::endl;
std::cout<<"Address of string member in dummy1 "<<dummy2.p<<std::endl;
delete dummy1;
std::cout<<"dummy1 deleted trying to print dummy2 string value "<< *(dummy2.p)<<std::endl;
}

int main(){
Hasptr a1("NewYork");
std::cout<<"Address of string member in object"<<a1.p<<std::endl;
Hasptr a2 = a1;//Copy initialized
std::cout<<"Address of string member in object"<<a2.p<<std::endl;
function();
return 0;
}




Output
Address of string member in object0x108e040
Address of string member in object0x108e040
Address of string member in dummy1 0x108f0c0
Address of string member in dummy1 0x108f0c0
Segmentation Fault
>>
>>59586777
Yeah, but I primarily write in C, and C structs are not classes from C++.
>>
>>59586760
Even if I have to make openGL programs I rarely use classes or struct.
Are these for large scale softwares only?
C++ is my full time. C was just begining.
>>
>>59586819
>How do I understand this. I get segmentation fault but why?
because you're dereferencing a null pointer
>>
>>59586827
Yeah, I get that. I started straight onto C++ as a kid and never went through the legit C stuff. Still applicable in C++.
>>
>>59586841
Structs do really great work when it comes to complicated data structures (imagine doubly linked circular list or header of some file format, like .tar).
>>
Buffer overflow x64.
>>
Here is a nice wallpaper I made for you guys.
Modify and make a good one for me.
main(_){static long long x = 9000; putchar(x--%2?92:x%3?47:63); x>0&&main(_);}


>>
File: screenFetch-2017-03-26_19-59-24.png (1MB, 3286x1080px) Image search: [Google]
screenFetch-2017-03-26_19-59-24.png
1MB, 3286x1080px
I am making my own openGL implementation.
How can I make this public and open source?
>>
>>59587093
you're making your own drivers?
>>
File: dpt.jpg (164KB, 800x1000px) Image search: [Google]
dpt.jpg
164KB, 800x1000px
>>
>>59586731
>I am learning C++ but when would I ever use my classes for programming?
That is like asking why you would ever use a function instead of writing everything in the main loop.
>I mostly do algorithms, sorting, searching but none of these involves making my own class.
So you are a first year CS student.
There is a lot of algorithms that benefit from making classes.
Search algorithms often rely on classes.
There you often use a class that encapsulates a state.
This makes it easier to do operations on a state.

As for sorting, you might want to make a class so you can make comparisons of something different.
C++ allows you to declare what operators mean in relation of objects, eg, you can declare how to print them with a string stream, how to compare them etc.

It is also a good thing when you are making data structures.
>>
>>59587093
No.
By implementation I mean windowing toolkit.
>>
>>59587093
>How can I make this public and open source?
You make a contribution file that describe how people can contact you and how to contribute and a license file that describes what people can and cannot do with the code.

Most people just make these two files, write them in markdown and publish the code on something like gitlab or github.
You can host gitlab yourself, but unless you have a reason to do this, you might as well use a free server that can take responsibility for your data.
git is distributed anyway, so even if the servers go down, you still have everything until they went down and you can migrate to another server.
>>
>>59586994
(loop for x from 9000 downto 1 do (format t "~[~[63~;47~]~;92~]" (mod x 2) (mod x 3)))
>>
I have a csv file like

a, 21
b,20
c,19


I want to store these values in a list like
list = [a = 21, b = 20, c = 19]


and do a quicksort with it

the quicksort part is done
what I don't know how to do is how to transfer the csv values into a list and do the operations there without losing the "label"

I'm using python
>>
>>59587154
Yeah. I should make a dog class.
Sort dogs according to his color,
height, name, etc.
>>
Started learning Common Lisp a few days ago as my first language.

Mainly for jogging my brain and out of hobbyist interest. So far I can say that I should have done this a lot earlier. I haven't felt so mentally alive since years. I'm actually having fun.

Thanks /g/.
>>
DirectX naming convention
ID3D11CommandList


Is this stupid?
I find OpenGL's naming better.
glEnableVertexAttribArray(...);

Is DIrectX written by pajeets?
>>
Does anyone know how to measure the relations of several 3d points in the real world?
I need to make a calibration, but in order to do this, I need to make a coordinate system of the object I am measuring.
I can use a ruler, but that is really inacurate, especially since I need 3 dimensions.
>>
If I have a list of integer arrays, how do I go through that list and refer to the first element in that integer array?
>>
Inheritance is the purest form of metaprogramming.
>>
I am insanely fucking retarded, don't bully me. How do I check if AxA matrix (2d-array, actually) is a magic square? Of course it doesn't work, I don't actually know what I am doing.


bool ma(int** a, int row) {

int i, j,
k, sz;
int *sum = new int [row * row];

memset(sum, 0, 6);

for (i = 0, j = 0, k = row - 1; i < row; i++, j++, k--) {
sum[0] += a[i][j];
sum[1] += a[i][k];
if (sum[0] != sum[1]) return false;
}

for (i = 0, k = 2; i < row; i++, k++) {
for (j = 0; j < row; j++) {
sum[k] += a[i][j];
if (sum[k] != sum[k - 1]) return false;
}
}

for (j = 0, k = 0; j < row; j++, k++) {
for (i = 0; i < row; i++) {
sz = sizeof(sum) / sizeof(int);
sum[sz + k] += a[i][j];
if (sum[sz + k] != sum[sz + k - 1]) return false;
}
}
return true;
}
>>
>>59587361
>refer to the first element in that integer array?
(car list)
>>
>>59587124
I've already pointed out the issues with this one.
Fix it.
>>
>>59587341
GL doesnt have to include numbers so it helped. Then again MS really could have thought a little harder and just leave out the numbers. But thats asking a lot
>>
>>59587361
what language?
>>
>>59587314
Or something useful, whatever.
>>
>>59587361
int size;
int** list;
... // Somehow obtain your list here
for (int i = 0; i < size; ++i) {
int* first_ref = list[0]; // Pointer to first element of the array
}
>>
>>59587347
Why not read some vector algebra and matrices?
I guess that would help you.
>>
>>59587406
list[0]
>>
File: 1472850634599.png (523KB, 854x835px) Image search: [Google]
1472850634599.png
523KB, 854x835px
>>59587305

scrap that, this is going to be insanely difficult for me

I have a csv file like

2015, 20
2016, 29
2017, 39


I want to store the last column (20, 29, 39) into a list as integers

how do I do that /dpt/
>>
>>59587426
Whoops, s/list\[0\]/list\[i\]/g
>>
>>59587426
dude
int* listRefs = list[i];

You want to have it generic.
>>
>>59587406
I think they meant this in their question:
(mapcar 'car x)
>>
>>59587472
data = []
for line in file:
v = line.split(',')
data.append(v[len(v) - 1)
>>
How did you guys teach yourself devops?
>>
>>59587495
Fixed myself >>59587487
>>
File: Capture.png (321KB, 1166x779px) Image search: [Google]
Capture.png
321KB, 1166x779px
Ah yes, the beauty of Rust
>>
>>59587472

1. read line
2. split on ','
3. convert to integer
4. append to list

I'm sure you can figure out how to do all 4 of these things.
>>
>>59587504
>>59587513

nice this is exactly what I want
also no need to bully me
>>
>My friend was saying in order to support 4k resolution your video game should be 4k.
Is this correct statement?
>>
>>59587510
as much as people hate on the syntax it describes things that can't easily be described without becoming ugly. It's probly very close to the best possible syntax for a very ugly problem set.
>>
>>59587531
>also no need to bully me

I wasn't bullying.
>>
>>59587531
>How would you get bullied by CIA?
We are all CIA operatives.
We are monitoring your activities online.
You seem to be nice guy but careful not to use 4chan too much.
>>
>>59587537
programming related how?
>>>/sqt/
>>
What language has the best OOP syntax?
>>
>>59587572
Common Lisp
>>
>>59587572
Go
>>
>>59587572
Does no OOP at all count?
>>
>>59587572
smalltalk probly, I've only known the shitty OOP though.
>>
>>59586819
dummy2 is constructed using data members that dummy1 "owns";
when dummy1 is deleted so is dummy2s shared data.
>>
>>59587555
>. It's probly very close to the best possible syntax
Not even, its just an awkward bastard of functional and imperative
>>
>>59587555
Literally none of the punctuation in that image is meaningful.
>>
>>59587638
what doesn't look meaningful? It's not far from C++ syntax in that example. Again I find it really weird when people shit on Rust syntax and they haven't even gotten to the weird stuff.
>>
>>59587572
Go. I hate the bullshit of nesting all functions inside of the object.
>>
>>59587676
Improved:
Coords const char.write(Grid<char> grid, Coords cursor) {
grid[cursor] = this
cursor.move_within(Movement.Right(1), grid.bounds())
}

Already a million times more readable and I barely changed anything.
>>
>>59587676
C++ syntax is also awful.
>>
>>59587676
I find Rust very interesting, I like watching videos on it, its just not a language id ever use.
>>
>>59587592
No
>>
>>59587693
Sure but that means something completely different. It's unfortunate that the situation is incredibly complex but the meaning is meaningful.

>>59587697
I feel you, especially on Rust stable which lacks a ton of features you'd want to use anyway. The real question is:
Is it harder to do 100% best practices or learn a new ugly guaranteed safer syntax?
>>
If C is supposed to be small and easy to implement why hasn't nobody made language that's C with little harder to implement compiler.
You know have all the good stuff.
C ABI
better macro system
standard library that defines optional features depending on platform, for example on system that support filesystem you could use the optional standard api
type inference
namspaces that don't require name mangling
>>
I am learning c# and i got to chapter on classes, so to practice i decided to create a simple console "fighting game". User creates Player and monsters, receives random HP and attacks the monsters

Now, i wonder how to implements "rounds" of fight, where you have 1 player and for example 3 monsters, how do you make them perform attacks in some special order (depending on their rolled initiative)? Do i put them in some data structure like Queue or Stack? After they perform attacks and no one is dead, how do i repeat the process?

Currently, this is what i have:
http://pastebin.com/8wVMSGYj
>>
>>59586702
Codeine.
>>
>>59586527
>Microsoft® Daily Programming Thread 95
why?
>>
>>59587810
There are plenty of compilers with convenience extensions. The things you want can be done through those means.
>>
>>59587798
Most people will sacrifice some best practices for readability as long as it doesnt cause more headaches than its its worth. Which I think is the problem with rust and its railroading with safety. But who knows, its still young and they have a very nice development system.
>>
File: 1468893528122.png (16KB, 512x512px) Image search: [Google]
1468893528122.png
16KB, 512x512px
Hi /g/
In Bourne Shell (sh), how do I match a pattern in a test, like this:
text='somejunk_foobar_otherjunk';
if [ "$text" = "*foobar*" ]; then
printf 'It matches!\n'
else
printf 'No matches.\n'
fi;

I know that this is not how to do it, so how can I do it, in sh alone? If that's not possible, then how can this be done?
>>
>>59587917
Yeah readability is king. I 100% get that and that image posted with code is a really tough example. Any time you're dealing with references and casting it's going to be painful unless you turn your 1 line of function call into like 10 lines of commented code.
>>
>>59587939
> how can this be done?
Perl
>>
>>59587968
Perl obsoletes bash but brings about catastrophic readability and reusability problems. It will 100% work forever until something changes but nobody will be able to comprehend it.
>easier to rewrite from scratch than to decipher the original and modify it
>>
>>59587968
>perl
If I had to use external programs, I'd just use grep.
>>
File: BV2Pew5.jpg (429KB, 1800x2513px) Image search: [Google]
BV2Pew5.jpg
429KB, 1800x2513px
Does anyone have a guide to writing memory safe c11? mostly targeting embedded systems.
>>
Is it possible to return functions in only certain languages? What is it called, for a language to be able to have functions which returns a function?
>>
>>59588095
>What is it called, for a language to be able to have functions which returns a function?
Useless.
>>
>>59588095
Usually they call that something along the lines of "First Class Functions" as in they're a language-syntax supported datatype of the primary importance
>>
>>59588095
you mean currying?
>>
>people use software written in python
Why? You wouldn't drive on a bridge made of rotten wood.
>>
>>59588197
How else can I download YouTube videos?
>>
>>59588197
Python these days serves as a perfectly adequate glue lang to stick libs to each other. It's not significantly slow IF and only if you have compiled libraries. It's not my particular cup of tea but coming from perl I understand it.
>>
>>59588223
>perfectly adequate
Just like shitting into a latrine is a perfectly adequate means of defecation, right?

No. We should demand better. We should refuse to use shitlangs.
>>
>>59588195
I suppose that is the same.

>>59588128
I was going to ask "are there languages which take this further, returning families of functions" but then with the currying comment I realized that once you are able to return one function, you can return a "function which returns a function" etc.

I vaguely remember also when I was looking at this stuff before, getting confused on currying vs partial application, and I think it relates to this, and I remember mental-noting "this seems fundamentally important, come back to this"
>>
>>59588267
But there is software that is written in python that just works. (for example >>59588213)
If you want me to stop using that software, then port it to a language that you like and stop complaining.
>>
my problem with python is that I want R to completely run the stats/visualization/computationally light sci arena, but disgusting python is so bloated its fat arms are squeezing out my sweet lovely R
>>
Can C structures contain pointers to functions as members?
If so, can I use something like
some_struct.a_function(some_struct)

to simulate languages like C++ with OOP?
>>
>>59588267
Glue doesn't really need a lot of adequecy. If it sticks tab A into slot B it's good enough, whatever the performance. I'd rather use something with some slick JIT or something but it is what it is. I hate pythonfor unrelated reasons(whitespace autism)

>>59588310
First Class Functions are sort of a lisp/funcprog thing, I'm not anywhere near expert at it but it's a direction to go.
>>
>>59588325
t. content to wallow in shit
>>
>>59588329
People are lazy. They always bitch about python being shit. But when asked about re-writing it in their language of choice:
>oh its good enough who cares
>you dont need a one language solution
>>
>>59587846
pls respond
>>
>>59586527
poo in loo was a mistake
>>
it was a mistake for the academic community to choose python
ruby was robbed
Rails came in as ruby's loudmouth bf and she sank into the background as he took more and more of the spotlight
>>
>>59588409
>python
>ruby
They're both shit.
>>
>>59588409
Functional scripting is the future 2bh.
>>
>>59588403
You were a mistake.

>>59588356
If a shitty programming language can make good programs easily, then it's not so shitty after all. Same thing goes the other way: if a "good" programming language can't make good programs, then it's a shitty programming language.
>>
>>59588409
Ruby is way too nonstandardized(more than one way to do it), hasklel is the obvious choice.

With more than one way to do things stackoverflow would be 90% wrong for whatever they're trying.
>>
>>59588349
>Can C structures contain pointers to functions as members?
yes
>>
>>59588349
it will work, done it it my heap implementation for comparing function
but thats far from oop
>>
>>59588457
>I'm not good enough to satisfy a slightly rigorous compiler, so I made this cobbled-together pile of crap instead!
>>
>>59588468
Clearly mathematicians and scientists aren't good enough to understand Haskell.
>>
Functional languages:
>Idris
>Safe Haskell
>various theorem provers

Non-functional languages (dysfunctional languages?):
>everything else
>>
File: tmp_9184-1489004777441440941831.jpg (84KB, 648x720px) Image search: [Google]
tmp_9184-1489004777441440941831.jpg
84KB, 648x720px
Are there other language virtual machines than .NET and JVM?
>>
>>59588538
Yes.
>>
>>59588538
yes, non-compiled almost universally have one
>perl
>python
>ruby
>lua
>perl6
It's roughly the same thing as an 'interpreter'
>>
>>59587810
>namspaces that don't require name mangling
What would be the point?
You can already do that in a de facto standard way: prefix_stuff.
>>
Reminder that the Kleisli category is equivalent to the category of free T-algebras
>>
>>59588594
Reminder that the village bicycle is equivalent to your mother
>>
>>59588530
>>Safe Haskell
Does that mean Xtentionless haskell?
>>
>>59588627
https://wiki.haskell.org/Safe_Haskell
>As the Safe Haskell paper describes, it "hardens" the Haskell language by providing five properties: type safety, referential transparency, strict module encapsulation, modular reasoning and semantic consistency.
>>
>>59588649
ah, thanks
>>
>>59588612
kek. On Mother’s Day of all days too.
>>
>>59588747
Wait, is it really mother's day today?
>>
>>59588845
Yes. Now go apologize to your mother for your existence.
>>
>>59588864
I won't. It's not my fault my dad didn't wear a condom.
>>
>>59588571
But what about compiled languages?
>>
>>59588935
They are superior to interpreted languages.
>>
>>59588949
I mean, are there other language virtual machines than .NET and JVM for compiled languages?
>>
>>59588889
Kids these days have no respect. That's why I showed mine the door when he turned 18. I sometimes eat at the fast food joint he works at. Until he does what I did, and sorts his life out, I won't respect him.
>>
I've got a websocket server written in C that's supposed to broadcast data at a certain rate to all client connected. Here's the idea I had:

            Main
|
|
V
Fork()
|
___________
New Thread (B) | Old Thread (A)
| |
V |
*-----------* |
|while(1){ | V
| Broadcast| Fork()
| to all | |
| clients | ______________________________ New Thread (C)
|} | | |
*-----------* |Old Thread (A) |
V V
*-----------* *--------------*
| Handle | |Process data |
|connection | |into mmap'd |
| events, | |buffer for |
| message | |thread B to |
| events, | |broadcast |
| disconnect| *--------------*
| events, |
| etc. |
*-----------*


Also whatever happend to ascii art
>>
>>59588969
>these days
>implying kids had respect in your days
>>
>>59588969
You're an asshole.
>>
>>59589001
>Implying he's not a kid
>>
>>59588747
Thanks for reminding me!
>>
>>59588964
the line gets really blurry when you're talking about compiling into BYTECODE vs. machine code. Compiling C# into bytecode for .NET isn't the same really.
>>
>>59588990
no that's stupid
>>
>>59588990
>Also whatever happend to ascii art
Why go through the trouble for this when draw.io exists?

It would have taken less time, and would be more readable.
>>
>>59589001
My dad would beat me if I talked back to him. It made me respect the man. Not like parents today who are afraid to even reprimand their snowflake children.

>>59589010
I gave him 18 years to shape up. He refused to accept the conditions placed on him continuing to receive our support after he turned 18.
>>
>>59588747
>>59589056
>>59588845
Today is not Mother's Day.
>>
>>59589275
Lmao how's it feel being a failure of a father? That's like your one biologically necessary job and you fucking suck at it lol
>>
>>59589316
I'm not going to cover for my kid. If he wants to screw up his life, that's his choice. I fulfilled my obligations.
>>
>>59589275
>I gave him 18 years to shape up
I hate this phrase.
kids dont even begin to grow up until theyre ~18. And most would argue even farther into the 20s.
And this cyclical "my dad did X so thats how im gonna do it" is a great sign of a shitty parent.
>>
Guess the correlation between adults who can't finish things, and adults who had lax parenting
>>
>>59589275
>My dad would beat me if I talked back to him.
You know what that's called? Child abuse.
>>
>>59589275
>>59589346
I think you've done nothing wrong.

My mother told me early on that as soon as I hit 18 and I'm also not in school, I'm out of the house.
>>
>>59589437
To clarify, I'm 25 now, and pretty damn successful with a degree and a comfy tech job.
>>
What is the difference between
class Bear{
public:
int x;'
Bear() = default;
Brea(int y):x(y){}
};
void function(void){
Bear *b1 = new Bear(10);
Bear b2(11);
}
int main(){
function();
}


Bear *b1 = new Bear(10);
Bear b2(11);

I am about to read lifetime of objects but if someone shed some light.
After function() exits, does the object pointed by b1 persists on heap?
>>
>>59589347
>kids dont even begin to grow up until theyre ~18. And most would argue even farther into the 20s.
Only if the parents are shitty and don't require their children to start to pick up responsibilities earlier in life.
>>
>>59589347
By age 18 I had a pretty good handle on things. I'd worked summer jobs and part time jobs by then, I'd bought my first car using money I earned myself (a beat up piece of junk, but it got me from A to B), and I was budgeting for college (admittedly kids these days have it harder because it's so much more expensive now, I wouldn't have begrudged helping my kid with tuition, but he didn't want to go to college.)
>>
>>59589282
Yes it is
>>
>>59589444
>>59589437
But where the fuck is the kid supposed to go when you kick him out of the house? Go live in the streets?
>>
>>59589470
It is in the UK, it is not in the US. Not sure about other countries.
>>
>>59589446
yes. you would have a memory leak.
dont use owning raw pointers.
>>
>>59589476
Apparently so
>>
>>59589476
Go rent somewhere.
>>
>>59589488
no kidding so if i run valgrind on this I would get
leak info.
Wait.
>>
>>59589275
>My dad would beat me if I talked back to him. It made me respect the man.
It's called fear, not respect.
>>
>>59589476
Not my problem.

If they want to go to college, I'll pay for it and house them.

If they want to go to a vocational/trade school, I'll pay for it and house them.

If they're done improving and are ready to work a shit job due to lack of motivation and/or lack of intelligence, I'm done with 'em.
>>
>>59589069
>Compiling C# into bytecode for .NET isn't the same really.
Isn't the same in comparison to what?
>>
File: file.png (98KB, 1645x951px) Image search: [Google]
file.png
98KB, 1645x951px
flask is pretty gross what am I even doing
>>
>>59589544
>lack of motivation and/or lack of intelligence
If my kid had a genuine developmental problem or disability, I'd help them and support them. I'm not going to support idleness, though.
>>
>>59589509
And how are they gonna do that?
>>
>>59589609
By getting a job.
>>
I never had to do chores. I'm borderline genius btw. I thought about going to college but it sounds like a bore. Probably going to get a high paying programming job and move out in the next few years.
>>
>>59589609
They can go get a job.
>>
>>59586827
you can put functions in C++ structs
>>
>>59589488
Looks like
==488== Memcheck, a memory error detector
==488== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==488== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
==488== Command: ./a.out
==488==
==488==
==488== HEAP SUMMARY:
==488== in use at exit: 4 bytes in 1 blocks
==488== total heap usage: 1 allocs, 0 frees, 4 bytes allocated
==488==
==488== 4 bytes in 1 blocks are definitely lost in loss record 1 of 1
==488== at 0x4C2C630: operator new(unsigned long) (vg_replace_malloc.c:334)
==488== by 0x4007D7: function() (in a.out)
==488== by 0x400820: main (in a.out)
==488==
==488== LEAK SUMMARY:
==488== definitely lost: 4 bytes in 1 blocks
==488== indirectly lost: 0 bytes in 0 blocks
==488== possibly lost: 0 bytes in 0 blocks
==488== still reachable: 0 bytes in 0 blocks
==488== suppressed: 0 bytes in 0 blocks
==488==
==488== For counts of detected and suppressed errors, rerun with: -v
==488== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
>>
>>59589630
See you on /r9k/ in a couple years, along with all the other "really smart but lazy" people.
>>
>>59589631
>just sleep outside for 2 weeks until your pay
>oops you got fired for being homeless and unkempt for work, better luck next time
>>
>>59589671
Plenty of companies exist to let you borrow against your future paycheck.
>>
>>59589671
I suspect you're a bit like the idle lazy shitstain he's describing, looking for any reason to say "see?? not my fault, not my fault!"

He seems reasonable, I assume it would go more like "you got a job, that's great, I'll give you a month or two to save up rent/deposit/savings"
>>
>>59589671
The fact that they would be removed from the house would have been communicated literally years in advance, with strict reminders leading up to their 18th birthday if they are not in school, and have no intention of going to any sort of education.

If at this point they have saved nothing, and don't even have a job yet, that's their problem.

I would be inclined to help them out with a down payment/first month rent if they've proven that they understand the situation and are making genuine steps to be employed/employable. My name sure as hell wouldn't go down as a co-sign, though.
>>
>>59589706
Nah moved out at 19 and did the wage slaving.
>>
>>59589706
Exactly, but if the kid doesn't get a job and instead keeps procrastinating, saying he'll do it next week, etc. then you have to draw the line somewhere. He had plenty of warning.
>>
>>59589620
>>59589631
^Trust fund babbies detected

You guys have obviously never held a real job before :/

Your parents failed you and were terrible parents. In fact, they didn't love you at all. I'd be surprised if anyone were capable of loving you at this point.
>>
What language would be the best parent and why
>>
I'm trying to implement a shell and I want it to support input/output redirection of child processes. Is something like this the way to do it? My problem is what i currently have, works for something like:
program > output.txt

but not for
program > output.txt >> already_exsisting.txt


it's like it can only succesfully read from the last pipe created
>>
>>59589734
>My name sure as hell wouldn't go down as a co-sign, though.
Damn right.

My parents refused to be guarantors for me, and I'm glad. It made me more responsible.

>>59589779
I never took a cent from my parents after I left home to go to college.
>>
>>59589801
ML just look at its children
>>
>>59589779
Nice try, degenerate.

I grew up extremely poor, and put myself through college by working 60+ hours in fast food alongside school because there are few scholarships that white males can take advantage of. Before that, I worked in hardware stores for years while in gradeschool to pay for anything I wanted. My mother kept a roof over my head, and food on the table, but that's about it.

I actually have a job programming now. I live in a major city and am considering buying a house, because I've saved up much more than your average down payment.
>>
>>59589815
What happens in the parent:
        for (auto i = 0; i < redirections.size(); ++i)
{
auto used_pipe_end = -1;
const char* op = fd_pipes_info[i][0];
const char* filename = fd_pipes_info[i][1];

FILE *file;
auto write = true;

if (strcmp(op, ">") == 0)
{
used_pipe_end = READ_PIPE_END;
close(fd_pipes[i][WRITE_PIPE_END]);
file = fopen(filename, "w+");
}
else if (strcmp(op, ">>") == 0)
{
used_pipe_end = READ_PIPE_END;
close(fd_pipes[i][WRITE_PIPE_END]);
file = fopen(filename, "a+");
}
else if (strcmp(op, "2>") == 0)
{
used_pipe_end = READ_PIPE_END;
close(fd_pipes[i][WRITE_PIPE_END]);
file = fopen(filename, "w+");
}
else
{
used_pipe_end = WRITE_PIPE_END;
close(fd_pipes[i][READ_PIPE_END]);
write = false;
file = fopen(filename, "r");
}

if(file == NULL)
{
perror("FOPEN");
exit(EXIT_FAILURE);
}


char buffer[4096];

if (write)
{
ssize_t bytes;

do
{
bytes = read(fd_pipes[i][READ_PIPE_END], buffer, sizeof(buffer));
if (bytes != 0)
fwrite(buffer, sizeof(char), bytes, file);
} while (bytes != 0);

}
else
{
//IMPLEMENT
}
//WERE DONE CLOSE THE END WE"VE BEEN USING
close(fd_pipes[i][used_pipe_end]);
fclose(file);
>>
>>59589801
LISP 1.5
>>
>>59589834
>tfw living the comfy neet life with my single father
>tfw ssi and ebt
>tfw still can't get the determination to learn c
>>
C was a mistake
ML was robbed
I like dicks
>>
>>59589840
What happens in the child:
 for (auto i = 0; i < redirections.size(); ++i)
{

const char* op = fd_pipes_info[i][0];
auto unused_pipe_end = -1;

if (strcmp(op, ">") == 0 || strcmp(op, ">>") == 0)
{
if(dup2(fd_pipes[i][WRITE_PIPE_END], STDOUT_FILENO) == -1)
{
perror("DUP2");
exit(EXIT_FAILURE);
}
unused_pipe_end = READ_PIPE_END;
//write stdout to file
//file = fopen(filename.c_str(), "w+");

}
else if (strcmp(op, "2>") == 0)
{
if(dup2(fd_pipes[i][WRITE_PIPE_END], STDERR_FILENO) == -1)
{
perror("DUP2");
exit(EXIT_FAILURE);
}
unused_pipe_end = READ_PIPE_END;
//write stderr to file
// file = fopen(filename.c_str(), "w+");
} else {
if(dup2(fd_pipes[i][READ_PIPE_END], STDIN_FILENO) == -1)
{
perror("DUP2");
exit(EXIT_FAILURE);
}
unused_pipe_end = WRITE_PIPE_END;
//file = fopen(filename.c_str(), "r");
//write from file to stdin
}

//WERE DONE, CLOSE THE END WE'RE NOT USING.
close(fd_pipes[i][unused_pipe_end]);
}

execvp(command, argv);
//NOT REACHED
exit(EXIT_FAILURE);
}

>>
File: puke.jpg (11KB, 480x360px) Image search: [Google]
puke.jpg
11KB, 480x360px
>using a language that doesn't support array programming
>>
>>59587124
In that pic, what do the y-axis represent? What's this "monad"?
>>
>>59589834

Sorry to say, your parents failed you. The system failed you. Your childhood was the story of failure :/

If you parents lived in poverty and then kicked you out at 18, then they're obviously totally selfish for not seeing how hard it is to move out on your own in poverty. Your parents just fucking suck, dude, sorry :/
>>
File: anal beads.png (65KB, 529x298px) Image search: [Google]
anal beads.png
65KB, 529x298px
>>59589902
>What's this "monad"?
Read pic related very carefully.
>>
>>59589902
it's a monoid in the category of endofunctors

what's the problem?
>>
>>59589630

>tfw borderline retarded but really hardworking
>>
Mega Keno game for my lab.
>>
>>59589927
I will hire you to clean up my wife if you promise to only speak in grunts and sleep in a cage in our bedroom
>>
>>59589898
>using a language without ranges and slices
>>
>>59589979
>using a language that isn't omniparadigm
>>
>>59589988
But i am.
>>
More /diy/ than anything, but I'm working on my own processor+architecture just for a practice in such things. It's fucking hard though, I haven't taken any courses in college to help understanding with it so I'm going through design documents and online books for it. I really want to end my life at times but the ah-ha kicks in sometimes and motivates me

Though maybe I should have actually learned a language before taking on this task. Oh well. Can't post pics right now, on phone
>>
>>59590005
Doubtful.
>>
>>59587939
In bash you can do:

[[ ${text} == *foobar* ]]


In POSIX sh, you could use case:

case "${text}" in
*foobar*)
echo It matches.
;;
*)
echo No matches.
;;
esac
>>
>>59590009
Why?
What two/three paradigms are your specs to consider a language multi-para?
>>
>>59589916
If he's doing well, surely that means his parents succeeded despite their limited means.
>>
>>59590045
Just tell me what language you're using so I can come up with some contrived way to make fun of you and the language without offering alternatives to support my apparently misplaced sense of superiority.
>>
>>59590075
no
>>
>>59590030
Thank you, Anon!
>>
You are now programming in Julia
>>
>>59589544
So basically, if your kid can't keep up with an education because of the shitty genes you gave them, you're going to make them suffer for it? Sounds like you're not really psychologically fit to be a parent.
>>
File: logocaml.gif (5KB, 375x352px) Image search: [Google]
logocaml.gif
5KB, 375x352px
>>59590182
No.
>>
>>59589834
>muh bootstraps
>>
>>59588990
you know that fork() makes a new process, not just a new thread right? those will all be in a different address space. fork() is just a call to clone with some default args filled in. looks like you want threads not processes
>>
>>59590069
That's like saying your C program that's 90% undefined behavior is well-formed because ``it works on my machine :^)"
>>
>>59590255
No, it isn't.

You're full of excuses, aren't you?
>>
File: typing-test.png (128KB, 828x408px) Image search: [Google]
typing-test.png
128KB, 828x408px
How fast can you type, /dpt/?
>>
File: Capture.png (2KB, 324x55px) Image search: [Google]
Capture.png
2KB, 324x55px
wtf is wrong with this piece of shit Haskell code? GHCi keeps complaining about incorrect indentation
>>
>>59590355
Website is http://www.typingtest.com/
>>
>>59590278
>No, it isn't.
Not an argument
>>
>>59590361
you don't actually need brackets, if e then
but "then" has to be more indented (or on the same line)

where's else?
>>
>>59590399
>>59590361

actually "then" can be the same level of indentation, you just haven't got an else clause
>>
File: 1368211124826.jpg (70KB, 400x579px) Image search: [Google]
1368211124826.jpg
70KB, 400x579px
>>59590355
Typing speed is such a shit tier dick contest.
What should matter is what you actually program, not the speed at which you're doing it.
>>
                        Console.Write("What is the name of the Monster: ");
string monsterName = Console.ReadLine();

int monsterHealth = rand.Next(30, 50);
int monsterInitiative = rand.Next(1, 21);

Console.WriteLine($"\nMonster {monsterName} rolled the dice and received {monsterHealth} HP and {monsterInitiative} Initiative\n\n");
Monster monster1 = new Monster(monsterName, monsterHealth, monsterInitiative);


If i for example create 3 monsters in a loop using the code above, how do i lower health to a specific one, when each instance has a same name, monster1?
>>
Why the fuck does haskell care about indentation in some random special case

shit language
>>
>>59590255
Is there some tool to automatically check for undefined behavior?
If a program compiles and works correctly with
-Wall -Wextra -Werror -pedantic -pedantic-errors -ansi
, does that mean it's free of undefined behavior?
>>
>>59590427
Typing speed matters when using verbose languages like Java.
>>
>>59590439
Actually you can use braces and semicolons if you don't want to make your code indent-dependent.
>>
>>59590439
>forget else clause
>complain "waah the language"
>>
>>59590449
No. Finding all forms of undefined behavior is undecidable.
>>
File: Capture.png (3KB, 311x73px) Image search: [Google]
Capture.png
3KB, 311x73px
>>59590399
>>59590419
Thanks but now it's complaining about non type-variable argument...

>>59590439
>>59590472
>needing an else
>>
>>59590464
yet another reason not to use java.
>>
>>59590523
Yet most programming jobs require use of Java or C#. If you don't want to work for a meme startup and be paid in pizza and probably worthless options, chances are you're going to be stuck using one of them.
>>
>>59587605
Not quite.
>>59586843
This.

The problem is the destructor. It's doing what it's supposed to do but consider that when you call delete on dummy1, its destructor gets called. What does the destructor do in this case? Deletes the memory pointed to at by "p". Dummy2's p also points at the same exact memory address but it is no longer valid because Dummy1 deleted it when it was cleaning itself up on the "delete Dummy1" call.
>>
>>59590436
Put them in Monster array or arraylist at the end of each loop, then call monsterArray[index].health -= whatever
>>
>>59590514
How is this supposed to return anything other than false?

Ifs need else clauses in Haskell because they have to evaluate to a value. They're not statements with side effects.
>>
>>59590514
Yes, you need an else.
It's an expression based language, you dolt.

What would it be without the else?
If the boolean is false, does the entire program just quit?

>non-type variable argument
either enable the pragma
{-# LANGUAGE NoMonomorphismRestriction #-}
at the top of the file
(or give GHC the flag -XNoMonomorphismRestriction)
or give it a type annotation

pot :: Integral a => a -> Bool

And you mean `mod`, not just "mod".
Mod isn't an operator by itself.
You need to put backticks around it to make it infix.
>>
>watch The Imitation Game
>feel 3x better at programming
>watch Mr Robot
>feel 5x better at programming
What else can I watch to improve my programming? Especially anime
>>
>>59590561
is meant as a response to
>>59586819
>>
>>59590449
No there's no tool
See
http://blog.llvm.org/2011/05/what-every-c-programmer-should-know.html
https://kukuruku.co/post/i-do-not-know-c/

If you want to program in something that catches undefined behavior you should use a type safe language
>>
>>59590514
>>59590574
otherwise you would do
mod num 2
which is equivalent to
num `mod` 2
>>
>>59590574
>>59590572
>>59590514
>>59590472
>>59590439
>>59590419
>>59590399
>>59590361

>using haskell
>ever
>>
>>59590514
Oh, and you want `div`, not /
/ is for Fractional types, including floats and rationals.

Div is for integral division

Same rules as mod for infix
>>
>>59590602
>posting in /dpt/
>ever
>>
>>59590602
This lgbt scripting language is far from production level computing, you'd better stick to the straight languages like C/C++ with an adequate trade-off of development time and runtime performance, unless you're shitcoding for /dpt/ or some auxiliary pajeet projects.
>>
>>59590586
You can wear stripped white and pink programming socks to improve you performance by a factor of 140%
>>
>>59590662
>This lgbt scripting language
haskal is lgbt now?
>>
File: 1484497285541.png (204KB, 744x843px) Image search: [Google]
1484497285541.png
204KB, 744x843px
>>59590666
i don't believe you, satan!
>>
>>59590666
trips speak the truth
>>
>>59586527
Connecting my tokenizer/lexer with my parser.
>>
>>59590666
And if you wear a thong leotard and pantyhose underneath you get another 50% boost on top of that.
>>
File: idris.png (444KB, 816x1049px) Image search: [Google]
idris.png
444KB, 816x1049px
Got my new ebook.
>>
>>59586717
Good stuff man
I just wrote the worlds shittiest kernel in cpp and used asm to fix the stack and other little things

Did you write your own bootloader? I just use grub
>>
>>59587504
>>59587513

I have this in my list
[['2011', '112'], ['2012', '598'], ['2013', '289'], ['2014', '485'], ['2015', '283'], ['2016', '485'], ['2017', '192']]


and I'm getting this error
AttributeError: 'list' object has no attribute 'split'


when I try to split the string
what should I do
>>
>>59590829
care to upload it for me lad?
>>
>>59590842
No
>>
>>59590862
why?
>>
>>59590586
Read SICP and K&R.
>>
>>59589702
Ah yes, get into a metric ton of debt from legalised loansharks. Great plan.
>>
>>59590890
It wouldn't be right.
>>
>>59590890
He doesn't want to take part in unauthorized file sharing.
You can get it yourself if you want to, lad.
>>
>>59590555
>Yet most programming jobs
You have to realize that job postings are about who needs people to hire.
It's not programming jobs, it's just the people that need to be replaced in some way.
C# and Java people are easy to replace, so we see lots of postings for those languages.

And you're really exaggerating here.
>>
>>59590917
>paying for ebooks
no
>>
>>59590954
There's plenty of free ebooks on Amazon if you don't want to pay.
>>
File: 14705765501090.jpg (45KB, 600x573px) Image search: [Google]
14705765501090.jpg
45KB, 600x573px
Джaвa гocпoдин oбoccaл пepдoликoв.
>>
>>59587124

Made me chuckle.
>>
File: jawa.png (14KB, 894x130px) Image search: [Google]
jawa.png
14KB, 894x130px
>>59590980
What the fuck.
>>
>>59590228
You're correct, actually :X I do want threads not processes
>>
>>59591019
Why do people here really like Haskell? I see it as a stupid language. I finished their "intro" they have on their website, and I didn't like it one bit.
I think you're all just some hipsters, trying to use languages that no one else uses.
>>
>>59591154
It's an excellent language and once you realise that C is not the basis for all programming you might agree
>>
>>59591154
That's because it's programming BDSM.
>>
>>59591200
C *is* the basis for all programming languages, wake up.
Any widely used programming language today has C-like syntax.
>>
>>59591275
Lisp?
>>
>>59591275
It's sad that people actually believe this
>>
>>59591275
>syntax is important
>>
>>59586731
they're ugly anyway
>>
>>59591275
Python is based off of BASIC I think.
>>
>>59591315
go program in rust or sepples faggot.
Syntax is important.
>>
File: 654.gif (385KB, 500x281px) Image search: [Google]
654.gif
385KB, 500x281px
>>59586527
Being lazy and unproductive.
>>
Heard my next year Theory of Computation professor really fucking sucks. What books should I read to get a leg up on the class so she doesn't fuck my GPA?
>>
>>59590980
>>
>>59591275
Algol wants to have a talk with you.
>>
>>59587693
Honestly, that is less readable than the Rust code and much more ambiguous. Returntype const char.foo() is absolutely horrible.

Furthermore, since the function mutates its argument you'd need to make passing by non-const reference implicit to make your proposed syntax work, which is an absolutely horrible default. Otherwise your function has a bug because you passed your argument by value and aren't mutating anything.
>>
>>59590839
First, split is a function for strings, not lists, but split RETURNS a list. When you read in a line from a file, it's returned to you as a string. You can then split the string on anything you want (parameter to split, in this case ','), with the 'substrings' as members of the list. In this case, it seems like you read in the line correctly, and split correctly, but missed only appending the 2nd part of the list (i.e. the non-year portion).
>>
Cppfags, are you using the new pythonesque stuff?
>>
>>59591482
>pythonesque
"pythonic", surely?

Anyway, in my experience "pythonic" code is shit.
>>
A language where functions can only return true, false, or idk
>>
File: 1473210418807.jpg (28KB, 604x537px) Image search: [Google]
1473210418807.jpg
28KB, 604x537px
>>59591471

now I get what I was doing wrong
I had a list of lists

why is this a thing?
>>
>>59591562
Why is what a thing?
>>
>>59591397
Really? Well, I can't C it.
>>
>>59591575

a list inside a list
that's 2deep4me
>>
>>59591594
It's a pretty important/basic structure
>>
>>59590006
I know you are probably trolling, but if you really are interested in learning and have no real college experience with computer architecture, check out this book:

Introduction to Computing Systems: From Bits and Gates to C and Beyond
>>
What do you guys do here besides argue over what language is the best and ridiculing other languages?
>>
>>59591285
>>59591397
>widely used
>>
>>59591645
>From Bits and Gates to C and Beyond
Who is Bits? I know only Gates.
>>
>>59591680
So what?
C has Algol-like structure.
>>
>>59591154
I've done a lot of work in C++/C/Python ect, for me it was really a breath of fresh air in the way of thinking how to structure my programs. Plus the type system/pattern matching is awesome.
>>
>>59591680
Lisp and its successors (Scheme, Clojure, etc.) are widely used.
>>
>>59591666
>>59590666
What did satan mean by this?

And the answer is "No".

Reasonable discourse cannot happen in these threads. 4chan simply doesn't provide a platform that encourages thought-out posts and interacting in such a way that negativity fades immediately after your last post due to anonymity.
>>
>>59591562
An n-Dim array is just a list of lists.
>>
>>59591737
>4chan simply doesn't provide a platform that encourages thought-out posts
It's just users who are shit.
>>
>>59591680
ALGOL was arguably the most used programming language family until some time around the 80s when COBOL and BASIC family languages had replaced it.

The first versions of C as well it's predecessor, (B)CPL, is heavly influenced by ALGOL. It wasn't until the end of the 80s when C got standardised it became what we today regard as C like.
>>
>>59591756
>and BASIC family languages had replaced it.
Modern BASIC took a lot from Algol, though.
>>
>>59591795
Syntax-wise, yes. But BASIC is regarded as a distinct language family.
>>
File: 1483889621570.jpg (83KB, 460x401px) Image search: [Google]
1483889621570.jpg
83KB, 460x401px
How do you make a nasm emulator for android?
i mean like what do you need to know?
it would be for educational purposes of course.
>>
>>59591666
It happens someone makes stupid claims and I write essays on how they're wrong until they stop saying stupid things.

Occasionally we agree, they mostly give up.
>>
File: languages3.png (17KB, 522x384px) Image search: [Google]
languages3.png
17KB, 522x384px
>still disputing the accuracy of this image
>>
>>59586527

sometimes I pass too many functions into functions, it sounds neater in my head, but have no clue what im looking at when I write it out
def convert(unit_type,unit_value): #eg convert('oz',1) >>> 29 ml >>>
ml_in_oz = 29.57353
if unit_type == 'oz':
return unit_value * ml_in_oz #returns ML

def standard_drink(percent): #returns ounces
return 60 / float(percent)


def prompt():
return input("Enter Percentage of Alcohol, or 'the anykey' for chart of popular percentages \n >")

def chart():
popular_percentages = [3,4,5,7,8,10,12,13,15,17,20,25,28,30,35,38,40,45,]
print("Percent" "\t\t" "OZ" "\t\t" "ML")
for x in range(len(popular_percentages)):
print(popular_percentages[x],"\t\t" "{}" "\t\t" "{}" .format(round(standard_drink(popular_percentages[x]),2),round(convert("oz",standard_drink(popular_percentages[x])),2)))


def main():
try:
in_oz = round(standard_drink(prompt()),2)
in_ml = round(convert("oz",in_oz),2)
print("Use {} Oz, or {} ML".format(in_oz,in_ml))
except:
chart()


if __name__ == '__main__':
main()
>>
>>59591814
Syntax-wise? More like everything-wise.
Modern BASIC is a lot nearer to Algol than old BASIC. You don't have computed GOTOs, you have, well, structure.
Old BASIC was barely structured.
>>
>>59591877
Modern basic is object oriented and barely resembles old basic though.
>>
>>59591897
That's what I am talking about.
>>
File: fixed heaven.png (116KB, 522x384px) Image search: [Google]
fixed heaven.png
116KB, 522x384px
>>59591869
I pick 'em all
>>
>>59591915
Algol is nothing like modern programming, with modules, components and objects.

The closest thing would be Simula-67 which uses Algol 60 syntax.
>>
Why don't more languages have vectorized operations? loops are disgusting, I feel like a barbarian when I think about iterating like that
>>
New thread:

>>59591959
>>59591959
>>59591959
>>
>>59591957
Because vectorised operations make more sense when you have hardware support for SIMD, and in which case you'd rather use special intrinsics instead of language constructs.
>>
>>59591957
ranges lad
>>
>>59591947
>The closest thing would be Simula-67 which uses Algol 60 syntax.
It's still Algol family.
>>
>>59592014
No, I wouldn't say it is. Only syntactically.

It employs an entirely different programming paradigm, namely the object orientation.
>>
>>59591869
you could argue that python is the fastest to write code
>>
File: 1478106018832.jpg (211KB, 640x640px) Image search: [Google]
1478106018832.jpg
211KB, 640x640px
>>59592060
>OOP
>entirely different
And what way you write in most OOP languages inside objects? You still have the same algorithms, same IFs, same FORs and WHILEs.
>>
>>59591275
Ruby.
>>
>>59592166
It is entirely different in how you structure code, yes. Which was the original point.
>>
>>59589535
there's no difference nowadays
Thread posts: 321
Thread images: 30


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