[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: 329
Thread images: 25

File: 1483036200950.jpg (23KB, 512x512px) Image search: [Google]
1483036200950.jpg
23KB, 512x512px
What are you working on, /g/?


Previous Thread: >>58341182
Functional Thread: >>58332039
>>
First for D is a stupid meme.
>>
Fuck C++.
>>
File: meme.png (6KB, 352x88px) Image search: [Google]
meme.png
6KB, 352x88px
What did he mean by this?
>>
>three /dpt/s
well done gents
>>
File: file.png (70KB, 850x411px) Image search: [Google]
file.png
70KB, 850x411px
>when niggers try programming
>>
>>58345291
He means to inform us that he's stupid.
>>
>>58345302
Pajeet vs Jamar
who can program better?
>>
>>58345302
Nigger was right though. I guess he just misheard "E" and "B", which do sound pretty similar.
>>
>>58345329
pajeet blown the fuck out
>>
>>58345329
If you really want to check, this is the video where I found the comment
https://www.youtube.com/watch?v=gdmfOwyQlcI
>>
id : (A : Type) => A => A
id A a = a

Look at this object-oriented garbage.
>>
>>58345243
>Linking to the functional thread
Why though? It's completely pointless.
If someone was actually interested in the functional thread, they would just search for it themselves.
It breaks away from the standard OP format for absolutely no reason.

On a slightly related note: why the fuck do they have so much shit in their OP?
Jesus fucking christ, does anybody ever read that?
>>
File: hqdefault.jpg (25KB, 480x360px) Image search: [Google]
hqdefault.jpg
25KB, 480x360px
>>58345380
... that I just found.
When I say "go", be ready to throw!
Go!
>>
>>58345404
>why the fuck do they have so much shit in their OP?
I feel sorry for you anon
>>
>>58345431
>Throw it at him, not me!
Sorry boss, Go doesn't have generics so we got your types mixed up in casting.
>>
Me again - the guy that's working on an Arduino Project

Managed to get time stuff sorted yesterday and programmed a serial logger today, all that's left is to create a program that takes data from the serial logger, splits it up and puts it into a .csv file
>>
>>58345441
Why? How is OP bloat a good thing?
Also, looking at that thread, that shit is at the end of it's life. Let the needless generals die already.
>>
>>58345549
It was going good for a while, but now the holidays are over and /fpt/ have jobs
>>
>>58345575
>functional programmers have jobs
>>
def subsubA(x):
x=3
print(x, end=", ")

def subA(x):
x=2
subsubA(x)
print(x, end=", ")

x=1
subA(x)
print(x)


why does this print "3, 2, 1" and not "2, 3, 1" ?
>>
>>58345329
>"E" and "B", which do sound pretty similar
What
>>
>>58345575
Delude yourself however you wish, anon.
>>
>>58345595
nevermind, got it subsubA(x) goes first and prints that statement before it prints subA's statement.
>>
>>58345431
func Go() error {
return &errorString{"Throw it at him not me!"}
}

func SayGo() {
if (Go() != nil) {
fmt.Println("Let's try something else...")
}
}
>>
>>58345598
E: "eeeeeeeee"
B: "beh-eeeeeeeee"
>>
>>58345635
They rhyme, but they don't sound similar.
>>
>compile Haskell code
>execute
>1GB/s in memory allocation

>write C++ code
>compile
>1GB/s error code output

>plan Java code
>write
>1GB/s source code

>write LISP code
>read
>1GB/s of parentheses

>patch Rust code
>upload
>1GB/s of new GitHub issues

>download Lua script
>run
>1GB/s table lookups

>type Python script
>interpret
>runs at 1B/s
>>
>>58345256
ur stupid
>>
>>58345910
Should have stopped after the Rust one, the last two are grasping.
>>
>>58346043
>post on 4chan
>it's read
>1GB/s of bully
>>
Please give me attention
>>
Should Go be used somewhere else than back-end?
>>
@58346055
No
>>
Text editor poll continues
http://www.strawpoll.me/12023125
>>
>>58346043
But the last one is the only one that's funny.
>>
I'm still having a hard time deciding what type of programming with what type of language I'd like to pick up.

I was working with AndroidStudio practicing android development with Java for a little bit. I just don't know anymore.

How did you guys decide?
>>
>>58346089
I use vim as my go-to text editor, but if I'm writing Racket, I open up DrRacket.
>>
Vim and emacs both look so primitive and DOS-like. Why would anyone use these?

What's wrong with Visual Studio or Atom?
>>
>>58346318
hipsterism
>>
Should I steal VS2015?
>>
http://www.strawpoll.me/12039425
VIM or Emacs?
>>
>>58346347
Sure, why not? Only reason to get Professional is for the plugin management
>>
>>58346318
Loading up gedit doesn't take fast enough.
It's available on pretty much any distro.
My X Server broke, and I'm viewing 4chan on a terminal.
>>
>>58346391
Both VS and Atom are available on Windows, Mac and Linux respectively.
>>
>>58346417
That word doesn't mean what you think it means
>>
>>58346417
try open 100kB file in your meme javascript editor
>>
How do i create a c function to let me add info to a struct by user input? im trying to do it like this

typedef struct sDate {
int day, month, year;
} date;

typedef struct sPerson {
char name[60];
date birthday;
} person;

pessoa Create () {
person a;
char name[20];
scanf("%s", name);
strcpy(a.name, name);
scanf("%d %d %d", a.birthday.day, a.birthday.month, a.birthday.year);
return a;
}

int main() {
person x = Create();
printf("%s - %d/%d/%d", x.name, x.birthday.day, x.birthday.month, x.birthday.day.year);
}


why isnt it printing anything?
>>
>>58346489
Which struct do you want to be able to add to?
What is it you want to add - more variables? Information in the variables?
>>
>>58346417
Neither of which run without X
>>
Quick! post the most aesthetic looking code you have/code that looks stereotypically like lines of code
>>
>>58346504
i fucked up while pasting a bit, instead of pessoa Create() it's person Create() and in the end its x.birthday.year

i want to be able to call a function to create a new person and let the user input the data.

i can create a function that receives a char name[] and a date birthday and it works fine, but why doesnt it work with the scanfs?
>>
>>58346513
Sucks to be you. What does 4chan look like through a terminal?
>>
>>58346540
>Haskell bait
>>
File: morphism.png (10KB, 325x200px) Image search: [Google]
morphism.png
10KB, 325x200px
>>58346540
>>58346580
>>
>>58346580
Haskell is a meme language and looks ugly - it is forbidden from this challenge
>>
#include <iostream>

int main {
std::cout << "Hello world" << std::endl;
}


How many lines of code is this?
>>
>>58346489
You're missing your header files:
#include <stdio.h>
#include <string.h>

>scanf("%d %d %d", a.birthday.day, a.birthday.month, a.birthday.year);
These need to be pointers:
scanf("%d %d %d", &a.birthday.day, &a.birthday.month, &a.birthday.year);

>pessoa
Spelling mistake.
>x.birthday.day.year
Remove .day

Otherwise, it should work.
>>
>>58346598
thanks so much im so tired and forgot about the pointers, its working fine now
>>
>>58346586
I'm still mad that Haskell forces you to define monads in terms of bind.
>>
File: Aesthetic lines of code.png (120KB, 1920x1276px) Image search: [Google]
Aesthetic lines of code.png
120KB, 1920x1276px
>>58346586
Get that trash off my general

I want to see at least 10-20 lines

>>58346609
Give me a sample of a function - I want to see more than C++'s Hello World. For those that aren't clear, I want to see roundabout the quantity of pic-related
>>
>>58346586
WOW it looks so confusing... but pretty!! you must be really smart
>>
>>58346646
rewrite the standard library, or just hide Monad and make your own typeclass
>>
>>58346540
>>
>>58346680
http://hackertyper.net/
>>
>>58346702
>http://hackertyper.net/
This makes me happy
>>
>>58345678
>They rhyme, but they don't sound similar.
Rhymes, by definition, sound similar.

They wouldn't be rhymes if they didn't sound similar
>>
>>58346097
just learn them all and stick with the one you like
>>
sorry for the beginner questions again

im making a student struct that countains a person like i created earlier on >>58346489
and two test scores.

typedef struct sstudentAED {
person p;
float score[2];
} student;

now i want to create a function that receives an array of students and a int which will be 1 or 2 (first or second test score) and gives me the average of the first or second tests scores.

im doing it like this
float av (student a[], int x) {
float total = 0;
float average;
int size = sizeof(a) / sizeof(student);
for (int i = 0; i<size; i++) {
total += a[i].score[x-1];
}
average = total / size;
return average;
}


i guess what i dont know is how to get the "size", because if i hard code the value it works

anyone bored enough to help?
>>
def subsubA(x):
x[0]=3
print(x, end=", ")
def subA(x):
x[0]=2
subsubA(x)
print(x, end=", ")

x=[0]
x[0]=1
subA(x)
print(x)


why does this print
[3], [3], [3]
?

SubA goes first, running the subsubA statement which is [3]. Then SubA's own statement prints [2] and the last statement should print [1].

Why the fuck is Python printing three times [3]?
>>
Do you have a code of conduct for your open source projects, /dpt/? I sure hope you do, because otherwise I'm going to have to contact your employer and demand that they fire you, or risk face being boycotted.

After all, it's simply not good enough any more to contribute your own time and energy to the open source community. You must ensure you don't work with anybody who may have engaged in unacceptable behavior, or engage in such behavior yourself.

Might I suggest the Contributor Covenant <http://contributor-covenant.org/>?
>>
>>58347119
>int size = sizeof(a) / sizeof(student);
That's not going to work.
You're taking the size of a pointer here, not the array.
You will want to pass the length of the array in as a separate argument.
>>
>>58347178
Joke's on you, I'm a turbo NEET
>>
>>58347171
You really need to learn how imperative programming works.
Follow the statements one by one, in execution order, and think of what value 'x' has.

>>58347178
(You)
>>
>>58347171
youre changing first element of x in the beggining of subsubA and then printing it 3 times

x is reference type, so youre changing same object
>>
>>58347246
So how do you make an entire new list?
Let's say I want to print [3], [3], [1], how would I do that?

x[0]=any number here doesn't change the value
>>
>>58347205
i must be missing something. you mean i get the size main and pass it as an argument to the function, right?

i put
int size = sizeof(a) / sizeof(student)

in main (also tried sizeof(a) / sizeof(a[i])

but its giving me wrong values (20 instead of 2 in my case)

what am i missing?
>>
>>58347397
i mean i also tried sizeof(a) / sizeof(a[0] not a[i]
>>
>do code dynamically
>works (barely), takes up hundreds of lines of code, but gets the job done

OR

>make a "constants" file with all the values predefined, pull from it when I need to

Is there anything wrong with the second option? It's sounding pretty good right now.
>>
>>58347415
Be more specific
>>
What do you guys think of C++? Thinking of playing with it outside of school since that's apparently the used language at the uni I'm transferring to to teach CS classes.
>>
>>58347436
I have a bunch of constant values that never change. Right now, when the program starts, I pull them all from a separate file and use them in the program, which is a huge pain. Would it be okay to, instead, keep some "Constants.h" file with all the values already defined, and use them when I need to?
The only thing is that I would have to remember to update them manually if I ever change them.
>>
>>58347397
well it was giving me the wrong value because i created an array of 20 students and only filled 2 spots. maybe programming isnt for me
>>
>>58347529
You're still learning. Don't give up because of a minor misunderstanding / setback.
>>
>>58347545
thanks anon. i guess ill just try to calm down and sleep earlier to finish studying tomorrow, im just too tired now and making too many mistakes
>>
>>58347482
I think that's fine. If they ever change with the current approach you'd just have to change the file anyway.
>>
Why should I use monads, when they require lots of extra boilerplate and syntax, when I can just use exceptions, which require none?
>>
Is C the best language?
>>
>>58347972
nope
>>
File: A4.jpg (143KB, 1600x860px) Image search: [Google]
A4.jpg
143KB, 1600x860px
Why am I getting all of these errors at the bottom?
>>
>>58345678
Shut the fuck up.
>>
>>58347984
What is? For a noob. They teach C++ at Uni but that's too hard for personal projects I hear.
>>
>>58347932
Assuming you mean exceptions like C++ exceptions:

Exceptions are optimized for the case that they are never thrown. They're free (not counting the space taken up by the extra instructions) if you never throw them, but expensive if you do. This means they're bad for indicating failure when failure is a normal condition. Instead, you return a tagged union, where one tag indicates success and the other tags indicate failures. Tagged unions incur a very slight, constant overhead on both success and failure instead of making success free and failure costly. Structures like this that are parameterized over the successful return type are monads, and the corresponding monad operations (and operations derived from them) allow you to work with these structures cleanly.
>>
Why do you keep including that dead thread nobody posts in, in the OP?

We shouldn't be splitting discussion by paradigms anyway, /fpt/ was a stupid idea, just let it die and stop forcing it.
>>
>>58348024
You want something thats easy and fast to write in? Try Python.

You want something to learn how computer works and somethings thats fast in execution? Go with C.

You want somethng thats not that hard and gets you job? Try C#/Java.


In the end you should try all of them, where you start depends on you.
>>
Is it true that getters and setters are bad practise or is that just a meme?
>>
>>58348082
Getters and setters are bad practice when you don't need them. If you need them then use them.
>>
File: dyplom7.png (105KB, 766x434px) Image search: [Google]
dyplom7.png
105KB, 766x434px
>>58348082
it's true
>>
>>58348078
I'm most interested in Go and C. My uni uses C++ to teach classes that's why C came to mind. I don't know what do you think? How complicated is C to work with?
>>
>>58348024
There really is no actual good language.

C and C++ are crap because you have to manually manage everything, but they are like the swiss knife of programming

C# and Java are shit because muh memory and shit speed

Rust is overly complex for complexity's sake

Python and Javascript are shitty and slow

Pick your poison and stick with it.
>>
File: 1451346645505.gif (1MB, 268x274px) Image search: [Google]
1451346645505.gif
1MB, 268x274px
>>58348102
>Rust is overly complex for complexity's sake
>>
>>58348082
just leave that stinking java and go C# with comfy attributes
>>
>>58348091
You should never need them, if you need them you're doing something wrong.
>>
>>58348078
>>58348101
Also I should say I'm currently the most interested in game development. I wish I wasn't but I am. ;_;
>>
>>58348102
C# is actually comparable with C++ on Windows in speed
>>
>>58348110
Unless your language has some other form of declaring/checking invariants, then yes, you need them, and not using them is bad practice.
>>
>>58348130
you can develop games in any language, even python

if you are considering some popular game engines Unreal Engine uses C++ and Unity uses C#

also check >>/vg/agdg
>>
>>58348130
C++ is by far the most relevant language in that space, and C# behind it.
>>
File: weiner1.jpg (37KB, 467x479px) Image search: [Google]
weiner1.jpg
37KB, 467x479px
what is best java ide?
>>
#include <string>

string moot = "moot";
string shitpost() {
while(moot == "moot")
post_frogs("sad");
while(moot == "hiroshima")
post_frogs("smug");
return "Bring back Snacks!";
};

int main() {
cout << "Welcome to Shitpost Simulator 2017. Input your lad of choice." << endl;
cin >> moot;
shitpost();

return 0;
};
>>
>>58348110
>>58348145
Though I suppose you could also argue that mutation is bad practice and that you should only ever be using constructors. For languages that support it you can also get rid of getters and have fields that are internally mutable but externally mutable if you want mutation through setters.
>>
>>58348188
what do you mean by best?

intellij is bretty good, i also liked netbeans
i never liked eclipse
>>
>>58348166
Alright I'll check it out. Thank you.
>>
>>58345243
>What are you working on, /g/?
i'm trying to make primitive 2d library with layers 'n' shit in C and alpha channel support

mostly by trial and error, unfortunately. because lel, fuck design and thinking even for 5 minutes
>>
its 420 in the morning here and i'm trying to finally start doing something productive

i guess remote job doesn't really work for me
>>
>>58348290
How's it going in central europe?
>>
>>58348102
#include <iostream>                                                                                             
using namespace std;

int x = 1;
int y = 1;

main() {
for (int i=0; i < 10; i++) {
cout << y << endl;
cout << x + y<< endl;
x = y + x;
y += x;
}
}



learning c++ taking a break from python honestly everything just feels weird in this langauge. it's like so much work just to get to my logic i have to remember to declare everyting remmber ; i still don't know how to print multiple objects in memory from cout. just so much shit about this language that is confusing me.
>>
>>58348354
not that bad

that is if you can cope with pathological procrastination
>>
need a beginner project idea for ruby, please. I don't want to just do exercises, I want to make something useful, but I don't know what to make.
>>
File: programming challenges.png (596KB, 1450x1080px) Image search: [Google]
programming challenges.png
596KB, 1450x1080px
>>58348399
>>
>>58348369
so /g/ what is going on when i do like this

int x = 1;
int y = 2;

cout << x, y << endl;


why does this not work?
>>
>>58348431
cout << x << y << endl;
>>
>>58348369
I just recently switched from C++ to Python and im enjoying my choice if you ask me
>>
>>58348423
I'll roll to see if i get anything interesting
>>
Trying to motivate myself to study at least an hour before going to sleep.
Been working too much, leave home at 8am and get back at 9pm or sometimes 10pm working my ass off.

I managed to get half a day off today, I know I should study, I only have to pass a data structures course, but I just want to play vidya.
>>
>>58348423
roll
>>
Fucking how do you compile the SDL project lmao, there are like 500 different shell scrips
>>
>>58348423
reroll for something none babby
>>
>>58348446
ya i can't just ditch python i still have a lot of unfinished projects in python.

so far in switching ot c++ i know if/else stuff, while loops, for loops, and a few cout cin. but the problem is i still have no diea about lists in c or really classes functions etc.
>>
>>58348108
It shows that it was invented by people who couldn't even cut it as academics.
>>
I'm not sure, if /wdg/ had become worse in the last few months, or I've actually improved enough to see it for what it is. It's basically a PHP circlejerk most of the time and a web dev 101, when it's not.
>>
>>58348938
>using PHP
is anyone seriously doing it in $CURRENT_YEAR?
>>
>>58348967

and js is better because....?
>>
>>58348988
>there are only 2 languages in the world that you can do web logic


wow dude
>>
>>58348423
Rolling
>>
>>58348102
That's why you choose two or three languages. One for writing the performance critical parts (C), one for writing the majority of stuff (something like Java or C#) and if your program needs an embedded scripting language that's the third one, something like Python, Lua, Squirrel.
>>
>>58349023

ok so whats the "best" language then for webdev im asking you since you know it all
>>
>>58349063
you can do backend in every fucking language, and almost all are better than php
>>
>>58348536
It's not complex for complexity's sake in the first place though.
>>
>>58348102
>Hi, I listen to /g/'s opinions all day and don't actually program anything
>Here's my opinion: ...
Just stop please
>>
>>58346066
It can be used for related tools (site generators, scrappers, maybe deployment/build systems), but that is about it.
>>58348967
There are unironic PHP enthusiasts in /wdg/ and plenty.
>>58349063
Something statically typed aka not absolute garbage for anything but 100 loc scripts.
>>
>>58349211
And where does that leave you?
>>
>>58349059
>One for writing the performance critical parts
ATS

>one for writing the majority of stuff
Idris

>if your program needs an embedded scripting language that's the third one
Scheme
>>
What's the goto book for C these days? Has C11 changed it?
>>
can someone explain bellman-ford in layman's terms? I don't even understand what digraphs are and have no experience in graph theory, but I need to make a bellman-ford program in ruby.
>>
>>58349294
Looks good for a FP fag, especially if you got a boner for formal verification.
>>
>>58349214
>Something statically typed
i'd say dynamically typed languages are better for webdev, cause for example you can deal with JSON objects without knowing their whole structure in compilation time
and generally i feel python or ruby web apps have less boilerplate than asp or java

but i agree it's terribly easier to mantain large project in statically typed languages
>>
>>58349294
>>One for writing the performance critical parts
Rust
>>one for writing the majority of stuff
Go
>>if your program needs an embedded scripting language that's the third one
JavaScript
>>
>>58349294
Has anyone on /g/ actually used ATS for anything?
>>
>>58349329
>cause for example you can deal with JSON objects without knowing their whole structure in compilation time
Algebraic data types.
>>
>>58349349
M E M E
E
M
E
>>
Can somebody tell me how I'm expected to deploy a dynamic Haskell library designed to be used by languages that aren't Haskell?
When building an executable, GHC seems to statically link everything it needs and I can drop it on any machine without any problems. However, once I try doing a library I'll get errors from missing dependencies like libHSrts, libHSbase, as well as the cabal packages I installed.
Am I really expected to copy some 40 .so files over along with my library?
>>
>>58349341
Factorial function
>>
>>58349368
They solve the problem perfectly in a statically typed setting, how is that a meme?
>>
>>58349329
>but i agree it's terribly easier to mantain large project in statically typed languages
Well there are multiple solutions to this like if you use the same lang on the back-/frontend then you have to have one shared file specifying it. If you don't then you could still generate it from a "third" description language (like how protobuf does it). Hell you could write a program where you define how a JSON looks like in JSON and then generate the appropriate files for whatever you want to and include that inside your project.
>>
File: wewLad.png (405KB, 1536x2048px) Image search: [Google]
wewLad.png
405KB, 1536x2048px
r8 my huge iPad interface for my shitty gaymen
>>
>>58349388
That font is horrendous.
>>
>>58349388
>>58349397
If it sells then no one cares. Normies will think it's art.
>>
>>58349329
>JSON objects without knowing their whole structure in compilation time
Then you need to manually verify the structure of what you get passed or anyway. I've seen plenty of crashes, because a field had a different type than expected. And if you are asserting the JSON anyway, might as well use a language with static structures.
>>
>>58349414
It's called lenses.
>>
>>58349341
The concept is fantastic and ATS proves that it works but the language itself is a travesty. If a similar language existed with decent syntax I'd use it in a heartbeat.
>>
>>58349373
If you're creating a foreign library in language with a runtime, you're doing it wrong to begin with, so I would not be surprised that no such method exists.
>>
File: paperShit.png (277KB, 640x1136px) Image search: [Google]
paperShit.png
277KB, 640x1136px
>>58349397
>>58349412
Entire game is "paper shit", I will add paper texture to the white container, it will look acceptable I swear.
>>
>>58349455
Then you need to not use those emojis or material panel shapes either.
>>
>>58349455
I actually kinda like that font. So, no worries, m8. I have certainly seen lot worse.
>>
What's the history of programming languages? How did the first high-level language get written?
>>
>>58349318
help pls
>>
>>58349442
Some languages en/decode JSON from/into structs as a whole.
>>
>>58349471
I can't go full paper shit without it looking horrendous, the mix design is what keeps it acceptable.

I think it's fine for kids and normies.
>>
What was the coolest thing you ever wrote in assembly?

Also, is assembly universal or are there various dialects?
>>
>>58349454
The assemblys are a bit bigger than they need to be, but Haskell has so many nice things I don't care
>>
>>58349454
C has a runtime.
>>
God fucking damnit FUCK PAGING, WHY IS THIS SO MUCH OF A MINDFUCK AND A CLUSTERFUCK.

>CPU wants physical addresses for page tables
>want to map new page
>traverse page tables
>they're physical addresses
>physical page was dynamically allocated (this is literally the only way for user page tables)
>impossible to find out virtual address, impossible to access and write new entry
>???

Recursive mapping does not work
>Set up recursive mapping
>lol you need a page table for that
>being able to map requires you to recursively map which requires mapping but mapping requires recursive mapping

Fuck this
>>
>>58349594
Maybe you should flip burgers for a living
>>
>>58349540
>various dialects
Fucking what? There is more than one CPU architecture and there is more than one assembler dialect for each assembler for each architecture. Why do you think programs written for Intel or AMD chips can't work on mobile devices?
>>
>>58349594
Virtual memory is fucked. But "It's the best thing we have".
>>
>>58349661
I see this is so easy for you.
Then you should know how to easily get the virtual address for any given physical address right? because it's required to manipulate the page tables.
Remember, the pages are dynamically allocated because it's not possible to have them static, so you can't just add an offset to the physical address.

>>58349678
That's fucking bullshit. All intel needs to do is add a very simple mechanism to let the kernel bypass paging temporarily to access physical memory directly, like an instruction prefix or something.
But no, they have to make everything 1 billion times harder.
>>
>>58347999

Because you are using Visual Studio. Also, you should not have a function for "keeping the Window open." The program should terminate immediately as soon as it has done all of its output, so that it the shell that called it can resume control.
>>
>>58349666
I guess it's a stupid question in hindsight, but then why do assembly books always teach the same language?
>>
>>58347999
Just a lazy guess, but it looks like you're including libraries not installed on your computer, or with some kind of problem based on the file column down there.

Try only including iostream since that seems to be all you're using. Also maybe I'm forgetting, but you need to end function delcarations with a semicolon too. For example,

int function() {

whatever

};
>>
>>58349594
>>58349713

If you're going to write your own OS with paging, it would behoove you to look into how others have solved this problem before you.
>>
>>58349735
They aren't the "same language". Most deal with teaching flat-mode x86 which only applies to Intel and AMD chips. Most even only deal with MASM, the Microsoft Assembler for Windows. Here is a book that teaches AVR assembler and C programming.
https://books.google.com/books/about/The_Atmel_AVR_Microcontroller_MEGA_and_X.html?id=TSYLAAAAQBAJ
>>
>>58349477
wrote a simple operating system with commands and a FAT12 filesystem driver in x86 real mode assembly
>>
>>58349594
I don't understand your issue. Have you read through this?
http://wiki.osdev.org/Paging
>>
>>58350027
Of course and it doesn't solve my issues at all.

Each process has it's own page tables right? well those page tables need to be dynamically allocated obviously.
Now say I needed to map a page into it, I lookup the page dir entry in the page directory, but the pde contains a physical address. This physical address could be mapped anywhere in either the kernel page tables of the process page tables, I need that virtual address to write the new entry to the page table, but I don't know how to actually get that virtual address.
>>
>>58345291

is-a relationships versus has-a relationships.

Classically, you might give the example that a CAR is-a VEHICLE. So, CAR subclasses from VEHICLE. And TIRE isn't a CAR nor is it a VEHICLE. So, VEHICLE has-a TIRE (or an array of TIRE instances, really).

Recently, there has been huge backlash against is-a relationships. Honestly, I don't know why. I've personally used inheritance and overriding member functions/methods to *great* effect, yielding elegant and easily modified codebases.
>>
>>58350100
I don't understand why you need the virtual address?
If you are allocating a new page frame (like physical memory to map to some virtual memory requested by the kernel or a process) you check the kernel's map of allocated physical memory to find out where you map the processes' new page. You update the processes' page table to reflect that new mapping because you are the kernel, that shit better be cached somewhere.
Am I still missing what you're asking?
>>
>>58347452

C++ is pointless. C++ exists to deal with larger codebases than C could realistically handle. But it's a godawful language.

Now that Java and C# exist, there's no reason to fuck with C++. For low level code, use C. For everyday programming, use C# or Java. For fucking around and never being employed, use Lisp, F#, Haskell, etc.

inb4 hurr I get paid to write Haskell!! Cool, look at the number of job openings and shut your whore mouth.
>>
>>58350375
>Am I still missing what you're asking?
Yes.
>You update the processes' page table
This bit. How am I supposed to update the page table when I can't even find out the virtual address of the page table? because the page directory contains physical addresses.
>>
>>58347999

Jesus Christ, you're still trying to get your sample code to work?

WTF, you even installed a new Visual Studio version, and you *still* can't compile a basic project? What did you fuck up with the installation?

Did you reboot after installing? (only to make sure paths took effect)

Did you verify that the library paths are correct in the IDE settings? Project | Properties | VC++ Directories, then look at Include Directories.
>>
>>58350326
is-a is better described with interfaces, not inheritance. Inheritance was always cancer. It tries to make an is-a relationship, but by inheriting parent's members it really enforces has-a.
>>
>>58349722
>Because you are using Visual Studio.

Idiot.

> Also, you should not have a function for "keeping the Window open." The program should terminate immediately as soon as it has done all of its output, so that it the shell that called it can resume control.

Obnoxious bullshit. When you launch from the IDE, it opens a console, It closes upon completion. It's completely standard, when fucking around with command line programs from the IDE, to wait for a keypress. (it's dumb to have a keep_widow_open function, though, just call getch()).
>>
>>58350385
>Now that Java and C# exist, there's no reason to fuck with C++

This is written by a child that loves his garbage collector too much and thinks templates are too complicated. Don't listen to this dumb ass.
>>
>>58350447
>This is written by a child that loves his garbage collector too much and thinks templates are too complicated. Don't listen to this dumb ass.

Fuck off, cunt. I've been writing Windows desktop software using ATL and WTL since they were released. Don't you fucking condescend to me about templates, you academic little shit.

Have you even fucking read Andrei Alexandrescu's Modern C++ Design? You comprehend Loki? Didn't think so.
>>
>>58350401
The kernel should cache every processes' page table. So that a virtual address in the kernel's page table maps to the physical location of the processes' page table. This is how basic shared memory works. Seems a reasonable way to do it.
>>
>>58350468
>This is the new /g/ version of the Navy Seal copypasta
>>
>>58350478
So basically what you're saying is I should have a separate data structure that mimics the page tables that just contains the virtual addresses of the page tables, for each process.
>>
>>58350481
>this is the new /g/ version of admitting you didn't know what the fuck you were talking about

You guys are such passive-aggressive cunts.
>>
>>58350506
>>
>>58350506
is this how all managed programmers are because lol

just for that im gonna program in C++ even harder so I don't turn out like this guy
>>
>>58350468
>>58350481
Nice idea. I'm saving it.
>>
>>58350527

You say that as if I'm a "managed programmer" rather than a C++ programmer.

Christ, how fucking stupid are you kids, anyway? You think a person develops this level of disdain for a language without using it for decades? Dumbfucks.

But hey, don't let me dissuade you from wasting your time being all 1337 with your super-hardcore C++, where everything is now completely managed for you via RAII and #include <algorithm>. C++ isn't about writing code anymore, it's about assembling pre-existing classes and functions. In other words, you're no better than front-end JavaScript monkeys, except your language isn't as powerful.
>>
>programming in using visual studio
>ask g for help
> ">Using visual studio"
>get emacs
>trying to learn emacs
>ask for help
> ">Using emacs, programming in C++"
>change to java
> ">Java"
>change to C
> ">using windows"
>switch to ubuntu
> ">Using ubuntu"

how does this story end
>>
>>58350577
I got another one for you. Call this one the "insecure web developer that is scared of C++"
>>58350587
>>
Why aren't there any good c++ IDEs?

visual studio is hell
>>
>>58350605
You eventually realize /g/ is retarded and stop listening to the NEETs here.
>>
>>58350587
YOU'RE DEAD KIDDO
>>
>>58350619
emacs + g++
>>
>>58350587
I should post this in wdg to make them all feel better about themselves
>>
File: vomit-rick.png (181KB, 544x904px) Image search: [Google]
vomit-rick.png
181KB, 544x904px
>>58350447
>Java
[spoiler]updates[/spoiler]
>>
>>58350605
Stop going to /g/ for help.
>>
>>58350668
delete this. I'm insecure about my comp sci career and need to ruin the careers of others by putting them through judgemental limbo. Let me have this
>>
>>58350587
>mad that his language doesnt earn him as much cred because he doesnt have to constantly reinvent the wheel anymore
Kek'd. By the way: <algorithm> is about *intent*, not about plug-and-playing prewritten algorithms.
Anyways, nice bait. Saved for later ;)
>>
>>58350719
Please use my javascript framework
>>
>>58350619
have you tried qt creator? it's responsive, plugin-based (you can disable any part of it you don't use to make it run leaner), and it supports multiple build systems including great first-class cmake support. it runs better on my $180 chromebook runnning arch than visual studio on my high-end windows/gaming machine
>>
>>58350501
Sort of?

When you make a new processes you create that processes' page table. This is a kernel-only resource (the process doesn't need to modify it's own page table). This is mapped to a virtual address in the kernel space. That virtual address (which points to the processes' page table) is stored in the processes' data structure. When the process asks for more memory, the kernel allocates the physical memory based on it's own data structure of the usage of physical memory. It then creates a virtual address mapping (randomly, based off the next available address in the heap for that process, whatever) to that physical page. It then uses the pointer stored in the processes' information data structure to modify that processes' page table to reflect the newly created mapping. The kernel moves the processes' page directory address to the MMU when it executes a context switch.
>>
>>58347415
I dont really understand how parsing a text file for configuration is taking up 100+ lines of code, but sure, putting some constants in a header might be a good idea. Keep in mind, spreading code out is not really ideal, if there is a bug in file X.cpp because of a constant, you shouldnt have to go hunting down the header file that declares the constant, it should be placed somewhere reasonable (e.g. X.hpp)
>>
>>58350745
It actually looks fine, will try.
Right now I'm compiling with g++ and debugging with VS and it's not fun.
>>
>>58350768
Oh yeah, forgot this.
https://stackoverflow.com/questions/20030776/how-can-i-see-a-page-table-maintained-by-each-process-in-virtual-memory-linux
This helped. Even if OP's question kind of rambled on incoherently.
>>
>>58350744
Sent ;)
>>
>>58350792
Thank you... so much... I can feed my kids now....
>>
>>58350719
>By the way: <algorithm> is about *intent*, not about plug-and-playing prewritten algorithms.

*Yawn* semantic games.
>>
dude java lol
>>
>>58350385
>>58350468
>>58350587
lol saved for copypasta some quality shit right here
>>
do you have a moment to talk about our lord and saviour fork()?
>>
File: 1458340714659.jpg (63KB, 600x788px) Image search: [Google]
1458340714659.jpg
63KB, 600x788px
>>58345258
underrated
>>
>>58350783

MSVC++ and g++ do not mix! The exceptions are handled differently and the names are mangled differently. Just use GDB and Valgrind.
>>
I literally can't figure out how to make a decent makefile. Half of the articles I found were way too simple and the rest were way too complicated and I wasn't sure what was happening.
I just want to be able to compile a simple project and input my include folder and libs as a variable
>>
>>58351905
Just use cmake.
>>
>>58346318
Its a meme.
I can understand people who grew with these editors, like my 40+ colleuges at work, but even they told me that if I want I can do the same job using notepad++.

T.freshly employed dev
>>
I don't understand how C libraries work. Someone enlighten me as if you were talking to a huge retard.
>>
>>58350385
But hurr durr i get paid to write c++ :( using 11 and soon to be 14.
>>
>>58352064
You're going to have to be a lot more specific about what you want to know.
It would require a very length explanation for the entirety of "how C libraries work".
>>
>>58352109
Basically every guide for anything related to C just says "oh and put this in your build command because otherwise it won't work"
I have no idea what the logic behind that is. Why do you need 2 files to #include? What's the difference between the /lib/ and the /include/ directories? What the fuck do headers even do?
And then all of a sudden you can put -lgtk or whatever in your build command. I don't know what the fuck is going on.
>>
>>58352118
The preprocessing swaps includes with included file content.

Trivial, pseudo example.
If u put "foo" in foo.h
And then put
#include<foo.h>
Bar

Preprocessing unit will give you
Foo
Bar and try to compile.


Except libraries are thousands of defined functions and classes that get added and you can use.
>>
File: 1474140098052.png (2MB, 3840x2160px) Image search: [Google]
1474140098052.png
2MB, 3840x2160px
>>
>>58352158
this doesn't really clear things up much, sorry.
>>
>>58351905

Are you reading the official GNU Make documentation? Because it was simple enough for me.

https://www.gnu.org/software/make/manual/make.html

>>58352118

Compilation process of a C program goes as follows:

1. Execute preprocessor statements. Anything beginning with a # character (including the #include directive, which LITERALLY just copies the entirety of a file and pastes it where the #include directive was located) is processed here.

2. Compilation to object code. This actually has multiple steps (lex, parse, optimization, code generation), but I am primarily focusing on what files come into place where. This would just be .c -> .o

3. Linking. Object code from multiple source files, as well as any library code, is brought into place here to create the final executable.

The important files to take into consideration are as follows:
1. Headers. These contain information which will need to be used by multiple source files -- namely, type declarations and function declarations. Note that we do not include function definitions here, as otherwise, every file that included this would have their own separate definition of that function, wasting time and possibly causing linker errors. Instead we forward declare, so the compiler knows, "this function exists, but it's somewhere else."

2. C Source files. This is what you work on most of the time. Ideally, one will not use one source file for everything. Functions should be separated into logical modules.

3. Object files. These are the result of compiling .c files before they are part of an executable.

4. Libraries. These are collections of object files into a nice logical archive that can be "linked" into your final program.

The header tells what is in the library. The library contains the actual compiled functions.
>>
>>58352118
Ok, to have a proper understanding of this, you need to know about the C compilation process (Note, a lot of this information is not exclusive to C).
In C, there is something known as a "compilation unit". It basically corresponds to a source file, but it's not quite as clear-cut as that, because it also involves all of the headers you included.
A compilation unit will be compiled into an object file. An object files contains all of the executable code, references to functions, global variables and what not. Once you have all of your source files compiled into object files, you "link" them together into an executable file, which you can then run.
Here is the C compilation process (slightly) expanded out, to see what's going on. Assume I have a program with two source files.
gcc -c file1.c -o file1.o # Compiling file1
gcc -c file2.c -o file2.o # Compiling file2
gcc file1.o file2.o -o myprog # Linking file1 and file2 together
./myprog


When using a library, in the simplest sense, you basically are just using some pre-existing object files and linking them into your program as well.
gcc file1.o file2.o liba.o -o myprog

When distributing libraries that you're supposed to statically link against on *nix systems, they just take a bunch of object files (.o) and put them in an archive (.a).
Think of an archive as a zip file, basically.

The header files that a library provides in /usr/include (or wherever) is just telling the compiler how it's supposed to be calling the functions that the library provides.

Thinks get slightly more complicated with dynamic linking, where the files to link are found at runtime, but I really can't get bothered getting too indepth with that.
>>
>>58352196
You are doing some starting tutorial yes?
So any functions that you use, like printf() are not "part" of the language. They are specifiend in stadart library but it's just a piece of code somebody written for you to use.
you don't need any includes if you just want to add some numbers in the memory like
int main(){
int x = 5;
x = x + 4;
return 0;
}


But you would like to see the output in the console right? Well C itself doesn't allow that, but you can use a function printf which is defined in library stdio.h
//////// stdio.h
int printf ( const char * format, ... );
/*
10 gazillion other functions
*/

//////// YOURFILE.c
#include <stdio.h> // here the ENTIRE content of stdio.h get pasted before compilation
int main(){
printf("Siemanko"); // you can use printf declared in stdio.h
return 0;
}
>>
>>58348423
rell
>>
>>58352175
Fuck me up senpai
>>
>>58352175
Roll
>>
>>58346318
vi is available everywhere. you don't need to use it for programming but you should learn it if you need to access servers and read logs etc. if it becomes your favourite editor then you might end up programming in it
>>
>>58352256
>Thinks get slightly more complicated with dynamic linking
This is literally the best part though.
>>
>>58352422
worst part*
>>
What the fuck is HTML and CSS written in

Google gives the most retarded answers
>>
>>58352449
HTML is written in HTML
CSS is written in CSS
What kind of fucking retarded question is this
>>
>>58352449
Your question makes no sense.
>>
>>58352459
I meant based on as in what programming language were they written in, it can't be just magic telling what terms to do what
>>
>>58352466
It's written in whatever your specific browser was written in
>>
>>58352466
the thing is both are just a syntax/markup language.

The program that you use to interpret this syntax can be any language. Usually C++ in the case of pretty much every web browser.
>>
>>58352466
Most of the browser engines are written in C++.
>>
>>58352466
your browser interprets the HTML/CSS. so it depends on what your browser is written in. It's probably C++ though
>>
>>58350605
You stop listening to those jobless fucks.
>>
File: hämmentynyt spurdo.png (8KB, 687x450px) Image search: [Google]
hämmentynyt spurdo.png
8KB, 687x450px
I'm having a problem with fortran. Is it possible to make a function that returns a character string the length of which gets determined inside the function itself? The function I'm trying to write gets an amount of minutes (integer) as an argument and arranges it into a string in the form of "x years, y days, z hours and j minutes", and if the amount is zero it doesn't get written into the string, which makes the length vary each time depending on the initial argument.
>>
File: uFZ2IjL.jpg (89KB, 773x960px) Image search: [Google]
uFZ2IjL.jpg
89KB, 773x960px
>mfw learning Sather-K as an OOP language in a concepts of programming class
>>
File: editors.jpg (176KB, 991x790px) Image search: [Google]
editors.jpg
176KB, 991x790px
>>58346089
>emacs and nano at the very bottom
>vim and the non-free sublime hold first and second places
rms on suicide watch
>>
>>58352575
>not learning OOP in Haskell
>>
>>58352594
haskell is a functional language
>>
>>58352613
that's just what they want you to think
>>
I can't think of anything to code. Ever. I'm never going to improve at this rate
>>
>>58352732
your own language
>>
>>58352732
Just do some shit someone has already done but don't reference off of their material until you're really stuck.
>>
>>58352449
HTML and CSS are just standardized ways of interpreting text written and performing computer instructions using them in order to allow compatibility and large scale abstraction. These aren't things you "write" they're things you "think" of and implement.
>>
>>58348423
Rolling
>>
>>58352449
Are you referring to the implementation of HTML+CSS renderers?
>>
>>58348423
Rollin
>>
>>58352227
>>58352256
>>58352260
Thank you for this, sorry for replying late. This makes a lot more sense now.
Thank you.
>>
Is it hard to get a job writing OOP-based code?

This stuff is pretty cool.
>>
File: 1482456705249.jpg (85KB, 680x680px) Image search: [Google]
1482456705249.jpg
85KB, 680x680px
>>58353239
>This stuff is pretty cool.

As much as I hate the anti-OOP shitters, don't become an OOP shitter.
>>
>>58350605
>tfw C#, Windows, Visual Studio, and employed

I may not be cool here on /dpt/, but I have money and get things done.
>>
File: 1470306362393.jpg (53KB, 696x785px) Image search: [Google]
1470306362393.jpg
53KB, 696x785px
>>58353239
>OOP
>cool
>>
>>58353258
>>58353263
What's wrong with it?

At least for me, the whole object hierarchy thing is pretty good for making a program actually make sense.
>>
>>58353283
>hey guys what if everything wuz objects?
>>
>>58353332

What if everything was functions?
>>
>>58353350
fortunately Haskell doesn't make this mistake
>>
>>58353373
Doesn't python already have a reverse method?

Why are you doing this?
>>
>>58353387

I dont want to use reverse
>>
>>58353392
You're a silly person.
>>
>>58353399

no I'm exercising
>>
>>58353359

Haskell is still garbage.
>>
>>58353438
collected
>>
>>58353455

Nice repeating digits.
>>
>>58353483
Why do you only shitpost now?

You used to be an okay poster.
>>
>>58348423
Rolling
>>
>>58353505
This is stupid easy, but i can make it more challenging.
>>
File: lenakey.png (379KB, 512x512px) Image search: [Google]
lenakey.png
379KB, 512x512px
>>58353493

When I try to post about what I'm working on, nobody is interested.
>>
>>58353573
>img
looks dumb
>>
File: lenart.png (433KB, 512x512px) Image search: [Google]
lenart.png
433KB, 512x512px
>>58353599

That's why I shitpost. :^(
>>
>>58353373
python's range function 'start' argument is inclusive, and the 'stop' argument is exclusive, which means if your string is "hello" range will produce [5, 4, 3, 2, 1]
>>
I was using
.innerHTML = .innerHTML + 

to append to the text of a link and was recommended to use insertAdjacentText instead.
Now I have to not only append but clear part of original text, I'm guessing I can't use this method then? Is innerHTML the only way?
>>
C++

I initialize vector in a function, fill it, then return.
How do I work with returned vector in another function? For example, I have to work with all objects there, so I make an iterator. I do know how to do it, yet I can't make it work if it's returned by another function.

If it is possible, could I make it "extern std::vector ... " ?
>>
Are C# generics runtime?
>>
Hey /dpt/ you know where I can learn about inverse kinematics?
>>
>>58353917
No, they're monomorphed during compile-time.
>>
>>58353805
#include <iostream>
#include <vector>

using std::vector;
using std::cout;
using std::endl;

vector<int> foo(){
vector<int> vec = {1,2,3};
for(auto el : vec)
cout << el;
return vec;
}

void bar(vector<int> vec){
for(auto el : vec)
cout << el;
}

int main(){
auto v = foo();
cout << endl;
bar(v);
return 0;
}

that returns
123
123

What exactly is your problem?
>>
>>58354083
I went fully retarded by not being able to interpret what my IDE says to me while compiling.

Thank you.
>>
reti in the end of the interrupt puts me at $0000, i.e. resets ATmega128.
I have SP initialized, but reti still puts me to $0000.
What else can be done?
>>
>>58354181
you wat
>>
>>58345324
Even if Jamar was wrong, he was still the smarter person. Jamar presented an argument, Pajeet merely parroted authority.
>>
>>58354155
just pay attention you are copying these vectors every time you pass them by value.
>>
>>58354202
Regardless, Pajeet will be able to sleep in his nice, warm cubicle while Jamar will have to sleep in the latest car he stole.
>>
>>58346318
Emacs is like clay. It moulds itself into what fits you better. You want a code browser? You just add one in. You don't want one? That's fine too.

Also, when does MSVS allow me to edit files on my computer as a different user?
>>
>>58354214
>implying Jamar won't be kept warm by Pajeet's gf
>>
>>58354241
Pajeet's gf is his workstation.

So yes, Jamar will be kept warm by Pajeet's stolen workstation.
>>
>>58348059
Wait, that's all a Nomad is?
A generic tagged union?
>>
>>58353616
OneSlowGTP has been a horrific poster for almost 3 years.
>>
>>58348082

They're a good practice when you're making objects that might accrue complexity over time.

If you just want to shove some data from a database to a frontend with no logic in the object, just use a DTO, and make all fields public and immutable.
>>
>>58348188
Considering that the only one that costs money gives you a lengthy trial period, just try them all out.

I can't really like NetBeans myself, but I like Eclipse and IntelliJ.
It's a personal taste kind of thing.
>>
>>58354252
No, he's saying exceptions form a monad
>>
new thread
>>58354286
new thread
>>58354286
new thread
>>58354286
new thread
>>58354286
>>
>>58354252
Nomads are just nomoids in the category of endofunctors, what's the problem?
>>
>>58348082
why would you made X private if you do getX() and setX() later? just for the sake of using private keyword?

This is a bad practice because your clients shouldn't be awared of internal state of your class/module nor be able to modify the plain data inside it.
>>
New thread:

>>58354287
>>58354287
>>58354287
>>
>>58350443
If you use MSVS, then you just start with Ctrl + F5, and it's all right...
Learn how your tools work you fucking retard.
>>
>>58350605
You start using a serach engine that respects your freedoms instead of shitting down /g/ with helpdesk requests.
>>
>>58350605
The only /dpt/-approved language used to be C. Now we can't even agree on that.

And in case you were wondering, we've never agreed on editor/environment/OS.
>>
I'm interested in learning some low-level language. Wich one is better, C or rust?
>>
>>58352037
You can do the same thing with same old Notepad.
But you wouldn't, would you?
Notepad++ gives you some extra features that makes things better.

The distance from Vim and Emacs to Notepad++ is much larger than that of Notepad++ to Notepad.
>>
>>58354293
>>58354309
Congrats fagtrons
>>
>>58354302
Nomoid is something that is like a nomad.
So all you're saying is that a Nomad is something that is like a nomad but is a kind of endofunctor.

The whole fucking meme is retarded and is what happens when you care more about being clever than about being clear.
>>
>>58354375
Depends how you take your pronouns.

>>58354415
If you get this worked up about nomoids, you'll never make it to zygohistomorphic prepromorphisms.
>>
>>58354415
A monoid has an identity element (I -> M) for a + operation (M x M -> M)

A monad has a unit operation (I -> M) and a join operation (M x M -> M)
>>
>>58354472
>start rambling about monads and monoids
>conversation is clearly about nomads and nomoids
>>
>>58354482
A nomad is just a monad with the n and m swapped around
>>
>>58354486
A nomad (Greek: νομάς, nomas, plural νομάδες, nomades; meaning one roaming about for pasture, pastoral tribe) is a member of a community of people who live in different locations, moving from one place to another. Among the various ways nomads relate to their environment, one can distinguish the hunter-gatherer, the pastoral nomad owning livestock, or the "modern" peripatetic nomad. As of 1995, there were an estimated 30–40 million nomads in the world.
>>
>>58348110
>what is encapsulation
>>
>>58354181
Go ti /diy/
Thread posts: 329
Thread images: 25


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