[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: 324
Thread images: 29

File: clang.jpg (563KB, 720x1024px) Image search: [Google]
clang.jpg
563KB, 720x1024px
Old thread: >>59025931

What are you working on, /g/?
>>
ruby is a trap
>>
>>59030681
>OTOH, are you really saying that C++ should be given leeway on how late it added lambdas because LC was invented in the 1930s? How does that make sense?

I was only alluding to the lambda calculus because he specifically mentioned lambdas being around for 80 years, which is really the only way to make sense of that comment. C++ wasn't "late" in adding them. Like you said it's not a functional language and they didn't go mainstream in imperative languages until the mid 90's, and C++ has the additional burden of being a conservative and heavily standardized language with a long procedural lead time for being updated. All things considered it was fairly quick.
>>
Trying to learn to Microcontroller. My program isn't working and idk why.

 
#include "SevSeg.h"
SevSeg sevseg; //Instantiate a seven segment controller object

void setup()
{
#include <p32xxxx.h>

//Define segment pins
#define SEG_A (LATBbits.LATB8) //LED pin 7 to MC pin 17
#define SEG_B (LATBbits.LATB7) //LED pin 6 to MC pin 16
#define SEG_C (LATBbits.LATB2) //LED pin 4 to MC pin 6
#define SEG_D (LATBbits.LATB1) //LED pin 2 to MC pin 5
#define SEG_E (LATBbits.LATB0) //LED pin 1 to MC pin 4
#define SEG_F (LATBbits.LATB9) //LED pin 9 to MC pin 18
#define SEG_G (LATBbits.LATB10) //LED pin 10 to MC pin 21
#define SEG_DP (LATBbits.LATB3) //LED pin 5 to MC pin 7

//Define control pins
#define CONT_1 (LATBbits.LATB11) //LED1 pin 8 to MC pin 22
#define CONT_2 (LATBbits.LATB13) //LED2 pin 8 to MC pin 24
#define CONT_3 (LATBbits.LATB14) //LED3 pin 8 to MC pin 25
#define CONT_4 (LATBbits.LATB15) //LED4 pin 8 to MC pin 26

byte numDigits = 4;
byte digitPins[] = {CONT_1, CONT_2, CONT_3, CONT_4};
byte segmentPins[] = {SEG_A, SEG_B, SEG_C, SEG_D, SEG_E, SEG_F, SEG_G, SEG_DP};

sevseg.begin(COMMON_CATHODE, numDigits, digitPins, segmentPins);
sevseg.setBrightness(90);

TRISBCLR = 0xFFFF; //RB0...RB13 and RB15 set to output
TRISASET = 0x0001; //RA0 set to input
LATBCLR = 0xFFFF; //RB0...RB13 and RB15 set to 0
}

void loop()
{
int sensePin = A0; //read analog voltage off RA0 (MC pin 2)
int analogVal = 0; //analog voltage value read from pin 2
int voltageVal = 0;
int dBVal = 0;

analogVal = analogRead(sensePin);
voltageVal = analogVal*(3.3/1024);
dBVal = 20*log10(voltageVal);

sevseg.setNumber(analogVal, 3);
delay(5000);
sevseg.setNumber(dBVal, 3);
delay(5000);
}
>>
newtype is cool
GeneralizedNewtypeDeriving is cool
>>
>>59030705
C

Can you explain to me what pass by value is?

The arguments passed to a function is copied? Then how are the arguments modified or changed by the functions?

I am struggling to understand this.
>>
File: Selection_150.png (63KB, 574x970px) Image search: [Google]
Selection_150.png
63KB, 574x970px
C# is slow as molasses. Why can't it be as fast as Assembly?
>>
>>59030774
ever heard of pointers?
>>
>>59030774
>Then how are the arguments modified or changed by the functions?
pass a pointer value
pass a value that contains pointers
>>
>>59030774
>The arguments passed to a function is copied?

yes

>Then how are the arguments modified or changed by the functions?

The local copies are changed; the originals aren't.
>>
>>59030774
The copy is changed.

Basically if you pass-by-reference, any changes that you make to the parameters will effect the variable that was sent. In pass-by-value, any changes that you make inside your function will be ignored by the outside.

Of course in C there is no such thing as pass-by-reference, but it can be emulated by passing the pointer.
>>
>>59030786
>Microshit in charge of good software
>>
rate my type deduction algorithm:

---------------
Array Byte
>>
>>59030797
this is not true for every value passed by value
>>
>>59030800
>Basically if you pass-by-reference, *any* changes that you make to the parameters will effect the variable that was sent.
wrong
see >>59030813
>>
>>59030801
C# doesn't get enough justice for being that slow.
>>
>>59030774

Pass by value means that if the function mutates its parameter, it's not reflected back to the caller. That is to say, the value of a in f(a) is the same before and after the call.
>>
>>59030822
I see it; it doesn't really clarify anything. I don't doubt that there are some subtleties to C[++]'s parameterization, but you're not exactly giving me much to work with here.
>>
You all just confused me more
>>
>>59030827
>That is to say, the value of a in f(a) is the same before and after the call.
So then how does a function change the value you pass to it?
>>
>>59030780
>No one here codes in assembly
Terry Davis does
>>
>>59030827
wrong
see >>59030791
there's a notable difference between these two definitions: java and c# are both pass by value (i.e. they have no references) but you can still modify parameters with changes that are reflected in the caller to some extent. every object is addressed by the pointer, so the pointer value is passed.
this does not mean that you cannot mutate passed state without it being mutated in the caller.
>>
>>59030848
int main() {
int a = 0;
byValue(a);
// a is still 0
byReference(a);
// a has been changed to 1
}
void byValue( int n) {
n += 1;
}
void byReference( int* n) {
(*n) += 1;
}
>>
>>59030753
Looks right to me off hand just reading it.
Check your MC and make sure the pins are correct. IIRC some MC only have RO pins or +5/-5 only pins. Shit like that.
>>
>>59030876
int* is not a reference you faggot it's a pointer
>>
>>59030876
wrong
>>
File: fc7.jpg (34KB, 375x306px) Image search: [Google]
fc7.jpg
34KB, 375x306px
Scala
>>
I learn Unity and i try do an AI character what is do basic things. My currently problem is that, why go trough the plane my charcter (unity-chan) after i give her a rigidbody. I know the gravity but i dont understand why dont stop on the top of plane collider.
>>
>>59030891
"pass by reference" is a language-agnostic term. Stop trying so hard to be pedantic, it just looks desperate.
>>
>>59030903
https://www.youtube.com/watch?v=uiJycy6dFSQ
>>
>>59030908
just write proper comments and code
>>
>>59030894
How helpful. Or you could not be a jack-ass and tell him that I forgot a & and a return 0.

But, hey, you never tried so you never failed.
>>
>>59030908
it isn't, anon
you'll find that even in the c++ world "pass by references" refers to references, not pointers

this whole fucking bullshit confusion stems from the fact that some retard (i.e. the people that wrote the java spec) thought it was a good idea to use the word "reference" and "pointer" interchangably.
>>
>>59030876
So a was passed as a pointer value and the pointer value was modified, correct?
So you can't tamper with a variable or address in a function, only the value itself?
>>
>>59030922
i could also expect him to read one of the 20 other posts in this thread explaining what "pass by reference" means
>>
>>59030934
No, it stems from the fact that the C specification uses the terms reference when they mean pass by pointer value aka pass by address.
>>
>>59030920
I'm not the person who posted that.

>>59030934
Most of the rest of us can juggle in our head that terms have different shades of meaning in different domains and levels of discussion, it's not that confusing.
>>
>>59030943
"pointer value" is ambigious in this context, but i'm pretty sure you used it correctly.
from what i can tell your understanding is correct.
>>
>>59030943
Yes
>>
>>59030934
Nice fairy tell you made up. Next time try using English instead of the language that only you speak.
>>
File: 1474219799870.jpg (26KB, 499x499px) Image search: [Google]
1474219799870.jpg
26KB, 499x499px
>>59030966
you're still retarded
>>
guys, let me clear this all up for you:

Typically, for references to data stored in memory on a given system, a reference is implemented as the physical address of where the data is stored in memory.

so basically, pointers are a subset of references!
>>
>>59030945
He did and didn't understand. Then he read my post and did understand. Funny how writing things in terms of concepts and functionality is more effective than being pedantic about things that aren't even really true.
>>
File: fa8.jpg (54KB, 500x500px) Image search: [Google]
fa8.jpg
54KB, 500x500px
Assembly
>>
What language will get me the highest paying jobs? And why is it Java.
>>
>>59030985
A reference may also be a remote object reference, so it doesn't necessarily equate to an address.

I would argue that pointers are distinct from references. Referencing and dereferencing objects are usually implicit (although may be explicit when using stuff like CORBA). Pointers are simply variables that hold memory addresses, i.e. an int pointer holds the address to an int object.
>>
>>59030957
wrong
the c standard is actually quite precise in that regard. the following is the only quote relating both "referencing" things and "pointers":
"A pointer type may be derived from a function type, an object type, or an incomplete
type, called the referenced type. A pointer type describes an object whose value
provides a reference to an entity of the referenced type. A pointer type derived from
the referenced type T is sometimes called ‘‘pointer to T’’. The construction of a
pointer type from a referenced type is called ‘‘pointer type derivation’’"
there's no mention of "references" or "pass by reference".
>>
>>59031014
>What language will get me the highest paying jobs?
COBOL at expert level
>>
>>59031015
>so it doesn't necessarily equate to an address.
this is what was written you fuckhead
>>
>>59030979
wrong
"The reference values (often just references) are pointers to these objects, and a special null reference, which refers to no object"
http://docs.oracle.com/javase/specs/#4.3.1
>>
>>59030999
that's great for you, anon
i'm proud of you
>>
File: r.png (383KB, 2533x2195px) Image search: [Google]
r.png
383KB, 2533x2195px
Prove me wrong
>>
>>59031070
posting it 2 times wasnt enough?
>>
>>59031079
>2 more posts
where
>>
>>59031070
1.
i haven't ever heard someone call a specific language *the* first programming language

2.
assuming that this is implying that most code is just glue code and most programming is just code monkeys glueing libraries together, this is correct
that being said, even when writing glue code there's a lot more to writing code than "knowing your libraries".

3.
i've never heard someone make that distinction before.
why is a specific choice of terminology an "unpopular opinion"?
>>
>>59031070
>Hobby guitar players are guitar players, paid guitar players are "guitarist"
>>
>>59031070
>A learner should be able to decide his "first programming language" by judging what the language offers and the goal of the language.
Hahaha. What fantasy world does this person live in? Expecting a beginner programmer to know what any of that even means, much less be able to judge such things.

Human beings are wired to learn spoken language developmentally as their brain develops (in fact if they don't they are never able to learn language at all; an unfortunately well-documented phenomenon thanks to the Nazis). Trying to create an analog between the way the language center of the brain develops and how various flavors of formal math are learned is pants-on-head retarded.

The use of buzz-phrases, the coddling language, and the sheer and utter ignorance of this image makes me legitimately believe it was written by an SJW.
>>
>>59030859

f(&a)

>>59030869

Java and C# are pass by value because you cannot change what object is being pointed to. You can change the contents of said object, however. The "value" is the pointer, not the object.
>>
>>59031128
>Want a job that writes libraries
>Realize writing libraries take knowledge and research above a bachelor's
>No money for Masters and Degrees
>Reduced to glueing libraries together for the rest of my life

Is this purgatory?
>>
>>59031132
giving him the benefit of the doubt, i'm assuming the author was suggesting that others make that decision for him after asking for his focus instead of telling everyone to learn the same programming language.
>>
>Start working as Java developer for company
>Get handed a fucking Macbook
>Clone the repository you'll be working in
>See this

WHAT DO /dpt/
>>
Can someone explain to me how to refresh a Datagrid from a different thread, specifically for filtering.
It crashes every time something interrupts it but any form of locking or waiting i could think of and find online didn't work
>>
>>59031128
>i haven't ever heard someone call a specific language *the* first programming language
Python/Javascript. Find one book that assumes you know any other language

>>59031131
If you want to play guitar, play it. Money should not make you play guitar

>>59031132
> Expecting a beginner programmer to know what any of that even means.
Your fault you are not explaining what you offer
>>
>>59031167
So people who develop programs on the side for free or hobbies are not developers?
>>
>>59031150
correct
i was specifically getting at
>Pass by value means that if the function mutates its parameter, it's not reflected back to the caller.
though, which is incorrect, because there exist parameter mutations which are reflected back to the caller
>>
>>59031174
They are programmers, they are not mere developers
>>
>>59031157
>Macbook
Quit and never go back.
>>
>>59031184
Dictionary.com tells me you are wrong.
>>
>>59031182

Well it isn't pointing to a different object, so I'm somewhat correct... just depends on how you interpret that statement.
>>
>>59031187
But I'm fresh out of college and this is literally my first job
>>
>>59031132
Got any others things besides your memes?
>>
>>59031152
i'm not from the us, so i can't judge that.
from my experience in europe, a math oriented cs bachelor degree (i.e. not a cs degree that's just an se degree in disguise) already qualifies you to work on a bunch of interesting stuff.
sadly for people that already learned most in regards to se, cs degrees that focus less on maths and more on se are taking over.
>>
>>59031203
Then suck it up for 1~2 years for muh working experience and then leave and never come back. That was what I did as well.
>>
>>59031182
fyi, beginning every other post in a thread with 'wrong' when you're later willing to backtrack and concede hues of ambiguity in the subject you're discussing makes you look like a sperg.
>>
>>59031157
be happy that it isn't spring
https://docs.spring.io/spring/docs/current/javadoc-api/
see "all classes", left hand side
>>
>>59031157

>Start working for Wendy's as a Senior Chef
>Use CMake
>okay.jpg
>Need to generate VS2013 solution
>507 projects, 8Msloc, and 6 hour full rebuild

Get on my level.
>>
>>59031215
>Then suck it up for 1~2 years for muh working experience
Another guy here. I did the same.
Learning to deal with sub-par code and messy projects is a worthwhile skill.
>>
>>59031208
The thing is developing libraries require higher education above a degree. So either you rise high enough to be management or you go and have further studies. Being stuck in the lowest rung in a R&D is hell well.
>>
>>59030876

Your code isn't working for me
>>
>>59030876
You forgot the REAL way to pass variables

int main() {
int a = 0;
byValue(a);
// a is still 0
byMemes(a);
// a has been changed to 1
}
void byValue( int n) {
n += 1;
}
void byMemes( int& n) {
++n;
}
>>
>>59031198
i agree, i did not see the other possible meaning of that statement
>>
>>59031228
But anon

IT IS
>>
>>59031225
W R O N G !
>>
>>59031215
>>59031236
>just stick your condomless dick in this std-infested whore
>promise me your dick won't fall off in a month or two
>if she gets pregnant you won't get blamed i promise
>>
>>59031244
>C++
kys
>>
>>59031239
>The thing is developing libraries require higher education above a degree.
i'm not so sure about that, definetly depends on the kind of libraries you end up writing.
i've got a few friends that now work in google research and spend part of their time writing libraries for related work with only a math focused bsc in cs, so it definetly isn't impossible.
>>
>>59031272
See it as an exercise in patience.
>>
>>59031275
i don't want to kiss you
>>
>>59031275
>Your language which can literally natively include and compile my language is worse than my language!!!!
>>
>>59031257
welcome to org.springframework.test.web.client.AbstractRequestExpectationManager.RequestExpectationGroupHell friend
enjoy your stay
>>
>>59031289
It's not your language, it's Bjarne's language, you stupid frogfuck
>>
>>59031289
>include and compile

Compile this motherfucker
int main(void)
{
int new = 2;
}
>>
File: 1485704145402.jpg (58KB, 550x733px) Image search: [Google]
1485704145402.jpg
58KB, 550x733px
Suggest me a book/article on programming Windows Services (Daemons) in C.
>>
>>59031320
he's referring to extern "C" { ... }
ya dingus
>>
>>59031328
lewd
>>
>>59031328
This is a blue board
>>
>>59031329
typedef friend, class int;

freind namespace(class catch);
>>
>>59031320
>call file anonisafucktard.c
>it compiles using a c++ compiler because it's got a .c extension

B T F O
>>
>>59031328
Semen Daemon
>>
>>59031349
I fucked that typedef up
typedef int friend, class;
>>
File: 6303706.png (137KB, 500x674px) Image search: [Google]
6303706.png
137KB, 500x674px
/dpt/ should I write my API in PHP or in Node.js?

Can Node.js into multithreading?
>>
>>59031378
will your api be concurrent? if so, use neither.
>>
>>59030890
My real issue it I know barely anything about programming and my MC is a PIC32 on the chipkit DP32 board. I think this board is supposed to kinda be some fusion between arduino and PIC that's supposed to make stuff a little more accessible but all it's doing is just confusing the shit out of me.

The chipkit board pin numbers don't match the register pin numbers and that's throwing me off. Like the RB2 register is pin 6 on the PIC and pin 13 on the board. All the example code is arduino example code is like digitalWrite(13, HIGH) and while that code usually works it's less intuitive.

I doesn't help that I may be missing libraries. I'm not entirely sure what I need. I'm using mpide which is basically a reskinned arduino IDE. I should probably be using MPLABX but I don't have a PICkit3.

I must be an idiot or something because I've been trying, on and off, over a period of months to get some very basic programs working. I can't even get a blink programming working when trying to use basic register manipulation.
>>
>>59031351
Try it then :^)

> C++ linker will not manage to link it because main is declared wrong
>>
How is D lang?
>>
>>59031405
D stands for dead.
>>
>>59031405
D lang stands for Dead Language
>>
>>59031405
Dead
>>
File: andrei.jpg (104KB, 800x1067px) Image search: [Google]
andrei.jpg
104KB, 800x1067px
>>59031412
>>59031413
>>59031414

andrei is crying somewhere because of you 3
>1 second apart, 1 post id apart
>>
>>59031412
>>59031413
does 412 show a later post time than 413 for anyone else too?
>>
>>59031378

Given the choice between only those two, I'd take Node.js every time. If I wanted proper concurrency, I wouldn't use either. Node.js is locked into a single thread, although it can easily do concurrency through multiple processes.
>>
>>59031385
Should I make it in C/C++ then?

I don't know Java or C#
>>
>>59031429
>posts can now time travel
>>
>>59031429

412 has a timestamp of 4:34:46
413 has a timestamp of 4:34:45

Sounds like a race condition.
>>
>>59031405
slower than Assembly, like all the other shit languages
>>
>>59031435
neither
c# is ok-ish for concurrency, although it's likely more enjoyable to work with a functional language that cares about concurrency (e.g. erlang, possibly even haskell) or go
if your language or its standard library doesn't implement CSP primitives, it's meh for concurrency at best (i don't like c#'s "event loop" approach either, that shit's just nodejs callback hell in disguise)
>>
>>59031348
>>59031353
>>59031338
degenerates
>>
>>59031396
If you are working with MC, work with something well known and with plenty of resources online. There are a dozen reasons why you program isn't working and there is no way to diagnose it over this thread. Just buy a rasberry pi or something.
>>
>>59031272
When are you "entry level", something an STD-infested whore is your best choice. It is either that or being on welfare.
>>
File: 1484741278372.jpg (79KB, 678x960px) Image search: [Google]
1484741278372.jpg
79KB, 678x960px
>>59031272
>Tfw even STD infested whores won't even let you fuck them without paying
>>
>>59030705
How would you guys optimize runtime?

I have a simple pangram homework that I finished but it runs at 0.0133 seconds and the quickest guy in the class' code runs at 0.0059 seconds. How would I optimize my code?
>>
>>59031576
Learn assembly and beat the fuck out of that guy's time.
>>
>>59031576
post code
>>
>>59031585
public class hw1 {
public static boolean pangramChecker(String s){
ArrayList<Character> alphabet = new ArrayList<Character>();
if(s.length()<26){
return false;
}
for(int i=0; i<s.length(); i++){
if(!alphabet.contains(s.charAt(i)) && Character.isLowerCase(s.charAt(i))){
alphabet.add(s.charAt(i));
}
}
return (alphabet.size()==26);
}
}
>>
>>59031595
step 1)

write it in a language that isn't Java
>>
>>59031595
christ
>>
>>59031608
>>59031584

Normally I would write it in C++ but I'm forced to write it in Python or Java. Anecdotally, I've seen that Python runtimes are shittier than Java, so I used Java.
>>
>>59031595
what the fuck is that
>>
>>59031635
use an array of 26 integers all initially set to 0, rather than a dynamic array of chars
>>
>>59031595
Your code has a lot of lines that ensures that the sentence fulfills basic standards before the code runs. To make it run faster, remove those failsafes and just assume that what you are checking will not throw you an error. Also >>59031655
>>
How do pointer arrays work?

Does the pointer set each element as a different address and increments the address?
>>
File: probably not a problem.png (63KB, 943x906px) Image search: [Google]
probably not a problem.png
63KB, 943x906px
I'm trying to figure out language parsing.
>>
>>59031595
Well first off initialize your ArrayList to size 26 so it doesn't re-initialize the underlying array mid-program (ArrayList by default will contain 10 entries and will double its capacity each time it needs to grow, so it'd re-size twice in a proper pangram).

You can also avoid the linear loop per check that .contains is doing by mapping directly using the key-code of the character. If you really want to be cute you can back the bits in an int.

    public static boolean pangramCheckF( String s) {
if(s == null || s.length()<26){
return false;
}
int alphabet = 0;
OfInt it = s.chars().iterator();
while( it.hasNext()) {
int n = it.nextInt() - 'a';
if( n >= 0 && n < 26) {
alphabet = alphabet | (1 << n);
if( alphabet == 0b11_1111_1111_1111_1111_1111_1111) {
return true;
}
}
}
return false;
}


I'm not sure what the fastest way to iterate over a string's characters. You can test out a bunch of different ways.
>>
>>59031743
use Parsec
>>
>>59031770
I don't write Haskell.
>>
>>59031655
>>59031680
>>59031753

I see, thanks for the advice
>>
File: 1432140680715.jpg (19KB, 218x175px) Image search: [Google]
1432140680715.jpg
19KB, 218x175px
>>59030705
>looking for a concurrent stack
>find Boost has a nice lockfree stack
>have to add megabytes of external library (extracted just the stack and dependencies using bcp) just to use one single data structure
fuck
>>
>>59031808
use Assembly
>>
>>59031405
Niche but alive.
>>
>>59031741
It's just an array of zeroes. You then set them individually to point to to memory somewhere in no specific arrangement.
>>
>>59031741
>pointer arrays
A pointer to an array, or an array of pointers?
>>
>>59031808
Use Go.
>>
Is this http://cprops.sourceforge.net/ good alternative to gnomes glib?
>>
how am I suppose to comment a class that its only purpose is to represent an object? Eg


/*
*What should I write here?
*/
class Person {
String name;
int age;
String address

//sets and gets below
}
>>
>>59031927
Why do some people insist on using these bloat libraries?
>>
>>59031963
If code is self-commenting, don't bother. If someone's forcing you, just write something like
/** Represents the personal information of a person. */
class Person {
String name;
int age;
String address;
}
>>
>>59031963
>What should I write here?
Explain why the structure allows for negative age.
>>
>>59032024
what if he's using java <= 7
>>
>>59031989
No point in implementing basic data structures yourself.
It's nice to have thread header that abstract posix and windows.
Don't really care about the rest but at least glib is maintained and production tested unlike the alternatives.
>>
>>59031595
you're like little baby
watch this
http://paste.debian.net/915777/
>>
>>59032052
>malloc without free
>>
Array[] = *Array
Array = &FirstElement
*Array = ElementValue

I think my understanding here is wrong

Right?
>>
>>59032062
shhh, it doesn't matter here
>>
>>59032062
>freeing when it clearly isnt necessary
>>
>>59032084
Freeing is always necessary.
>>
>>59032084
>not wanting you test code pass on valgrind
If you programming in C so much why would you do it?
>>
>>59032065
Arrays and pointers are not the same thing. You can use array notation as syntactic sugar for pointer arithmetics, but you can't modify an array reference the same way you can modify a pointer.
>>
>>59032089
fuck off, freetard
>>
>>59032052
>using strchr inside a for loop when it is entirely unnecessary
>allocating way more memory than is necessary
I guess it's technically O(n) since the outer for loop has a constant length, but I bet my Java program runs faster than this naive thing.
>>
>>59032108
eh, why wouldn't i call strchr for each character in the alphabet?
>>
Gofags on suicide watch: https://github.com/golang/go/issues/19182 .
>>
>>59031993
bool gender;
>>
>>59032179
I think you mean

float femininity;
>>
>>59032163
strchr is internally iterating over the length of the given string until it finds the character (or the entire length if it's not there). By calling strchr 26 times you're iterating over the length of the given string 26 times. Whereas instead if you iterated over the given string and added the character you found to seen array you would only have to iterate over the string once.
>>
>>59032179
>>59032195

enum Gender {
Male,
Female
}
>>
>>59032052
#include <stdio.h>

int main(int argc, char *argv[]) {
char *s = argv[1];
unsigned int seen = 0;

while (*s) {
char c = *s;

if ('A' <= c && c <= 'Z') {
c += 'a' - 'A';
}

if (!('a' <= c && c <= 'z')) {
s++;
continue;
}

unsigned int mask = 1U << (c - 'a');
seen |= mask;

s++;
}

if (seen == ((1 << 26) - 1)) {
printf("pangram\n");
}

return 0;
}

lel
>>
>>59031524
I got it working. The delays in the loop and a missing sevenseg.refreshDisplay() command were the issue. I wanted to make it alternate between volts and dBV every 5 seconds or so but I guess I'll have to find a better way. Seems like the displays need to be refreshed continuously and adding delays screws around with that.
>>
>>59031378
V8 has huge speed advantages over most PHP frameworks and JS is a better designed lang due to the fact that all it's bullshit had to be fixed for frontend devs to use it.

You can't multithread with the default features of Node.js, but there are libs for it.
https://www.npmjs.com/package/multithread
>>
>>59032195
i think you mean
struct Gender{
uint8_t masculinity;
uint8_t femininity;
uint8_t alpha
};
>>
>>59032207
There are more than 2 genders you sexist fuck.
>>
>>59032207
public interface IGender {
Sring getName();
String getSingularPronoun();
String getPluralPronoun();
[..]
}
>>
>>59031378
THICC
>>
>>59031475
Are you implying all languages which aren't assembly are slower than assembly (which isn't actually a language), or are you implying that only the shit ones are slower?
LLVM IR is equally fast in theory and faster in practice.
>>
>>59032230
That's better. Though obviously checking for completion outside of the loop instead of the inside is a trade-off if the user ever enters obnoxiously long strings.
>>
>>59032179
>>59032195
>>59032207
assert Triggered
>>
>>59032235
Does your MC come with an built timer function?
>>
>>59032283
good point; you can always terminate early in this case ;P
>>
>>59032307
Yeah but lord only knows how long it'll take to get that working.

I might just add a button instead and just toggle between what I want displayed.
>>
Is there anyway to deal with webexceptions without encapsulating every call in a trycatch
>>
>>59032230
alright, im sure thats way faster than mine
ur not winning any points on presentation tho
>>
>>59032355
Catch exceptions at a more centralized level closer to the conceptual level of user interaction?

I mean that's kind of why they exist; so you don't have to check for errors at every call.
>>
>>
>>59032507
Looks like a broken Sierpisnki triangle
>>
File: 1486428273178.png (473KB, 600x564px) Image search: [Google]
1486428273178.png
473KB, 600x564px
How to make a process in Windows not consume more CPU resources than specified in a threshold, which also varies from the total CPU load?

In C.

Spoiler (if I had an opportunity to use one): or, more preferably in vb, so I could just put this shit into a vbs file.
>>
>>59032576
>How to make
Hey Rakeesh, how you doing?
>>
>>59032583
Doing good, sir!
t. Ivan
>>
Ok so I've been learning C++ for a few months now and I've yet to encounter anything too difficult, up until today when I got to OOP stuff

Can someone explain virtual members/functions to me? What are they used for?
>>
>>59032609
Well, comrade, you might want to check your slav books about the foreign language of spies. You're making newbie-ish errors
>>
Halp, I'm in over my head.
When dealing with (modding one to suit needs) a chat client for many clients, what would be the best way to store messages sent to a currently offline user? Preferably with minimal use of the server, as the chat is to be integrated in an already functioning program and server access has to be kept to a minimum.
>>
>>59032613
Say you want to make a game. A game has a bunch of actors, all the various pieces of the game that interact with each other to make up the game.

Now a game Actor has two primary methods: their behavior for a given frame (say, a function called "frame" that takes the InputState as a variable), and a how the actor is drawn (say, a function called "draw" that takes the GraphicalContext" as a variable).

The best way to implement this system is to have a class named Actor with virtual methods: frame and draw, then each type of Game piece would override those methods so the GameEngine can call the virtual method for each active Actor and they will behave appropriately without having to know exactly what KIND of actor it is.
class Actor {
public:
virtual void frame( InputState &is) {}
virtual void draw( GraphicalContext &g) {}
}
class MainCharacted : public Actor {
protected:
int x, y;
public:
void frame(InputState &is) {
if( is.pressingLeft())
x -= 1;
if( is.pressingRight())
x += 1;
}
void draw( GraphicalContext &g) {
g.setColor( 0x77AA77); // Greenish
g.drawRectangle( x-10,y-10, 20, 20);
}
}
>>
>>59032623
What is the mistake, tell me? What is the proper way to write this?
>>
File: whichone.png (237KB, 747x524px) Image search: [Google]
whichone.png
237KB, 747x524px
If you could only save one programming book for future generations, what would it be?
>>
>>59032710
Neither of those books
>>
challenge is kill
new challenge?
>>
>>59032576
You'll need to get the current cpu usage from Windows through an API somehow, then control your sleep() time through a PID feedback loop.
>>
>>59032694
I see.

What's the benefit over using a regular structure pointer? If you are defining the frame/draw members anyways in each Actor?
>>
>>59032778
Such a worthy reply, like people need air to breathe, so they won't die.
>>
File: 1486040411286.jpg (41KB, 600x600px) Image search: [Google]
1486040411286.jpg
41KB, 600x600px
>>59032207
enum has a minimum of 1 byte so you're technically allowing for more than 2 genders.
2/10 at least you tried.
btw curly brackets belong on a new line.
>>
>>59032797
It is a framework. You have no idea how many Actors are going to make up your game. But as long as you have a class, you can always make more actors and then have methods to overwrite the base methods to your purposes. As opposed to making an Actor from scratch.
>>
>>59032725
well then which one? pic was just a suggestsion
>>
>>59032797
You can have a list of Actor pointers/references and call draw() on each of them without having to know what type of Actor they really are (MainCharacter, Enemy, etc)
>>
>>59032797
It's also good for keeping all of a particular Actor's code in a single place rather than spread all over.

I mean if you were allergic to the keyword "virtual", you could initialize Actors with a function pointer to their special draw/frame function, but that's what the compiler is doing for you anyway.
>>
>>59032824
Oh okay

I think I just need practice with OOP desu
>>
>>59032816
idk how to get the cpu time usage but I was just pointing out the PID loop.

anyway, from stackoverflow:
#include "TCHAR.h"
#include "pdh.h"

static PDH_HQUERY cpuQuery;
static PDH_HCOUNTER cpuTotal;

void init(){
PdhOpenQuery(NULL, NULL, &cpuQuery);
PdhAddCounter(cpuQuery, L"\\Processor(_Total)\\% Processor Time", NULL, &cpuTotal);
PdhCollectQueryData(cpuQuery);
}

double getCurrentValue(){
PDH_FMT_COUNTERVALUE counterVal;

PdhCollectQueryData(cpuQuery);
PdhGetFormattedCounterValue(cpuTotal, PDH_FMT_DOUBLE, NULL, &counterVal);
return counterVal.doubleValue;
}[/code[
>>
>>59032867
Remember OOP is a methodology and with all methodology there is a purpose and place for them. The worst thing you can learn from OOP is making everything you code OOP.
>>
>>59032897

If you want to program in Java, it sounds like you are stuck.
>>
Why does OpenCL say my I3 gen 2 has a max work group size of 8192

also what's a good first program in OpenCL
>>
File: _.png (75KB, 400x400px) Image search: [Google]
_.png
75KB, 400x400px
You should be able to understand this.
>>
File: data.png (2MB, 1024x768px) Image search: [Google]
data.png
2MB, 1024x768px
>>59033101
CODE IS DATA
>>
>>59033130
push cs
pop ds

now it is.
>>
Can you make a computer with only "classical" EEPROMs ?

My idea is that they would be writing and reading from eachother
>>
>>59033252
That's an interesting idea. I think you could load an eeprom with thruth tables and use it as logic gate.
>>
File: architecture-1-1024x539.png (86KB, 1024x539px) Image search: [Google]
architecture-1-1024x539.png
86KB, 1024x539px
>>59033252
>>59033291
Check this out: http://2x-1.net/ob/gray1/
>>
>>59033327

that's probably what I was thinking about
>>
Back again, still working through this Programming Principles and Practices Using C++ book. I'm in chapter 6 and am making a very basic calculator. The code he has in the book is-
int main()
{
cout << "Please enter expression (we can handle + and -): \n";
int lval = 0; // left value
int rval; // right value
char op; // + or -
int res;
cin >> lval >> op >> rval; // read something into expression

if (op == '+') // addition
res = lval + rval;
else if (op == '-') // subtraction
res = lval - rval;

cout << "Result: " << res << '\n';
keep_window_open();
return 0;
}


My question is- why does he only bother to set int lval to zero and not rval? Is there a specific reason for this or am i looking too much into this?
>>
Can someone explain a lexer to me?
>>
>>59033428
Probably something stupid with the way cin works or with how C++ compilers initialized variables at a particular time in history. I wouldn't worry about it.
>>
>>59031405
It's great, don't let the other memers tell you otherwise
>>
>>59033491
Alright, thanks.
>>
Top 5 Meme Languages for meme programmers:
1. Python
2. Haskell
3. Rust
4. Go
5. Swift
>>
>>59033428
> My question is- why does he only bother to set int lval to zero and not rval?
Because this is a bad code, he doesn't even check for errors, he uses cascade if instead of switch and he uses '\n' instead of std::endl in a case where stream flushing is important. Initializing variables on definition should be a habit for you, otherwise it's gonna bit your in the ass some day.
>>
>>59033516
>Haskell
>meme

Haskell is no meme. It's a great language to teach fundamentals of functional programming. Something that we will want to know once you switch to some enterprise language with lambdas
>>
in c++

int x = 3;
int array[x];<--doesn't work

this is just annoying
why compilers don't automatically detect that there is nothing wrong with the code because even tough x is a variable, it is perfectly definitive that at that moment in the code the array will always be of size 3
>>
>>59033530
Shitskell is a meme language. SICP uses Scheme for that purpose. RMS recommends Lisp.
>>
>>59033567
Because it's the compiler's job NOT to think. It's better this way.
>>
>>59033567
const int x = 3;
int array[x];
>>
>>59033516
Python isn't a meme language. It has bindings literally everywhere. Python is a Swiss knife.
>>
>>59033576
ok
>>
>>59033601
>>
>>59033601
Python is much slower than Assembly
>>
>>59033580
C# constants are a bitch.
>>
>>59033567
Compile this >>59033580 to Assembly with
gcc -O0 -S
, read it, and think about your quesiton.
Read up on stack and heap.
>>
>>59033567
A compiler describes how much memory a program will allocate for its variables in a stack and in a BSS segment. The variable 'x' may be changed, therefore a compiler doesn't know for sure how much memory will be needed for the array.
>>
>>59033633
It isn't python's job/priority to be fast. It's job is to be literally everything else but fast.
If wou want fast you do C/assembly. As simple as that
>>
File: images.jpg (9KB, 275x183px) Image search: [Google]
images.jpg
9KB, 275x183px
>>59033576
> RMS recommends Lisp.
Is this supposed to be an argument for it? RMS is a PR guy who've been out of the loop with the current state of CS and technology for the last 20 or so years.
>>
>>59033567
For one it'd be pretty bad practice to allow that in case the user eventually does put something that changes x in between. The user will get errors for adding code that makes perfect sense and that'd just confuse the work flow.

Secondly, C[++] allows some low level things; what if you added an Assembly command that jumped to the initialization point after X was changed? Who knows what the hell would happen then, but it'd probably be bad.

Better to just be strict about the rules. Fixed-length arrays exist in C[++] as distinct from dynamically allocated arrays for a reason (for data alignment purposes).
>>
>>59033690
RMS wrote gcc. I think that his opinion in that field is sensible.
>>
>>59033704
>RMS wrote gcc.
He started it, and it was 30 years ago, things changed a lot since then, RMS haven't.
>>
>>59033662
>stack and heap
no such thing
>>
>>59033758
Explain
>>
>>59033744
I surmise that fundamental and theoretical things in programming languages and compilers didn't change much.
>>
>>59032230
>undefined behavior
>>
How many threads on average do I have to spend here before I learn programming?
>>
>>59033865
0 maximum
any more and you won't be able to program
>>
>>59033865
20,856,754
>>
Is distance calculated with inverse square root guarenteed too preserve order? (meaning if thing a is is farther than thing b, thing a will be still be farther than thing b with inverse square root distance)
>>
>>59033808
Yeah, but we aren't talking about such things, we are are talking about programming languages, and they did changed a lot. For example, while CL was one of the best languages in the 80s, there is no reason to use any lisp right now. I mean, just because COBOL was one of the best languages in the 50s and people recommended it over using ASM, doesn't mean you should totally use it now.
>>
>>59033880
the inverse is antitonic (i.e. x < y implies 1/x > 1/y)
the square root is monotonic (i.e. x < y implies sqrt x < sqrt y)

so the inverse square root is antitonic, i.e. order reversing
>>
>>59030891
they're the same thing tho
>>
File: inverse square root.png (12KB, 753x136px) Image search: [Google]
inverse square root.png
12KB, 753x136px
>>59033880
>>59033913
>>
how would I go about dividing two arrays whose elements represent digits of an integer
>>
File: 111.jpg (47KB, 210x340px) Image search: [Google]
111.jpg
47KB, 210x340px
>>59033941
>>
Going ot pick up a computer language because I'm basically a neet with a minimum wage job... I need something to improve my life.

What language is easier to start in, Java or C#? What are some complementary languages to learn around those? I see a bunch of job adverts for software developer/engineers (whats the difference even), but they don'tr eally specify, though I do hear you need to know like 5-6 to be successful in programming.
>>
>>59033941
dividing by a single digit n: divide each digit by r*10+n where r is the remainder of the previous division

dividing one array by another: shift-and-subtract
>>
>>59033990
>divide each digit by r*10+n
wait no what am i thinking.
divide r*10+digit by n starting from the most significant digit.
>>
>>59033941

1 digit per index is misguided

you should think of it as an int with [array length] * [sizeof(type)] * [sizeof(one byte)]

Then what you have is a bignum

https://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic

and you can use your processor's bignum instructions on it
>>
>>59033990
>shift-and-subtract
does this work for decimal?
>>
>>59034024
I understand that it doesnt make any sense, but the assignment requires an arraylist of ints
>>
>>59034031
I think you'll need to do it in binary, one bit at a time.
>>
toInt :: [Int] -> Int
toInt = foldl (\x y -> x*10 + y) 0
>>
>>59033881
SICP uses Scheme in the educational purpose because it can cover maximum of concepts in computer programming for example lambdas and generators in Python (delayed computations) and so forth. Not because it's popular or useful. RMS tells about Lisp in the same manner. There're two computational models: lambda calculus and Turing machine, they haven't been changed for a long time.
>>
>>59034088
>monomorphising this for no reason
>>
>>59030705
anyone have some c# code for a strategy rpg like fire emblem? or i guess chess is helpful too...
>>
>>59034208
good question
>>
what IDE's should i use for the c languages and java?
>>
>>59034260
gcc + text editor
IntelliJ
>>
How do I revive interest in programming
>>
>>59033881
>there is no reason to use any lisp right now
By what metric?
>>
>>59033291
this concept isn't even hard, but when I realized it is possible to make logic gates from eeprom I felt like an idiot
>>
>>59034294
Do you mean for yourself?

If you can't find motivation in a culture that glorifies programmers and 'coding' at every turn, programming isn't for you.

Go pick up a trade.
>>
>>59034149
>SICP uses Scheme in the educational purpose
Yes, but MIT doesn't use SICP anymore, they switched to Python. There is no reason to learn a language you aren't going to use IRL just to learn things about languages you're going to use.
>There're two computational models: lambda calculus and Turing machine, they haven't been changed for a long time.
Right, but Lisps aren't good implementations of either of these, since they totally ignore advances in Lambda Calculus theory from the last 70 years.
>>
>>59033516
>>59033530
>le le le le meme
>le me from le reddit
>lel
>>
write the following code in one line
column+=2;
if (flag)
puts("inside");


is it possible ?
>>
>>59034329
>There is no reason to learn a language you aren't going to use IRL
So we should all just know Java, Python, and C++?
>Right, but Lisps aren't good implementations of either of these, since they totally ignore advances in Lambda Calculus theory from the last 70 years.
[citation needed]
>>
>>59034355
Assembly
>>
>>59034350
column+=2; if (flag) puts("inside");
>>
>>59032250
>genders
>sexist
pick one.
>>
>>59034355
>so we should all just know english?
yes
>>
>>59034350
column+=2; if (flag) puts("inside");
>>
>>59034350
puts((column+=2)&0|flag?"inside":"");
?
>>
>>59032710
If it had to be one of the provided texts. Kernighan and Ritchie.
>>
>>59034350
put (flag . (liftM2 column .) . liftM2 (.) (.) . (.) . (.)) ((. flip) . (.) . (.) . "inside" . (.) . (.))
>>
>>59034405
English would be a bad choice IMO. We need something more efficient.
>>
File: 1487384979273.jpg (183KB, 462x533px) Image search: [Google]
1487384979273.jpg
183KB, 462x533px
why do people prefer custom REST APIs over things like SOAP?
the latter has implementations and code generators available for virtually all major languages, where as the former requires in-house libraries to consume
>>
>>59034438
>(.) (.) . (.) . (.)
in haskell this is just

(fmap fmap) `fmap` fmap `fmap` fmap
>>
>>59034438
barf
>>
>>59033856
>implying
where?
>>
OK guiz I have a moral choice to make. I made some git commits mentioning the wrong ticket number in a private work repository, and they've already been merged in a pull request. Rewriting the history is easy enough, but then the pull request won't link to the correct commit hashes. On the other hand, we need to rewrite the repo to remove some old config files before we OSS it, so the pull request history will end up broken anyways.

Should I rewrite the commits or just leave it? Our issue tracker uses the mentions in commit messages to link to log progress on the tickets.
>>
>>59034355
> So we should all just know Java, Python, and C++?
Haskell, Python and C++, actually.
> [citation needed]
> Subsequently, in 1936 Church isolated and published just the portion relevant to computation, what is now called the untyped lambda calculus. In 1940, he also introduced a computationally weaker, but logically consistent system, known as the simply typed lambda calculus.
You see, the actual point of interest in the LC is the Typed LC, lots of theoretical advancements happened there in the last 77 years, yet Lisps stuck with the untyped LC from 1936. I mean, it's not even a unique position anymore - most of the languages now have some form of anonymous functions they call "lambdas", you might as well say C++ 11 implements lambda calculus. The only unique thing about lisp is homoiconity and it doesn't looks like a particularly good thing after all.
>>
>>59034468
>why muh mental illness tho
>>
>>59034452
we do indeed, I speak 4 languages (english not native) and english is the hardest to pronounce. But it's still widely used and it's a waste of time to slam your head against a wall because you want to use zulu
>>
>>59034490
>muh coq
choke on it, faggot!
>>
>>59034495
You can't stop me from learning Zulu!!! It's my brain and I can do whatever I want to it!
>>
>>59033985
Both of them are good for the purpose. Java will probably be easier to learn because there's probably better learning materials that focus on good fundamentals with Java than with C#. For using, C# is going to give you far more of a comprehensive and powerful library to work with, but you're going to be pretty limited in terms of multi-platform support.

As for complementary languages you'll probably want to learn a little Javascript and associated web technologies (HTML/CSS, JSON, maybe a little SQL). It's an ugly language that will teach you some very bad practices, but the web runs on Javascript and everyone wants everything on the web these days.

Don't worry too much about leaning a lot of languages; learning how to code well is far more important than knowing everything about everything. Employers want someone they can teach, not a scatterbrained jack-of-all, master-of-nothing. Once you have a really good grasp of the fundamentals learning new technology is not a HUGE hassle and you will never stop learning new languages/library/technology in a Software career.

Also, don't expect to go from zero to 60 in a matter of weeks. Even a mathematically-inclined individual cramming this stuff will probably need at least 6 months before they're practical. But at the same time don't feel like you need to be an master to be employed; there's plenty of need.
>>
File: 1483928241275.png (243KB, 690x709px) Image search: [Google]
1483928241275.png
243KB, 690x709px
>>59034492
?
>>
>>59030744
You say that as if it was a bad thing!
>>
>>59034512
do it, but don't expect to get a job outside Niger
>>
>>59034322
What do you even mean
>>
>>59034562
To avoid wasting time, maybe first clarify what >>59034294 means
>>
Anyone familiar with OpenGL?

I'm attempting to render multiple objects, using different shaders, however changing the shader causes the whole rendering function to fall apart, but when only one shader program is used, it works normally.

For example, the code below doesn't work

glUseProgram(0);
glUseProgram(shader);


but, when I call it by only using glUseProgram once then it works as it should.
glUseProgram(shader)


Any idea as to what happens here?
>>
>>59034528
>Zulu
>In Niger
I know you're trying to jock here, but it triggers me. Zulu is a branch of Bantu from South Africa and they don't speak Bantu in Niger.
>>
>>59034603
Install Metal.
>>
Daily Reminder

We are all friends here!
>>
>>59034329
SICP and Scheme are better than Haskell for learning.
>>
>>59034618
Yes, I just picked some random language and country. I'm glad you were triggered.
>>
>>59034516
This is the most practical and logical advise I have seen on /dpt/

10/10
>>
>>59034490
>haskell
>billions of language extensions to get anything done
>broken records
>strings as [Char]
>lazy I/O
>most libraries in alpha state
>deficient macro system
>no totality checking
>no dependent types
>easily subverted type system with unsafe functions
>line noise everywhere
>not proven in the industry
No thanks.
>>
@59034653
wrong

We are all gladiators in a coliseum built of idiocy and onanism here.
>>
>>59034329
MIT doesn't use SICP because the professors are tired to learn pajeets.
>>
>>59034603
I was reading https://learnopengl.com/ and he encapsulated shaders logic in a class: https://learnopengl.com/code_viewer.php?type=header&code=shader , maybe it'll help.
>>
>>59034516
>employers want someone they can teach, not a scatterbrained jack-of-all, master-of-nothing.
this is bullshit, in europe you need master studies to work on call centers
>>
New thread:
>>59034724
>>59034724
>>59034724
>>
discord link pls
>>
>>59034707
Python is actually pretty easy to learn. It is because of Python I learned how to use harder languages
>>
>>59034707
>most people are just too dump to use Lisp
Not this shit again.
>>
>>59034710

I have used the shader encapsulation from this tutorial, with some small name changes, and used the identical model loading class he has given. I mean, it works when only rendering using a single shader, but making another call to glUseProgram() stops the following shader from rendering.
>>
>>59034728
https://news.ycombinator.com/item?id=11628080
http://www.posteriorscience.net/?p=206
>>
>>59030803
Works for my language.
>>
>>59034743
>>59034780
>>
>>59032710
Actually reading K&R at the moment. Very good book.
>>
This thread is pathetic. It is not about programming. It's just a bunch of computers illiterates and first semesters memeing about whatever they just learned.

A quick search shows that most arguments used here are not original and have been copied from some trendy tech blog or other shit site.

The only real programming questions I have seen so far are from beginners(it's fine to be a beginner btw).

This entire site is shit and I don't know why anyone would regularly come here.
>>
>>59035552
Nice you reposted the copypasta here is your complimentary (You)
>>
Is there an open source c++ class that takes in strings of the form: "(x)^2 + (x)" and calculate a double for every given x?
I made one myself but it's old and messy and seems to be slow.
>>
>>59034780
I hate Programming by Poking so much. Stitching together huge libraries one doesn't understand to get the desired functionality.
Ugh. Just soul-crushing.
Thread posts: 324
Thread images: 29


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