[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: 350
Thread images: 22

File: file.png (746KB, 984x927px) Image search: [Google]
file.png
746KB, 984x927px
old thread: >>57103514

What are you working on, /g/?
>>
reminder that if you're not in the discord yet you're literally a fag
>>
Working late because I've been slacking recently.
>>
File: 99 str 1v1 me.jpg (9KB, 228x217px) Image search: [Google]
99 str 1v1 me.jpg
9KB, 228x217px
first for .net
>>
please don't disrespect anime by associating it with snek
>>
>>57110703
pls rspnd
>>
>>57110733
desu I just wanted to post yuki so I was a little hasted. Sorry familia.
>>
>>57110498
benis :-DDDD
>>
>>57110560
Any would work fine, python is pretty popular and easy to pick up as a first language.

Seems like it would be something you would want.
https://automatetheboringstuff.com/
>>
What are some essential skills for a Python programmer other than...

>Math
>Variable declaration
>for and while loops
>>
Can anyone help a beginner java anon who can't find an answer with google? Or is is that bad netiquette I'm a newfag to /g/.
>>
>>57110882
It's more fun if you figure it out yourself
>>
>>57110875
memes
>>
>>57110875
there are no skills required to be a Python scriptbaby
>>
File: PairofDice.jpg (74KB, 1006x692px) Image search: [Google]
PairofDice.jpg
74KB, 1006x692px
>>57110901
It's probably simple but I've tried all that I can think of and it's an assignment from a class with a close due date 8:00 AM. Here is what my class TwoDice looks like it uses a die class I'll post in another post. I've already done my driver file.
>>
>>57111021
>this is how to do dice rolls in OOP
>>
File: Die.jpg (64KB, 987x667px) Image search: [Google]
Die.jpg
64KB, 987x667px
>>57111021
This is the die class.
>>
>>57111029
Yep, that's what I was showed by my java book.

>>57111032
Sorry for the zoomed out view I don't have a great monitor.
>>
>>57111032
You're gonna want to mod by MAX, not multiply by it.
>>
>>57111021
>>57111032

in haskell this is just

import Control.Monad.Random
die = randomR (1,6)
>>
I am implementing AIXI.
>>
>>57111076
doesn't java have a library for a function with random inbetween two numbers?
>>
>>57111062
I'll see if I can do that.

>>57111076
Cool, nice and easy it seems.

Should also not I really appreciate help even if it doesn't make it right. Just getting help is amazing. Yes, I'm that cynical of 4chan.
>>
>>57111113
import java.util.Random;

int number = new Random().nextInt(100);



Pick a random number between 0 - 100
>>
>>57111140
I wish this assignment was that easy, also, what command in 4chan allows you to do the white box?
>>
>>57110875
Hey man, I was just trying to help >:(
>>
>>57111173
<code></code>
but with []
>>
>>57111173
(code)
Here is the code
(/code)

Replace () with []
>>
>>57111181
>>57111183
Nice, i'm gonna give that a try. When I need to put out some code much better than >>57111032
>>
>>57111188
Java is evil
>>
>>57110875
You should know about constructors and deconstructors and classes
>>
>>57111204
Sometimes I think so too. Still, it's awesome to learn how to program.
>>
Working on a nao robot and building a face recognition/exploration program. Anyone else work with nao?
>>
What is the point of constant reference that is set to a literal in C++?
>>
>>57111222
how are you getting all these digits
>>
>>57111227
I did in college (2 years ago). Really fun and easy to impress people
>>
>>57111230
slightly more generic
in any case where you use a constant reference, a literal would work too

plus lets you assign a literal to a const ref
>>
>>57111239
What were some things you did with it. I'm trying to set up some projects for my second one. I got two but I let my friend program the second one. And we need ideas after we c finish this project.
>>
>>57111264
Greet/Introduction
Sit/stand/stand from laying down
Ball tracking

were some of the things that really got people ' whew!'
>>
>>57111303
Alright thanks I'll probably just continue on the ball tracking. I have tried doing it before but lost the enthusiasm.
>>
>>57110498
>What are you working on, /g/?
An E-Hentai Downloader.

Funny there's no working example in GitHub or anywhere else...
>>
>>57111404
I'm sure the people who do make working ones value their career/future
>>
Currently porting a program from C to C++14. Feels somewhat comfy. I still have to figure out the right way to use the language.
>>
Goodmorning, /dpt/!
>>
>>57111492
ohayo
>>
>>57111492
> morning
I still haven't started work that I need to finish by the morning
>>
>>57111545
Do it. Do it noe.
>>
File: 1476690587743.jpg (84KB, 1280x720px) Image search: [Google]
1476690587743.jpg
84KB, 1280x720px
Why are C programmers portrayed as autistic in anime?
>>
Which signature do you like better?
void converter(uint32_t target_rate, uint32_t source_rate, uint32_t blockSize, char* target, char* source, uint32_t target_size, uint32_t source_size)

void converter(uint32_t target_rate, char* target, uint32_t target_size, uint32_t source_rate, char* source, uint32_t source_size, uint32_t blockSize)

or something else?

I'm almost afraid to ask, because i'm pretty sure your answer will differ from my answer.

Also, i probably don't even need both target_size and source_size, since i can deduce one from the other and blockSize.
>>
>>57111802
Why the fuck are you passing 7 arguments and 2 structs?
One with the target and one for the source.

If your function signatures are longer than 80 characters, you're doing something very wrong.
>>
>>57111787
Why not? It's an accurate portrayal.
>>
>>57111787
Probably because you need to pay attention to detail when working in C.

What anime even portrays programmers at all? Except NewGame! that portrayed the single token programmer as a rambou girl.
>>
>>57111822
*and not 2 separate structs?
>>
File: C stella no mahou.jpg (154KB, 1280x720px) Image search: [Google]
C stella no mahou.jpg
154KB, 1280x720px
>>57111830
stella no mahou has a token C programmer
>>
File: unity-logo-100571261-orig.png (7KB, 580x388px) Image search: [Google]
unity-logo-100571261-orig.png
7KB, 580x388px
Is there anything like unity for python?
>>
>>57111822
I'm open to alternative suggestions.

It's supposed to convert the data in one struct and store it in the other.
>>
>>57111832
Oh. That just means i have to build the two structs before calling the convert, which i don't see how that makes life any easier.
>>
>>57111856
int converter(struct stream *dest, struct stream *src, unsigned flags);
>>
File: stella-no-mahou.jpg (49KB, 695x391px) Image search: [Google]
stella-no-mahou.jpg
49KB, 695x391px
>>57111787
>Programming games in C
I don't think this is a joke.
Many highschools have old curriculum,when I was in highschool, Pascal and BASIC was taught as very advance and modern programming language this was in 2006.
>>
>>57111920
That's retarded. Literally.
>>
>>57111920
I don't really see the issue with this.
At least with something like pascal or C, you're not distracted by modern abstraction that confuses the beginner, and soon enough, you can approach that stuff and quickly figure out what it's an abstraction for.
>>
>>57111944
You're retarded. Figuratively.
>>
File: course.png (26KB, 650x117px) Image search: [Google]
course.png
26KB, 650x117px
does anyone else's course refuse to grade your work past 80%?
>>
>>57111969
So this is a course that kills your GPA no matter what you do?

I'd talk to the dean.
>>
>>57111944
>>57111950
Yeah, except it's useless.
When you go to college specializing in CS, you taught Visual Basic as a programming language.
While learning C then moving to C# or C++ is productive.
>>
>>57111950
C is fine, but teaching noobs a dead language is bad.
>>
>>57111472
>Porting from C to C++14
You mean reimplementing it? It should run fine just being directly compiled for C++
>>
New to programmming can someone explain the indenting and brackets?
http://www.terminally-incoherent.com/blog/2009/04/10/the-only-correct-indent-style/
>>
>>57112012
What's there to explain? Pick a style that makes sense to you and stay consistent with it.
>>
>>57111985
This guy thinks he knows C and C++ but he does not.
>>
>>57112025
I don't understand how to implement this in python
if pwd == 'apple':
print('Logging on ...')
else:
print('Incorrect password.')

print('All done!')
>>
>>57111977
What shitty school does that. I'm not even cs but all the cs classes I took required C or java. Using javac or gcc as compilers and submitting everything into a unix timeshare.
>>
>>57112037
Are you talking about me (>>57111985)?
>>
>>57111802

Why are you representing sizes with a 32-bit unsigned integer, instead of a size_t?

Also, if you can decrease the number of arguments, do so. Aside from making shit easier to read, you can guarantee all of the arguments will be in registers if you use 6 or less (on x86-64 Unix platforms) or 4 or less (on x86-64 Windows).
>>
r8 my gf's first fizzbuzz
 int n = int.Parse(Console.ReadLine());

for (int i = 1; i <= n; i++)
{
if (i % 3 == 0 && i % 5 == 0)
{
Console.WriteLine("FIZZBUZZ");

}
if (i % 3 == 0)
Console.WriteLine("FIZZ");
else if (i % 5 == 0)
Console.WriteLine("BUZZ");
else
Console.WriteLine(i);
}
>>
>>57112045
A socialist country schools.
>>
>>57112056
fail. writes multiple lines for 15
>>
>>57112012
Amazing autism in those comments.
>>
>>57112056

1. Fucked up the indentation
2. Second if needs to be an else if, or else this will print FIZZBUZZ followed by FIZZ every 15 iterations.
3. No one cares that it's your gf's. You could have just said "rate this FizzBuzz", and that would have been sufficient information.
>>
>>57112040
Python forces it's own code standard, which, if you're using Python, means that article is completely inapplicable to you.
>>
>>57112065
I know but I'm still proud of her.
>>
>>57112080
fucked up indentation is from me copying the code like a faggot. 2 and 3 are valid points.
>>
>>57112055
>Why are you representing sizes with a 32-bit unsigned integer, instead of a size_t?
Bad noob habit i haven't gotten rid of. Thanks for the reminder.
>>
>I was really excited when a certain software company that discontinued one of their products placed their code on their website. They announced it was open source. The code was in C++; there were two header files and four implementation files. One of the files was over 54,000 lines of code. All the source code was written in a sort of K&R style with no blank spaces between functions, no whitespace in expressions, and not one comment.
What a nightmare!

K&R ruined this company.
>>
>>57111950
>Modern abstractions.
It really depends on what kind of programmer you are. Some people do really well when with these abstractions so they can just focus on programming logic.

While others like me didn't really get programming until we understood how it works beneath those abstractions. I had problems understanding references in java before I learned C++ pointers. I also had trouble with virtual functions before I learned about function pointers in C.

In a way C is both great and really bad as a first language. There are a lot of subtle bugs you can make in C which a beginner shouldn't really be worrying about. A lot of these could be prevented at compile time like Rust does. Though I think Rust takes it to far and becomes a burden rather than a helper.
>>
>>57112113
>Children shouldn't learn how to calculate because they'll make subtle errors that can be avoided with a calculator.
What did he mean by this?
>>
>>57112083
Why would you be proud of someone for fucking up the simplest program?

>>57112113
>There are a lot of subtle bugs you can make in C which a beginner shouldn't really be worrying about.
Eh, when you're a beginner, you should experiment a lot and try to break tons of shit. Then try to figure out why it breaks.
>>
>>57112132
What I mean is that in C the program will compile just fine but you'll get undefined behavior. That's hard for beginners.
What would be better is a compiler error (or warning) saying that is wrong and why it's wrong.
>>
>>57110498

Currently making a program that will track the production phases of a product using rasberries in certain spots of the production line and send it to a database. Simple, fun and will make some easy cash.
>>
>>57112132
calm down
>>
>>57112156

>you'll get undefined behavior
That's part of the charm of it, to be honest. I grew up on game-breaking bugs in gameboy games. Being able to see something break in a completely fucked up way, and then getting to see why that happens, is fun.
>>
>>57112083
the only reason you should be proud, is if your gf is under 10..
>>
>>57112178
That sort of phrase would imply that I am in some way amped up. I'm pretty chill right now, tbqhwy fampai.
>>
File: teeth.jpg (40KB, 640x480px) Image search: [Google]
teeth.jpg
40KB, 640x480px
is ``portability" just a meme?

I'm looking at writing a sound program in C--a very "portable" language, except the way one actually makes sound come out of a computer's speakers differs entirely from OS X to BSD to Linux. In fact Linux is such a discombobulated piece of shit there are multiple re-inventions of the wheel that differ entirely by distro and user choice.

Is it common to write software that addresses all of these cases at once? If so, I'm not sure I want to write software anymore.
>>
>>57112194
the only OS that matters is temple OS
>>
>>57112194
It doesn't matter. Just write Linux-only software. The BSDs and Windows 10 have emulation layers that allow you to run Linux programs.
>>
>>57112194
Portability in C means that it should compile on any standards-compliant C compiler on any platform.

Whether or not your C code is designed to handle the quirks of your specific platform or OS (eg. 1 byte is 7 bits) is not a fault of the C language.
>>
>>57112222
>eg. 1 byte is 7 bits
I'm just going to be pedantic and say that CHAR_BIT must be at least 8.
>>
>>57112081
>Python forces it's own code standard
No, it doesn't.
>>
>>57112222
I'm not blaming C.
It's actually a thinly-veiled Linux hate post.
God Linux is shit.
>>
>>57112194

What you do is you use a library for sound that has already been ported to the various platforms. Userland programs interact with libraries. Libraries interact with system functions. System functions interact with the kernel. The kernel interacts with the hardware.

Audio isn't the only thing that is different from platform to platform. So is windowing, graphics, networking (although BSD sockets and WinSock are very similar), receiving keyboard and mouse input... That's why things like SDL exist.
>>
anybody here is a django expert?

Im looking for a mentor/teacher.
>>
Learning C/C++. There are surprisingly few resources on this cute language.

#include <stdio>
#include <string>

int main() {
string str = "Hello, world!";

printf("%s" << endl, str);
}
>>
>>57112257
kek
>>
>>57112247
$30/hr ok? got skype?
>>
>>57112257
c/c++ is undefined behavior.
>>
>>57112182
I get where you're coming from, but most people do not agree with you, according to that Kate Gregory talk form yesterdays thread.
>>
const int CURRENT_YEAR = 2016;
>>
>>57112081
I see, I'm new to programming, meaning I'm learning everything on my own, with no previous experience any programming language before.
I'm learning python to help with ren'py since I'm making VN.
So what does indentation do in python?
Is it that important?
Does
for i in range(5, 10):
print(i)

Differs from
for i in range(5, 10):
print(i)

Or what?
>>
File: 1475580393777.jpg (11KB, 240x255px) Image search: [Google]
1475580393777.jpg
11KB, 240x255px
>>57112275
>>
>>57112232
It doesn't?
>>
>>57112276
Yes. Whitespace is significant, but you can choose to indent 2 spaces or 8.You can also write the print on the same line.
>>
>>57112262

im looking for freebies, actually.

if im paying $30/hr for skype im not looking on 4chan lel.
>>
>>57112275
Is the current year known at compile time?
>>
>>57112247
I'll mentor you for free, but you gotta dress up like a girl while on Skype
>>
>>57112275
>const int
>not static const constexpr auto
>>
File: carl the libertarian.png (188KB, 1000x725px) Image search: [Google]
carl the libertarian.png
188KB, 1000x725px
>>57112285
>expecting anybody to teach you useful things for free
cuck
>>
>>57112271

>but most people do not agree with you
Most people are plebs.
>>
>>57112293
>static constexpr
I don't even.
>>
>>57112282
So the indentation should be an increment of 2?
How significant the white space is?
Does this mean I have to create it when I type by pressing spacebar 4 times?
>>
>>57112295

post your github then
>>
>>57112286
I bet this guy isn't even prepared for current year rollover.
When this baby hits new year's eve midnight, you're gonna see some serious shit.
>>
>>57112271
>but most people do not agree with you
Name one great programmer that didn't learn programming by tinkering with the bits and trying to understand was die Welt im Innersten zusammenhält.
>>
>>57112313
CAR Hoare
>>
>>57112308
>So the indentation should be an increment of 2?
no
>How significant the white space is?
You have to indent substatements under for, if-then-else, in function and class definitions, etc.
>Does this mean I have to create it when I type by pressing spacebar 4 times?
No, you can use tabs or a real editor that automatically converts tabs to spaces for you.
>>
>>57112316
Not even a programmer.
>>
>>57112276
Python is one of the few language where whitespace is significant.

Since all your code doesn't need to be written on only one line the compiler or interpreter needs to know where a block of code starts and ends.

Most languages use { } for this but python uses indentation.

The actual amount of indentation doesn't matter as long as 2 or more lines have the same indentation they're considered part of the same block.
>>
>>57112296
Yes, that's kind of the definition of pleb. So?
>>
>>57112326
>one of the authors of ALGOL
>invented quicksort
>invented communicating sequential processes
>invented verification of programs by way of formal logic
>>
>>57112342
>computer scientists are programmers
>material scientists are builders
>>
>>57112324
So Tab = space bar?
What editor do you recommend ?
I'm using Mousepad.
>>57112328
I see so the white space = {}
It doesn't matter how many white space as long it's four character long and each cod of line id aligned together.
Is that right?
So what does having the same code of block help with?
Easier understanding of how the code works?
>>
>>57112351
Stop replying to me you ignorant brainlet cretin.
>>
>>57112313
>most people
>great anything
>>
>>57112360
Found the haskeller.
>>
>>57112369
>t. Pajeet
>>
>>57112372
Do you know how I knew that you're a haskeller?
>>
File: 1416747172339.jpg (35KB, 362x346px) Image search: [Google]
1416747172339.jpg
35KB, 362x346px
>>57112374
>algol
>haskell
What did she mean by this?
>>
>>57112356
I use sublime text.

for i in range(0,5):
print("line 1")
print("line 2")


for i in range(0,5):
print("line 1")
print("line 2")


Why don't you run these 2 and see the difference?
>>
>>57112380
ignore him. He is an idiot.
>>
>>57112399
Haskellers get flustered very easily.
>>
How do i know if the compiler will/has inline optimize/d a given function?
>>
>>57112416
Look at the bytes.
>>
>>57112409
More like 'people who disagree with somebody they think is a Haskeller get flustered very easily'.
>>
>>57112416
You don't
>>
Should i even care about marking functions as inline?
>>
>>57112389
How do I run this from the interrupter?
Ctrl+D?
>>
File: 1398030036470.jpg (24KB, 680x383px) Image search: [Google]
1398030036470.jpg
24KB, 680x383px
>>57112440
>How do I run this from the interrupter?
>>
>>57112439
It's necessary for template functions
>>
In opengl, how does one make it so that when I rotate an object that the x and z axis don't interfere with each others rotations?
>>
>>57112454
I'm a fool/idiot/stupid.
That's why I'm asking, as I said I'm new.
I'm learning with Learn Python the Hard Way.
But I think it's intended for those with background in programming.
>>
>>57112440
>interrupter
>>
>>57112454
Anyone that likes Python is a fool
>>
>>57112479
Sorry, I meant
Interpreter
>>
>>57112478
>That's why I'm asking
/dpt/ is not for beginners. Consider stackexchange. /dpt/ is like this but for computers: https://mathoverflow.net/help/on-topic
>>
>>57112478
We will mock you, but please don't ever let that discourage you.

Also, consider finding a book more appropriate to your level. Sorry, i'm not a snakefag, so i have no suggestions.
>>
File: 1337770987699.gif (724KB, 350x262px) Image search: [Google]
1337770987699.gif
724KB, 350x262px
>>57112497
>dpt is like mathoverflow
>>
>>57112478
Just look up some tutorials either text or video caus if you're asking even basic questions like this dpt isn't gonna hold your hand like this forever.

Being able to find the answer to your own questions is a fundamental skill to becoming a programmer.
>>
>>57112507
/dpt/ is the mathoverflow of our generation. But for computers.
>>
>>57112512
>Being able to find the answer to your own questions is a fundamental skill to becoming a programmer.
Asking stupid questions is part of that skill.
>>
Thank you all for indulging my stupidity and bearing with me.
>>
>>57112522
So I guess /r/programming is the nLab.
>>
>>57112532
I do not frequent either site.
>>
Working with lambdas in c++.
Can i make some captures mutable and some not, or do i have to make all captures mutable or not mutable?
>>
>>57112529
> t. /g/
>>
When a closure, which captures this, is stored in a std::function, is it stored inline or is it allocated? In libc++.
>>
>>57112296
Just making you know that I agree with you
>>
Recommend a language agnostic book on design patterns pls.
>>
>>57112710
>Design pattern
Mein Kampf
>>
>>57112716
I have already read that. Very insightful book.
>>
I have a really simple question that sounds stupid as fuck, and is likely incredibly easy, but I still can't figure it out. In C, how would I go about declaring a 100 number array, and setting each number in that array to a random value (using some sort of rand() command i'd assume), then printing them all out in a semi-organized kind of way.
>>
>>57112710
>language agnostic
>design patterns
>>
>>57112748
Include the needed header for (pseudo)random function. Seed it some value (system time for example). Declare the array. Iterate over the array with a for-loop or while-loop per personal preference, call the random function and assign to array[i]. What do you mean semi-organized?

>>57112757
Yes anon, you can read. Bravo!
>>
>>57112748
>>57112778
Currently I have it semi-working with the numbers being allocated to the array, but it's only allocating the same number to each array index. Here's the code currently, please ignore the sloppiness, I only began learning C today.
<code>
#include <stdio.h>
#include <stdlib.h>


int main(void) {

double nums[100] = {};
srand(time(NULL));

for(int i = 0; i < 101; ++i) {
nums[i] = rand();
printf("%d\t", nums[i]);
if(i % 3 == 1) {
printf("\n");
}
}

return 0;

}
</code>
>>
>>57112710
Gang of Four.
The examples are written in C, iirc, bet the concepts presented are language agnostic. That goes for pretty much any design pattern book, actually.
>>
>>57112791
Thanks, I've been searching around and that book comes up quite often. Will give it a go.
>>
>>57112801
Beware tough. It is THE canonical reference on design patterns, but it is DEFINITELY not newbie friendly.
>>
>>57112778
there's no such thing
most "design patterns" exist to solve problems specific to certain sets of languages

>>57112791
this is bullshit
>>
File: mpv-shot0017.png (2MB, 1920x1080px) Image search: [Google]
mpv-shot0017.png
2MB, 1920x1080px
What do you use if you want to make games in python?
>>
>>57112789
1) Your loop goes out of bounds. i < 100 not i < 101.
2) I think you need to #include <time.h> for the seeding to work properly. Getting the same value indicates it's not working as it should.
>>
>>57112817
You're an imbecile. Pls delete your post.
>>
>>57112855
You realise how stupid that is and then stop.
>>
>>57112873
I included <time.h>, and changed my loop to be proper, and still no success.
#include <stdio.h>
#include <stdlib.h>
#include <time.h>


int main(void) {

double nums[100] = {};

for(int i = 0; i < 100; ++i) {
srand(time(NULL));
nums[i] = rand();
printf("%d\t", nums[i]);
if(i % 3 == 2) {
printf("\n");
}
}

return 0;

}
>>
>>57112881
>Pls
Do me a favor and do not reproduce.
>>
>>57112902
Move srand out of the loop
>>
>>57112789
What data type does rand() return?
>>
>>57112913
Moved srand out of the loop. No changes in effect

>>57112916
I'm pretty sure rand() returns an int, so I'll change all my functions to reflect that and see what happens
>>
>>57112902

rand() returns an integer, you nums should be an int type, rather than double.

Also, only call srand() once, so move that outside the loop.
>>
>>57112913
This.

>>57112916
Integers bound to [0 .. RAND_MAX]
>>
>>57112881
pls no censor
it is important to a healthy democratic society that people be allowed to evaluate other standpoints and points of view for themselves
>>
>>57112902
>double
>%d
You're printing an int but storing a double, that's going to be pain for you.

No need to store a double, rand returns int.
>>
>>57112923
See >>57112929

printf is only printing the first half of the double (which is always the same)
>>
>>57112924
>>57112927

I finally got it working, apparantly a necessary step was to use modulus on the result of rand(), in this case I used 50, and I changed the type of the array to ints, and it finally started working. Thank you all for your help!
#include <stdio.h>
#include <stdlib.h>
#include <time.h>


int main(void) {

int nums[100] = {};
srand(time(NULL));


for(int i = 0; i < 100; ++i) {
nums[i] = rand() % 50;
printf("%d\t", nums[i]);
if(i % 3 == 2) {
printf("\n");
}
}

return 0;

}
>>
>>57112941
It's not necessary though... or is it?
>>
>>57112941
Using modulus operator is not necessary, but optional if you want the range of values to be bound. If you don't use it you'll get everything up to RAND_MAX which is system dependent (it's hidden somewhere in the headers if you're interested, or printf it out).
>>
>>57112895
Why is it stupid?
Are you implying C# is better for game development with unity?
>>
>>57112948
It's not, see >>57112929

His problem was storing ints as doubles (64 bit) and then printing them as ints (32 bit). As IEEE 754 uses a floating point format, he only printed the "wrong" part of the storage unit.
>>
What happens if i do?
char arr[n];
memcpy(arr, arr+1, n-1);
>>
>>57112955
>Why is it stupid?
Python is slow as fuck, and won't be able to do anything but the most simple of 2D games.
>Are you implying C# is better for game development with unity?
You sure pulled a lot of implications out of absolutely nothing.
>>
>>57112958
Demons will fly out your nose.

       The memcpy() function copies n bytes from memory area src to memory area dest.  The memory areas must not overlap.  Use memmove(3) if the memory areas do overlap.
>>
>>57112968
Thanks a bunch!
>>
>>57112968
Is this zero-copy swap?
>>
>>57112968
>Tfw adobe didn't give a fuck and used memcpy on overlapping areas in flash for Linux
>>
>>57112982
No.

Because it's specified in the standard that src and dst must not overlap, memcpy() can do a wide variety of optimizations (such as using a DMA or using SSE instructions etc)

Or did you mean memmove?
>>
>>57112965
>most simple of 2D games.
By itself maybe, but there most be decent game engine for it right?
>>
>>57112941
>Using predictable randomness

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>

int getrandint()
{
int fd = open("/dev/urandom", O_RDONLY);
if (fd < 0) {
perror("Failed to open random device");
exit(-1);
}

int data;
if (read(fd, &data, sizeof(data)) != sizeof(data)) {
perror("read failed");
exit(-1);
}

return data;
}

int main()
{
int num[100];
for(int i = 0; i < 100; i++) {
num[i] = getrandint();
printf("%d\t", num[i]);
if(i % 3 == 2) {
printf("\n");
}
}
return 0;
}

>>
dubs decide what my thesis will be about
>>
>>57113032
>Slowing down your program to use "true randomness" when it isn't needed
>>
>>57113032
>urandom
>not predictable

A read from the /dev/urandom device will not block waiting for more entropy.  As a result, if there is not sufficient entropy in the entropy pool, the returned values are theoretically vulnerable to a cryptographic attack on the algo‐
rithms used by the driver. Knowledge of how to do this is not available in the current unclassified literature, but it is theoretically possible that such an attack may exist. If this is a concern in your application, use /dev/ran‐
dom instead.
>>
>>57113035
anime
>>
>>57113055
>the urandom man page

https://gist.github.com/tarcieri/6347417
>>
>>57113035
raping lolis
>>
>>57113035
raping maki
>>
>>57113035

>statistical analysis of the odds of getting dubs
>>
>>57113035
Hitler's art.
>>
>>57113091
>>
>>57113106
Keep trying.
>>
>>57112083
Le normie
>>
>>57113084

This is relevant to my interests.

I suggest posting it on the erlang-questions list. It might be a bug.
>>
>>57113084
how many bits have bytes in erlang?
>>
>>57113035
averaging two integers
>>
Rate my modern functional javascript fizzbuzz /g/

var church = n => f => x => {for(var i = 0; i < n; i++) x = f(x);return x;}
var unchurch = n => n(x => x+1)(0);
var _true = a => b => a;
var _false = a => b => b;
var iszero = n => n(_true(_false))(_true);
var leq = a => b => iszero(sub(a)(b));
var succ = n => f => x => f(n(f)(x));
var add = a => a(succ);
var pred = n => f => x => n(g => h => h(g(f)))(_true(x))(u => u);
var sub = a => b => b(pred)(a);
var mod = a => b => leq(b)(a)(() => mod(sub(a)(b))(b))(() => a)();
var fizzbuzz = a => iszero(mod(a)(church(3)))("Fizz")("")+iszero(mod(a)(church(5)))("Buzz")("")||unchurch(a);

for(var i = 1; i <= 30; i++) {
console.log(fizzbuzz(church(i)));
}
>>
>>57113155
not pure
>>
>>57113172
>no side effects
>impure
What did he mean by this?

>inb4 io has side effects
>>
>>57113155
10 / 10

Rate my fizzbuzz

### Functions ###
range = $(if $(filter $1,$(lastword $3)),$3,$(call range,$1,$2,$3 $(words $3)))
make_range = $(foreach i,$(call range,$1),$(call range,$2))
equal = $(if $(filter-out $1,$2),,$1)


### Variables ###
limit := 101
numbers := $(wordlist 2,$(limit),$(call range,$(limit)))

threes := $(wordlist 2,$(limit),$(call make_range,$(limit),2))
fives := $(wordlist 2,$(limit),$(call make_range,$(limit),4))

fizzbuzz := $(foreach v,$(numbers),\
$(if $(and $(call equal,0,$(word $(v),$(threes))),$(call equal,0,$(word $(v),$(fives)))),FizzBuzz,\
$(if $(call equal,0,$(word $(v),$(threes))),Fizz,\
$(if $(call equal,0,$(word $(v),$(fives))),Buzz,$(v)))))


### Target ###
.PHONY: all
all: ; $(info $(fizzbuzz))
>>
>>57111032
Honestly I would do it like this
public class Die {
private int sides;
private int value;

public Die(int sides) {
this.sides = sides;
this.roll();
}

public void roll() {
this.value = Math.floor(Math.random() * this.sides) + 1;
}

public int getValue() {
return this.value;
}
public int getSides() {
return this.sides;
}

public String toString() {
return "[" + this.value + "]";
}

public static multiRoll(Die[] dice) {
int numDice = dice.length;
for (int i = 0; i < numDice; i++) {
dice[i].roll();
}
}

public static void main(String args[]) {
Die[] 2d6 = {new Die(6), new Die(6)};
Die.multiRoll(2d6);

System.out.println("Rolled: " + 2d6[0] + ", " + 2d6[1] + ".");
}
}


Honestly, Java is a fun language if you just use a bit of common sense and don't buttfuck 'muh design patterns'.
>>
>>57113032
>using urandom when getrandom exists
>when /dev might not even be mounted
just fuck my shit up
>>
>>57111032
>>57113204
>>57111021
>making a class for a random pick from a uniform distribution from 1 to 6

Please stop overengineering.
>>
File: another_monday.jpg (61KB, 600x800px) Image search: [Google]
another_monday.jpg
61KB, 600x800px
>>57113204
variable names starting with numbers
>>
>>57113204
>checked exceptions
>>
>>57113035
Why OOP is dead
>>
>>57113155
>>57113189
fucking disgusting
>>
public void mySides()
>>
rate my haskell fizzbuzz:

import Game.FizzBuzz 
-- from "FizzBuzz" package
main = mapM_ print (fizzbuzz [1..100])


>>57113035
how FP can replace OOP
>>
>>57113218
oops
>>
>>57113189
damn gurl

and I thought using makefiles to build a static website was kinky
>>
>>57113035
practical implementation of the JVM on a universal turing machine
>>
>>57113035
Alternatives to OOP
>>
>>57113035
>How OOP has inflicted irrevocable on the software industry
>How OOP is the future of the software industry
pick one
>>
>>57113241
>>57113249
>>57113254
>>57113223
fuck off
OOP is fine
Obviously you're going to have contrived examples when teaching something.
>LOLL printing out hello world xDDw tff
>>
>>57113035
>20 replies
>not a single get

OOP: Death of an industry
>>
>>57113035
Functional Programming: The chemo that is saving the industry
>>
>>57113035
why RISC-V is shit and won't change anything in the industry
>>
>>57113035
Why NEETS hate OOP.
>>
>>57113035
Why OOP Will Never Die and Why FP Is Nothing But Memes and Salty Tears
>>
>>57113035
OOP: The Snake Oil Paradigm
>>
>>57113299
Thank you for saving the industry.
>>
>>57113214
The problem with getrandom() is you can't assume it exists.

So all you have to do is lace your code with #ifdefs and then go and build a clusterfuck of autoconf to make the magic happen.
>>
>>57113299
we got there in the end
god bless FP
>>
>>57113320
>what is syscall(2)
>>
>>57113299
>>57113293
>>57113286
>>57113280
>>57113260
>>57113241
>>57113225
Note how these posts are exactly one cool-down timer apart.
>>
>literally getting THIS triggered by her inability to work with objects

>>57110498
>What are you working on, /g/?
I don't know, anon, you tell me.
>>
>>57113332
Makes sense because those are all me.
>>
>>57113332
Only three of these posts were by me

Stay mad OOP fag, dubs got there in the end
>>
>>57113320
>The problem with getrandom() is you can't assume it exists.
But you can assume /dev/urandom exists?

>>57113329
Non-portable pig disgusting
>>
The problem with /dev is that most people are not using linux...
>>
>>57113341
>Non-portable pig disgusting
>/dev/urandom
>portable
hmm
>>57113349
Most people are using Android/Linux.
>>
>>57113340
>only three of these posts were by me
>only three
>only
kek

Not hard to get dubs when you post three times retard on a slow board.
>>
>>57113349
many unices have /dev, it's in no way exclusive to Linux

oh wait, are you crying over Windows?
>>
>>57113320
Sorry, I only program for relevant systems.
>>
File: nice.jpg (206KB, 816x816px) Image search: [Google]
nice.jpg
206KB, 816x816px
>>57113359
Tell that to all the other posters.
I even got triple dubs here >>57113322
>>
>>57113357
My argument was that /dev/urandom is NOT portable.

>>57113349
Any POSIX complying system will have /dev/random though. Even macOS has it.
>>
>>57113363
I'm crying over the fact that everyone seems to make wild assumptions on the platform anon is on.
>>
>>57113035
>>57113299

You better deliver
>>
File: dubs.jpg (6KB, 234x283px) Image search: [Google]
dubs.jpg
6KB, 234x283px
>>57113371
>>57113322
I'll admit, that's a pretty nice get.
>>
File: linuxlel.png (619KB, 1500x1500px) Image search: [Google]
linuxlel.png
619KB, 1500x1500px
>>57113336
>I don't know, anon, you tell me.
A programming language implementation benchmark.

>>57113332
Really made me think.

>>57113322
>FP
FP and OOP are not exclusive to each other.

>>57113032
>Using predictable randomness
The underlying algorithm of rand() is implementation defined.

>>57112855
pypy + py-sdl2

>>57112481
Why?

>>57112464
https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation

>>57112194
Picture

>>57112055
size_t is the type of the value returned by the sizeof operator.

>>57111787
Because they are.

>>57110542
Their app is bloat as hell, it is nothing else than chrome + nodejs packaged together (they use Electron, like github's atom). Look, someone who uses Chrome, Atom, and Discord at the same time has three different instances of chrome running in the background. This is insane. Those _native_ webapps are probably the most bloated software i have ever seen; They need nodejs which is nothing else than a big fat bloated wrapper for doing system calls in javascript -- I am a lisper so, as any lisper, i am addicted to beautiful and efficient code, reading javascript code is horror to me; Contrary to Lisp, it's easy to produce ugly code in javascript, i mean, you know -- They also need a _native_ framework like electron where the purpose is to wrap the internet browser API. They need a internet browser which is used as portable GUI. So, to not run their javascript app in the browser, they use nodejs to run their javascript app which will then use some bloated framework to render to some bloated web browser. and they call that native? what kind of madness is this?

>>57110498
Thank you for using an anime image.
>>
>>57113391
>FP and OOP are not exclusive
Only if you're bad at both
>>
>>57111848
I made a c# script once that runs python scripts that import unityEngine dll's.
>>
>>57113329

#if defined(SYS_getrandom)

No thanks.
>>
>>57113376
>My argument was that /dev/urandom is NOT portable.
srand(time(NULL));
rand();
Now it's portable.
>>57113376
>Any POSIX complying system
>POSIX
>2016
>>
>>57113396
Found the pajeet
>>
>>57113371
>>>/b/
>>
>>57113400
#ifndef _NR_getrandom
# define _NR_getrandom -1
#endif
????
>>
>>57113403
Pajeet loves OOP
>>
>>57113401
Yes, POSIX. Even Windows is moving towards it by emulating system calls.
>>
>>57111848
C# is not hard to learn if you're already used to Python.

You can even make it look quite similar to Python with a few cheeky
using static ...;
headers and extension methods.
>>
>>57113412
He also loves single paradigm programming.
>>
>>57113421
>single paradigm programming
Nice meme
>>
>>57113424
I'm not sure what you are implying?
>>
>>57113414
And since windows is even emulating getrandom you might as well use that.
>>
>>57113433
>And since windows is even emulating getrandom you might as well use that.
I think the objection was the C macro magic you have to do in order to get GCC to comply, not the system call by itself. Also
>what is clang
>what is tcc
>what is icc
>what is msvc
>>
>>57113432
>>>paradigms
Nobody cares.
OOP is shit.
>>
>>57113414
And will they be providing users with a file system where all devices are files and you can just /dev/* what ever you want? I get the feeling you're outsmarting yourself here.
>>
>>57113440
wtf are you talking about? this has nothing to do with gcc.
>>
I am linux user for 2 years now (debian 1.5 years and arch for half year now). Is it worth the effort to learn bash?
>>
>>57113442
Pajeet, pls
>>
>>57113457
no. i haven't used bash for years. are you still using a bash shell ?
>my god, he doesn't know
>>
>>57113465
You're doing it wrong
>>
>>57113457
Define 'worth'.
>>
Why is flying chinese used as emblem for this thread, anons?
>>
>>57113445
>all devices are files
I don't think you understand the purpose of /dev anon. Not all devices show up in /dev
>>
>>57113476
I'm not. Being sceptical of OOP is so 1980s and only Pajeets would be stuck in this mindset.

Nobody programs puristic OOP anyway, because every language is multiparadigm these days anyway.
>>
>>57113482
That's irrelevant. The point is anons example only works if you can read from /dev/*rand*
>>
>>57113490
>Being sceptical about religion is so 1980s
There.
>>
>>57113490
>Nobody programs puristic OOP anyway
ruby
>>
>>57113490
Only pajeets program OOP.
80% of "idiomatic OOP code" is just procedural, and most "multiparadigm" languages are just further demonstrations of the same procedural/OOP bullshit regurgitated but this time with one or two extra functional features
>>
>>57113502
OOP is not a religion any more than structured programming is a religion.

Modular design is inherently a good thing, and object-oriented seems to be an intuitive way to go about this.

But as a Haskell fag I guess you think that "intuitive programming" is bad because programming should be as obscure as possible so people wont taint your pure programs with side-effects such as actual input/output.
>>
>>57113523
>It's not a cult!
>It's not a cult!
>>
>>57113523
Is it a cult?
>>
>>57113506
Even Ruby is multiparadigm, it has tonnes of reflective programming aspects.

>>57113518
>Only pajeets program OOP.
Even the Linux kernel is object-oriented.

>80% of "idiomatic OOP code" is just procedural
Idiomatic OOP isn't what you decide it is, retard.

>and most "multiparadigm" languages are just further demonstrations of the same procedural/OOP bullshit regurgitated but this time with one or two extra functional features
Except it's not. I love how uneducated you are, it's almost like the only programming language you know is Haskell.
>>
>>57113539
>It's not a cult!
>>
>>57113527
Lol take a break kiddo, go outside and get some fresh air, your brain is melting bub
>>
>>57113534
>>57113527
Why are you samefagging?
>>
>>57113539
Is there a reason you're responding to obvious bait?

What are you getting out of arguing with that moron?
>>
>>57113549
Both me.
>>
>>57113539
>Even the Linux kernel is object-oriented.
Maximum kek has been reached.
>>
>>57113549
I'm not, that's a completely different poster

>>57113554
>bait
Yeah, anyone who disrespects the cult is just in denial
>>
>>57113523
So why aren't you programming procedural only? There is no dumb design patterns and obscure encapsulations.
>>
>>57113539
reflective or not, it's still pure oop
>>
>>57113547
Did you run out of arguments? Do you want to know what's a cult? The "hurr durr Only Pajeets use OOP" is a /g/ cult.

Just like test driven development, people accept what's an inherently good idea and adopt it. Just because you're stuck in a mindset from the 80s where you were either in the imperative non-structured camp or came from the world of Lisp machines, doesn't mean that the rest of the world is.

There's a reason why nobody uses puristic OOP languages such as Simula and Smalltalk anymore. Even Objective-C, which many refers to as "OOP done the right way", has plenty of generic programming aspects.
>>
>>57113471
>>57113477

I am planning to write some scripts to help me automatically setup my computer (if i ever want to reinstall) and for a couple of servers I own (web and gaming severs).

However this is mostly just putting commando's underneath each other and not really programming. So not sure if it is worth the effort to buy/download some books about it.

Also what would be a good language to learn if you want to make SEO tools/scripts?
>>
>>57113574
OOP can't be done right, it's fundamentally flawed

OOP is not fit for general purpose programming, or for software development.

OOP is detrimental to test driven development, or data driven design, and most other *development/*design memes being pushed out the oven
>>
>>57110498
How hard is it to make it in programming/software development without a degree? Ausfag btw.
>>
>>57113561
>So why aren't you programming procedural only?
I gave you an argument why. Also
>procedural only
"Procedural" is not actually a programming paradigm, contrary to /g/'s belief.

>There is no dumb design patterns and obscure encapsulations.
Design patterns and encapsulations are not "an OOP thing". Also, if encapsulation bothers you, then functional programming must really tickle your autism as nobody touts immutability and copy-on-pass any more than they do.

>>57113562
>generic programming
>pure OOP
By definition, it is not. They are two separate paradigms.

>>57113560
I'm not saying you're in denial, I'm saying that you don't know anything about programming due to lack of experience and knowledge. That's two different things.

Also, what's more cultist? Drawing good parts from multiple paradigms or fanatically sticking to one because you don't know any better?
>>
>>57113599
>Also, what's more cultist? Drawing good parts from multiple paradigms or fanatically sticking to one because you don't know any better?
https://en.wikipedia.org/wiki/Argument_to_moderation
>>
Let's face it - FP will never be go-to programming paradigm in the real world. It's just not gonna happen, at least in outside NEET's basements and universities
>>
>>57113593
>OOP can't be done right, it's fundamentally flawed
>OOP is not fit for general purpose programming, or for software development.
>OOP is detrimental to test driven development, or data driven design, and most other *development/*design memes being pushed out the oven

Who's the cultist now? I found the NEET.
>>
>>57113608
>Lol, not a member of my cult? That makes you a cultist!
>>
>>57113606
That fallacy is to assume that there is a golden mean, which I'm not. I'm saying that you should use good ideas from multiple paradigms because nobody is programming puristic OOP and haven't done so since the 70s or 80s.
>>
>>57113599
>"Procedural" is not actually a programming paradigm, contrary to /g/'s belief.
it is actually.

>>57113599
>By definition, it is not. They are two separate paradigms.
not really, see generics in java. everything in ruby is an object that receive and send messages.
>>
>>57113614
what did he mean by this
>>
>>57113617
I have yet to see a single use case for OOP that was actually in use
>>
>>57113614
I don't know what's more troubling? The fact that you think not locking yourself to a single paradigm is a "cult" or that you think your fanatical Haskell worshipping is relevant at all seeing how the last significant project done in Haskell was never and that the community is minuscule and mostly consists of CS academics.

It's a reason why the language is taught as an introduction to functional programming, and not used wide-spread in any industry.
>>
>>57113523
How is procedural not modular? You're literally splitting you code into procedures, hence the name.

To me files have always been more than enough. It provides both "modules" as encapsulation.
Most OOP programmers go for a one class per file structure anyway.
>>
>>57113592
Set up scripts are always a nice thing to have, but I'm not sure if it warrants learning bash above beginner level.

>>57113597
A lot of developers don't have degrees, being either self taught or drop-outs. Then again it's not the 90s or 00s anymore when it was easy to land a job with just skills, people expect degrees these days more so than they used to. The ones who don't have degrees at least have relevant experience to show... do you?
>>
>>57113633
>locking yourself to a single paradigm
If only you really knew

Multiparadigm fags truly are the multicultists of programming
>>
I'm sick of this cultist fags, where is new thread
>>
>>57113621
>it is actually.
It isn't. Calling procedures and subroutines (aka "functions") has always been a part of programming, whether functional or imperative. Thus, "procedural programming" is nonsensical.

>not really, see generics in java.
Just because it is in Java doesn't make it object oriented. Java also has closures and currying.

Also, Java "generics" is only a small part of generic programming.

>everything in ruby is an object that receive and send messages.
That's objective programming, but generic programming doesn't need be. I mean, many functional programming languages have generic programming.

>>57113636
>How is procedural not modular?
It's not inherently, but you can write it modularly.

>You're literally splitting you code into procedures, hence the name.
Calling functions is not modular. You need to be able to replace parts and use them interchangeably. Passing a function or an object/interface as a variable and applying/binding, on the other hand, is modular.

>>57113626
>single use case for OOP that was actually in use
As I've tried to point out ITT, there is no "one single answer". Programming is just a tool, and there might be many tools that accomplish the same thing. That's why you use multiple paradigms, you apply the tool that works the best.

>>57113647
>multi-cultist
kek'd
>>
new
>>57113677
>>
>>57113637
>The ones who don't have degrees at least have relevant experience to show... do you?
Not really. I took software development in HS and some algos classes at uni but dropped out in first yr. Most complex projects I've done outside of that would be some script to pull data from poloniex and a program to sort my porn.
>>
>>57113614
>this lack of self-awareness
>>
>>57113678
anybody who even _thinks_ that procedure, subroutines, and functions are all the same thing is horribly and utterly
confused, and doesn't understand abstraction. You are nothing but a time waster troll.
>>
>>57113708
please explain the difference between a procedure and a subroutine
i dont understand
>>
>>57113714
There are only semantic differences.
>>
>>57113741
such as
>>
>>57113714
i am not your professor and it's too easy to rely on the ones who have read while you are a lazy punk ass nigga who can not see further than the tip of his computer screen.
>>
>>57113751
"arguments", "parameters", "return value", "multiple entry (coroutines)", "side effects", "pure vs impure", "immutability" etc
>>
>>57113708
Depends on the language you're using, anon.

In many languages, they are synonymous.
>>
>>57113756
>>57113769
no im asking the differences between a procedure and a subroutine
>>
>>57113782
There are no universal definitions, anon. Both terms have been used interchangeably since people started programming.
>>
>>57113391
then don't use their app if you're so fucking triggered by it
>>
>>57113824
i want to know anon's definitions
>>
>>57113857
He's using his own arbitrary definitions in order to shitpost and dismiss the other anons statement about procedural programming not being a distinct programming paradigm.
>>
File: umarusfs.jpg (115KB, 1280x720px) Image search: [Google]
umarusfs.jpg
115KB, 1280x720px
>>57113826
i don't. i use the web interface.
>>
>>57113911
Umaru is shit
>>
>>57113913
Yes, and she still gets better grades than you.
>>
>>57113913
please, don't say that.
>>
>>57113941
umaru
is
shit
>>
//Declaring variables
while (Mag(ax, ay, az) >= 0) {
scanf( //Scan time, ax, ay, az );
velocityNew = velocityOld + (9.8 - (Mag(ax, ay, az) * 9.8)) * (timeNew - timeOld);
positionNew = positionOld + (velocityNew * (timeNew - timeOld));
positionOld = positionNew;
timeOld = timeNew;
velocityOld = velocity New;
printf("\npositionNew is: %.2lf", positionNew);


Any idea on why this prints out 0.00 for positionNew over multiple iterations?
>>
>>57115824
>posting in the thread on page 10
>>
>>57115824
timeNew and timeOld are the same
velocity new is 0
Thread posts: 350
Thread images: 22


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