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

File: scratch.webm (41KB, 720x400px) Image search: [Google]
scratch.webm
41KB, 720x400px
prev: >>59561050

What are you working on, /g/?
>>
First for Idris
>>
>>59566658
that's a cat
>>
>>59566692
Very good observation.
>>
>>59566658
"The most powerful programming language is Lisp. If you don't know Lisp (or its variant, Scheme), you don't know what it means for a programming language to be powerful and elegant. Once you learn Lisp, you will see what is lacking in most other languages." -Richard Stallman
>>
>>59566692
Did you just assume xir's species, you shitlord?!
>>
File: falcon interview questions.png (196KB, 1282x1055px) Image search: [Google]
falcon interview questions.png
196KB, 1282x1055px
This is Falcon's stringent retard litmus test for his new hires for logical increments.

How would you fare if this was given to you in a technical interview?
>>
>>59566707
>Richard Stallman
Jeg sluttet å lese der.
>>
>>59566658
Learn Go
https://tour.golang.org
>>
>>59566712
>the only languages are C, C++, Java, and Python
Trash.
>>
>>59566712
How much does he pay? I could ace his test but a mod position doesn't pay the bills.
>>
why would anyone use sublime text when notepad++ exists?
>>
>>59566746
He describes his pay as "reasonable middle class malaysian salary"

He's only ever had 2 people pass his test and they both passed up his job offer because the salary was too low.
>>
>>59566750
My question is why anyone would use either when emacs or vim exists
>>
>>59566712
>How would you fare if this was given to you in a technical interview?
I'd fail.
>>
>>59566758
Then he should lower his requirements and/or increase the salary.

With questions like that I doubt he can program, to be honest.
>>
>>59566692
It's an anime cat, from normie anime. In my mind it pleased everybody.
>>
>>59566809
This isn't reddit.
>>
>>59566809
It's OK
>>
>>59566772
>With questions like that I doubt he can program, to be honest.

It certainly appears that way. He's asking for people to recall things like A* for an position that has nothing to do with programming.
>>
>>59566816
I actually didn't care and chose something at random, you don't have to be a dick about it though.
>>
>>59566816
You're right, this isn't reddit
>>
>>59566825
He strikes me as someone who has read a little about programming, but never done it himself.
>>
>>59566712

The coding questions don't seem too hard. The answers to the technical questions depend upon language and implementation (for instance, if we are programming in C on the Arduino, the answer to 4 is "they're the exact same thing"), but shouldn't be difficult to answer. The theory questions would make the interview interesting.
>>
>>59566856
he's literally copying those "daily programming challenge" threads verbatim
>>
>>59566712
> What is malloc
>>
Making a lisp with curly braces.
>>
>>59567016

Good idea.
>>
>>59567016
set-macro-character
>>
>>59567044
I use curly braces for literal strings. Literal strings that MUST be parsed at compile time.

Wrote some shit parser generator(def-yacc ...), and now have things like:

(infix { 2^10 + x * 20 })

Which my parser turns into the appropriate s-exp, although my "yacc" implementation is crap.

Seems like a good idea but need to abstract that shit out of the parser. With a proper parser abstraction including reader and macros I think I could do a lot straight from the language.

I'm trying to resolve the absolute basics I need in the implementation, and what I can do through compile time evaluation.
>>
>>59567138

I like it already.
>>
File: stare.jpg (12KB, 200x200px) Image search: [Google]
stare.jpg
12KB, 200x200px
Programming challenge.

You have 7 baskets which you want to arrange with fruit. There are 8 apples (A), 4 pears (P) and 6 oranges (O). Only one type of fruit can exist in a basket at any one time but each fruit can appear in multiple baskets. Make a program, given a random input state of baskets, print the swap required to get to an input final state?
Example
arrange([ 3A, 0, 2P, 4O, 5A, 2P, 2O ], [4A, 4A, 3O, 3O, 2P, 2P, 0])
# output
1A 4 --> 0
4A 4 --> 1
2P 2 --> 4
1O 3 --> 2
2O 6 --> 2
>>
How bytecode interpreter can be faster than regular language interpreter or JIT-compiler?
>>
>>59567187
>regular language interpreter
Do you mean directly interpreting the typed tree? Simply because there's too much overhead in fetching content on the heap (each node has to be recovered).
>JIT-compiler
Compiling functions has an overhead.
>>
>>59567184
>but each fruit can appear in multiple baskets.
So I can make 28 pears from 4?
>>
A quick question. In C++, will something like:
#define BUFFER_SIZE getnum()

or
#define BUFFER_SIZE_2 BUFFER_SIZE - 1

evaluate the statements at compiletime and use the resulting values directly, or is it inserting it literally, like a macro? Don't feel like making a test case and picking through the assembly. Though it's the only way to know for sure...
>>
>>59567415
A macro in cpp(not C++, the C PreProcessor) is a literal text substitution. Depends on your compiler how the resulting code is interpreted.
>>
>>59566731

should i learn go or rust? rust seems to have their shit more together
>>
>>59567478
I just want a constexpr to work like a macro. For locality.
>>
>>59567541
Can't your pretend it's the 80s and just undef it?
>>
>>59567488
Go
>>
>>59567184
im doing this right now.

if anyone else if whats ur strat
>>
>>59567723
>if anyone else if whats ur strat
What?
>>
Can stack-based machines be fast as register machines?
How slow is Forth compared to assembly language?
>>
>>59567739
sorry I'm retarded.

If anyone else is also doing this problem, what strategy are you using to solve it?
>>
>>59567788
Ignoring all the baskets that don't have any problems seems like the easy part.

I wondering if the remaining is like the bridge crossing problem.
>>
>>59567786
Assembly has nothing to do with it. In 32-bit x86 used to be all over the stack in calling conventions. When x64 came along they finally realized passing arguments on the stack what stupid when you had 10 registers doing fuck all. So now they're passed by register in the modern calling convention.

Fine, all but forth has a stack at the core of the language, forth can't benifit from this optimization.

That said, the calling convention of using registers should have applied way before x64.
>>
>>59567858
Like most of these kinds of problems, if the world "minimum" and "steps" appears, BFS is usually the way to go.
>>
>>59567936
Seems like the branching factor is too high for BFS. Im just making an algorithm that will get a valid solution, even if its shit.
>>
So I've finished Codeacademy's course on Javascript, and am just now making my way through Eloquent Javascript and I'm stuck on the very first exercise.

Can someone take a look at this and explain to me why it's not working?

https://jsfiddle.net/y0a8aku4/2/
>>
>>59568142
<=
>>
>>59567184
Got a solution sort of

A2 1 ---> 0
['3A', '0', '5A', '4O', '2P', '2P', '2O']
A5 2 ---> 0
['8A', '0', '0', '4O', '2P', '2P', '2O']
P2 5 ---> 4
['8A', '0', '0', '4O', '4P', '0', '2O']
O2 6 ---> 3
['8A', '0', '0', '6O', '4P', '0', '0']
A8 0 ---> 6
['0', '0', '0', '6O', '4P', '0', '8A']
A8 6 ---> 0
['8A', '0', '0', '6O', '4P', '0', '0']
O6 3 ---> 1
['8A', '6O', '0', '0', '4P', '0', '0']
P4 4 ---> 2
['8A', '6O', '4P', '0', '0', '0', '0']
O6 1 ---> 3
['8A', '0', '4P', '6O', '0', '0', '0']
P4 2 ---> 4
['8A', '0', '0', '6O', '4P', '0', '0']
A4 0 ---> 1
['4A', '4A', '0', '6O', '4P', '0', '0']
O3 3 ---> 2
['4A', '4A', '3O', '3O', '4P', '0', '0']
P2 4 ---> 5
['4A', '4A', '3O', '3O', '2P', '2P', '0']

Its not minimum path. It maps the input into an intermediate stage where solving it is easy to do.
>>
File: asdasd.png (45KB, 1060x334px) Image search: [Google]
asdasd.png
45KB, 1060x334px
>tfw to retarded to solve easy tasks
;_;
>>
>>59568322
>>59567184

woops used the wrong inputs on that run. These are the same as yours now.

A5 4 ---> 0
['8A', '0', '2P', '4O', '0', '2P', '2O']
P2 5 ---> 2
['8A', '0', '4P', '4O', '0', '0', '2O']
O2 6 ---> 3
['8A', '0', '4P', '6O', '0', '0', '0']
A8 0 ---> 6
['0', '0', '4P', '6O', '0', '0', '8A']
A8 6 ---> 0
['8A', '0', '4P', '6O', '0', '0', '0']
O6 3 ---> 1
['8A', '6O', '4P', '0', '0', '0', '0']
P4 2 ---> 6
['8A', '6O', '0', '0', '0', '0', '4P']
P4 6 ---> 2
['8A', '6O', '4P', '0', '0', '0', '0']
O6 1 ---> 3
['8A', '0', '4P', '6O', '0', '0', '0']
P4 2 ---> 4
['8A', '0', '0', '6O', '4P', '0', '0']
A4 0 ---> 1
['4A', '4A', '0', '6O', '4P', '0', '0']
O3 3 ---> 2
['4A', '4A', '3O', '3O', '4P', '0', '0']
P2 4 ---> 5
['4A', '4A', '3O', '3O', '2P', '2P', '0']
>>
File: 1486794673547.jpg (72KB, 448x604px) Image search: [Google]
1486794673547.jpg
72KB, 448x604px
>>59568327
gambatte!
>>
>>59568327
is this possible to O(1)?
>>
>>59568437
presumably
>>
File: 1487100411949.webm (330KB, 796x476px) Image search: [Google]
1487100411949.webm
330KB, 796x476px
>>59566658
>What are you working on, /g/?
A gayme with SFML
>>
>>59568327
>Thirty days has September..
India?
>>
>>59568437
I think so
>>
>>59568467
September does have 30 days
>>
>>59568586
but does 30 days also have september
>>
if mySelf.virginAfter30 != 0:
mySelf.destroy()
else:
mySelf.enjoy()
>>
>>59568650
men are fertile well into their fifties
>>
ever since I read about functional programming and 'pure' oop I am not sure how to write my applications anymore.
hold me /dpt/
>>
>>59568681
Forget about pointless things like purely functional and oop. All you need is imperative C.
>>
>>59568690
How's your FizzBuzz project coming along?
>>
>>59568690
But I like my applications readable and organized
>>
>>59568681
do it naturally and without a million years wasted on what kind of diagrams to draw or how this piece connects to that

it should flow intuitively
>>
Is it possible to learn programming alone and make money with it ?
>>
>>59568742
if you devote youself to it, probably.
>>
>>59568719
>>59568681
More like do it how it feels right at the time, 50 hours later figure out why it was bad to do it that way, spend 5 hours fixing it. And that's how you learn. Wikipedia articles aren't going to teach you how to predict future demands and how to comb concepts into effective, modular design, but trying and learning from your mistakes will.
>>
>>59568756
>50 hours later figure out why it was bad to do it that way, spend 5 hours fixing it
that's what happens when you overplan

protip: inheritance does not solve problems
>>
>>59568690
>imperative C
Be more specific than that. "Imperative" is the better term to use.
>>
>>59568756
>>59568719
>>59568756
>>59568719
thanks although I'm talking more about paradigms.
Refactoring from one to another is pretty much rewriting everything
>>
>>59568776
As if you've ever spent 50 hours on a single project in your life.
>>
>>59567786
Do you mean as a software virtual machine or actual hardware?
Implementing a stack based machine model in top if a hardware register machine is obviously gonna require more from your compiler to 'destruct' the stack and map/cache top N-items onto registers, but it's not too difficult, and should be able to achieve similar performance.

For a comparison between the actual hardware: Pros of stack machines is that they are way simpler, require a lot less power and can have extremely fast interrupt response times. Cons are that instruction parallelism is hard to achieve, but you can go the GreenArray route and make hundreds of mini-cores instead, but that puts more onus on the programmer to achieve higher throughput.
>>
File: dpt.jpg (164KB, 800x1000px) Image search: [Google]
dpt.jpg
164KB, 800x1000px
>>59566658
>>
>>59568883
/dpt/ is right again
>>
>>59566731
Sorry but I'm not a retard.
>>
>>59567699
..learn Rust
>>
File: updatrrr.png (116KB, 902x628px) Image search: [Google]
updatrrr.png
116KB, 902x628px
>>59566658
>what are you working on
Style manager and updater for StylRRR. Thanks God for Scene Builder.
>>
Some languages are too pure to handle GUI.
>>
>>59568964
Akarin is too pure to be used in such a dirty post
>>
File: jk.jpg (65KB, 820x820px) Image search: [Google]
jk.jpg
65KB, 820x820px
Can I be a game coder if I don't remember trigonometry stuff from school?
>>
>>59566712
>what's the difference between a string and a char[]
C tards absolutely BTFO
>>
>>59569019
Why would you want to be a "game coder"?
>>
>>59569019
>Doesn't even know high-school trigonometry, let alone things like linear algebra
>Posts frogs
>"""coder"""
No. Give up on your dreams.
>>
>>59569037
To make the new Minecraft and get $$$$$$$$$
>>
>>59568327
use strict;
use warnings;
use v5.10;

sub is_leap {
my $year = shift;
my $leap = 0;
if ($year % 4 == 0) { $leap = 1; };
if ($year % 100 == 0) { $leap = 0; };
if ($year % 400 == 0) { $leap = 1; };
return $leap;
}

my @days = (31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
my $count = 0;
my $sundays = 0;

for my $year (1900..2000) {
for my $month (0..11) {
$count += $days[$month];
$count++ if $month == 1 and is_leap($year);
# Mon = 0 .. Sun = 6 .. Sun 13 ... etc.
$sundays++ if $count%7==6 and $year > 1900;
}
}

say $sundays;
>>
>>59569082
>intelligent enough to read perl
>not intelligent enough to write perl
>>
>>59569080
Notch made billions and yet he's still lonely
>>
>>59569080
If you want to make some money, just work at McDonald's or some shit. I'm sure somebody as mentally deficient as you can at least handle that.
>>
>>59569092
Im poor and Im lonely.
Money wouldn't hurt desu
>>
File: 1487182103895.jpg (35KB, 990x556px) Image search: [Google]
1487182103895.jpg
35KB, 990x556px
>>59569138
>Money wouldn't hurt
wrong
>>
>>59566712
Wow fucking asshole. Some guy pretended to be employed there and he was unsure about those questions.

They're trivial overall but some of them are ambiguous.

2. Notably. Because you're not told the end condition. (500%13!=0)
Its such a trivial problem with a major Ambiguity. I wouldn't work for a person like that. It'd be spending time with an autist trying to explain to him why you're doing things the right way and why (yes, why) he's not getting it.
>>
File: whatthefuck.png (34KB, 1031x258px) Image search: [Google]
whatthefuck.png
34KB, 1031x258px
What the fuck. I dont even know where to start.
>>
>>59569438
presumably by writing a function to sum the factors of a number
>>
>>59569082
nice solution!
>>
>>59569438
Writing a function that finds the sum of a number's whole divisors would probably be a good place to start, anon.

Simple enough
>>
>>59569438
easy as fuck
let sum_divisors n =
let rec loop accu d =
if d = n then
accu
else
let accu =
if n mod d = 0 then
accu + d
else
accu in
let d = succ d in
loop accu d in
loop 0 1
;;

let sum_amicable_numbers limit =
let rec loop accu a =
if a = limit then
accu
else
let b = sum_divisors a in
let accu =
if a >= b then
accu
else
let sb = sum_divisors b in
if a = sb then
accu + a + b
else
accu in
let a = succ a in
loop accu a in
loop 0 1
;;

let main () =
try
let sum = sum_amicable_numbers 10_000 in
print_endline (string_of_int sum);
0
with
| x ->
prerr_endline (Printf.sprintf "# error: %s" (Printexc.to_string x));
1
;;

let () = exit (main ());;
>>
>>59569531
>let ... in
ewww
Enjoy your GIL camlshitter.
>>
>>59569550
>your GIL
My what?
>>
>>59569576
>My what?
Holy shit these "Functional programmer"'s will be the death to us all.
>>
>>59569024
>character array
>character array terminated with '\0'
>>
>>59569606
So... What is a GIL?
>>
>>59569621
No string are terminated by char 0. Char array are just array of char, and the 0 is not the end.

You're confusing string with char array.
The fact that C use char array to represent string, doesn't mean that strings are char arrays.
>>
>>59569631
>Strings are char arrays, but strings aren't char arrays
>>
Taking DSP classes and related stats classes and stuff. Currently doing digital filters, the Kalman filter is pretty cool.
>>
>>59569639
You're confusing the represented object and the implementation of the object.

int are encoded by sequence of bytes, but an int ain't a sequence of bytes.

If you understand that you'll understand something important for coding.
>>
>>59569622
It's an organ fish use to breathe underwater
>>
>>59566658
Working on a 4chan clone: 4kev.org
Send banners
>>
>>59569689
Is it opensource?
>>
>>59569076
>let alone things like linear algebra
to be fair the kind of basic applied linear algebra relevant to game development isn't really much harder than high school trigonometry
>>
How does /dpt/ feel about dual licensing? I am considering doing GPLv3 plus an option to get a commercial license.
>>
>>59569702
Maybe one day, when it's finished
>>
File: cuck.jpg (66KB, 1040x798px) Image search: [Google]
cuck.jpg
66KB, 1040x798px
>>59569715
>>
>>59569689
>Why Im still on this place
You a slav m8?
>>
>>59569082
>pretty much O(n) solution
>perl

why do people like perl? why do you hate function arguments being popped off the state like every other language? when have you ever written a function that could operate on an unknown size stack? how useful was that? i hate you
>>
>>59569531
>side effects
gross
>>
>>59569781
I print the solution idiot.
>>
>>59569689
IMPLEMENT WAKABAMARK MARKUP
>>
>>59569792
should return an IO Int
>>
>>59569820
It's OCaml, not Haskell. But I can simulate IO if you insist.
>>
>>59569715
is your project a tangible, standalone product or is it a tool for the purpose of aiding in the development of a tangible, standalone product? that's where i draw the line. to me, paid licensing seems much more justifiable in one of those scenarios than the other. classically, could you put it on a disc and sell copies of it by itself? does it incur ongoing costs for you, like a service the servers for which you have to maintain? if you answered no to those questions, perhaps the right thing to do is make it freely available in the interest of bettering your medium. i feel that software is theoretically best off in a world where everybody has the same development tooling available to them, and where people seek to create value in (and profit from) end products rather than middleware. conversely, economic gatekeeping of middleware only serves to stifle the medium
>>
>>59569751
>why do people like perl?
It's good to work with texts.

>i hate you
fuck you too
>>
>>59569840
It's tooling/libraries to do with video codecs, I don't really have a good reason to keep development going at the moment since it takes time develop.

It's also a tool which companies will not want to use as GPLv3 software most likely. So either I do it as BSD or I do it under a dual licensing scheme.
>>
Why is it that every fucking task I do is basically applying a very simple algorithm to some data structure, but the bulk of my fucking time spent programming is PARSING THE DATA INTO A STRUCTURE?
Is this the true problem with reality? Consider the fact that thinking about things is not that hard, but you have to have an entire section of your brain dedicated to vision before you can do any other cool shit with the information you get.

Fuck reality, and fuck programming, just because of that.
>>
>>59569820
module IO :
sig
type 'a t;;
val return : 'a -> 'a t;;
val bind : 'a t -> ('a -> 'b t) -> 'b t;;
val run_main : int t -> unit;;
val flush : unit t;;
val put_char : char -> unit t;;
val get_char : char t;;
end =
struct

type 'a t = unit -> 'a;;

let return x () = x;;

let bind x f () = f (x ()) ();;

let run_main main = exit (main ());;

let flush () = flush stdout;;

let put_char c () = print_char c;;

let get_char () = input_char stdin;;

end
;;

let sum_divisors n =
let rec loop accu d =
if d = n then
accu
else
let accu =
if n mod d = 0 then
accu + d
else
accu in
let d = succ d in
loop accu d in
loop 0 1
;;

let sum_amicable_numbers limit =
let rec loop accu a =
if a = limit then
accu
else
let b = sum_divisors a in
let accu =
if a >= b then
accu
else
let sb = sum_divisors b in
if a = sb then
accu + a + b
else
accu in
let a = succ a in
loop accu a in
loop 0 1
;;

let ( >>= ) = IO.bind;;

let ( >> ) x y = x >>= fun () -> y;;

let print_endline s =
let lim = String.length s in
let rec loop i =
if i = lim then
IO.put_char '\n' >> IO.flush
else
IO.put_char s.[i] >> loop (succ i) in
loop 0
;;

let main =
print_endline "Welcome to the IO Haskell monad evil clone!"
>>
let s = sum_amicable_numbers 10_000 in
let s = string_of_int s in
print_endline s
>> print_endline "Bye!"
>> IO.return 0
;;

let () = IO.run_main main;;


Happy?
>>
I don't understand binary file manipulation in Python 3
Gimme a guide for retards
>>
>>59569639\0
>Strings\0 are\0 char\0 arrays\0
t.\0 C\0 tard\0
>>
>>59569913
>but the bulk of my fucking time spent programming is PARSING THE DATA INTO A STRUCTURE
Maybe you write in C
>>
>>59569922
>let a = succ a in
xdddd
>>
>>59569913
Haskell
>>
>>59569954
Where is the problem?
>>
>>59569438
>I dont even know where to start.
Absolutely kill yourself idiot
>>
>>59569966
in the category of endofunctors
>>
>>59569966
Don't mind him, he's just too young to react calmly to seem-to-be-fun words.
>>
>>59569963
How would you, in Haskell, parse a text-based or image-based maze into a graph in order to solve the maze?
See what I mean? The fucking parsing is enormously more of a pain in the ass.
>>
>>59570000
let rec ocaml = ocaml;;
>>
>>59569992
Too early.
>>
>>59569963
This lgbt scripting language is far from production level computing.
>>
>>59570000
NOOOOOOOOOOOOOOOOOOOO
>>
>>59569991
normally using happy or parsec, but if it's stored in a regular fashion even that might be overkill
e.g.

xxx  xxx
xxo oxx
xox xxx

xox xxx
xxx xxx
xox xxx


use lines, chunk into 3s, use words, chunk that into 3s, check the relevant parts
>>
File: kek.png (802KB, 1365x653px) Image search: [Google]
kek.png
802KB, 1365x653px
Added an animation where HWNDU flag is removed:

https://kirkins.github.io/HWNDU-4CHAN/
>>
Is there some kind of commonly accepted list of hotkeys for changing camera positions?

I'm talking something like pressing up is adding to the camera's y coordinate. Are there commonly accepted keys for the other coordinates?
>>
>>59570086
PgUp/PgDn
>>
>>59570086
Lots of games do Q/E.
>>
>>59568964
too shit*
>>
>>59569882
>I don't really have a good reason to keep development going at the moment since it takes time develop
perhaps you shouldn't, then. are you developing these libraries because you plan to integrate them into an end product? if not, why develop them? perhaps consider instead developing a concrete end product, breaking out parts more generally relevant to other software into standalone libraries if such libraries are in demand as you develop it (which has the added benefit decoupling the design of your product), then sell your product and publicize the libraries, allowing you to profit while also bettering the medium. in this case you'll also never find yourself not having a reason to develop or maintain the libraries, because your end product uses them, and as such working on them is in your best interest economically
>>
>>59569019
>Frogposter
No. Never.
>>
>On a shell account without root access (can't install anything)
>I want remove all tabs and newlines from my HTML files *except* in code blocks, where they are needed.

Do you think something like this can be done in a sed oneliner or a general quick script? Or am I asking for a world of pain by even attempting?
>>
>>59570240
tabs are never needed in text files except for Makefile
>>
>>59566712
>Write an algorithm to play tic tac toe
Is this good enough https://github.com/asweigart/my_first_tic_tac_toe/blob/master/tictactoe.py ?
>>
>>59570240
js?
>>
File: .jpg (122KB, 500x488px) Image search: [Google]
.jpg
122KB, 500x488px
Scrapes paheal.net.
import requests, urllib
import lxml.html
from lxml.cssselect import CSSSelector
theurl = "http://rule34.paheal.net/post/list/noodle/"
image_list = []
def page(theurl):
req = requests.get(theurl)
if "No images were found to match the search criteria." in req.text:
return "END"
tree = lxml.html.fromstring(req.text)
sele = CSSSelector('div.shm-thumb a')
urls = sele(tree)
for derp in urls:
if derp.get('href') != '#' and '/post/view/' not in derp.get('href'):
print(derp.get('href'))
image_list.append(derp.get('href'))
page_number=1
page(theurl)
while 1:
___ = page(theurl+str(page_number))
if ___ == "END":
break
page_number+=1
print("Scraped {} pages.".format(page_number))
print("Downloading {} images.".format(len(image_list)))
for image in image_list:
with open(urllib.parse.unquote(image.split('/')[-1]),'wb') as xxx:
xxx.write(requests.get(image).content)
print("Downloads complete.")

Anything I could improve? I'll thread downloading later.
>>
>virtual spaces.
if your editor doesn't have it, it's shit.
discuss.
>>
Hi, im working on something like this in C:

Prototype:
void whatever(void);


case x:
{
whatever();
continue;
}


That whatever is like
void whatever(void)
{
printf("The Shit");
}


It's just like that. When the case happens, it enters an infinite loop, printing whatever it has to print. What do?
>>
What is the most cringey language?
>>
>>59570324
Personal Home Page
>>
>>59570290
>Anything I could improve?
Not write it in a shitlang.
>>
>>59570324
asm
>>
>>59570335
>>59570339
found the plebbitors.
>>
>>59570240
#!/usr/bin/perl

use v5.10;
use strict;

my $check;
$check = 0;
while (<>) {
if (/
/) {
$check = 1
}
if ($check == 0) {
s/\t*\n*//g
}
if ($check == 1) {
$check = 0 if (/[\/code]/)
}
}

hope that works
>>
>>59570337
Rude.
I've been too lazy to learn C. ;_;
>>
>>59570380
fuck
#!/usr/bin/perl

use v5.10;
use strict;

my $check;
$check = 0;
while (<>) {
if (/\[code\]/) {
$check = 1;
}
if ($check == 0) {
s/\t*\n*//g;
}
if ($check == 1) {
$check = 0 if (/[\/code]/);
}
}
>>
>>59570391
C is only slightly better.
>>
>>59570391
>C
>not shitlang
>>
>>59570322.
If you want one print per call, omit continue.
Fucking with switch case order is pretty bad practice though.
>>
File: 1468944052820.jpg (15KB, 192x154px) Image search: [Google]
1468944052820.jpg
15KB, 192x154px
>>59569992
>>59570000
>>
>>59570403
who wrote that?
>>
>>59570393
double fail
#!/usr/bin/perl

use v5.10;
use strict;

my $check;
$check = 0;
while (<>) {
if (/\[code\]/) {
$check = 1;
}
if ($check == 0) {
s/\t*\n*//g;
}
if ($check == 1) {
$check = 0 if (/\[\/code\]/);
}
}
>>
>>59570324
java
>>
File: 1478694347851.png (894KB, 1750x1750px) Image search: [Google]
1478694347851.png
894KB, 1750x1750px
>>59570427
Who do you think?
>>
>>59570442
see >>59570349
>>
>>59570445
Nobody.
>>
>>59570458
Should we respect Nobody?
>>
>>59570464
Tell me about Nobody.
>>
>>59570086
wasd, space for up, ctrl for down.
>>
ef cache_data(self):
metadatPtr = readScripts.readScriptMetadata()
for item in metadatPtr.items():
#create table for movies specifically
tuple1 = [item[0] + '_movie', item[0]+'_tv']
self.c.execute('CREATE TABLE IF NOT EXISTS %s (PRIMARY KEY id int, name text, poster text, imdb_link text, rating text, trailer_link text, comments text, genre text, link text)' % (tuple1[0]))
#create table for tv shows exclusively
self.c.execute('CREATE TABLE IF NOT EXISTS %s (PRIMARY KEY id int, name text, poster text, imdb_link text, rating text, trailer_link text, comments text, genre text, season int, episodes_base64json text)' % (tuple1[1]))
#create a table to keep track of times stopped at for urls, identified per account by username
self.c.execute('CREATE TABLE IF NOT EXISTS global (PRIMARY KEY id int, user text, link text, stopped_at time)')
#create table for user accounts
self.c.execute('CREATE TABLE IF NOT EXISTS users (PRIMARY KEY id int, username text, password text)')
#commit
self.c.commit()
#call cache data


this tells me theres error next to PRIMARY KEY , please help!
>>
>>59570240
I wrote this. What do you think tomodachis?

(define *open-tag* (string->list "<pre><code>"))
(define *close-tag* (string->list "</code></pre>"))

(define (open-search tag fi)
(if (null? tag)
(close-search *close-tag* fi)
(let ((c (read-char fi)))
(cond ((eof-object? c)
#t)
((char=? c (car tag))
(display c)
(open-search (cdr tag) fi))
((or (char=? c #\newline) (char=? c #\tab))
(open-search tag fi))
(else
(display c)
(open-search *open-tag* fi))))))

(define (close-search tag fi)
(if (null? tag)
(open-search *open-tag* fi)
(let ((c (read-char fi)))
(cond ((char=? c (car tag))
(display c)
(close-search (cdr tag) fi))
(else
(display c)
(close-search *close-tag* fi))))))

(let ((target-file (open-input-file (car (command-line-arguments)))))
(open-search *open-tag* target-file)
(close-input-port target-file))


And yes, it's always <pre><code> because that's what markdown generates.

>>59570380
I'll try this as well. Thanks.
>>
>>59570483
>>>/r/india
>>
>>59570488
>(((lisp)))
Instant trash.
>>
>>59570503
I was able to solve my problem though.
It compiles to C and can be placed within the pipeline of a larger script
>>
>>59570503
>>>/auschwitz/
>>
>tried racket macroexpander
>macros made of macros made of macros
>mfw
>>
>>59570618
write a C macro gen using racket macros.
>>
daily reminder that rust isn't used by anyone in real world, sorry u rusticks spent time falling on sjw dick
>>
>>59570672
Rust would be more successful if it had a community similar to D.
>>
>>59570672
Its gaining traction though.
t. dont even use rust
>>59570690
>tfw politics instantly get shutdown
I love D.
>>
File: rust-in-production.png (227KB, 848x4538px) Image search: [Google]
rust-in-production.png
227KB, 848x4538px
>>59570672
https://tech.okcupid.com/rust-and-rpc-okcupid-hackweek-2017/
>Rust is a joy to write. I've found that it feels faster to develop in compared to C++, with no negative trade offs. Building this was one the last hurdles to us using Rust in production.
Next time you try to get a gf you'll be using Rust code.
>>
>>59570723
A lot of those are literally whos.
youd be better off just leaving the big names.
>>
>>59570723
impl<'a, W: io::Write> ser::Serializer for &'a mut Serializer<W> {  

Yeah, much better than C++
>>
>>59570488
> I'll try this as well. Thanks.
use at least the latter version
>>
>>59570773
>I don't instantly understand language I don't know therefore it's bad
You see, the difference between you and the guys from OkCupid it that they have actually written some Rust.
>>
>>59570672
So it's used in the fake world?
>>
>>59566717
Hanrej
>>
File: dconf1488.jpg (137KB, 1920x1080px) Image search: [Google]
dconf1488.jpg
137KB, 1920x1080px
>>59570809
>implying I don't understand the language
Rust even fails in being a better C++. That's really impressive.
Now fuck off to your safe space.
>>
File: ein language.png (49KB, 600x400px) Image search: [Google]
ein language.png
49KB, 600x400px
>>59570877
not an argument
>>
>>59570290
Try to not using global variable in your function.
Having a variable named "___" is weird.
Also, returning "END" or nothing is not a good practice. You could use True/False, to tell if it's the end or not. Or you could return the list of image detected in the page, and None if there is none.
>>
>>59570877
Rust isnt really supposed to be a C++ successor though.
>>
>>59570877
Literally anything which isn't C++ is a better C++.
>>
>>59570897
>>59570917
>>59570920
Even though special snowflakes shit on C++, it widely used in the industry.
Rust is only used to reinvent the wheel (remacs, redox) and in hackatons.
>>
>>59570959
I see, I bet you believe in d*mocracy as well.
>>
File: .png (1MB, 1920x1080px) Image search: [Google]
.png
1MB, 1920x1080px
>>59570916
All sound advice. Thanks.
>>
>>59570920
>Id rather use Java than C++
>Id rather use C# than C++
"no"
>>59570959
Its niche I think are stability-centric things, basically just re-writing old C bases for maintainability.
>>
>>59570985
whom are you quoting?
>>
how do I compile this in C?
two files: main.c and foo.c
I can't change main.c
main.c includes foo.c, libraries, defines and variable used in foo.c
#include <math.h>
#include <stdio.h>
...
#define s 0
unsigned bar = 0
#include foo.c


foo.c has functions used in main.c
int x(){
bar= bar+something;
return b
}
...
int z(){}

when I try to compile with
gcc main.c foo.c -o asdf

I get "foo.c: incompatible implicit declaration of built-in function", warnings, thelibraries are not included in foo.c
if I include main.c in foo.c I enter a loop of "foo.c error: redefinition of"

when I try to use a guard in foo.c
#ifndef MAIN_C
#define MAIN_C
#include main.c
#endif

I get "foo.c error: redefinition of" bar and functions
>>
File: r5xloe0gsuw8ccdu0kaj.jpg (53KB, 800x600px) Image search: [Google]
r5xloe0gsuw8ccdu0kaj.jpg
53KB, 800x600px
>>59570977
I see, I bet you believe in communism as well.
>>59570985
Its (((niche))) are applications that require some degree of abstraction and still perform.
>>
>>59571016
anything means anything
>>
>>59571016
you
>>
>>59570857
in the world of imagination

>>59570723
>typical delusional rustick-toddler
i don't want a girlfriend son, there's no benefits at all. if i am down to fuck, i ll go outside and brute force every girl on the street until someone is willing. none of this has to do with code. keep dreaming in rust.

>so many friends of rust but so little jobs of rust
really makes you think, like someone is getting friendzoned
>>
>>59571049
am I located in the world of imagination right now?
>>
>>59571028
You made a c*mmunist """""""""""""""""""""""""""""""argument""""""""""""""""""""""""""""""" here, not me.
>>
>>59571102
You started with this shitty post >>59570977
>>>/tumblr/
>>
>>59571086
it is very likely, based on the evidence you provide
>>
>>59571114
Why Tumblr instead of Medium?
>>
>>59571114
You claimed that the equivalent of d*mocracy (literal retardation no worse than c*mmunism) is somehow valid. How does that not make you one of their kind?
>>
>>59571168
Why not?
>>59571178
So a Jew in Nazi Germany is a Nazi too, right?
>>
>>59570920
C++ is a programming language.
Rust is a fashion statement.
You are an inbred.
>>
>>59571201
What are you even on about?
If he makes some sort of argument only a Nazi would make he would definitely be considered at least a supporter. Which in case with d*mocracy would be enough to conclude that you are non-human.
>>
>>59571312
There is definitely a programming language named Rust. Why are you talking about something else which has the same name? Wouldn't "fashion statements" belong on /fa/ or something? Why is this relevant here?
>>
File: meme_lang.jpg (40KB, 310x207px) Image search: [Google]
meme_lang.jpg
40KB, 310x207px
Why is it called Rust in the first place. Rust is like metal shit
>>
File: zbefunge.png (9KB, 652x331px) Image search: [Google]
zbefunge.png
9KB, 652x331px
>>59571333
Rust is a programming language in the same way Befunge is a programming language. It's just as ugly and no more useful for doing real work.
>>
>>59571356
I think you mean "trash" there, not "meme". A programming language can't be a "meme" as you plebbitors like to think.
>>
>>59571370
I'm no plebbitor
>>
>>59571369
>Rust is a programming language
You claimed it wasn't a programming language. Which is just blatantly false.
Only a retard who thinks "usefulness" or "doing real (non-fake?) work" is a property of a language could contradict himself in such a small amount of time.
>>59571392
Your incorrect usage of the word "meme" suggests otherwise.
>>
File: leaf-rust-on-black-raspberry-2.jpg (110KB, 618x432px) Image search: [Google]
leaf-rust-on-black-raspberry-2.jpg
110KB, 618x432px
>>59571356
It's actually named after Rust fungi, not rust itself.
>>
>>59571370
This is obviously your first day outside rɵddıt but on this website we say things are overhyped trash by calling them memes.
>>
>>59571315
Why are you unable to properly write democracy and communism?
>>
>>59571397
Like it's any better
>>
>>59571397
>named after a disease
How appropriate. The only way they could have done better was naming it Aids.
>>
Hi guys, im learning C on college. Im currently using codeblocks, but it doesnt seems very comfy.

What is the prefered IDE of /g/?
What do you recommend me /g/uys?
>>
>>59571402
Only on boards which are literal subreddits. So I'm guessing you're from some shithole like /v/.
>>
>>59571425
Hardly. /v/ is a meme.
>>
>>59571408
Because those words feel dirty to say.
>>
>>59571421
>but it doesnt seems very comfy.
Why?
It has syntax highlighting that you can edit and auto/complete, what more de you need?

Most of /dpt/ probably use Vi/m / emacs / etc TE
>>
>>59571421
>What is the prefered IDE of /g/?
spacemacs
>What do you recommend me /g/uys?
Visual Studio 2017 Community Edition
>>
>>59571446
You are pathetic.
>>
>>59571456
You're so naive it's adorable.
>>
>>59571446
Do you say aloud everything you write?
>>
>>59571444
So it's straight up plebbit instead of a plebbit-influenced board. Things are a lot worse than I thought.
>>
>>59571421
>What is the prefered IDE of /g/?
visual studio
>What do you recommend me /g/uys?
visual studio
>>
>>59571476
Yes, usually. Not certain words though.
>>
>>59571494
>>59571453

For real or is just a meme?
>>
>>59571511
I'm serious at least. don't know about the other guy.
>>
>>59571511
totally serious
>>
>>59571511
It's the best C/C++ IDE for Windows, it's newfag-friendly and the community edition is free.
>>
>>59571168
medium is basically insta-trash tier, i don't read anything from there because it's invariably a self-centered SJW complaining about programming being hard or sexist or both

tumblr actually makes for a nice technical blog platform
>>
>>59566658
What is your favorite language, /dpt/?
>>
@59571511
>plebbit spacing
>""""meme""""
Fuck off, retard.
>>
>>59571534
>>59571529
>>59571518

Cool
>>
>>59571553
c++17
>>
>>59571553
Rocksolid C
>>
>>59571553
I don't have any favorites, but I'm liking (([Racket])).
>>
How that meme called, with badly drawn dude and shitty code?
>>
>>59571586
CS graduate
>>
>>59571553
ASM
>>
1) Some computations related to cracking quantum one time pad using GNU Octave.

2) Learning Applied Cryptography on Udacity

3) Preparing test for my students about programming in C language

4) Actually, none of the above, because I'm procrastinating on /g/.
>>
>>59571553
More interestingly, what's your history of favorite PLs?

Mine is Pascal -> C++ -> Lisp -> Haskell -> Rust (-> Idris? I'm still waiting for the book.)
>>
>>59571636
Whats your reason for switching to rust from haskell?
>>
>>59571636
quickbasic -> pascal -> c# -> c++
>>
>>59571636
assembly -> C++ -> C -> Lisp
>>
>>59571675
I like performance and don't like GC and laziness, and Rust is basically 50% Haskell anyway.
>>
>>59566658
I'm learning c++ guys, did I do good?
>>
File: 1490037619981.jpg (1016KB, 3146x2252px) Image search: [Google]
1490037619981.jpg
1016KB, 3146x2252px
I am writing a card-game and I have to design the trump, which means if certain suit is a trump, then it can beat every other card.

  enum cardsuit             { SPADES, HEARTS, DIAMONDS, CLUBS };


Therefore 0, 1, 2, 3. Is it possible to set a random thing out there as -1, saving the other values? Like 0, 1, -1, 3; etc.
>>
>>59571790
Why don't you just add trump as the fifth suit?
>>
>>59571790
fuck off with your /pol/ shit
>>
>>59571829
It has to be chosen among existing ones. I get the first card out of deck, checking its suit, and what I get becomes trump.
>>
>>59571861
>>59571829
If hearts is trump, therefore it can beat every card but hearts with higher rank.
>>
File: fragezeichen yui.png (94KB, 396x395px) Image search: [Google]
fragezeichen yui.png
94KB, 396x395px
If I look something up in a hash table, and there's no key for it, how expensive is that? Will I have searched every entry of the table by the time I am done, or does it stop much earlier than that?
>>
>>59572073
Depends on the implementation but it's about one look with the hash + walking the linked of items with same hash.
>>
File: link letgo.jpg (42KB, 546x432px) Image search: [Google]
link letgo.jpg
42KB, 546x432px
C was a mistake
ML was robbed
Haskell/Idris opens our eyes to the hell we've chosen for ourselves
We underestimated the hardware growth
We were faithless, we chose being "close to the metal" in an era of kb and mb
We should have sided with humanity, but we sided with the machinery
Our programs are ugly, our future is grim, our stack is unwieldy and grotesque
>>
What's the most-like VS IDE for linux? Mono?
>>
>>59572243
Let go already stupid retard.
>>
>>59571861
module runnable;

void main()
{
enum cardsuit: int { SPADES = 0, HEARTS, DIAMONDS, CLUBS }
cardsuit count;
import std.random: uniform;
int trump = uniform(0,4);
foreach(e;0..5)
{
import std.stdio: writefln;
writefln("%s",cardsuit(e));
if (trump == cardsuit(e)) writefln("Get wrecked by %d: %s, nerds", trump,count);
}
}


0
1
Get wrecked by 1: SPADES, nerds
2
3
4

>>
>>59572243
>our
Speak for yourself. Traitor.
>>
>>59572243
whats wrong with idris, besides forever being associated with a nignog?
>>
>>59572243
>hur duuur v2.0
>>
trait DoubleClone: Sized { 
fn double_clone(&self) -> (Self, Self);
}

impl<T: Clone> DoubleClone for T {
fn double_clone(&self) -> (Self, Self) {
(self.clone(), self.clone())
}
}

assert!("Hello".double_clone(), ("Hello","Hello");


Haskell makes concrete implementation of typeclasses for generic constrained types super annoying to do. Trying to do it will get you yelled at on the IRC channel for the Heresy of trying to define something practical like a generic priority queue which automatically implements foldable.

In Rust, generic implementations of traits is trivial, and is used in many libraries.
>>
>>59572451
Nothing, it opens our eyes to what could have been

If only we hadn't been so short-sighted...

Crippled by myopia
>>
>>59572519
So is it best functional?
>>
>>59572499
Yeah, but you can only do it once for a trait for now, can't wait for impl specialization stabilization.
>>
>>59572499
:+1-tone5:
>>
What is the best partioning procedure for quick sort?

I have seen 3 of them.
This one here is from Aussies which doesn't work.A slight modification is needed.

int partition( void *a, int low, int high )
{
int left, right;
void *pivot_item;
pivot_item = a[low];
pivot = left = low;
right = high;
while ( left < right ) {
/* Move left while item < pivot */
while( a[left] <= pivot_item ) left++;
/* Move right while item > pivot */
while( a[right] > pivot_item ) right--;
if ( left < right ) SWAP(a,left,right);
}
/* right is final position for the pivot */
a[low] = a[right];
a[right] = pivot_item;
return right;
}

link: https://www.cs.auckland.ac.nz/software/AlgAnim/qsort1a.html
>>
functional
dependent types
>>
>>59572616
Definitely. Haskell's type system is a literal toy compared to Idris.
>>
>>59568643
lol this thread is full of Indias. Nobody got u.
>>
>>59571020
why are you including source files? what is
#define s 0
for? what is
return b
? your code makes no sense.
>>
File: editor-latency-linux-xml.png (9KB, 580x430px) Image search: [Google]
editor-latency-linux-xml.png
9KB, 580x430px
>>59571421
use Clion with vim editing mode, it's faster than vim and a full-fledged IDE. it is an IDE to start to C in in 2017. people that advice you to use other IDEs didn't have options when they started out, so they had to develop in trash and stuck with it and now want to drag you in too.
>>
If you don't understand dependent types, you are Indian.
>>
>>59571563
visual studio doesn't even support ANSI C standard, its only good for C++
>>
>>59573030
that's why it's so good.
>>
>>59573030
>ANSI C standard
What is missing?
>>
Just started reading SICP... Lisp has some kind of funky syntax (but honestly, nothing is worse than python's complete dependence on whitespace... Fine language... Just can't fucking understand why whitespace of all things)

Why is this code throwing an error? (I'm using emacs's C-x C-e command)
(define (square x)
(* x x) )
(define (sumSquares x y)
(+ (square x) (square y) ) )

(sumSquares 5 12)


leads to this error: "Symbol's function definition is void: sumSquares"
is this because I should be running this in the interpreter as opposed to running it on clisp/emacs?
If so, how can I get output from files by running them?
>>
>>59573121
>) )
Why a space between closing parenthesis?
>>
>>59573134
Helps me keep track of how many open/close parentheses there are, but I'm not sure if it's good style or not
>>
>>59573121
(defun square (x)
(* x x))
(defun sumSquares (x y)
(+ (square x) (square y)))

(sumSquares 5 12)
>>
>>59573121
Whats the closest thing to lisp without the ((((((((((((((((((autiism)))))))))))))))))))))))))?
>>
>>59573121
The code is correct, but I don't think emacs sees
(sumSquares 5 12)
as a definition.
>>
>>59573180
Any webdev language would be about the same.
>>
File: Hate Thinks You're Great.jpg (169KB, 1366x768px) Image search: [Google]
Hate Thinks You're Great.jpg
169KB, 1366x768px
>>59573185
Gotcha.

>>59573161
This worked, thanks!
>>
>>59573180
logo
>>
cruise.py
def control(s):
expanded = " ".join(s.upper()) + "\n".join(s.upper())[1:]
return expanded

>>> import cruise
>>> print(cruise.control('london'))
L O N D O N
O
N
D
O
N

pls no buly
>>
CoffeScript actually seems pretty good.
>>
Post yfw when Javascript is FP
>>
>>59572707
>why are you including source files
it was like that and I can't modify the file main.c

>what is #define s 0
its an example, the define 's' is used in foo.c

>what is return b
main.c has a global variable, this variable is modified and returned in a function of foo.c

>your code makes no sense
which part of it?
>>
>>59573335
>>59573335
>>59573335

ALL ABOARD THE NEW THREAD CHOO CHOOOOOO
>>
File: RLMS-meme-warfare.gif (737KB, 700x393px) Image search: [Google]
RLMS-meme-warfare.gif
737KB, 700x393px
>>59573299
It is not. Some code monkey thought "functional" means that functions are first-class objects and now the meme is lose on the wild.
>>
>>59573351
Idiot
>>
>>59573299
Javascript is not really a fp language but it can do fp with no problems.
>>
>>59566731
It's the best language for currency out there. Like people are really excited about using it. But it'all die.
>>
>>59567415
Use inline functions mate
>>
>>59567415
>c++
>#define
please go back to c until you're grown-up.
>>
>>59567488
both

>>59573799
not only that, but you can make Go programs for a lot of arch's and OS's

>>59573201
noice, I hadn't thought of doing it this way, didn't know you could pass a string to s.join()
>>
File: sour-grapes.jpg (138KB, 1440x750px) Image search: [Google]
sour-grapes.jpg
138KB, 1440x750px
>>59571049
>i don't want a girlfriend son, there's no benefits at all.
virgin C toddler LOL
>>
>>59571553
Rust
Thread posts: 317
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.