[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: 354
Thread images: 40

File: dpt_2017.png (146KB, 1000x1071px) Image search: [Google]
dpt_2017.png
146KB, 1000x1071px
What are you working on, /g/?

Old thread: >>58240012
>>
>>58244274
Why do you have twelve copies of that stupid image? Why is she bent over so far? Does she have back problems?
>>
>>58244301
>questioning asuka's relevance to /dpt/
Lurk more
>>
File: 1464632537832.png (152KB, 1948x858px) Image search: [Google]
1464632537832.png
152KB, 1948x858px
Functional programming thread: >>58212017
>>
>>58244274
We need more OP images
>>
>>58244274
You forgot to link the functional programming thread and web development general.
>>
>>58244274
>What are you working on, /g/?
Rewriting the Linux kernel in Perl 5.
>>
>>58244336
Web development general isn't related to programming
>>
/g/ cool kids club checklist

[x] hate OOP
[x] hate IDEs
[x] use only Haskell
[x] never produce actually useful software (this is important)
[x] wear knee socks
[x] tiling window manager
[x] dark-like-my-soul customized colors
[x] hate popular Linux distributions (because too intelligent for them)
>>
Not impressed with software out there for budgeting, especially considering half of them are linked to the internet somehow so I'm planning on writing my own. Not sure what language to use yet.
>>
>>58244331
We need a new version of this image

>What FP users claim
[some nice lambda calculus here]
>What actually happens
GC creating 1 GB of garbage a second
>>
>>58244274
making a shitty text editor as a simple C project. Am I on the right track or am I just a fucking retard.
#include <stdio.h>
#include <string.h>

//func
void newFile(char *filename);
void viewFile(char *filename);
void editFile(char *filename);

void newFile(char *filename){
FILE *open = fopen(filename, "w");
char line[999];

for(int i = 0; i != -1; i++){
printf("%d: ", i);
fgets(line, 999, stdin);
if(strcmp(line, "/exit\n") == 0){
printf("Exiting...\n");
break;
}else{
fprintf(open, line);
}

}
fclose(open);
}

void viewFile(char *filename){
FILE *file = fopen(filename, "r");
char c;
while((c = getc(file)) != EOF){
printf("%c", c);
}

fclose(file);
}

void editFile(char *filename){
FILE *file = fopen(filename, "r+");

viewFile(filename);
}

int main(int argc, char *argv[]){
if(argc == 3){
if( strcmp(argv[1], "n") == 0 ){
printf("Creating new file\n");
newFile(argv[2]);
}else if( strcmp(argv[1], "r") == 0){
printf("Viewing file \n");
viewFile(argv[2]);
}else if( strcmp(argv[1], "o") == 0 ){
printf("Editing file\n");
editFile(argv[2]);
}
}else{
printf("Incorrect number of parameters\nedit <option> <filename>\nOptions:\nn New File (WARNING: overwrites existing files with the same name!)\nr Read File\no Open file for editing\n");
}

return 0;
}
>>
>>58244351
It is. Web design != web development
>>
>>58244320
>asuka
I always thought this is Lain.
>>
>>58244383
It's Luluko from Higurashi
>>
File: fp claim.png (190KB, 2440x1228px) Image search: [Google]
fp claim.png
190KB, 2440x1228px
>>58244361
>>
>>58244443
Thank you based anon.
>>
>>58244364
>int i = 0; i != -1; i++
Use the macro EOF
>>
>>58244331
>Subhuman
Gets me everytime.
>>
>>58244336
>unironically support thread splitting
kys
>>58244331
>splitting threads
kys
>>
File: expressiveness_weighted2.png (94KB, 1533x520px) Image search: [Google]
expressiveness_weighted2.png
94KB, 1533x520px
>>58244331
>Programming languages ranked by expressiveness
>Even CoffeeScript is before Haskell
Trapfags on suicidewatch
>>
>>58244443
>zygohistomorphic prepromorphisms
>>
>>58244364
>for(int i = 0; i != -1; i++){
Signed overflow is undefined

Also, I don't see the purpose of doing that.

You should just do while (1)
>>
File: keanu_mystified.png (526KB, 531x663px) Image search: [Google]
keanu_mystified.png
526KB, 531x663px
C newb here. I'm messing about with a simple malloc program, but for some reason I run into problems when I try to free the pointer to the allocated memory. When I run the program, I get

>malloc: *** error for object 0x7fb5cec02800: pointer being freed was not allocated

Is this because the pointer is pointing at the last spot in the allocated memory? Also, the program seems to work fine when I don't use free.

#include <stdio.h>
#include <stdlib.h>

int main(void)
{
int *ptr, *plc;

ptr = (int *) malloc(4 * ((int) sizeof(int)));
plc = ptr;

for (int i = 0; i < 4; i++) {
*ptr++ = i;
}

free(ptr);

exit(0);
}
>>
File: 1468864488344.jpg (25KB, 400x300px) Image search: [Google]
1468864488344.jpg
25KB, 400x300px
I need to be able to encrypt strings inputted by a user for a project. Are there any open source methods that I can use or should I just develop my own scrambling technique? It doesn't need to be the most secure thing ever, but has to work as proof of concept.
>>
>>58244505
>Is this because the pointer is pointing at the last spot in the allocated memory?
Yes

free(plc) instead.
>>
>>58244483
http://stackoverflow.com/questions/5057136/real-world-applications-of-zygohistomorphic-prepromorphisms
>>
>>58244507
OpenSSL, documentation is garbage though
>>
>>58244488
I was using the value of I to count the lines. Didn't want to use 1 or 0 because I needed (or wanted) it to count up.

also checked

>>58244459
Sorry to sound like a dumbass, but why and how?
>>
>>58244352
You get that error because you're not freeing the address which was allocated to you.
It works if you free plc instead.
>works without free
Yes you don't really ever actually have to free as when your program exits your OS just takes back all the allocated memory. But if you allocate memory and don't free it it's considered a memory leak. It's considered good practice to have every allocation (malloc) associated with a deallocatuon (free).

This is stupid similar to another question I answered though. With the pasta going on it kinda makes me suspect.
>>
>>58244353
>[ ] hate OOP
>[ ] hate IDEs
>[ ] use only Haskell
>[ ] never produce actually useful software (this is important)
>[x] wear knee socks
>[ ] tiling window manager
>[ ] dark-like-my-soul customized colors
>[ ] hate popular Linux distributions (because too intelligent for them)

:3
>>
>>58244544
>I was using the value of I to count the lines.
You can do that, but
1) why break when it wraps?
2) why use a signed integer, will you ever modify negative line numbers?

unsigned line = 0;
while (1) {
/* all your stuff goes here */
++line;
}
>>
>>58244505
Use ptr + 1 instead of ptr++

Also malloc takes a size_t arg so you should be typecasting the 4 to size_t instead of the sizeof to an int.
>>
>>58244331
Doubt they actually claim that. You'd at the very least have a 'world' class (it can inappropriately be considered main) which is managing these objects.
>>
>>58244353
[ ] hate OOP
[ ] hate IDEs
[ ] use only Haskell
[ ] never produce actually useful software (this is important)
[ ] wear knee socks
[ ] tiling window manager
[ ] dark-like-my-soul customized colors
[ ] hate popular Linux distributions (because too intelligent for them)

I guess I'm not cool :'(
>>
Can somebody tell me some books that are actually usefull, and don't say shit like "An int is like a number :D" and "I will now show you how to do print Hello World".

Interested in C, C++ and other alike languages.
>>
>>58244353
[x] hate OOP
[x] hate IDEs
[ ] use only Haskell
[o] never produce actually useful software (this is important)
>Define useful
[ ] wear knee socks
[ ] tiling window manager
>meme
[x] dark-like-my-soul customized colors
[x] hate popular Linux distributions (because too intelligent for them)

You know I'm right.
>>
>>58244507

Never ever ever roll your own crypto. Also, security is binary. You are either 100% secure or 0% secure. There is no in between.

Anyways, any SSL library should have what you'll need.

>>58244535

There's also MBed TLS (continuation of now defunct PolarSSL) and LibreSSL.
>>
>>58244482
>low loc means expressiveness
Except the uses aren't really comparable. Your C program is generally not a some string processor which uses python oneliners. It's a machine/platform conscious language.

I'm not gonna argue C is particularly expressive but if you had to express those same things in specific for those other languages you'd probably get up there.
>>
>>58244613
>>Define useful
You can definitely check that box.
>>
>>58244599
>C
Hacker's Delight


>C++
Effective C++, More Effective C++ and Effective Modern C++ by Scott Meyers

Exceptional C++ and More Exceptional C++ by Herb Sutter
>>
>>58244577
Oh, I see. So an unsigned long would be better for maximum "compatibility", yes?
>>
>>58244639
Yes.
>>
>>58244620
Hey Ruby, what field are you interested to do a PhD in?
>>
>>58244599
>and don't say shit like "An int is like a number :D"
It actually isn't.

I guess you need to start reading this type of books.
>>
>>58244632
Thanks bro.

>>58244659
>An integer is a number that can be written without a fractional component.
Fuck off.
>>
>>58244644
thanks
>>
>>58244632
>Scott and Herb
You disgust me anon.
>>
>>58244700
Why?
>>
>>58244613
>you know i'm right
If you were right you'd be using a tiling windows manager
>>
>>58244670
>C++
C Interface and Implement
Expert C Programming - Deep C Secrets - Linden
Unix Network Programming vol 1 to 3
JavaScript The Good Parts
Don't Make Me Think Web Design

Reading good C code helps a lot. Check tldp and the linux hackers guide.
>>
>>58244657
>>58244620
RUUUUUUUBYYYYYYYY
>>
>if a language has functions of any kind, it's functional
>if a language has objects of any kind, it's object oriented
I fucking hate this site
>>
>>58244353
Next time add
>[ ] apply this list to self, post results as if anyone cared
>>
>>58244795
>implying either of these are wrong
>>
>>58244810
>Implying I care you care
>>
>>58244810
added, ty
>>
>>58244850
removed, thanks
>>
Functional programming thread: >>58244769
>>
>>58244353
[ ] hate OOP
[ ] hate IDEs
[ ] use only Haskell
[x] never produce actually useful software (this is important)
[ ] wear knee socks
[ ] tiling window manager
[ ] dark-like-my-soul customized colors
[ ] hate popular Linux distributions (because too intelligent for them)

Not cool AND useless. I have made some useful software but it was for uni so doesn't count for me.
>>
>>58244657
>>58244755

My interests mainly lie in application platforms, so I'm considering studying compiler backends/code generation or some stuff on operating system internals.

Sorry for the late response, I was in another thread.
>>
>>58245016
You can be cool.
Go to /fpt/ and enlist today
>>
>>58244587
>Use ptr + 1 instead of ptr++

Is this a readability/cautionary thing?
>>
>>58244505
>
*ptr++ = i;

Only the dead know peace from this evil

Why do people combine statements like that into a single line? It's much more readable as two.

It's almost as bad as assignment in ifs.
>>
>>58245259
Don't do this, *ptr++ is a very common and understandable thing to do in C.
In C++, however, don't use pointer arrays unless you absolutely must.
>>
>>58244353

[ ] hate OOP
[x] hate IDEs -- most of them anyways
[ ] use only Haskell
[x] never produce actually useful software (this is important) -- I don't care if anyone uses the code I wrote
[ ] wear knee socks -- crew socks only, bitch
[ ] tiling window manager
[x] dark-like-my-soul customized colors
[ ] hate popular Linux distributions (because too intelligent for them) -- I use Ubuntu
>>
>>58245383
When would you necessarily have to?
>>
>>58245419
thx for the (You) girl
>>
>>58245034
We did this in my research group for a while (look up P2G compiler). It eventually died out and became yet another academia-made compiler though.
>>
File: really.png (5KB, 497x337px) Image search: [Google]
really.png
5KB, 497x337px
something broke.
>>
>>58245423
When implementing lower level iterators, which you probably won't need to do anyways.
boost::iterator_range<> can encapsulate over a pointer array with no overhead, and you get for(x:y) syntax sugar as well.
>>
Rate my shitty LMC clone
https://github.com/salvadorp2001/64LMC
>>
>>58245367

I was under the impression that

>*ptr++ = i

was a common thing in C. K&R seems to do it a lot. Is it really that bad?
>>
>>58244274
I want to contribute to some opensource projects for fun and to help pad my resume (so recognizable names are good, and non animus or chan related)

What are some that I could fix bugs for or help with feature dev?

I know c, c++, c#, java, ruby, javascript, php, and am willing to learn others.
>>
>>58244364
> FILE *open = fopen(filename, "w");
> char line[999];
I may be wrong, but wouldn't it be more efficient/flexible if you had a smaller line number (say, ten or so), and when the user gets close to the line capacity, simply declare a new array of chars and copy everything over?
>>
File: a synthetic test.png (10KB, 502x681px) Image search: [Google]
a synthetic test.png
10KB, 502x681px
>>58245473
https://a.pomf.cat/bjqdqn.webm
Better.
>>
>>58245468

Yeah, well, PhD = creating new knowledge, so maybe I'll come up with some new compiler optimization technique that might get used in LLVM or something.
>>
File: BLOCKED.jpg (141KB, 441x1053px) Image search: [Google]
BLOCKED.jpg
141KB, 441x1053px
>>58245754
>>
>>58244383
It's umaru nigga
>>
>>58245896
It's literally just a file upload site.
>>
>>58244443
I'm actually quite disappointed at this.

There are so many more ridiculous things you could have on the right hand side, for example:
Any ridiculous explosion from a pointfree converter.
Likewise, any sort of overly-abstract Arrows madness.
Awful, awful infix operator syntax from Lenses.
The classic:
fix$(<$>)<$>(:)<*>((<$>((:[{- thor's mother -}])<$>))(=<<)<$>(*)<$>(*2))$1

Anything from the IOHCC.
Mother. Fucking. Error. Messages: http://stackoverflow.com/questions/16926579/incomprehensible-error-message-with-type-families
And finally, I can't believe you omitted the fact that a monad is just a monoid in the category of endofunctors.
>>
>>58245754
qt for a term app?
>>
>>58245998
Qt creator debugging process.
>>
>>58245825
Your approach to knowledge is wrong. You should better try to merge recent unnecessary bullshits into unified and simpler theories. Anyway when did education become so shitty? Why don't we teach everything from the bottom and let people be their own Terry Davis? Sometimes I hate humans.
>>
>>58246026
shame on you
>>
File: abstraction.png (1MB, 1200x1198px) Image search: [Google]
abstraction.png
1MB, 1200x1198px
>>58245995
It's from this
>>
How does open source licencing work? How can you detect if someone is using your code while breaching the license? And is it realistic to win a case against an established company if there's evidence that they are doing substantial infrigement?

I want to start a major project and eventually hand it over to the government freely for widespread use, but I'm afraid of the many hawk companies in my country, that they might notice it, "start" their own thing from the existing project and sell a deplorable version to some dumb corrupt fuck like they've been doing for the past 15 years for millions, then my initiative just flops.
>>
>>58246132
Just let them do so, you're the idea man.
>>
>>58246132
http://gpl-violations.org/
>>
File: 1482889303418.jpg (9KB, 250x250px) Image search: [Google]
1482889303418.jpg
9KB, 250x250px
>>58246071
>Edward A. Kmett
Too true.
>>
>>58246032

>You should better try to merge recent unnecessary bullshits into unified and simpler theories
Maybe I will. I haven't decided on a dissertation topic. I haven't even had my PhD application at UW reviewed yet. They send that shit back in February-ish.

>Why don't we teach everything from the bottom and let people be their own Terry Davis?
Most people are morons. CS schools look bad when too many people drop out.
>>
>>58246221
>i'm studying for a phd
>most people are morons

t. intellectual
>>
>>58246280

Anon, half the population has an IQ less than or equal to 100. There's a lot of morons in the world.
>>
>>58246280
She isn't wrong tho.
>>
>>58246327
You can't even program in Haskell
>>
File: she1.png (515KB, 896x943px) Image search: [Google]
she1.png
515KB, 896x943px
>>58246347
Pic

>>58246327
The distribution is equal over 100 as well.
>>
>>58246327
Actually, more people have an IQ of below 100 than above.
>>
>>58246405
>Actually, more people have an IQ of below 100 than above.

I don't understand normal distribution - the post.
>>
>>58245554
K&R does a lot of things you probably shouldn't do. Using if statements without brackets is another. Sure, it's looks more concise, but it can cause bugs when it's misinterpreted.
>>
>>58246433
>but it can cause bugs when it's misinterpreted.
Not if you're using an indenter.
>>
>>58246366
>implying someone with an IQ of 100 isn't a moron

You get out of the moron range at about 120

t. iq of 121
>>
>>58246447
That's exactly when these things happen. The indent makes you think its a block when it isn't.
>>
>>58246432
I'm not him but the average IQ changed since the time it was defined.

>captcha: more fireworks
>>
File: 1474138079651.jpg (331KB, 1920x1080px) Image search: [Google]
1474138079651.jpg
331KB, 1920x1080px
>>58246432
It always entertains me when people fail to grasp this, that why I like to bring it up.

What if there were a population of three, where one person had an IQ of 200 and two people had an IQ of 50? Use a calculator if you need to :)
>>
File: 1350509240167.jpg (7KB, 184x184px) Image search: [Google]
1350509240167.jpg
7KB, 184x184px
https://www.reddit.com/r/rust/

>this is the rust programming community
what the fuck
>>
>>58246455
I am implying that, as the literal definition of a moron is someone who has an IQ between 51 and 70.
>>
>captcha

'CALLE' every fucking time. Where are all these fucking Spanish-speaking streets located, anyway?
>>
File: 5jl9x5sed02y.jpg (25KB, 480x443px) Image search: [Google]
5jl9x5sed02y.jpg
25KB, 480x443px
>>58246472
>it's literally rebdit dank meme culture (literally 4chan culture from 3 years ago)
lmfao
>>
>>58246467
>I'm not him but the average IQ changed since the time it was defined.
Learn to IQ scores. The average intelligence is SET to be equal to 100.

>>58246469
>What if there were a population of three, where one person had an IQ of 200 and two people had an IQ of 50? Use a calculator if you need to :)
That's not a normal distribution.
>>
>>58246486
It's ironic. They're just shitposting for the holiday apparently.
>>
>>58246506
>learn to IQ scores
The MEAN is set to be 100, bra.
>>
>>58246469
>What if there were a population of three, where one person had an IQ of 200 and two people had an IQ of 50?
I don't understand normal distribution - the post 2: electric bogaloo
>>
>>58246516
When I said average, I meant mean, but yes, you are technically correct.
>>
>>58246486
>critic dank meme purpose
>posts spongebob
>lmfao
When will memes die?

>>58246510
It's still shitposting even you're being ironic.
>>
>>58246506
IQ isn't normally distributed, that's the point.
>>
>>58246546
>It's still shitposting even you're being ironic.

...and? Where do you think we are?
>>
>>58246575
a respectable establishment
>>
>>58246517
Who said it was a normal distribution? The fact that it ISN'T is the point I was making, bra.
>>
*insert low-effort shitpost*

best I can do since I'm dying.
>>
>>58246610
bye
>>
*indiscriminately shoots everyone in /dpt/ in the head*

whoops! sorry about that!
>>
>>58246575
The shitpost black hole of the internet a.k.a the singularity of ironical communications.
>>
>>58246609
>Who said it was a normal distribution?
The fucking definition. IQ test scores are fixed with a mean of 100 and a standard deviation of 15.

https://en.wikipedia.org/wiki/Intelligence_quotient#Current_tests

>>58246552
See above
>>
>>58246610
Share your IQ before leaving OSGTP
>>
>>58246636
Wouldn't that include yourself?
>>
>>58246466
>The indent makes you think its a block when it isn't.
No because with an indenter the indent is correct.
>>
Im a pro in java. how long would it take me to learn sepples?
>>
>>58244274
Has anyone tried using C# ID3 Lib before?
>>
>>58246719
For the basic syntax, not very long. Though the lack of abstractions will be unfamiliar.
>>
WPF or WinForms?
>>
>>58246610
Before you die, what did you think of my virtual machine
>>
>>58246752
>>58246719
I'm a pro in sepples
How longit would take me to learn java or c#?
>>
>>58246791

WinForms is portable to Mono. WPF is nicer to program in, I suppose.
>>
>>58246819
Why would you want a brain tumor?
>>
>>58246819
Not very long, as a c++ user, it was very very very easy.
>>
>>58246729

I used it with my music player. The ID3.NET classes are not serializable, though. Something to keep in mind.
>>
File: fragzeichenanimu.png (194KB, 500x500px) Image search: [Google]
fragzeichenanimu.png
194KB, 500x500px
How do heterogeneous arrays work? "Vectors" in Scheme parlance.

I thought the whole advantage of an array was that it was this contiguous strip of memory that you can go very, very fast with.

If you have an int, a symbol, and a string next to each other, and you can easily replace that int with an entirely different type how do you know the size of each index? Are they still contiguous in memory?
>>
>>58247143
They're really arrays of pointers, I guess. Or linked lists of a fixed length.
>>
>>58247143

In any dynamically typed language, every object is just a tagged union. In TinyScheme, your typical object looks like this:

struct cell {
unsigned int _flag;
union {
struct {
char *_svalue;
int _length;
} _string;
num _number;
port *_port;
foreign_func _ff;
struct {
struct cell *_car;
struct cell *_cdr;
} _cons;
} _object;
};


A vector would just be an array of these, or pointers to these.
>>
I don't write much C.

How many nested for loops is considered in poor taste?
>>
>>58247392
1

unroll or die
>>
File: 1462619955382.png (7KB, 200x200px) Image search: [Google]
1462619955382.png
7KB, 200x200px
Wich one is more tasteful?
>>
>>58247438
f x | i = 0
>>
>>58247438
Trolling too hard.
>>
>>58247438
how about
if(i){
return 0;
}
>>
>>58247392
it doesn't matter
also use recursion whenever possible
>>
>>58247496
why, god why
>>
>>58247496
C can be TCO'd right?
If I write like that will people get mad?

I'm actually a lisper so I'd prefer to go that route desu
>>
>>58244364
How are you going to do the editing if you're just parsing input one way?
>>
>>58247512
fuck off codemonkey faggot I'm a phd
>>
>>58247580
>phd
>advocating for recursion
hmmm

kys
>>
>>58247483
if(i) return 0;
>>
>>58246819
It should be very easy for you.
However, keep in mind that C# has a much stronger connection to functional and declarative programming than C++ and Java.
Think of C# as a non-shit Java. It has a lot of syntactic sugar that makes programming in it really nice. In example, it has (better) syntax for C-style error handling. Instead of returning an error code and using a ref as a parameter for the result, C# has a keyword called "out" that makes it more obvious when a parameter is supposed to be the result of a function.
>>
>>58247304

Hmm, and here I thought unions were worthless.
>>
>>58247636
you never knew that unions were, in the first place
>>
>>58247143
Which type of heterogeneous container?
There are MANY forms these can take
>>
>>58247644

That's not true, though. You can use them for type punning!
>>
>>58247636
If only you had learned Haskell
>>
>>58247555
C isn't so enjoy the stack frames unless you do what chicken scheme does... longjmp everywhere
>>
>>58247742
Many C compilers support TCO, although the standard does not mandate it.
>>
Exactly how much more effective is it to do this:
int roll(void){
return(((rand() % 6) + (rand() % 6)) + 2);
}


than this:
int roll(void){
return(((rand() % 6) + 1) + ((rand() % 6) + 1));
}


I mean, it very slightly decreases the file size. But, will it significantly reduce the randomness of the rolls?

I'm wondering if the optimized version requires less memory and less processing but sacrifices randomness by not requiring the extra cycles to produce the random dice rolls.

for reference, the original code was:
int roll(void){
int die1, die2, total;
die1 = (rand() % 6) + 1;
die2 = (rand() % 6) + 1;
total = die1 + die2;
return(total);
}
>>
File: kams_suicide-startup_title.png (427KB, 666x437px) Image search: [Google]
kams_suicide-startup_title.png
427KB, 666x437px
>IQ isn't a normal distribution
>>
>>58247899
Those are the same code. You can't predict what the compiler will do.
>>
>>58247930
Height and weight are normal distributions, but IQ is an uncommon distribution, just like how racial IQ is a rare distribution.
>>
>>58247949
Your confusing IQ with intelligence.

Intelligence isn't normal distributed. IQ, a human made quotient made in order to quantify and measure intelligence, is assumed normal distributed.

Also
>Height and weight are normal distributions
Are they? Source?
>>
>>58247938
Hmmm, so it's just as likely that the compiler will store those variables in memory as on cache? And no way to tell how many cycles will pass between each assignment to that immediate return value?

Heh...
>>
I have a list of strings that are UTF-16 encoded on a linux platform and want to make directories named as these. Is it right that Linux only handles UTF-8, and if so what do?
>>
>>58248001
Compile those two versions with optimization flag and compare the produced assembly.

>>58248009
>UTF-16
disgusting
>only handles UTF-8
perfection
>>
>>58247989
It's a joke you muppet
>>
>>58248009
Convert all the strings to UTF-8 and use them and if you need them to be utf-16 convert them back.
>>
>>58248089
Yeah, that would work fine, I'll look into ICU. Thanks.
>>
>>58247989
>it's normal because it's intended to be normal
>>
>>58247989

You know what gets me about this interminable meme? The whole canard that 'half of the people are stupider than average lelelel'

That one will never go away.
>>
>c++ casablanca presentation by microsoft
>I'm not trying to sell you c++
>If you are already working in c++, then you probably know that there are certain advantage to c++; the first thing being performance
>someone from audience: booooh
c# developers, everyone
>>
>>58248131
But half the people ARE stupider than average.

IQ, on the other hand, is fixed to be a normal distribution.
>>
So /dpt/, is it official then? Rust is the future?
>>
>>58247438
(when i
0)
>>
File: 1bbr7r.jpg (200KB, 1200x630px) Image search: [Google]
1bbr7r.jpg
200KB, 1200x630px
>>58248201
>But half the people ARE stupider than average.
>>
>>58248028
How do enable that in Code::Blocks?
I see some things allowed to optimize for speed or size, but I don't see anything that shows the output.

Would I want to look at the .o file?
If so, what would I want to open it with, btw? I'm on Windows. Notepad++ just shows a ton of nulls and other black lines.
>>
>>58248234
Yes, Trump is a great example.
>>
>>58248009
Stop using UTF-16
>>
>>58248249
that's exactly what I'm trying to do lol, hence me asking
>>
>>58247438
first one.
I never add an extra line for braces.
I also... put the else/else if... ON THE SAME LINE AS THE LAST BRACE of the if.
Hahahah
>so edge
>wow
>>
>>58248247

Very funny.
>>
>>58248247
Leftist cuck detected.
>>
>>58248296
>>58248299
It's funny because it's true :)
>>
>>58248247
True, half of people ARE stupider than Trump.
In fact, quite a bit more than half!
(assuming normal distribution)
>>
>>58248308

Think about it like this: he's going to be president, and you're a fucking nobody.

He's also a billionaire.

Obviously he can't be that stupid.
>>
>>58248316
This guy is another good example.

>>58248325
This one, too.
>>
File: too smart to win.jpg (52KB, 639x782px) Image search: [Google]
too smart to win.jpg
52KB, 639x782px
>>58248247
>tfw too smart to win
>>
>>58248009
Linux file systems are agnostic to character encodings and will accept whatever garbage string of bytes you feed them. If you actually want to be able to read your directory names after you've made them you'll obviously need to use whatever libraries your language provides to convert the strings first.
>>
>when you wanted your warmongering crimnal to win but instead a hugely successful patriot won instead
Why lads?
>>
>>58248369
Yeah, reading garbage is the problem. I didn't know if converting them was the way to go, or if there was some better way.
>>
>>58248341
>>58248373
>>>/pol/

Nobody is here for your bait.
>>
>>58248335
Why thank you for noticing. Do you fall in the ~97% below me or the ~3% above?
>>
>>58248422
Last time I got check I was around 99.97%.

Oxbridge educated ICU doctor, reporting in.
>>
>>58246610
Bye and don't come back.
>>
>>58248447
Oooo, nice.
I usually fall in the 138-144 range
>>
>>58248447
I should add that this was about ten years ago, before all of the drugs.

My memory isn't what it used to be.
>>
>>58248479
oh, so now you're trying to reinvent yourself through code?
>>
>>58248475
Noice. My gran apparently outdid us both with 169. Batshit crazy, though.
>>
>>58248498
Nah, I just do this as a hobby. Medicine doesn't take much thought beyond rote memorisation.
>>
>>58248447
>Oxbridge educated ICU doctor

I'm the Queen of England.
>>
>>58248479
>when you're so intelligent you voted for the losing canididate because you're a cuck
Makes me think
>>
File: shot1224.gif (2MB, 320x200px) Image search: [Google]
shot1224.gif
2MB, 320x200px
The same thing I did last time, working on my shitty FPS.
The level editor is nearly complete now, so it seems I'll finally be able to shift focus from code to content. Make two dozen or so maps and finally be done with it.
>>
>>58248525
looks good, remember to release it here
>>
>>58248525
What are you programming it on?
>>
>>58248500
You'd lose your fuckin mind too if you spent your entire life surrounded by absolute dipshits
>>
>>58248520
I didn't get to vote in that race, unfortunately.

>>58248517
I posted photo of my ID card once in a fit of drunken annoyance, but generally I just brain-dump some anaesthetic pharmacology if I feel compelled to prove it.
>>
>>58248516
oh, I thought you were saying they fired you for doing drugs, so I guessed you mighta been here to try to find a new job.

alright then. cool
>>
>>58248551
Pretty much. She lived through the fifties, too, which would have driven me insane.

I got a look at her old college yearbook after she died. Every single one of those men and women were dressed identically (respecting gender). I'm not kidding when I say that every girl had on (the same?) pearl necklace, to say nothing of their hairstyles.

>>58248568
Ha, I'm not that dumb. Most of the drugs were in medschool, anyway.
>>
>>58248556
>I didn't get to vote in that race, unfortunately.

Foreigners git out
>>
>>58248546
On Linux (Meme Hat distro).
The whole thing is written in C, using SDL2 (and SDL2_image, SDL2_mixer, SDL2_ttf, since "base" SDL is a bit minimalist).
>>
>>58248617
nice
>>
>>58248617

How much inspiration are you taking from the original DOOM source?
>>
>>58248556
Fortunately the same people deciding the fate of our nation aren't the ones that are allowing unvetted young male jihadists into their nations, so it's good you couldn't vote.
>>
>>58248636
Didn't really look at it - to my detriment, the code would probably be way less shit if I did. Though I often look up to DOOM for things like gameplay balance.
On mechanics level, the game's closer to Wolfenstein than DOOM - the map is based on tiles and there's no varying height, although combat is largely projectile based and you have some shit like destructible objects, doors opened by switches instead of keys, and some other stuff.
>>
>>58248682
>Didn't really look at it - to my detriment, the code would probably be way less shit if I did.

If it's any consolation, it can't possibly be worse than the Duke3d source.
>>
What's the priority on & and -> operators in C?

If I want a pointer to a member of a struct should I be doing

&foo->member


or

&(foo->member)


?
>>
File: 25545252345234.jpg (101KB, 540x542px) Image search: [Google]
25545252345234.jpg
101KB, 540x542px
>amazon uses capital first letter for their namespaces
>>
>>58248740
Why don't you try it out?
>>
>>58248740
foo being a pointer to a struct rather than a struct
>>
>>58248740
-> over &.

https://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B#Operator_precedence
>>
>>58248768
Thanks.
>>
>>58248664
I do like a good jihad after tubing someone.

Captcha: "CALLE CALLE"
Jesus Christ.
>>
>>58248740
Whenever I want to be confident of the proper order of evaluation, I just put parentheses.
>>
File: phone.jpg (145KB, 517x768px) Image search: [Google]
phone.jpg
145KB, 517x768px
>>58248857
>defensive programming
>>
>>58248525
Nice ! You got this on GitHub?
>>
>>58248875
that's not what defensive programming is about
>>
Fixed all the multithreading issues with SQLAlchemy and APScheduler, so I'm finally getting results
>>
>>58248857
>not being this autistic
>>>/fit/
>>
>>58249069
wat dis
>>
File: Untitled.png (2MB, 1915x1040px) Image search: [Google]
Untitled.png
2MB, 1915x1040px
fixing bugs that crept in with new code

feels good
>>
>>58249092
why is it ugly and why are you using windbows
>>
>>58248936
Not now, but I plan on releasing the source when I finish the damn thing.
>>
>>58249083
Poor man's PRTG, it's a network monitoring thingy
There are sensors that run periodically (ping, interface traffic, system load, HDD space, etc.) and there are sensors that run continously (Syslog, SNMP trap receiver, NetFlow collector)
Certain thresholds/values/regex matches can trigger events, like sending emails or Slack messages
>>
>>58248208
Only, if Trump makes SJW illegal and a meteorite falls on Mozilla HQ. The language is nice though.
>>
File: images.jpg (8KB, 181x279px) Image search: [Google]
images.jpg
8KB, 181x279px
>>58244274
strings in c being the hard part again. this is bullshit desu, such a powerful language but with shitty string handling.

i built the whole HTTP server, this is what's lacking.

so i get request string that should be :

GET /file.extention HTTP/1.1
Host: 127.0.0.1

i have to parse this shit, i need to extract "file.extention" then look in the file /etc/mime.types for the filetype of "extention"
to use it in the reply like this :
Content-Type: text/html

the content of mime.types is a big file line by line that contains the filetype of each extention . for example :

text/html html htm shtml

so if it's file.html i have to read the mime file and get "text/html" to add it to the reply header.


any genius here ?
>>
i found a website i want do download photos from (it's a blog)

if i do
curl thewebsite.com
or
wget the website.com


it doens't do anything
>>
>>58249222
libmagic?
>>
File: blythe_,masters.jpg (85KB, 959x639px) Image search: [Google]
blythe_,masters.jpg
85KB, 959x639px
What programming job earns the most?
>>
>>58249262
botnet master
>>
>>58249222
trim space at beginning
read until space - that's the method name
if method name's not GET/POST/HEAD whatever else you want to support, return "501 Not Implemented"
trim spaces, if multiple
read until space - should be the "file.extension" thing you need
trim spaces, again
the rest should be the protocol version

go though filename from the right looking for a dot
copy the part after the dot, now you have the extension

read /etc/mime.types
part before first space is mimetype
whatever's left on the same line is space-separated list of extensions
store the current mimetype somewhere, go through rest of line
extension does match? great, return your mimetype
>>
>>58249233
All that's doing is grabbing the raw HTML
>>
>>58249259
thx, looks that it might help a lot

>>58249301
what fragmentation function would you recommend ? strtok ? strchr ? strstr ?
>>
>>58249222
>c beginner writing an HTTP server
Hoo boy
>>
>>58249342
>what fragmentation function would you recommend ? strtok ? strchr ? strstr ?
strtok() if you don't mind it modifying the string
strchr() if you don't need the "result" to be null-terminated

If you don't want to modify the original string, and want the result to be null-terminated, use malloc() and strncpy() to create a copy of the substring. Don't forget to free() it afterwards.
>>
>>58249350
i'm a c string beginner. not a c beginner.

like i said, i wrote the whole server, with tcp sockets, threads and mutual exclusion and log files etc ...

i need someone to spoonfeed me the right str* functions. don't want to waste an hour on the man pages.
>>
>>58249342
For the header, since you know you expect exactly 3 fields, you could probably go with just
scanf("%s %s %s");


As for fragmentation, I find keeping a pointer at fragment start, and then doing strchr, the easiest way. strtok can fuck up if you need to separate the token into sub-tokens.
>>
It's Friday evening and I'm drunk /dpt/, what should I code?
>>
File: Untitled.png (967KB, 1920x1080px) Image search: [Google]
Untitled.png
967KB, 1920x1080px
>>58249111
here, now it's less ugly
>>
>>58249410
git botnet that automatically send pull requests adding botnet code to a high number of open-source projects which learn over time to write better commit messages and stealthy implementations with a neural network
>>
>>58249410
>>58249494
For example the program could check for easy to fix errors/typo while adding sneaky backdoors
>>
>>58249494
>>58249527
I can't do that anon. Give me something simple like bizzfuzz.
>>
>>58249550
Okay then... What about a botnet simulator minigame with it's own virtual machine?
The game could be networked and you turn this into a programming contest
>>
>>58249658
Anon I only know Haskell so I can only write pure code.
>>
>>58249658
what about hacknet but with real computers and people, presumably with their own architecture and stuff, taking input from us and making an awesome game?
>>
File: Untitled.png (2MB, 1920x1080px) Image search: [Google]
Untitled.png
2MB, 1920x1080px
>>58249658
>botnet simulator minigame
>>58249756
>hacknet

both good suggestions and easily done in a couple of hours.
>>
>>58249550
Make a decentralized first person shooter that is one continuous game with a completely giant map. All you need is a basic engine to work off of and a decentralized network
>>
>>58249392

Try something like this. Obviously, adapt these functions as you need to. Also, as far as performance is concerned, it might be better to save the list of MIME types in a hashtable, tree, trie or something.

// This modifies the string pointed by `line` on success.
char *
find_file_name(char *line)
{
const char PREFIX[] = "GET /";
if (strncmp(line, PREFIX, strlen(PREFIX))) {
// Line doesn't start with "GET /"
return NULL;
}
char *filename = line + strlen(PREFIX);
// Replace the first space with a null-byte
char *end = strchr(filename, ' ');
if (end) {
*end = '\0';
}
return filename;
}

// Returns a null-terminated string for the extension in a filename, or NULL if
// none exists.
char *
file_extension(char *filename)
{
char *dot = strrchr(filename, '.');
if (!dot) {
return NULL;
}
return dot + 1;
}

// Returns the mime-type at the beginning of a line of mime.types.
//
// This modifies the string pointed by `line` on success
char *
mime_type_on_line(char *line)
{
char *end = strchr(line, '\t'); // or whatever your separator is
if (end) {
*end = '\0';
}
return line;
}

// Returns true if the mime.type line is the mime type for `extension`.
//
// This modifies the string pointed by `line` on success.
bool
mime_type_fits_extension(char *line, const char *extension) {
const char *DELIMITER = "\t";
const int n = strlen(extension);
const char *state = NULL;
char *cursor = strtok_r(line, DELIMITER, &state);
while (cursor) {
if (!strncmp(cursor, extension, n)) {
return true;
}
cursor = strtok_r(NULL, DELIMITER, &state);
}
return false;
}
>>
>>58249698
-FizzBuzz with complex numbers
-Write a virtual machine that process arbitrary binary inputs and automatically prevent failure somehow. You have to find how. Then you throw random images and text at it and have fun with the results

I don't know but IMO Haskell is just for fallen mathematicians.
>>
Rate my macros /dpt/

#define TRYA(b, format, ...) \
if (b) {\
error_prepend_context("Couldn't " format, ##__VA_ARGS__);\
goto cleanup;\
}

#define IOA(f, ptr, sz, data, desc, ...) \
if (f(ptr, 1, sz, data) != (sz)) {\
error_prepend_context(desc, ##__VA_ARGS__);\
goto cleanup;\
}

#define FREADA(to, sz, stream, format, ...) \
IOA(fread, to, sz, stream, "Couldn't read " format, ##__VA_ARGS__)

#define FWRITEA(from, sz, stream, format, ...) \
IOA(fwrite, from, sz, stream, "Couldn't write " format, ##__VA_ARGS__)
>>
>>58249843
But who shot first?
>>
File: pewpew_1.webm (3MB, 588x592px) Image search: [Google]
pewpew_1.webm
3MB, 588x592px
>>
Watching anime while programming is comfy desu
>>
>memory corruption

here comes my boogeyman
>>
>>58249884
than you man, i'll try it
>>
>>58249927
#define TRYA(b, format, ...) \
do {\
if (b) {\
error_prepend_context("Couldn't " format, ##__VA_ARGS__);\
goto cleanup;\
}\
} while (0)

#define IOA(f, ptr, sz, data, desc, ...) \
do {\
if (f(ptr, 1, sz, data) != (sz)) {\
error_prepend_context(desc, ##__VA_ARGS__);\
goto cleanup;\
}\
} while (0)

#define FREADA(to, sz, stream, format, ...) \
do {\
IOA(fread, to, sz, stream, "Couldn't read " format, ##__VA_ARGS__)\
} while (0)

#define FWRITEA(from, sz, stream, format, ...) \
do {\
IOA(fwrite, from, sz, stream, "Couldn't write " format, ##__VA_ARGS__)\
} while (0)
>>
>>58248617
>>58248682
Is there multiplayer? I posted >>58249843
>>
>>58250126
Is wrapping in do-while really necessary given that TRYA and IOA are if-statements, and FREADA and FWRITEA are just TRYA and IOA?
>>
Go's garbage collector is written in Go

How does Go collect the garbage collector's garbage?
>>
>>58250199
i don't know and don't care

i just wrote that because i used wrap my macros in do-whiles in my C compiler
>>
>>58250225
if Go had garbage collector it would have deleted itself
>>
>>58250258
sick burn
>>
Linus says that if my program has more than 3 indents, my program is fucked. Is that really true if I indent main?

It seems like almost all of my solutions to K&R have four indents...
>>
>>58250278
It's true. Also post code so we can judge
>>
>>58250258
if your mom had a garbage collector she would have aborted you.
>>
I finished the audio code for my decentralized TV project. Is anybody here interested in broadcasting anything (assuming there aren't any technical limitations).

You can see the source code at https://github.com/Dako300/BasicTV
>>58250278
Most well structured and large programs don't do much heavy lifting in main. If you ever need to go above 3 indents, try and break up the function into smaller inlined functions (easier to understand, function name gives context, and helps with the 80-col rule)
>>
>>58250341
If the universe had a garbage collector your species wouldn't have existed.
>>
File: sctor.png (73KB, 415x708px) Image search: [Google]
sctor.png
73KB, 415x708px
>>58250334
>>
>>58250334
All right... Here's an example:
int main()
{
extern char detabbedLine[MAXLINE];
int t = 0;
int i = 0;
int s = 0;
int j = 0;
int lineLen = getLine();
for (i = 0; i < lineLen; j++,i++){
if(line[i] == ' '){
s++;
j--;
continue;
}

if (s/TABSIZE > 0 && line[i] != ' '){
for(t = 0; t < s/TABSIZE; t++)
entabbed_line[j+t]='\t';
j+=s/TABSIZE;
}
if (s%TABSIZE > 0 && line[i] != ' '){
for (t = 0; t < s%TABSIZE; t++)
entabbed_line[j+t]= ' ';
j+=s%TABSIZE;
}


I could have made it its own function, but it's the exercise where you get rid of white space and replace with tabs. I'm sure there's a better way to do it...
>>
File: gtpsimagetools2.png (247KB, 1215x904px) Image search: [Google]
gtpsimagetools2.png
247KB, 1215x904px
Anybody interested in working on an image processing project?

Something graph-based has been suggested (so that effects would be composable, a visual pipe-and-filter style program).

Even though my newest design is plugin-based, it's still too limited, since certain effects require multiple passes with different filters, which needs to be done manually.
>>
>>58250494
Just put it on github, that was made in C# right?
>>
File: Lenna.png (12KB, 512x512px) Image search: [Google]
Lenna.png
12KB, 512x512px
>>58250494
>>
>>58250544

Yes, written in C#, but not good enough.
>>
>>58250563
>C#
Too bad.
>>
>>58250563
Make the repo, u fag.
>>
>>58249884
>
char *
find_file_name

Put a bullet in your brain
>>
>>58250403
You don't need those superfluous if statements.
>>
>>58250608
Are you suggesting that I work it into the for loop or rework the entire algorithm?
>>
>>58250560

Nice Lena
>>
>>58250632
int main()
{
extern char detabbedLine[MAXLINE];
int t = 0;
int i = 0;
int s = 0;
int j = 0;
int lineLen = getLine();
for (i = 0; i < lineLen; j++,i++){
if(line[i] == ' '){
s++;
j--;
continue;
}

for(t = 0; t < s/TABSIZE; t++)
entabbed_line[j+t]='\t';
j+=s/TABSIZE;
for (t = 0; t < s%TABSIZE; t++)
entabbed_line[j+t]= ' ';
j+=s%TABSIZE;
>>
>>58250588

What's wrong with C#? We could do the project in Java, or even C.

The algorithms don't really change.
>>
>>58250599
>he doesn't know the GNU standard code style

kys retard
>>
>>58250670
>He literally fell for memes knowing their are memes
kys [normie thinking he's not because he's browsing 4chan]
>>
>>58250698
>if you don't use something that i like you should kill yourself

nice logic idiot
>>
>>58250650
Wow, thanks.
>>
>>58249927
>C macros
disgusting
>>
File: 1481252318423.png (661KB, 611x625px) Image search: [Google]
1481252318423.png
661KB, 611x625px
>>58250698
>kys
fuck off, normal fag
>>
>>58250670
Except i do know it and I wish I didn't.

Anyone who uses the GNU coding style should just immediately kill themselves.
>>
>>58250790
>most retarded RPG of all the time
>watermarks
>doesn't realize that killing himself is the only right thing to do
Kys.
>>
File: trump.jpg (132KB, 1600x1067px) Image search: [Google]
trump.jpg
132KB, 1600x1067px
>>58250839
>Kys.
fuck off, normal fag
>>
>>58250867
All those years of memeing destroyed your brain. You're not even as smart as a shitty JavaScript neural network. Please die immediately.
>>
File: browser #113.png (958KB, 960x954px) Image search: [Google]
browser #113.png
958KB, 960x954px
don't mind me, I'm just improving the thread by making a post.
>>
Would there be any value in making a Pokemon clone in Rust?
>>
>>58251085
No.
>>
>>58251085
There is no value in Pokemon
>>
>>58251126
Would there be any value in making a Norwegian translation of Linux?
>>
>>58251133
nor in Rust
>>
>>58251085
I would pick a Non-SJW language, but still, by making it you'll learn a lot of things.
>>
>>58251150
I don't care about it being SJW.

The language itself isn't SJW. It's just the community.
>>
>>58251085
Nice shitpost. I don't see how anyone could beat this.
>>
>>58251156
Rust is literally SJW and I didn't even know it were possible.
>>
>>58251156
That's like saying "A country isn't X, the people is those are X".
The language itself embraces the community.
>>
>>58251178
>>58251182
Maybe it's just wishful thinking. I'm sure we can do better than C++ for a high-performance, memory-safe systems language. Right now Rust seems to be the only player in that space.
>>
>>58251085
>[...] Rust?
No.
>>
>>58251209
>Should I avoid Rust?
>>
File: Sin título.png (546B, 67x138px) Image search: [Google]
Sin título.png
546B, 67x138px
how the fuck do i get coordinates for isometric tiles, i need to get the black parts, also every odd row is pushed to the right and a bit up too, so i can't convert cleanly, need to know what row i am at before knowing what row i am at
>>
What is the best library for creating WAV files in C++?
>>
>>58251370
The standard library.
>>
>>58251306
Invert the transformation you use to go the other way.
>>
>/dpt/ thinks a language being "SJW" outweighs its tangible strengths
>>
>>58251408
SJW communities are toxic and can lead to the loss of your livelihood.
>>
>>58251415
It's not hard to not upset them. I don't like it, but I can live with it.
>>
>>58251408
Rust is inherently retarded. C code is usually efficient because it gives the freedom to do whatever you want with a turing machine (good balance between abstraction and machine code).

P=NP is unproved. Haskell/Rust/memescript/... are unneeded. Deal with it.
>>
>>58251423
It's getting harder as they decide more and more things offend or oppress them.
>>
>>58251458
Thanks for your contribution Pajeet.
>>
>>58251513
If a SJW decided that something in my GitHub-hosted project was offensive and raised an issue about it, I'd either fix it if it was trivial or I'd simply ignore it and let them or somebody else do the work for me if they really care that much. I won't break any code of conduct if I don't actually say anything.
>>
>>58251513
>>58251567
And if I do need to say something, I'll be passive and formal about it. I won't inject my feelings into my work at all, why should I?
>>
>>58251567
Holy shit this, we're on 4chan after all, whatever happened to don't feed the trolls and don't give attention for tripfags? If SJWs flock to your project for whatever imaginary reason they might have just ignore them and move on.
>>
Let's be honest here. If I have to choose between offending SJWs by disparaging a request to make pronouns gender-neutral or offending manchildren by respecting it, I'll go with offending the manchildren any day.
>>
>>58251628
Why not both? Change all pronouns to female.
>>
>>58251669
I agree with her.
>>
>>58251408

The only time SJWs being in the project really means something is if you intend on working on the project yourself. And even then, it's only for those who plan on being actively involved, rather than simply suggesting a patch, as you would need to spend quite a bit of time interacting with the community to actually trigger the CoC, most likely.
>>
>>58251844
Unless your username is something innocuous like WhiteMale or CapitalismIsOkay.
>>
>>58251766
>Her agree with her
>>
>>58251922
>she shegrees with her
>>
>>58251844
The project being led by SJWs usually is a good evidence it's useless or poorly executed.

>>58251910
Capitalism is retarded baka
>>
>>58251910
Nothing in their CoC goes against someone who supports capitalism.

>>58251943
>Capitalism is retarded
You wanna go, Anon?
>>
File: 9c904dca10.png (10KB, 255x439px) Image search: [Google]
9c904dca10.png
10KB, 255x439px
>>58244274
I thought this was going to print
a3, a1, a2, a4

But actually prints
a1, a3, a2, a4

w e w
>>
>>58251988

Sounds like member initialization, static or otherwise, has priority over method calls every time. Which would make sense, in case someone wanted to reference one of those initialized members inside the constructor.
>>
>>58251967
Listen fat people... If Capitalism had a slight hint of usefulness Terry fucking Davis would be richer than let say the pajeet king a.k.a Bill Gates. Of course communism is worse and I suggest we gamify the economic system asap but this is never going to happen since those who could make this happen won't.

>inb4 poorfag
Not even, just saying it would be cool to have an actual purpose in life.
>>
>>58252037
Naice explanation bae.
>>
>>58252038

>If Capitalism had a slight hint of usefulness Terry fucking Davis would be richer than let say the pajeet king a.k.a Bill Gates
Terry Davis was late to the OS game, and his OS doesn't have networking. Even if we assume that all OSes are free, and all OS creators get, say, a couple of bucks from out of nowhere every time someone installs their OS, Terry Davis would still be poor, because almost nobody wants to use his OS.

>Of course communism is worse
At least you recognize this. I may give your opinion some validity.

>I suggest we gamify the economic system asap
Explain. Thoroughly.
>>
>>58252177
Ruby, why do you like Ruby?
>>
>>58252340

It's fun to program in, and it allows me to get a lot of string/list processing tasks done very fast.
>>
>>58252372
>fun
There's certainly no accounting for taste.

Is it true that you're /dpt/'s daddy?
>>
>>58252177
Why do people even use TempleOS? What does it do better than anything more popular and useful (BSD and Linux, namely).
>>
>>58252372
whats so fun about Ruby?
>>
>>58252177
>nobody wants to use his OS
That's the problem. Retards outnumber genius so they have the majority of the money. Don't forget you vote with your wallet and in this case it induces a perpetual vicious circle of degeneracy.

Capitalism = autarchic individuals competing for their own survival. I meant exactly what I said. I want a centralized set of rules that contributes to everyone (or not since we could chose to make life like in those animes...) Whatever but I really wish humans were more open to new ideas so we finally put our shit together and kill the meme demon. For example we could chose to use Elo for a more accurate ranking of "human utility".
>>
>>58252387
Talk to God?
>>
new thread
>>58251812
>>
>>58251197
Bullshit. Ada is safer, faster, and more mature than Rust in every way.
>>
>>58252386

>certainly no accounting for taste
And what would you recommend?

>Is it true that you're /dpt/'s daddy?
Supposedly, I'm the daddy, GTP is the mommy, and NV is doggo. None of us signed up for that though.

>>58252401

You can do pretty much everything with method chaining and blocks. Writing a short program to do pretty much anything is rather simple.
Thread posts: 354
Thread images: 40


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