[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: 351
Thread images: 36

File: 1463931131446.jpg (25KB, 529x480px) Image search: [Google]
1463931131446.jpg
25KB, 529x480px
What are you working on, /g/?

Old thread: >>59094211
>>
File: fizzbuzztemplateerror.png (85KB, 1714x934px) Image search: [Google]
fizzbuzztemplateerror.png
85KB, 1714x934px
The true fizzbuzz of the christ: http://www.adamtornhill.com/articles/fizzbuzz.htm
>>
>>59098896
beautiful
>>
first for idris
>>
>>59098926
>not first
doesn't typecheck
>>
Java is the best programming language!
>>
Working on my thesis. Gonna conduct a generic correspondence analysis in R and compare to the results of a Javascript implementation I made out of scrap metal. then again it's friday night so I probably won't
>>
In C++11, how should I compare weak pointers against shared pointers?
>>
Looking to start a new project but I first need to set up a directory structure and git repo and configure a VS project and write makefiles and craft bat files to make VS call gcc and hnnnnggg I dont want to do all that.
>>
>>59099116
weak.lock() == shared;
>>
>tfw too much of a brainlet to do programming
>>
>>59099160
Doesn't that use a mutex? That would create a nasty performance hit for my application.
>>
>>59099185
I don't think it does, just casts weak_ptr to a shared_ptr.
>>
>>59099208
Alright, thanks
>>
>>59099148
>make VS call gcc
why?
also cmake is an option for creating Makefiles for multiple platforms or making a VS solution and then you can do cmake --build it

here's an example for building with VS
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug -G"Visual Studio 14 2015 Win64" ..
cmake --build . --config Debug

and an example which should probably work for mingw stuff
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..
cmake --build . -- -j5
>>
I'm building my own dynamic array kind of thing and I'm building it in a way that every array element has a pointer to the following element. Does anyone know if this has a specific name?
>>
>>59099309
a linked list?
>>
>>59099320
>>59099309

kek
>>
>>59099309

rinku risuto
>>
>>59099320
Thank you.
>>
>>59099304
Yeah I meant bat files to call make within bash (in msys2)
Can't use cmake since it''ll be a dos program, last time I checked cmake had no clue about djgpp. I'm sure there's some way to make it work, but it's unnecessary since I'm only developing for a single platform.
>>
File: drooling cunt.jpg (39KB, 374x347px) Image search: [Google]
drooling cunt.jpg
39KB, 374x347px
>>59099477
>dos program
why
>>
>>59099665
it's fun, and I need direct hardware access.
>>
>>59099740

Win32 is your friend.
>>
>>59099828
black women are your friend
>>
>>59099839

I wish. I'm too autistic.
>>
>>59099828
holy shit no. seeing that api makes me puke every time. I'm depressed already, I don't need none of that LPCTSTR shit in my life.
>>
>>59099828
Win32 is not my friend, pal
>>
>>59099871
how so?
>>
>>59099178
>tfw too
You had one job.
>>
>>59099923

Come on, let's be real.
>>
btw somewhat related,
How do I set up remote debugging through gdb in visual studio?
The client side doesn't seem too difficult (hooking all cpu fault exceptions and sending the right gdb commands over tcp/serial when they occur) but I have no clue how to set up gdb and VS on the server side.
Apparently VS has this stuff built in (https://github.com/Microsoft/MIEngine) but nothing explains how to actually use that shit.
>>
don't make command line programs in 2017
>>
>>59100286
Where's the picture of Varg?
>>

Add add = new Add();
int num1 = 1;
int num2 = 2;

int sum = add.add(num1,num2);
System.Out.Println(sum);

public class Add
{

int add(int num, int num1)
{
return num + num1;
}
}

>>
>>59100286
dont make gui programs ever
>>
>>59100495
>OOP
never again
>>
>>59100511
isn't it so beautiful? Look at how structured and Well defined that is

Now imagine we have 1000 objects and how easy that would be to manage using the OOP method of separating all the logic and code
>>
>>59100540
you need to redo it

>// comment
>int m_intX, m_intY;

>setX, getX, Y

>int add()
>>
File: 3QK8XKs.jpg (24KB, 226x239px) Image search: [Google]
3QK8XKs.jpg
24KB, 226x239px
>>59100286

>Make command line programs in 2017!

ftfy
>>
>>59100580
way to lazy to type all the proper OOP to do all that
>>
>>59100600
you'll never make it in india if you don't squeeze hard enough
>>
>>59100610
I live in America tho
>>
>>59100540
>not using static
>hurr my functions get namespaced i cant handle this
???
>>
>>59100614
at least you can dream pajeet
at least you can dream
>>
>>59100501
>>59100482
you're either writing an api or you're writing a program for other people to use. non programmers, 99.99% of the human population, must have a gui.

there's no excuse for not having a gui in 2017. it's easy as fuck to do.
>>
File: sigma-notation.gif (3KB, 250x250px) Image search: [Google]
sigma-notation.gif
3KB, 250x250px
>>59098871
You guys were really helpful yesterday so i've returned again. I'm a beginner at python, but i've randomly gotten the inspiration to try and make a program that will give you the sum of a series.

I wrote it all out on paper and basically i want to take 3 inputs from the user, "First number in series" "Last number in series", and the formula.

So far i've got the input easily enough, but what's got me lost is the formula. For example, if the user inputs "K+3", I would need to tell Python to replace K with the first and last number in the sequence and then get the sum.

If anyone could help me out that'd be great. Preferably just tell me what command i need to read about without giving me too much of the solution.
>>
>>59099067
Then again, it's <any day> so I probably won't
>>
>>59100731
well either you build a parser for math expressions (nice exercise) or you have the user enter valid python code for the formula and then eval it
>>
>>59100731

Look at the shunting-yard algorithm.
>>
File: Screenshot_2017-02-24_21-43-37.png (175KB, 1365x742px) Image search: [Google]
Screenshot_2017-02-24_21-43-37.png
175KB, 1365x742px
>>59098871
>What are you working on, /g/?
Go+C thumbnailing library. Just finished MIME type detection and now need to fix 2 edge cases with OGG and MP4.
>>
About to learn rust...

How much of a bad time am I in for?
>>
>>59100945
You'll spend a day learing the borrowing rules.
>>
>>59100965

Yeah, the random nesting threw me sidewards when I first saw it.
>>
>>59100692
>you're either writing an api
yeah. you realize libraries make up a huge portion of software right?

and there are plenty of programs for which there would be no point to a gui. it would be retarded if grep was a 17mb binary and depended on gtk
>>
>>59100692
>there's no excuse for not having a gui in 2017. it's easy as fuck to do.
There is. The only "sane" solution is GTK. And GTK is made by code monkeys.
>>
>>59100945
the language is great but you're in for a terrible time
>>
Which book should I read, /g/?

1) K&R ANSI C
2) H. and P. Deitel - C How to program

Both are good, however:
First one is true classics, but it stand for an outdated standard (even though it perfectly compiles, the book would not provide the knowledge of how modern code is usaully written).
The second one is has a lot of side information, which is not useful at all, and looks overwritten, but provides modern standard.

So? Either two of these.
>>
>studying CS
>haven't written a single line of code in 8 months

Fucking kill me.
>>
>>59100692
there is no reason not to include a cli to your app in order to allow automated use

gui only applications are attractive but will eventually be pushed aside and become obsolete once gui styles changes
>>
>>59101222
CS?
>>
>>59101226
You can have gui application with full API. Like emacs.
>>
>>59101237
Gombooder Seiens :DDD
>>
>>59101248
gui only apps have a 5 year timer before they become obsolete. the core code, ideally, should be completely separate from presentation code

the number of abandonware that is now useless because the makers never thought to expose an api or cli is absurd
>>
File: 1432845712576.png (225KB, 637x654px) Image search: [Google]
1432845712576.png
225KB, 637x654px
>When people think this is a fine API

type Stream struct {
Messages chan interface{}
// contains filtered or unexported fields
}
>>
>>59101281
>the number of abandonware that is now useless because the makers never thought to expose an api or cli is absurd
Yes. We call that Windows.
>>
>>59101324
heh
>>
>>59100286
Enjoy you're non-portable bloatware
>>
>>59101410
people are non-portable bloatware now?
>>
>>59101429
>guibabbies
>people
>>
>>59101274
o fog how dis write u code?
>>
File: 1421139314917.png (181KB, 492x441px) Image search: [Google]
1421139314917.png
181KB, 492x441px
CHALLENGE: average two long ints in C

You should be smart enough to solve this.
>>
>>59101281
>the number of abandonware that is now useless because the makers never thought to expose an api or cli is absurd

It's not 'useless', just hard to use.
>>
>>59101462
How is that a challenge?
>>
>>59101288
When they think they know how to program.
>>
>>59101462
a>>1+b>>1

?
>>
>>59101462
int average(long a, long b) {
if (a == 0 && b == 0) return 0;
if (a == 1 && b == 1) return 1;
if (a == 2 && b == 2) return 2;
if (a == 3 && b == 3) return 3;
if (a == 1 && b == 3) return 2;
exit();
}
>>
File: kissu.webm (3MB, 1280x720px) Image search: [Google]
kissu.webm
3MB, 1280x720px
>>59101462
int average (const int x, const int y) 
{
if ((x < 0) ^ (y < 0))
return (x + y) / 2;
const int xh = x / 2;
const int yh = y / 2;
const int xhr = x % 2;
const int yhr = y % 2;
return xh + yh + (xhr & yhr);
}
>>
>>59101502
Can you do it?

>>59101513
average(1,1) == 0
nice

>>59101525
correct
>>
What's it doing, /dpt? It's been internally operating for 2 minutes now.
I'm scared!
>>
>>59101560
>correct
long
>>
>>59100945
>rust
It's hard, you'll hate the borrow checker, once you grok it you will respect it a bit more. Hopefully NLL will come in soon.
>>
>>59101525
what a gay webm
>>
>>59098119
It's used in interviews to weed out people who can't actually program, such as this:
https://css-tricks.com/tales-of-a-non-unicorn-a-story-about-the-trouble-with-job-titles-and-descriptions/
>>
>>59101569
It's operating.

Internally.
>>
>>59101569
Sending your code to Microsoft and the NSA so they can find exploitable vulnerabilities in advance
>>
>>59101462
you can't average integers
>>
File: ready_to_kill.png (176KB, 560x530px) Image search: [Google]
ready_to_kill.png
176KB, 560x530px
>>59101577
N-Nandato
>>
>>59101610
in C
>>
>>59101222
Computer science can be studied without writing code, desu
>>
>>59101462
return (a >> 1) + (b >> 1) + (a  & b & 1);
>>
File: 15y9d00.jpg (6KB, 200x291px) Image search: [Google]
15y9d00.jpg
6KB, 200x291px
>>59101596
>>
File: 1437745241424.jpg (28KB, 264x360px) Image search: [Google]
1437745241424.jpg
28KB, 264x360px
>When people complain about no longer being able to do bible searches and you look but it's just bibles.org being down
Unreliable APIs are somewhat annoying.
>>
>>59101560
a/2+b/2+(a%2||b%2)
>>
>>59101635
You fucked up again. avg(1,0) should not be 0.
>>
>>59101608
Oh, that's neat.

Usually I have to pay for something like that.
>>
bump
>>>https://github.com/Microsoft/MIEngine
how do I use this mess?
>>
>>59101680
Why not? Averaging up rarely ever makes sense for integer coordinate systems or binary searches or just about anything that would actually average. But if you want to average up, just replace a & b with (a ^ b).
>>
>int average(int, int)
wrong
>>
>>59101718
er |
>>
>>59101736
>rational average(int, int)
correct
>>
>>59101569
>>59101596
>>59101639
>Injecting "Telemetry" and your error reporting GUID into the assembly
>Reindexing intellisense database
>Verifying windows 10 license
>Reindexing intellisense database
>Checking your prism profile for federal offenses
>Reindexing intellisense database
>error intellisense.temp is corrupt or invalid
>Reindexing intellisense database
>Checking for pdb files
>Checking existance of win32 linker
>Reindexing intellisense database
>Found x64 linker but wont use
>Reindexing intellisense database

In that order usually
>>
File: C averaging two integers.png (36KB, 684x982px) Image search: [Google]
C averaging two integers.png
36KB, 684x982px
>>59101803
>>
>>59101462
C toddlers in /g/ cannot even write a proper hello world program.

Prove me wrong
>>
I need some help figuring out how to program something in C++. I need to write a program that displays all the numbers from 0 - 200 (six per line) that are divisible by 4 or 9, but not both. This is honestly a bit beyond what I know at this point, but I have a simple loop set up as a counter-
int main()
{
for (double counter = 0; counter <= 200; counter++) // loop counting up from 0 to 200
{

}
}

// function that takes the current counter and divides it by 4 & 9
int check(int x)
{
int result = 0;

return result;
}

I'm not really sure where to go from here. I definitely don't know how to get it to check if it's divisible by 4 or 9. This is a question from my friend's college programming class textbook, he needs to do it in Java but it interested me enough to ask here, as I'd like to learn how it would be accomplished in C++ as I'm still not very good with loops and functions. The function part at the bottom was my best guess at how this would be done. Thanks in advance.
>>
File: programming socks.png (338KB, 1140x813px) Image search: [Google]
programming socks.png
338KB, 1140x813px
What's the best color for Haskell?
>>
>>59101877

#include <stdio.h>

int main() {
puts("Hello, World!\n");
return EXIT_SUCCESS;
}
>>
>>59101969
>puts
>"\n"
Nicely done
>>
>>59101987
fugg
>>
>>59101586
i die a little inside every time. my problem with this shit isn't even really that there are people in the industry that can't solve such a simple problem. i understand that a lot of people self-educate and specialize. it's that there are people that, after failing an interview over such a problem, respond not with humility and a motivation to better themselves, but rather by writing a whiny blog post about how interview questions are a problem with the industry, adamant that the inability to solve such a simple problem couldn't possibly indicate any lack of overall capability on their part and that they're legitimately no worse off in being unable to solve it, ultimately learning absolutely fucking nothing
>>
>>59101923
return x*((!!(x%4))^(!!(x%9)));
>>
>>59101969
LMAO

>this is the kind of C toddlers that infest /g/
>>
>>59101923
You have two tasks:
- Determine if a number is divisible by 4 xor 9
- Print such numbers, 6 per line.

Make a function for each of the above tasks. Here's some example pseudocode:

Function 1:
isDivisible(number):
if (!(n%4) || !(n%9)) && n%36 :
return true
return false


Now you just need to loop through 0 to 200 and print the values out 6 per line.
>>
>>59102017
>if (condition ) return true else return false

Good job Pajeet, you hit your LOC quota this month
>>
Why is it that when I make a thing and it works and I take a step back and I don't understand what my thing does any more and how it even manages to work
>>
File: IMG_4362.jpg (54KB, 500x225px) Image search: [Google]
IMG_4362.jpg
54KB, 500x225px
>>59101969
>--------{
>}
>>
>>59101923
#include <iostream>

bool check(int x) {
return !(x % 4) ^ !(x % 9);
}

int main() {
for (int counter = 0; counter <= 200; counter++) {
if (check(counter))
std::cout << counter << std::endl;
}

return 0;
}
>>
>>59101977
Alright. Would you mind explaining the code you posted to me like I'm an idiot? I'd like to understand everything you posted better for myself. For example, I don't know what printf does as I've never used it before.
>>
>>59101870
average of two integers done in a real language:
format PE console
entry start

include 'win32a.inc'

section '.code' code executable
start:
sub esp,4 ;int a
mov dword[esp],5 ;a = 5
mov [b],esp ;b = &a

lea eax,[a]
mov eax,a

mov edx,2
mov ecx,8
call average

push eax
push outMsg
call [printf]
add esp,08h
ret

average:
push ebp
mov ebp,esp

mov [esp-04h],ecx
mov [esp-08h],edx

fild dword[esp-04h]
fild dword[esp-08h]
faddp

mov dword[esp-04h],2
fild dword[esp-04h]
fdivp
fist dword[esp-04h]

mov eax,[esp-04h]

mov esp,ebp
pop ebp
ret

section '.rdata' data readable
outMsg db '%d', 0

section '.data' data readable writeable
i dd ?
a dd ?
b dd ?

section '.idata' data readable import
library msvcrt, 'msvcrt.dll'

import msvcrt, printf, 'printf'
>>
>>59102060
>Windows
At least you used the superior syntax
>>
>>59102060
>msvcrt
hmmm really made me think
>>
>>59102049
Test if x is divisible through y:
!(x % y)

is equivalent to
x % y == 0

x % y gives you the remainder of the division. If x is divisible by y, the remainder is 0.

The ^ operator means "exclusive or", EITHER a or b.
>>
>>59101969
>>59101877
Holy kek I've seen it all now
>>
>>59101969
>>59102012
>>59102085
samefag
>>
void main(string[] args)
{
import std.stdio : writeln;
"Hello World!".writeln();
}
>>
>>59101924
>>
>>59102060
sheeeeesh
    mov dx, ax
or dx, bx
and dx, 1
shr ax, 1
shr bx, 1
add ax, bx
add ax, dx

or
    clc
rcr ax, 1
pushf
clc
rcr bx, 1
lahf
or [sp], ax
popf
adc ax, 0
add ax, bx
>>
>>59102082
>>59102017
Thank you both.
>>
>>59102111
haha no, feel free to share your oh-so called properC program because apparently /g/entoomen can't make bugs.
I even made this easy for you: write a proper hello world program
>>
>>59101288
Why the fuck is Stream a separate struct?
Why does the interface have no methods?
Why is Messages publicly mutable?
Why not just have a function that returns a properly typed channel?

So much wrong with this.
>>
>>59102037
it's better to go one step at a time when explaining to beginners
>>
>>59102117
patrician
>>
>>59102150
#include <stdio.h>
int main (void)
{
printf("%s", "abstraction is for CIA niggers");
}
>>
>>59102038
No comments.
>>
>>59102184
HAHAHAHAHAHA

>These are the C toddlers of /g/
>>
>>59102184
Not only that's not proper but also it's fucking flawed
>>
File: damn.png (67KB, 1039x627px) Image search: [Google]
damn.png
67KB, 1039x627px
Fuck.
Haven't really struggled on project euler til now. My head just won't spit out any good solution. Does BFS work on this one? Damn, I don't want to jewgle the solution
>>
>>59102234
Not him, but how so?

Is it bad practice to declare character arrays in static RO memory?
>>
>rust fags making retarded claim
>post his shitty C code to support his claim
>samefags again claiming /g/ can't into C
When will mozilla run out of money for shills?
>>
>>59102216
>>59102234
oh, I'm sorry, ahem,
public class Toilet
{
public static void main(String[]args)
{
Poo.Init();
}
}
>>
>>59102260
>int return
>no return statement
>>
>>59102264
Let's see your proper C hello world, toddler
>>
>>59102279
return 0 is assumed you stupid fucking nigger.
>>
>>59102279
>returning anything from fucking main
wew lad look at this nigger cattle
>>
>>59102252
if i'm reading this right, it looks like you can use dynamic programming to solve it in roughly O(n^2) time

Make a data structure that will store two "values" for each element in the pyramid. Then, calculate the maximum two "intermediate" paths ending at any given number, and store those intermediate values for the number.

Basically brute force, but keeping track of your results so you solve it in polynomial time instead of exponential time.
>>
>>59102299
Not him but this is THE proper Hello World in C

#include <stdio.h>

main()
{
printf("hello, world\n");
}
>>
>>59102252
Never had any dynamic programming, eh? Things are going to get far too complex to brute force very quickly on project Euler, then.

Well you a pretty big hint in the right direction for this one since similar principals (but far more complicated) are coming: Each node has a sub-tree and if you have already computed what the maximum length of that sub-tree is, then you'll never have to calculate it again. If you store what the maximum length from a given node is into a 2-dimensional array, the problem stops being O(2^n) and starts being O(n^2).
>>
File: 502-34.jpg (17KB, 480x360px) Image search: [Google]
502-34.jpg
17KB, 480x360px
>>59102306
So why the fuck did your "proper" code had int return type again
>>
File: IMG_4718.jpg (59KB, 600x400px) Image search: [Google]
IMG_4718.jpg
59KB, 600x400px
Can we ban everything except x86 assembly
>>
I like webdev and web programming over hardcore programming because it hurts my head and gives me a headache
>>
>>59102326
Sweet jesus, that's NOWHERE near proper.

Starting to think how come this board attracted so many teens
>>
>>59102342
Hi, reddit.
>>
>>59102342
define ``hardcore programming''
>>
>>59102326
>single-argument printf
POO
>>
>>59102322
>>59102329
Thanks for the hints!
Never had dynamic programming though. Will read on it. Either I have forgotten it or my algorithms I course haven't had a solution for this - maybe it comes some time later.
>>
>>59102369
I don't know you guys always talk about advanced or obscure topics
>>
File: nofap.png (56KB, 962x576px) Image search: [Google]
nofap.png
56KB, 962x576px
>>59102378
>>59102351
Wrong
>>
>>59101525

That webm, what is?
>>
#include <stdio.h>

static char *str = "Hello World!";

int main(void)
{
for(int i = 0; str[i]; ++i)
{
putc(str[i], stdout);
}
putc('\n', stdout);
}


1000 hours in emacs and gcc
>>
>>59102409
It's not always taught if you don't have a class that's on Analyzing Algorithm complexity (which every CS major should have, but isn't always included).

The principals of dynamic programming aren't too complicated; it's really just as simple as "using RAM to memorizing sub-solutions to the problem so that you don't have to re-calculate them" but just as in real mathematical Analysis knowing what you have to do and knowing how you can do it are two completely different things that can't be broken down to a formula.
>>
>>59102417
>source: Tony Gaddis
>>
>>59102417
>>59102300

What happens when your actual printf() fails?
If you want to redirect your hello world to a stale socket? Or an sshfs mounted drive that's not currently mounted?

What's going to return? 13? okay
What's going to return when it fails? It's 127.

Because it returns whatever register the machine is for the return value. -1 is going to be truncated.

I don't even use C but I definately know how to write proper hello world unlike you
>>
>>59102475
source: The C Programming Language, 2nd Edition
>>
>>59102082
Original idiot here- does problem-solving like this using C++ get easier over time? I've been self-teaching myself the language by just working through a book in my spare time for several months now and questions like this just really throw me through a loop. Do you (or anyone else for that matter) have some practice tips? The book I'm working through (Programming Principles & Practices Using C++) is beginning to feel like the author assumes I have a teacher that can further explain things when I have questions (which I don't blame him for, I mean it's a fucking textbook). I don't expect to be a master over this stuff, or even close to being good at programming, /g/ has been super helpful so far with answering my questions, so I'm hoping you could point me to some resources to help me with these concepts, as in like, sites/books with lots of practice problems/programs that help teach core concepts.
>>
>>59102452
hahaha
>>
>>59102453
I am doing CE, but not even in americuck-land. In germany mustardrace land
>>
>>59102510
Engineering is hard too much math and physics
>>
>>59102417
That's not a proper C program. It's dumbed down for beginners' like you and newfag idiots spew nonsense memes like "hurr durr C is simple" at seeing that

C is a mistake
>>
>>59102534
The computer was a mistake
>>
>>59102534
>>59102584
releasing computers to the public was a mistake
>>
>>59102584
The cum in you're mums pussy was a mistake xD
>>
>>59102432
Neon genesis impacts. it's a short movie.

https://youtu.be/Iv5qc0RpBk0?t=2m33s
>>
>>59102607
xDDDDDDDDDD uR a misTake 2 XDDD
>>
when you parse a .torrent file in bittorrent, how do you know which pieces belong to which files?
>>
File: IMG_5598.png (373KB, 508x700px) Image search: [Google]
IMG_5598.png
373KB, 508x700px
>>59102607
you've benis was a mistake :--_DDD
>>
>>59102252
Could you not use dijkstra for this, It'll take some time to setup the graph (each node has a directional arc to the two beneath it, where the weight of the arc is the size of the number it connects to) and then have a final node that has edges to all the numbers on the base. Ofc you would change it so that you look for larger distances rather than smaller.
>>
What's a good IDE for C++ for Linux, specifically Debian or Ubuntu?
>>
>>59102758
emacs
>>
File: hi-glock.jpg (38KB, 449x497px) Image search: [Google]
hi-glock.jpg
38KB, 449x497px
>>59102758
If I say Netbeans, what happens?
>>
>>59102659
i'm pretty sure pieces can contain data from multiple files. like the end of one file and the beginning of another
>>
>>59102783
I'd thank you for replying to my comment in a useful and concise manner, and I'd proceed to consider NetBeans

Everyone else is a shitter
>>
Quick /dpt/, what's the best sorting algorithm?
>>
>>59102758
visual studio code is surprisingly good
>>
>>59102758
qt creator
>>
>>59100893
Is that atom?
>>
>>59102808
The best sorting algorithm is not to sort
>>
File: 1483928241275.png (243KB, 690x709px) Image search: [Google]
1483928241275.png
243KB, 690x709px
>>59100893
>[]byte
>>
>>59102808
depends on the state of the thing you're trying to sort
>>
>>59102810
That's just an editor - it doesn't have a compiler.
I want something that will compile my program. Otherwise, I'd go for Atom.

>>59102808
QuickSort
>>
>>59102851
there are plugins for that
but yeah i get what you mean, maybe try Code::Blocks?
>>
>>59102851
>O(n^2)

>>59102808
Heapsort
>>
Okay, so I know declaring a function static in C means it's not visible outside the current translation unit.

But can you make a static function accessible from multiple translation units (but not the whole project) by including a header file containing its declaration in multiple places?

So suppose my project consists of main.c and two modules (header and implementation file pairs).

If I declare a
static int foo(int n);
in B.h, and define it in B.c, obviously I can call it from other functions in B.c.

Now, if I add an
#include "B.h"
directive in A.c, can functions defined in A.c call foo()?
>>
>>59102758
text editor or fuck off mate
>>
>>59102888
>But can you make a static function accessible from multiple translation units (but not the whole project) by including a header file containing its declaration in multiple places?
No.
>can functions defined in A.c call foo()?
No.
>>
>>59102851
i really recommend qt creator. it has excellent integrated cmake support and will detect and use gcc/gdb out of the box
>>
>>59102808
bogosort
>>
>>59102808
Sleep Sort
>>
>>59099067
>in R
Use a real programming language.
>>
I'm making a a programming language.
Does
int32 test;
//test equals 0

make sense?
>>
>>59103162
No.

test = 0 : int32; -- : int32 is optional
>>
>>59103171
the language has static typing.
type inference is specified using the keyword 'implicit'
>>
>>59103162
Giving types an initial value is something any modern language should do
>>
>>59103184
An explicit keyword for something implicit?

Why would anyone type "implicit" over "int32"?
>>
File: anime urine dispenser2.jpg (311KB, 1067x1600px) Image search: [Google]
anime urine dispenser2.jpg
311KB, 1067x1600px
Is it more computationally expensive to calculate the reverse of an integer using arithmetic than with a simple string reversal?
eg.

12345 => 54321
7000 => 7
>>
>>59103162
let test = int32;
Makes the best sense. I wish there was a language already that does this. Oh wait
>>
>>59103208
this is useful when using structs or other types with longer names.
IE:
instead of 'thisIsATestType var = function();'
you get 'implicit var = function();'
>>
>>59103233
meant let test = 0
>>
>>59103208
You're explicitly saying the type should be found implicitly. That's a good thing for statically typed langauges.
>>
>>59103240
personally, i just like the c style of (type) (name) better
>>
>>59103259
No, the type should be deduced unless specified otherwise. As I suggested here >>59103171

test = 0

-- 0 has polymorphic type
(0 : int32)
-- the type is restricted to i nt32
>>
>>59100731
a simple for loop?

unsigned long long sum;
for (k=n1, k <= n2, 4n){
sum += n;
}

printf("%llu", sum);
>>
>>59103286
Now it's highly unclear out of the full context of the scope whether or not test is already initialized and you are setting it to zero or test is being initialized now.
>>
>>59103345
>test = 0
>unclear
>>
>>59103363
What? Use words, man.
>>
>>59103369
test = 0

test has the value 0 (and hence the type of it)
the type of test is unclear from this statement alone and may be further refined later

(0 : int32)
0, monomorphized to int32
>>
>>59103382
Yes, but I still don't know whether or not a new variable is being initialized and the storage allocated in memory, or if test is already defined and you are now setting it to zero from some other value. Unless we're talking about a functional language here.
>>
>>59099309
>>59099320
Well, yes, what you have there is a linked list, but you are doing it in reverse. Singly Linked lists usually have nodes that point to the next item in the list, not the previous. There are also doubly linked lists that point forward and backwards in the list.
>>
>>59100731
The only hard part of this is parsing the function.
Getting the terms and the sum, and looping the function is easy. It's parsing out the function from the user that is going to be annoying.
Simple monomial functions like in your pic would be easy, but anything more complicated would require a pretty complex parser.
>>
>>59102082
Me again. So I have this so far-
bool check(int x);

int main() {
int six_per_line = 0; // line counter
for (int counter = 0; counter <= 200; counter++) { // counter loop
if ((check(counter) && six_per_line < 6)) { // if the line has < 6, keep printing on that line & check
cout << counter << ' ';
six_per_line++; // add 1 to line count
}
else if (check(counter) && six_per_line == 6) { // print 6 items on line then start a new line
cout << counter << '\n';
six_per_line = 0;
}
else {
}
}
return 0;
}

bool check(int x) // I still don't understand bool very well but this works
{
return !(x % 4) ^ !(x % 9) && (x % 36); // check if the current iteration of counter is divisible by 9 or 4, then check both
}

So your original answer worked, however it didn't yet have the ability to only print 6 per line. I clearly fucked something up here, because now it's ONLY printing things that are divisible by 4 or 9. I'm not seeing what I fucked up here. Any advice?
>>
>>59103495
>So your original answer worked, however it didn't yet have the ability to only print 6 per line. I clearly fucked something up here, because now it's ONLY printing things that are divisible by 4 or 9. I'm not seeing what I fucked up here. Any advice?
I'm an idiot and didn't end muh code. This is what I meant to type at the end.
>>
>spend years evangelizing FP
>convinced myself the stupid endless debates (HURR U SHUD USE THE WORSE VERSION SO BEGINNERS CAN UNDERSTAND IT) will eventually be resolved correctly
>instead things just got worse

I don't want to do this any more. I'm tired. I want to spend time making things, not arguing with people who are butthurt about lenses or monad transformers.
>>
>>59103224
int reverse(int n){
int result = 0;

while(1){
int lDigit = n % 10;
n = (n - lDigit) / 10;
result += lDigit;

if(n == 0){
return result;
}
else{
result *= 10;
}
}
}


that has to be faster than managing strings
>>
File: sevssa.png (237KB, 527x355px) Image search: [Google]
sevssa.png
237KB, 527x355px
>>59098871

what would you chose guys ?

i'm thinking about developping iphone and iOS apps for a living.
it's fucking impossible to be a sysadmin without 3 years of free internship sucking off the senior's balls everyday.
>>
>>59103541
I wanna sit at my desk and watch anime while pretending to work.
>>
>>59103541
It depends what your end game is. When you're 40 you want to be making as much cash as possible at the top of your field, right? So starting as a sysadmin you'd be looking at ending up with experience counting towards netsec (consulting, network security leadership). As a dev you could drop closer to engineering and make big bucks doing embedded stuff or you could be working at some stupidly popular webapp company making big bucks doing very little.
>>
>>59103579
the problem is entry-level job, there is a huge demand for developpment not sysadmins
>>
>>59103208
Sounds like they mean "implicit" would be kind of like the C++ "auto" keyword. Kind of like how Fortran uses things like "IMPLICIT DOUBLE PRECISION" to specify the type of undeclared variables (though obviously that isn't the same as true compile-time type inference.

>>59103233
That makes no sense, since the equal operator is used for assignment, not typing of declarations. Something like let test : int32 = 5 might make sense, though I still find that awkward to read. I consider all of the following more readable
int32 test = 5;
let test(int32) = 5;
let test = (int32) 5;
let test = 5; //automatic type inference
let test = new int32(5);
DIM TEST AS INT32:LET TEST = 5


>>59103286
I'd say using the C casting syntax should be used for that, it wouldn't need to create a whole new syntax for explicitly typed variable declarations. Something like

let x = (int32) 0;

that basically means: take the value 0, cast it to int32 type, and store it in x.
>>
has anyone ever filed a bug to the gcc bugtracker?
it's been like a year since I submitted one and it seems like nobody ever looked at it.
also I don't know how they expect users to select the right category if they don't know anything about the internals.
>>
x is a 32bit integer of value 0;
>>
>>59103596
Although that is true, I wouldn't worry too much about it. You can for sure find some niche work, or generic lower-end stuff to count as "experience" and fluff up your CV with it. You work at geeksquad for a year or whoever, helping old ladies setup their internet connection, you can say "Working experience in network setups and security ranging from home connections to small business". You'd probably need a few connections in order to get into it though, and/or look for an internship.

As a disclaimer though I am not employed in either field, I'm also looking for work and I was applying for sysadmin internships last year before deciding instead to focus on programming.
>>
>>59103637
unreadable
>>
Is MIPS easy?
>>
>>59103224
Should be about the same.

String method copies memory, arithmetic method uses division. I don't know which is quicker but it's so tiny it doesn't matter.
>>
>finally fell for the programming socks meme
>wear rainbow striped socks while practicing my Haskell
>father walks into my room
Never have I seen him so depressed.
Thanks, /g/.
>>
>>59103699
It was probably more the dragon dildo than the socks, anon.
>>
>>59103699
At some point I gotta wonder which of these posts are actually serious and someone out there is actually doing this
>>
>>59102040
>quote is attributes to Bill Gates
>picture is actually of Bill Gates
You had one job.
>>
File: ballmer peak.png (21KB, 400x215px) Image search: [Google]
ballmer peak.png
21KB, 400x215px
>>59103699
Get shitfaced and you'll stop caring. I almost never wear mine but after a few drinks at 2am while my mom was fast asleep I always end up putting them on and I feel a million times more productive.
>>
>>59101877
int main()
{
cout << "hello world\n";
}


What is so special about printing to console? Is there a guide on why you shouldn't use certain things to print to console when they all achieve the same result?
>>
File: this kills the man.png (105KB, 283x302px) Image search: [Google]
this kills the man.png
105KB, 283x302px
>>59103728
>my son locks himself in his room, gets drunk and wears a schoolgirl outfit he ordered online
>>
>>59103747
0/10
Your program is not portable.

Use
std::endl
instead of \n.
>>
>>59103495
self bump
>>
File: IMG_0881.jpg (21KB, 480x360px) Image search: [Google]
IMG_0881.jpg
21KB, 480x360px
Python fag here. I'm trying to read the contents of a .7z archive that I don't have enough space to fully extract.

>7-Zip can see the contents just fine
>libarchive won't import
>libarchive-c says my file has bad headers
wat do?
>>
>>59103708
There have been plenty of real-life examples in /dpt/ but mods usually delete the images.
>>
>>59103761
does the exact same thing on any system, should read up on std::cout.sync_with_stdio(false)
>>
>>59103807
std::endl produces \r\n on Windows
>>
File: 1472749377404.png (15KB, 816x389px) Image search: [Google]
1472749377404.png
15KB, 816x389px
>>59103823
This does what with windows when the topic is a hello world program?
>>
>>59103760
My mother is a liberal lesbo that wears black shirts on thursday to end rape culture, so Im not sure she'd actually give a shit.
>>
>>59100893
I wrote something for that a year or so ago.
Wanted to grab it off github but it's down.

It's under github.com/soreil/imager I think.

I did mp3/ogg/opus and mp4/webm I think. Using FFMPEG. Some stuff was broken sorta and somebody else finished it in a fork I think.
>>
redpill me on rust
>>
wtf are 'futures'?
>>
>>59103728
You need to fix your life, Anon.
>>
>>59103924
It's a great language to weed out incompetent programmers.
If you're going to start a company, make Rust mandatory.

Also Rust is finally a safe language that's not inherently slower than C.
>>
>>59103708
Plenty of people actually wear them. You'll see pictures posted occasionally.
>>
>>59103962
Oh it's not that bad, Im going to uni soon because I dropped out of hs years ago, and now only 2 years behind everyone else !!
>>
>>59103996
That'll help. Try not to live at home too late; I'm currently extracting my cousin from his mother's house aged 24.
>>
>>59103978
the pictures are all of the same two or three gay spergs
>>
>>59104022
Ruby wears them, too.
>>
>>59104022
Programming socks have nothing to do with homosexuality. In fact they're more effective for heterosexual people.
>>
>>59104008
My cousin is nearing 30 and still lives with his mother, hilariously. My plan is to get a job and a place towards the end of uni, housing market is collapsed and I want to save money.

>>59104022
Never posted any pictures, but I do.
>>
>>59104044
sounds like they're effective for people in denial
>>
>>59104085
Don't knock it before you try it.
I guarantee, you will write better software.
>>
>>59104065
investing in your education is always a wise decision
>>
Post was deleted, I have those exact socks though. Would recommend, b& anon.
>>
>>59104093
i write software fine enough without autistic nootropic legwear thanks
>>
>>59104116
I don't see why they delete sock photos but not anime photos. They're equally off-topic, but equally harmless.
>>
the more I program the more autistic I feel is this normal?

Does programming cause autism?
>>
>>59104138
Are you the best programmer in the world?
If not, there's always room for improvement.
>>
>>59104147
autism causes programming
>>
>>59104142
It's actually one mod. He wil ban /bst/ users for simply posting a desk with socks somewhere visible in the photo, even just lying on your desk somewhere. Not that it's a bad thing to be banned for posting in /bst/ in the first place desu.
>>
>>59104158
The mod is deep inside a closet then.
>>
>>59104153
i'd love to see a study on this effect but i'm pretty sure the only correlation to come out of it would be one with increased likelihood of dragon dildo purchases
>>
>>59104206
http://www.strawpoll.me/12411301
>>
>>59104230
that's cute but if ever i expected to find the placebo effect in full force it would be right here
>>
>>59104268
I think what you're seeing is actually the 'dynamic IP' effect.
>>
File: 1486675676638.jpg (112KB, 719x859px) Image search: [Google]
1486675676638.jpg
112KB, 719x859px
Hi friends,

I'm learning Ruby and have a question about how it works efficiently

a.select { |x| x.length == a.max_by(&:length).length}


Will it evaluate
a.max_by(&:length).length
every single comparison select does?
>>
>>59104364
benchmark it and find out?
>>
>>59102492
>returns whatever register
no, it's always 0
>I don't even use C
we can tell
>>
>>59104364
>I'm learning Ruby and have a question about how it works efficiently
It doesn't work efficiently. You're welcome.
>>
>>59104373
I'm just asking for advice about how to program Ruby without being retarded
>>
In my language, should I allow retarded shit like
const const const const const const unsigned const long i = 0;

or not?
>>
I fucked the Indian QA girl on my team
>>
>>59104393
Generally you should allow whatever the programmer wants to do.

Unless it is the case that what xe wants to do is objectively pointless and retarded, as in this example.
>>
>>59103823
just like \n
>>
File: 1479699297461.png (154KB, 505x479px) Image search: [Google]
1479699297461.png
154KB, 505x479px
>>59104393
an unsigned const?
>>
>>59104411
This is an allowed variable definition in C AFAIK.
>>
File: tumblr_ns6xweZFP21r30szpo5_1280.png (311KB, 1116x702px) Image search: [Google]
tumblr_ns6xweZFP21r30szpo5_1280.png
311KB, 1116x702px
I'm trying to figure out a decent interface for my Emacs diceware passphrase generator extension. I've taken inspiration from calc-mode especially but I am just not sure what the "intuitive" thing to do is in some of the trickier cases.

What I do is initially take dicerolls written in the current buffer as input, generate the passphrase based on a wordlist file and let the user do various things with it (add words, insert random characters, change the word separator etc) and then return the output passphrase. There is also the option to load a different wordlist file atm (for example, if you want to make a Spanish passphrase or use the EFF's wordlist this time).

The things is, since different wordlists require a different number of dice (usually 5, but I know of one needing 4, and who knows if there isn't one with 6 somewhere) and hence I can't ensure that the initial input is enough to generate a passphrase evenly. Hence, the question is how do I "consume" the entropy provided in the most intuitive way? Generate the maximum amount of words and then let the user roll more dice when they want a longer passphrase?

Is anyone even interested in such an extension?
>>
>>59104430
const means it wont change, unsigned means it can go negative, like yeah - it evaluates at the end to an unsigned long never operated on, but readability is terrible I wouldn't allow that
>>
>>59103699
>taking this shit seriously in the first place
how stupid are you?
>>
>>59104405
I disagree. Not every lang should be Perltran77
>>
>>59104393
yes because macros
>>
>>59104500
how does that have anything to do with macros?
>>
welp, looks like it's back to this shithole again
>>
C:
#include <stdlib.h> 
#include <stdio.h>

typedef struct Point Point;

struct Point {
int x;
int y;
};

Point* new_point(int x, int y) {
Point* p = malloc(sizeof *p);
if (p != NULL) {
p->x = x;
p->y = y;
}
return p;
}

int main(void) {
Point* p = new_point(1,2);
printf("%d\n", p->x);
printf("%d\n", p->y);
}

Java
import static java.lang.System.out;

public class Point {

int x;
int y;

Point(int x, int y) {
this.x = x;
this.y = y;
}

void main(String[] a) {
Point p = new Point(1,2);
out.println(p.x);
out.println(p.y);
}

}

OH MY GOD JAVA IS SO BLOATED OOP IS STUPID I CANT HANDLE THIS
>>
>>59104536
your null pointer check is redundant

If your OS has run out of virtual memory, it's an unrecoverable error and you might as well crash and burn, because the OS has already given up.
>>
>>59104517
#define FOO const
FOO int FOO foo;


not saying you should do it, but someone might do something like this. if your design philosophy is to give freedom to the programmer you should consider allowing it. it's not really a problem in C/C++ anyway because people generally don't write retarded type declarations on purpose
>>
>>59104526
Doggo!!
>>
>>59104551
>your null pointer check is redundant
false, please keep quiet if you don't know what the fuck you're talking about
>>
>>59104560
I want (((in)))
>>
>>59104566
Explain how you would recover from malloc returning a null pointer.
Are you gonna try again?
>>
>>59104566
The program crashes if p == NULL.
Why check for a NULL pointer and later dereference it unconditionally?
>>
>>59104571
Doggos can't talk or write
>>
>>59104393
>2017
>long
>not having arbitrary precision
>>
>>59104578
>not checking against 0 for conciseness
>>
>>59104595
you mean ((void *)0)
>>
>>59102492
>I don't even use C
Good, never use C because apparently you know nothing about it.
Since C99 when a return statement is missing 0 is returned from main.
>>
File: 1431827237929.jpg (395KB, 912x988px) Image search: [Google]
1431827237929.jpg
395KB, 912x988px
go fmt yourself
>>
>>59104600
No, anon. That is longer than NULL.
>>
>>59104536
>allocate p
>it's null
>return p
>derefence p
>segfault
lol, what's the point
>>
>>59102333
Because the standard says so.
>>
>>59104576
>>59104578
In software that needs to be reliable, trying to recover from a NULL pointer is something you might try to do.
You might just try again later, or something.

I agree that most software, the most reasonable option is to just crash/quit, but that's no excuse to put undefined behaviour into your program.
A smarter thing to do would be to create a simple wrapper over malloc (quite often called xalloc) which will do the check, and call abort/exit/whatever if NULL is returned.
>>
>>59104611
What if the only place enough memory is actually available is at address zero?
>>
should
const int32 test;

be a failure since it would always be zero?
>>
How the fuck is FizzBuzz even a challenge.

I literally wrote this shit in 30 seconds, the most difficult part being whether multiples of 3 print fizz or buzz.

for i=1,100,1 do
if i%3==0 and i%5==0 then
print("fizzBuzz")
elseif i%3==0 then
print("fizz")
elseif i%5==0 then
print("buzz")
else
print(i)
end
end
>>
>>59104611
main is just a test for new_point, which will be used by many programs. I dont want to allow segfaults in new_point, ever.
>>
8.2K        helloworld-c
8.9K helloworld-cpp
869K helloworld-d
1.5M helloworld-go
1.9M helloworld-rust
>>
File: birgbeer.png (15KB, 256x236px) Image search: [Google]
birgbeer.png
15KB, 256x236px
I have to do some programming for an ATMEGA328 (32k flash, 8bit CPU).
It seems these AVRs are all targeted with GCC but libstdc++ is missing. Does anyone know of a way to get full C++ on these small platforms?
>>
>>59104551
Stop being a retard please.
>>
New thread:

>>59098871
>>59098871
>>59098871
>>
NEW THREAD!

>>59104667
>>
>>59104665
good post
>>
>>59104632
what about it?
>>
>>59104632
Not in C
>>
>>59104649
Go and Rust are statically linked.
# gcc -static -o helloworld-c-static helloworld.c
792K helloworld-c-static
>>
>>59104644
what is the fucking point. you shouldn't malloc each point anyway, use a custom allocator.
>>
>>59104536
For those who are intrested:
$ stat --printf="%s\n" point.o
8520
$ stat --printf="%s\n" Point.class
499
>>
>>59104686
false
>>
Actual new thread: >>59104657

Well done anon for fucking up posting your own fucking thread
>>
>>59104701
true
>>
>>59104710
I know
>>
>>59104632
int x = 0;
x == (void *)0 /* this may or may not be true */
the actual address zero might be different than the null pointer
>>
>>59104688
thank you my man
>>
>>59104654
https://libavrstdcpp.codeplex.com/
>>
>>59104724
it never is tho
>>
>>59104766
false
>>
>>59104766
which is stupid since 0 is a perfectly valid address on any architecture.
>>
>>59104411
Probably useful for very high values.
>>
>>59104788
t. webshit
>>
>>59104828
Says the person who has not bothered to read the standard?
>>
File: Urushibara.Ruka.full.1292611.jpg (593KB, 1200x1600px) Image search: [Google]
Urushibara.Ruka.full.1292611.jpg
593KB, 1200x1600px
>>59104605
go mtf yourself
>>
>>59104844
>muh web standards
gtfo
>>
>>59104870
I am talking about the C standard you imbecile.
>>
>>59104892
>backpedaling
kys
>>
>>59104913
Where?
>>
>>59104758
Thank you very much
>>
>>59104441
unsigned means that it doesn't have sign (i.e it's positive and can only be positive)
>>
>>59099740
>fun
is the consolation prize of the apathetic nihilist, who doesn't have a true fight in him to leave a mark in this world.

So he has fun. He has fun, because that's his coping mechanism. When he isn't smart enough, he mocks the "nerds", when he isn't strong enough, he mocks the "bullies", all to mask the bile in his throat, the bitter resentment, when he realizes, he is just a loser.

Humour is the elvish dance of pointless ideas for the people, who are strong enough to live life sincerely and seriously.

When he will die childless or see his nation, family conquered, beaten to submission to serve their new masters, he would break if he couldn't lull himself with the last drops of nihilism that he couldn't succeeded, and in fact no one can; that EVERYTHING is pointless, it has to be, since whenever he tried he lost.

So he says,
>at least I had fun

Yeah, but no one gives a shit about your fun.
>>
>>59105535
dude stop reading my personality.
this is creeping me out here.
>>
>>59103779
>I'm trying to read the contents of a .7z archive that I don't have enough space to fully extract.
get a real computer
>>
>>59104043
Are you implying that she isn't a gay sperg?
>>
>>59105851
>she
Thread posts: 351
Thread images: 36


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