[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: 404
Thread images: 57

File: 1495119634387.jpg (98KB, 1299x801px) Image search: [Google]
1495119634387.jpg
98KB, 1299x801px
Women in tech edition

Previous thread: >>60605428

What are you working on, /g/?
>>
>>60611262
What's her name?
>>
At least the trannies have decided to be more realistic about their appearance instead of pretending they're anime girls
>>
File: 1495774102721.jpg (530KB, 1334x694px) Image search: [Google]
1495774102721.jpg
530KB, 1334x694px
reminder that most women can't program for shit and they don't even want to do it
>>
I reported a vulnerability for the second time.
The first time was to Debian, and they just ignored the fuck out of me.
>>
>>60611291
>her
>>
>>60611308
Did you just assume xheir gender?
>>
>>60611262
Fucking horrifying, tbqh
>>
>>60611300
>>>/r9k/
>>
File: dpt.png (890KB, 1550x1123px) Image search: [Google]
dpt.png
890KB, 1550x1123px
Check out my sweet OC /dpt/.

Also, ask a Google intern anything.
>>
>>60611291
Matthew
>>
File: Sophie Wilson.jpg (64KB, 620x465px) Image search: [Google]
Sophie Wilson.jpg
64KB, 620x465px
>transphobes itt
Daily reminder she's made more for the industry than all of us put together will ever do.
>>
>>60611415
Source pls!
>>
>>60611303
>lollinux
enjoy your massively fragmented ecosystem with literal amateurs maintaining your distros
>>
Considering ML like languages, is the ATS one with best c interface and most platforms supported?
The syntax looks like shit, though.
>>
>>60611500
Can't hear you over the sound of ETERNAL BLUE pwning your proprietary kernel.
>>
File: 1494915863144.jpg (152KB, 1200x899px) Image search: [Google]
1494915863144.jpg
152KB, 1200x899px
>>60611415
>tfw no cute crossdressing /g/ anon to pair program complex algorithms with
>>
>>60611500
Nice bait. How do I learn how to shitpost like you?
>>
does google hire all the technically competent women? there's all sorts of qts giving talks on youtube but they're only ever from google.
>>
File: d.png (99KB, 500x500px) Image search: [Google]
d.png
99KB, 500x500px
/g/, does programming have any practical use in your daily life? I'm learning JavaScript and I can't see myself ever using this outside of Web design.
>>
>>60611582
google doesn't look for the most technically competent people just normies who will fit in with the company culture

https://www.youtube.com/watch?v=jXhXDzyRH_A
>>
>>60611516
how about anime machines?
>>
>>60611630
that explains why google ui is shit
>>
>>60611516
convention would advise you use your last name
>>
File: smug_ran3.png (467KB, 1000x1000px) Image search: [Google]
smug_ran3.png
467KB, 1000x1000px
>>60611516
>superior
That already exists though. They're called quantum Turing machines.
>>
>>60611619
Programming is useful because it makes things that were already easy even easier, and once the things that were already easy become trivial enough, you can use them to start to make things that were hard easier. This process repeats indefinitely, yielding exponential growth of what you can do with a computer.
>>
>>60611499
Hatsu Kokuhaku. There's a whole genre dedicated to this shit on Batoto and I love it.

>>60611536
It's a crushing feeling every day.

>>60611582
I haven't met that many female interns but one of the "class" teachers at our orientation was a woman and she seemed really knowledgeable. The one female intern I met was a graduate level intern doing something with TensorFlow. Google's pretty heavy on the affirmative action though, so that might not be an average sample.

But still, despite that, most people in my office by far are male and most are from the continent of Asia (lots of asians and to a lesser extent Indians).

>>60611619
Well, it's a hobby for me, but I actually do my homework with it all the time, especially in math/physics.

>>60611630
I would agree most people in my office are kind of "normie" but they're the smart kind that can have a conversation about, say, economics and such. I haven't met a dumb person yet, but I don't actually work with any other interns. I'm sure there are nerdy types like me all over the place as well. There's an anime club in MTV.
>>
>>60611630
what's their culture? my impression is everyone younger than 40 are over achieving competitive chinks who would be a nightmare to work with. Then a small handful of 100x greybeards who actually create the company's value.
>>
>>60611723
>create machine superior to quantum turing machines
>you can't improve on the substrate because it's already pretty much as good as it'll get, what with being quantum and all
>instead you improve on the machine's structure
>the model you eventually arrive at is really unpredictable and scary and you think it might explode
>it does
>shit
>fuck now there's a universe
>shit
>balls
>>
File: kotlin.png (11KB, 700x700px) Image search: [Google]
kotlin.png
11KB, 700x700px
Will Kotlin do to Java what Swift did to objective C /g/?
>>
>>60611804

kotlin is fucking ugly, I don't know why it's being pushed so hard
>>
hey /dpt/ can you do my homework?
>Given the source code of a C program & a set of inputs, program a C application that will determine whether the given code will crash with the given inputs.
>>
Fun fact: a quantum turing machine + the ability to clone a quantum state can simulate the evolution of an ordinary quantum turing machine over time T, in log(T) time.
>>
>>60611858

undecidable
>>
>>60611858
Pay me first
>>
>>60611804
Create a software abomination of mixed languages interoperating that doubles the number of languages you need to learn for a given project? Absolutely. Until 10 years pass and everyone's united under one or the other.

>>60611882
>the ability to clone a quantum state
I don't know much about this, but isn't that supposed to be impossible, since when you measure the state the probability distribution collapses?
>>
>>60611858
i'm not doing this for you but here's a tip as to how you'd do it:
>compile the source code
>run the resulting program in a separate process with the given inputs
>monitor the process
>>
File: smug_ran2.png (495KB, 1000x1000px) Image search: [Google]
smug_ran2.png
495KB, 1000x1000px
>>60611955
Entanglement.
https://en.wikipedia.org/wiki/Quantum_teleportation
>>
>>60611955
Indeed, it's impossible according to the currently understood laws of physics, which is why a regular quantum turing machine can't simulate itself with an exponential speedup. But you could imagine that you had a magic box that could clone a state.
>>
>>60611619
Programming in a real language is useful, I build small tools to speed up what I'm doing constantly.

Of course if you're learning Javascript, you probably just want to make webpages.
>>
File: Untitled.jpg (5KB, 858x725px) Image search: [Google]
Untitled.jpg
5KB, 858x725px
>>60611486
THAT FACT IS AN ABOMINATION AGAINST GOOD SENSE AND I DEMAND IT STOP BEING TRUE THIS INSTANT
>>
>>60611262
Two days ago I decided to learn C for fun, and because I learn better through doing, I decided to try my hand at making a text based adventure game, easy as pie right? its all basically scanf and printf, but 10 lines in I run into the issue of not being able to get the console to read back a simple name and I dont understand why It only reads until the first space.

#include <stdio.h>

int main()
{
char name;

printf("Enter a name:\n" , name);
scanf("%s" , &name);
printf("Your name is %s?\n" , &name);

}

and

anon@anon ~/Documents/Coding $ ./a.out
Enter a name:
Benjamin Michael Mc'Dickhead
Your name is Benjamin?

It doesnt print "Michael Mc'Dickhead"... wat do?
>>
File: 1476487280652.png (2MB, 1200x1726px) Image search: [Google]
1476487280652.png
2MB, 1200x1726px
>>60611789
So far everyone at my office has been really chill and helpful.
>>
>>60612033
That's a move, not a copy.
Baka.
>>
>>60611262
i'm trying to make a solver for that X problem in a true oop style. did i do it right? it doesn't seem right to me. i would rather have 3 functions without classes.
class Board
{
public Board(int lineLength)
{
board = new char[lineLength, lineLength];
for (int i = 0; i < lineLength; i++)
{
board[i, i] = '*';
board[i, lineLength - 1 - i] = '*';
}
}

public char[,] board { get; }
}

sealed class BoardHelper
{
public static int GetLength()
{
int lineLength;
while (true)
{
Console.Write("Enter the line length: ");
string input = Console.ReadLine();
if (Int32.TryParse(input, out lineLength))
{
return lineLength;
}
}
}

public static void PrintBoard(char[,] board)
{
for (int i = 0; i < Math.Sqrt(board.Length); i++)
{
for (int j = 0; j < Math.Sqrt(board.Length); j++)
{
Console.Write(board[i, j]);
}
Console.WriteLine();
}
}
}
>>
>>60612101
Not with that attitude.
>>
See also:
https://en.wikipedia.org/wiki/No-cloning_theorem

Also worth mentioning is that cloning a state would allow you to send information both FTL and back in time.
>>
File: FP masterrace.png (16KB, 371x394px) Image search: [Google]
FP masterrace.png
16KB, 371x394px
How will imperatards and oopsies ever recover?
>>
File: 1476490191768.jpg (42KB, 410x530px) Image search: [Google]
1476490191768.jpg
42KB, 410x530px
>>60612107
Why, anon?

>>60612075
>>60612122
I see, thanks.
>>
>>60612134
And I enjoy rubbing my dick, but that's still not doing anything productive.

Enjoy academia.
>>
Man, i just learned how to work with the gui and its really made programming a lot more interesting
Im having fun
I feel like a pimp
>>
>>60612093

You need a char array silly.
>>
>>60612160
so you're an M?
>>
>>60612173
I'm not a tarp or a grill, if that's what you're asking.
>>
>>60612093
scanf %s specifier:
"Any number of non-whitespace characters, stopping at the first whitespace character found. A terminating null character is automatically added at the end of the stored sequence."

use fgets() or fread()
>>
File: Untitled.png (2MB, 1044x1044px) Image search: [Google]
Untitled.png
2MB, 1044x1044px
>>60612206
u smel like pic relted
>>
>>60611845
It's an improvement over Java imo.
>>
>>60612093
>char name
That should be a char*
>>
>>60612093
Okay, first is that you're declaring the name variable as a single char, rather than an array of char. That SHOULD crash on the first call that reads or writes to it, though it looks like you just got lucky. So replace the declaration of name with
char name[128];
.

Second, there's no need to pass name to the first printf, since it doesn't actually use the name string.

Finally, replace your scanf call with
gets(&name);
since scanf treats whitespace as a delimiter, and so will only read the first word rather than a whole string, Gets() on the other hand reads until the newline character.

Also you should add "return 0;" to the bottom of your main function, otherwise the exit status of your program might be undefined.
>>
>>60612254

more like char[]
>>
>>60612279
lol
>>
>>60612093
scanf separates by space, i.e. one %s will only read up to the first space, which is why only "benjamin" is getting read
>>
File: 20170221_223431.jpg (15KB, 64x262px) Image search: [Google]
20170221_223431.jpg
15KB, 64x262px
>>60612279
u smel like pic relted
>>
>>60612206
I also have a job at Google, so I guess things turned out okay.

>>60612279
Enjoy your ban, I suppose.
>>
>>60612254
Still doesn't allocate any storage though. You're almost guaranteed a segfault. You should do
char *name = malloc(128);
or
char name[128];
. I'd suggest the latter, using malloc for something this trivial is literally overkill. Also for initializing constant strings you can do
char *s = "Hello There!";
or
char s[] = "Hello There!";
, but both of those make the string read-only.
>>
>>60612305
IT ARE FAT DANCING BRAZLIAN MAN WITH TINY WINKLE
>>
>>60612305
explain this pic. is the ampersand supposed to be a turd?
>>
>>60612279
Enjoy you are band
>>
>>60612339
u smel like pic relted
>>
>>60612339
this anon knows what's up. this place is really a faggoty waste of time.
>>
>>60612261
alright, so "gets" grabs the input and assigns it to &name? and when I made all your changes i get the following error

anon@anon ~/Documents/Coding $ cc MyGame.c
MyGame.c: In function ‘main’:
MyGame.c:8:3: warning: implicit declaration of function ‘get’ [-Wimplicit-function-declaration]
get(&name);
^~~
/tmp/cc2gzywS.o: In function `main':
MyGame.c:(.text+0x1a): undefined reference to `get'
collect2: error: ld returned 1 exit status
>>
>>60612316

not true, you can fuck with char[] in C. C doesn't have constness
>>
>>60612351
eyes :
lips ()
neck and shoulders {
nipples :
crossed arms |
second pair of nipples :
pubic hair &
tiny winkle }
straight leg and bent leg ;
feet :
>>
File: 20170302_223608.jpg (25KB, 201x170px) Image search: [Google]
20170302_223608.jpg
25KB, 201x170px
>>60612380
u smel like pic relted
>>
>>60612401
>second pair of nipples :
what did the mean by this?
>>
>>60612395
>C doesn't have constness
int main() {
int const a = 4;
a = 5;
return 0;
}

compile this code pls
>>
>>60612423
the man in the picture is brazilian
does that answer your question
>>
>>60612389
It's gets, not get.

>>60612395
Wrong. C has a const keyword now, though it really only means "read-only" (you can still modify it by hacking around with pointers). But string literals are allowed to be stored in a read-only section, which means trying to modify them puts you at risk of segfault.
char str[] = "Hello There";
does NOT mean "create a char array in the current scope and copy a string literal into it", it literally just means "create a pointer in the current scope and set it to point at this string literal stored elsewhere in memory".
>>
File: 5CJTPZ4.jpg (466KB, 1600x2200px) Image search: [Google]
5CJTPZ4.jpg
466KB, 1600x2200px
>>60612443
u smel like pic relted
>>
>>60612444
yes i suppose
>>
>>60612458

My mistake then. I guess I was thrown off by the fact that C++ warns you to declare a string literal as const.
>>
>>60612458
I didn't know that a.out would run if you get an error while compiling, I did put gets, t works as intended, Thanks!
>>
>>60611845
At least you don't have to specify input parameter name when calling functions in Kotlin.
>>
>>60612458

>char str[] = "Hello There"; does NOT mean "create a char array in the current scope and copy a string literal into it", it literally just means "create a pointer in the current scope and set it to point at this string literal stored elsewhere in memory".
You're thinking of
char *str = "Hello There";

If you declare an array, it makes an array.
>>
File: ran_do_it_again.png (25KB, 275x198px) Image search: [Google]
ran_do_it_again.png
25KB, 275x198px
>>60612537
>>60612464
>>60612443
>>60612421
>>60612380
>>60612380
>>60612364
>>60612339
>>60612305
>>60612279
>>60612230
>>60612206
>>
With jvm you use any language that can compile to java bytecode. The language might need it's own runtime library but by my experience you can just include the jar and be done with it. Of course it add into executable size, for example kawa scheme's runtime library adds like 2mb extra. Still it's platform where you can use many languages easily together.

Why having other languages use libraries from other languages with native libraries is so hard?
The only language that can easily be used is C. Of course exporting C like interface from other languages is possible but they almost always require you to init the GC and quit the QC and it's really ugly.
Why isn't there a language that doesn't have gc, doesn't name mangle but let's you use modern language features while exporting such interface that the libraries could be used from other languages as easily as C libraries?
>>
>>60612524
In that case you got an error at the linking stage, so I'm pretty sure you wouldn't get an executable. More likely the a.out is left over from a previous compile.
>>
What language/program should I be using to make a GUI for my C++ and python programs?
>>
>>60612578
>Why isn't there a language that doesn't have gc, doesn't name mangle but let's you use modern language features while exporting such interface that the libraries could be used from other languages as easily as C libraries?
I don't use it but maybe Rust?
https://news.ycombinator.com/item?id=8040529
>>
>>60612573
Does it? I thought
type identifier[]
was just syntactic sugar for
type *identifier[]
. I know that when you define a function argument as the first style it just expects a pointer. Also seems like it would wreak havoc with VLAs.
>>
>>60612537
u smel like pic relted
>>
>>60612649
prove him wrong
protip you cant
>>
>>60612093
scanf ("%[^\n]", name);
Will read an entire line as long your array is big enough, read a little about scanf, you can do a shitload of stuff with it. Don't forget to use %*c after to eat whatever character or newline after you read the name. Ex:
scanf ("%[^\n]%*c", name);
Will read the name and leave it ready to read whatever you want after.

But try forgetting about gets() and
scanf ("%[^x]", array);
they're generally unsafe messes and only work if you know and trust the size of what you're going to read or make extremely large arrays to avoid buffer overflow.

Try to use fgets() or fscanf(), fread() can work too, if you know the size in bytes of what you're reading.
>>
>>60612621
>
type identifier[]
equivalant to
type *identifier[]

read a better introduction to C.
>>
Why is there no good OS?
>Windows
retards who like candy crush and don't know they're being watched by government spies
>Mac OS
anal-loving faggot whores
>Linux
LIBERALS
COMMIES
WORTHLESS POOR PEOPLE!!!!!
apartheid is tolerable but still i hate the fact that it uses gnu """"""software"""""" made by that greedy fat jew who doesn't believe in the glory of capitalism
>>
>>60612621

No, that's not quite right. Pointer decay is subtle and sometimes confusing.
#include <stdio.h>

int main()
{
int arr[4];
/* won't compile
int arr2[] = arr; */
int *ptr = arr;
printf("%d %d /n", sizeof(arr), sizeof(ptr));
}
>>
File: 1489622554344.gif (425KB, 512x512px) Image search: [Google]
1489622554344.gif
425KB, 512x512px
>>60612728
>/n
>>
File: 1445705986467.jpg (31KB, 853x480px) Image search: [Google]
1445705986467.jpg
31KB, 853x480px
>>60612728
What are arrays even useful for? Why not just use calloc (with the exception of any situation where you know your data size is a compile time constant)?
>>
>>60612765
>What are arrays even useful for?
:^)
>>
Fun fact of the day: sizeof is not a function, the parentheses are actually not needed at all!

You can do:
sizeof thing


Instead of:
sizeof(thing)
>>
>>60612765
stack buffers are very useful, and so is the ability to return static buffers so you don't have the overhead of mallocing/freeing a heap data block 10,000 times a second.
>>
>>60612765

Stack arrays are allocated quickly and get cleaned up automatically like any other stack variable.
>(with the exception of any situation where you know your data size is a compile time constant)?
As long as VLAs exist, array size being constant should not matter when it comes to deciding whether to allocate them on the stack or heap.
>>
File: g2tSfA.gif (172KB, 650x650px) Image search: [Google]
g2tSfA.gif
172KB, 650x650px
>>60612824
>VLAs
How do you statically make amortized adjustments to the capacity of a VLA tho?
>>
>>60612674
He himself denied that he ever said that, why would you trust a liar? And the whole premise of the claim is that global warming isn't real, and is only used to justify pointless regulations that hurt business. But if you actually LOOK at cities in China, you can see the horrendous environmental damage caused by the lack of environmental protection regulations, so a theory like global warming isn't even NECESSARY to justify those regulations. If China just wanted to encourage environmental protection in the US, they'd just hire some shills to flood American social media with stories of the conditions in Chinese cities, rather than focusing on the theory of global warming which the American right rejects.

Not them btw.

>>60612703
If you want a "capitalist" OS, you're going to be stuck with the idiocy that is MacOS and Windows. That's what so many lolbertarians fail to understand - that certain industries naturally tend towards becoming de facto monopolies, and this makes it easy for companies to force their shitty agenda. Lolbertarians love to say that monopolies only exist BECAUSE of government intervention, but even if the government were to get out of the economy entirely, it wouldn't negate the advantages M$ and Applel have in terms of established name and ecosystem. Barely anyone has sufficient capital to develop an OS that's as good as one of the ones already established. Not even Microsoft did - they started with shitty ones like MS-DOS and Windows 3.1. But those OSes, as simple as they were, were good for the time period. But nowadays, such a simple OS can't compete, you won't gain any market share unless your OS is as sophisticated as Windows, which isn't going to happen on your first release unless you have an insane amount of starting capital.
>>
>>60612877
chink detected
>>
>>60612861

I don't understand the question.
>>
>>60611858
B-but that's NP-Hard
>>
>>60612765
Stack is faster than heap. And strictly speaking, heap data is an "array" as well, an array is just a contiguous block of uniformly typed data. And it's much easier to deterministically ensure stack data is freed, because it's structured in a way that the heap isn't.

>>60612792
Yeah but by convention I use parentheses around anything that takes arguments, same with return(0).

>>60612909
Not if you assume the program halts. Simply modify the input program's source to print "completed successfully" to a log file, compile the program and run it with the specified inputs, and see what the log file says.
>>
>>60612792
It's all about code readability, anon, for instance when you have to call a function to do something with variables inside a struct with sizeof arithmetics, things can get ugly pretty fast, especially in large projects when you have to deal with variables with 5-10 letters each.
>>
>>60612961
>Not if you assume the program halts.
But then you're not solving the same problem anymore.

I can solve the Reimann hypothesis if I restrict the domain in question to the real numbers (ie it's vacuously true). It's just that I'm not solving the Reimann hypothesis itself anymore.
>>
can anyone rec me a fun resource for learning assembly? i have x86 and C fundamentals and it's mind numbingly boring. i'm making no progress because i have real work i have to spend my mental energy on
>>
>>60613046

x86 is ugly as fuck, do something clean like ARM or MIPS
>>
>>60613046
My introductory material was using the the DCPU-16. It's much prettier than x86.
>>
>>60613046
Practical Common Lisp
>>
>>60612765
You should always prefer static allocation to dynamic allocation - it will always be faster due to a multitude of reasons, including the fact allocations take time, allocations are more spread out and usage of static memory is easier to optimize for the compiler since sizes are known. Defaulting to dynamic allocation is a bad habit often induced by C++ and literature covering it.
I also don't know why you would specifically pick calloc. If you don't need to zero-initialize, don't. The idea of resource acquisition being initialization is also a bad habit for performance critical applications.
>>
>>60613058
>>60613063
do you have a book in mind for any of them? or a video series or whatever, i don't really care about what format it's in
>>
>>60613031
Every program in the real world halts eventually, even if it's just due to the computer breaking down. Which could reasonably be considered a "crash". The question basically asks "when the program exits, does it do so at one of the exit points specified by the programmer, or at some other point." So we simply wait for the program to exit, then check whether a certain event has occurred.
>>
File: Stunning Looks.png (34KB, 277x285px) Image search: [Google]
Stunning Looks.png
34KB, 277x285px
>>60613093

>Defaulting to dynamic allocation is a bad habit often induced by C++ and literature covering it.
Really? One of the most appealing aspects of C++ compared to other OOP languages is the existence of automatic (statically allocated) objects and the whole RAII idiom based around scope-based allocs and deallocs.
>>
File: dlang_chan.jpg (139KB, 470x545px) Image search: [Google]
dlang_chan.jpg
139KB, 470x545px
Threadly reminder that dlang-chan is not dead; she's going to have her GC tumor removed (eventually); she's super duper cute; and she's a blast to write in! Say something nice about her, /dpt/!
>Features
https://dlang.org/comparison.html
>Standard library
https://dlang.org/phobos/index.html
>GC
https://dlang.org/spec/garbage.html
https://dlang.org/blog/2017/03/20/dont-fear-the-reaper/
https://dlang.org/blog/2017/04/28/automem-hands-free-raii-for-d/
>Books
https://wiki.dlang.org/Books
>>
>>60613093

I just don't understand how you can write practical things with only static allocation
>>
>>60613095
DCPU-16 is artificial, designed for a video game and to be specifically easy to learn/emulate, so it doesn't have much "official" resources. I mostly learned through the spec and researching assembly concepts online.

>>60613145
So by the same logic, asymptotic complexity shouldn't matter since there's a limit to how large our inputs can grow, right?

Doesn't this seem like a less effective system of reasoning than starting from theory and relating it to practice rather than the other way around?
>>
>>60613151
Well yeah Java is way worse in that regard. But I'm pretty sure most C++ data structures internally allocate a buffer on the heap, because otherwise the resizable buffer used by std::string or std::vector couldn't be implemented portably.
>>
>>60613151
C++ has a bad habit of encouraging dynamically allocating everything in small chunks, especially throught he standard library but also otherwise. For some reason, C++ programmers just tend to pretend as if they didn't know the sizes of their allocations before-hand, so they do it at run-time. You look at the memory patterns of typical C programs and compare them to most C++ programs and C++ programs always tend to definitely be more spread out.
>>
>>60613179

You can't. But you should prefer static allocation wherever it's practical.
>>
>>60613179
How so? There are times when dynamic allocation is definitely needed - for example, when reading a file. But I've written a lot of realtime programs that do not dynamic allocation at all during runtime. Check out for example the Destiny game engine talks at GDC-Vault, its a massive program and does zero dynamic allocation at runtime.
The thing is that for most programs, the programmer will know before hand what the worst case memory usage will be. Usually, its better to pre-allocate that memory if you want performance.
>>
>>60613183
>>60613195

I see now, yeah that's right. If you're using a lot of stl containers then you're hitting the heap often, probably unnecessarily.
>>
>>60611262
>Some poor bastards have to sit next to this thing in meetings every day
>>
>>60613180
The problem was referred to as "homework", which implies it is possible to complete in a fixed amount of time. So it's reasonable to assume that the running time of the input programs is bounded, or at least that the question is really asking whether the program will crash within a specified amount of time - exiting properly and continuing to run both count as "not crashed".

Also, asymptotic complexity is only meaningful for algorithms intended to take arbitrary sized input. With size of input bounded, constant terms are significant, but they are ignored by Big O.
>>
>>60613346
there is a trivial solution to the halting problem but it assumes someone is sitting at the computer

run the program

wait for as long as necessary

did the program halt? => the program halts
did the computer restart? => the program halts
have neither of these things happened? => wait longer
>>
>>60613145
>Every program in the real world halts eventually, even if it's just due to the computer breaking down.
anon, i have bad news. you have the tism
>>
>>60613473
the halting can also be (impractically) solved if you have two turing machines t and u and assume at least one of them (t) is actually a finite-state-machine implementation of a turing machine with limited tape (i.e. what every computer actually is)

for every possible state of t, let u contain a mapping to either 1 (halts) or 0 (doesn't halt)

to solve the halting problem for any given state s of t, simply look it up in u

because t has finitely many states, it is possible (but would be really really hard) to manually hard-code the table stored in u

this approach assumes no i/o obviously
>>
>>60611858

Even if we were to ignore the problem of this being undecidable (really, just use the proof for the halting problem, replacing infinite loops with crashing), a number of factors outside of a program's typical inputs may influence whether or not it will crash. For instance, dereferencing a pointer that was recently malloc'd. This might succeed, or it might not if malloc failed due to lack of available memory. Now imagine for a moment a system with extremely limited memory. When the code to determine if it is going to crash is loaded into memory, there is not enough memory to malloc a buffer and do some operations. When it isn't, this amount of memory is available. Thus, the existence of a detector can cause different results.
>>
>muh halting problem
pop sci tier mental masturbation
>>
File: message block coroutine.png (152KB, 1564x1740px) Image search: [Google]
message block coroutine.png
152KB, 1564x1740px
So previously I had the outcome of landing on a dialogue node simply run through that message {} block you see there, and every call msg("blah") would simply add "blah" to the list of messages the user had to click through to get to the next choice.

but then I wanted to have actions (ie loli:setClothesOn(Panties, false)) to be in synch with the flow of the user actually clicking through, so I basically emulated inter-language coroutines using thread/mutexes/etc (this is far from performance critical).

So now what happens is the main thread lanuches the message-code thread (which interpretes the loliscript you see in that image) until it reaches a call like msg() - which then halts the message interpreter thread and resumes the main game thread until the user clicks the button to advance the conversation.

This is good and all, but then I decided to also add in a fork() call which will also stop execution but instead of waiting for an advance dialogue click it will display some options to the user (ie fork("yes", "no", "maybe") will make the user chose between those 3 options, then return which one they clicked on - fork() would return 0, 1 or 2, and forkAsStr would return the key (which is the message for when you declare them as parameters of forkAsStr(), and will be the key to a message if you do addForkChoice"key", "actual message here").

Does this seem like an okay way of handling inlining control flow?

For more complicated stuff I have each dialogue node you land on being broken down into multiple of those outcomes, and whichever outcome's attributes {} block best matches the attributes of the npc (and player, etc) will be chosen and run.

Any suggestions or comments?
>>
>>60613473
that very blatantly is not a solution and i suspect you don't understand the problem. it only works for programs that do halt. for programs that don't halt, it doesn't give a result.
>>
who thought it was a good idea to make twitter plain white? how can you be this lazy and get away with it? especially the mobile version looks fucking disgusting, doesn't have proper borders around twitters
>>
>>60613804
Reddlt copies 4chan. Proper spacing is not something they invented, because they didn't invent anything.
>>
>>60613824
>doesn't have proper borders around twitters
*tweets
>>
>>60611291
Also what's get number?
>>
>>60613858
I'm not even the person you were talking to, smartass.
>>
>>60613804
haha, nicely meme'd
>>
>>60611630
damn anybody got the video without drax commentating?
>>
File: linus.jpg (337KB, 806x938px) Image search: [Google]
linus.jpg
337KB, 806x938px
>>60613858
>>
>>60613890
Not even >>>/b/ should have retards like you, you belong on >>>/z/

Just stop posting.
>>
>>60613885
http://money.cnn.com/2017/05/03/technology/susan-wojcicki-american-opportunity/
>>
Trying to figure out how to use tokio, I didn't think asynchronous I/O could be made so complicated with apparently no gain.
>>
>>60613953
cont.

"fuck off back to plebbit"
>>
Is there language like ats but with lisp's syntax?
>>
>>60612582
But it now works as intended with the whole name printing, I think it was just a warning
>>
learning C# and ASP.Net Core
i luv this
>>
File: no vajayjay allowed on the jay.gif (648KB, 489x377px) Image search: [Google]
no vajayjay allowed on the jay.gif
648KB, 489x377px
I also recently reworked the dialogue stuff away from NPCTalkState, to talking simply being a node in the girl's behavior tree (http://www.gamasutra.com/blogs/ChrisSimpson/20140717/221339/Behavior_trees_for_AI_How_they_work.php) ,I now have action() calls stop dialogue and then execute a specified behavior tree (child subtree) from the dialogue node.

This let me do something like pic related, where follow_1 links to follow_to_secluded, which exits dialogue and runs a dialogue tree which will follow the player and start a conversation when he wants to, when you're in a private location. Then the dialogue will continue at a different dialogue vertex (the playing doctor one).
>>
File: order naked.png (98KB, 1212x1531px) Image search: [Google]
order naked.png
98KB, 1212x1531px
Note: >>60613764 is for the game in >>60614099
>>
>>60614099
Didn't you get kicked out of /agdg/?
>>
>>60614099
That's some pretty unrealistic dialog options right there.
>>
>>60614099
>dialog vertex
Are you stoned?
>>
File: hourly update.png (644KB, 1444x4787px) Image search: [Google]
hourly update.png
644KB, 1444x4787px
>>60614152

No, I just didn't post in the past while since I was busy with work.

>>60614149

As if you can talk, being on /g/.

>>60614153

There will be more variance later. ie some lolis won't believe you, etc.
I am also not around children much, so maybe someone is can help me write better stuff. I'm mostly just doing the tech for the dialogue scrpting. Other people are free to write their own. I am used to lewd things with both people above the age of consent.
>>
>>60614207
>I am also not around children much
Thank god.
>>
File: 1486775690926.png (101KB, 1216x760px) Image search: [Google]
1486775690926.png
101KB, 1216x760px
>>60614204

No? The dialogue system is basically a big digraph system (with arcs being dynamically available depending on the state), so the files you see there are essentially vertices, and a conversation is basically a walk in the digraph. For example, see this picture. It's a digraph. Dialogue scenarios are vertices in it. links in the file correspond to arcs, and which outcome is chosen to activate arcs depends on which outcome's attribute block matches best.

It basically takes all available (ie ones that have their requirements field met) and computes the distance (basically an L^2 norm distance in a n-dimensional vector space, where n is the dimension of the union of all the attributes matched by all available scenarios, and with not-present fields as some "expected distance", ie if you match {a, b} and {b, c} it'll match in {a, b, c} but for the first one have c's dist be some fixed amount, same with a's dist for the 2nd one.).

>>60614221

I'm quite harmless, really.
>>
>>60614149
>Better use >>>/v/ where your kind belongs
trying this hard to seem like an old fag you're exposing how long you really been here, just saying.
>>
>>60614099
Where can I follow this project? I love loli more than one man should.
>>
>Update to .NET Core 2.0.0 Preview 1
>F# stops working completely
>Error MSB6006 Code 131
>Google it, bunch of people on Github complaining about the same error
>Look for a list of MSBuild error codes to see if I could try and fix it on my own machine
>They do not document all of their error codes.

Microsoft, I know you want to do this open source thing, but for fuck's sake, learn to document. Goddamn. Also, don't release preview builds that don't work.
>>
File: new dungeon editor.gif (363KB, 509x376px) Image search: [Google]
new dungeon editor.gif
363KB, 509x376px
>>60614278

I should mention for the fixed amount, I specify some "expected range" an attribute (dimension) can have, and then you can just integrate a distance function to see what would be the expected difference of a randomly (well, arbitrarily) chosen point from the point (or range) it's trying to compute the distance from.

>>60614377

I post status updates on:
/vg/'s Amateur Game Development General threads

/jp/'s Original Content threads

/d/'s /dgg/ threads

As for a more permanent place, check out the thread on 8's /agdg/ board.
>>
>have a program that starts a process
>didn't know how to start a process so googled it
>thing said to call some methods in a specific order
>days later run into an annoying problem, for some reason all my threads would wait until the process was complete
>so stumped I search for source code for something similar to mine because I must be doing something fundamentally wrong
>turns out it's because I had process.WaitForExit(); from the original running a process example
God dammit. It's odd it'd make my other threads wait though, the documentation specifies "current thread".
>>
File: mydesktop.jpg (407KB, 800x600px) Image search: [Google]
mydesktop.jpg
407KB, 800x600px
>>60611262
I tried to learn C today.
So I downloaded the 2th editon of C the programming lang by Ritchie Kernighan.
Reads first few pages and tries to compile hello world program,
Apparently function ()main does not work without a return type since introduction of C99.
Shuld I continue to read this book or is there a better C learning material out there?
>>
>>60613093
>Defaulting to dynamic allocation is a bad habit often induced by C++ and literature covering it
every C++ programmer i know adheres to the practice of using std::array (or equivalent), which implements a statically-sized array, whenever a static size is known or a reasonable maximum can be safely assumed (where it would not impose an arbitrary limitation which would cause scaling issues for the use case)

>>60613195
>But I'm pretty sure most C++ data structures internally allocate a buffer on the heap, because otherwise the resizable buffer used by std::string or std::vector couldn't be implemented portably
most do, but std::array is statically sized, and i believe all the major compilers implement std::string with the small string optimization, where strings under a certain size do not require a heap allocation

>>60613195
>C++ has a bad habit of encouraging dynamically allocating everything in small chunks
this is true more in the context of singular objects, due to real-world modeling. this is less of an issue with data structures, which tend to do all their allocations at once and attempt to minimize reallocation (as mentioned above, std::array is statically sized, and when it comes to other structures, any C++ programmer save for a novice will use sizing arguments and/or reserve functions where possible to further minimize or eliminate reallocations based on their use case)

>>60613257
If you're using a lot of stl containers then you're hitting the heap often, probably unnecessarily
see above

it's also very important to note that with any non-trivial collection of data, your biggest performance concern is actually going to be cache misses, which are just as much a problem for stack data as they are for heap data. getting too caught up in stack vs. heap can be a naive mistake that ends up costing you
>>
@60614471
Nobody cares.
>>
>>60611262
That's chris-chan in 25 years
>>
>>60614422
Thanks, man. I look forward to your work; it's impressive--at least compared to what those fags usually shit out over there. Can't have enough lolis!
>>
@60614536
Ok. Nobody cares though.
>>
Why is Android Studio so shite? Should I fall for Jetbrains meme?
>>
>>60614595
Hey, gatekeeper, how is it cracking my dude
Can you please explain why do you send people to /v/ for using meme word? I am not into videogames, like at all
>>
the gatekeeper is an autistic virgin that feels it is his sworn duty to keep normalfags and rabbitors out of /dpt/.
>>
>>60613179
I'm currently writing my own implementation of neural networks. All heap allocations are done only once, during the first forward pass because only then I have information on input tensor dimensions. The trick to it is, roughly, this: if I have a temporary variable that gets dynamically allocated in a method and I know its maximal size, I should put it as a class member and allocate in constructor or in the initialization phase. A few years ago I was working on a smoke simulation and rendering and simply this trick sped up the program tricefold.

So , the rule of thumb is this:
Static allocation > Dynamic allocation on initialization >>>> Dynanic allocation every time something happems. Also, C++'s move semantics are fucking awesome in that regard.
>>
meme
>>
>>60614409
Is there anything noteworthy about .netcore 2 to waste a couple of hours messing with it?
>>
>>60614794
>>>/trash/
>>
>>60614681
Imagine a thread without weebs and autists.
>>
>>60614809
>>>/trash/
>>
>>60613896
It's funny because neither Linus nor Richard wrote their respective pastas.
>>
>>60614530
chris-chan wishes he'd look that good. he's fucking wreck as it is.
>>
>>60614831
hey don't talk shit about my cartoons otherwise my senpei will notice you owo >:(

Fucking degenerate weaboo. If I ever met you real life, I'd make sure you can't stand up ever again.
>>
>>60614831
Back to your daycare board
>>>/a/
>>
>>60614852
Epic 4 teh lulz
>>
>>60614866
>I think you mean ""subreddit""
No I mean thread. Did childish cartoons mangle your brain?
>>
File: hordes of lolis.png (151KB, 512x384px) Image search: [Google]
hordes of lolis.png
151KB, 512x384px
>>60614539

Exactly, pic related.

>>60614681

But /g/ is a normie-as-fuck board...
>>
File: rms.jpg (132KB, 766x758px) Image search: [Google]
rms.jpg
132KB, 766x758px
>>60614524 >>60614536 >>60614574 >>60614595 >>60614615 >>60614633 >>60614633 >>60614794 >>60614797
Why do these retards have to stink up our programming thread with retarded screeching?

Can't we just have 75% programming talk and 25% anime/trap autism talk?

>>60614874
>Back to your daycare board
You know what this website is, right?

>>60614747
What kind of neural network implementation are you working on? Are you actually deriving the gradients yourself, or are you making your own toy graph-based autodifferentiation framework, or what?
>>
>>60614921
>But /g/ is a normie-as-fuck board..
Good. Keep it that way, we won't like a board full of mentally disabled autists, and especially weebs and furries
>>
>>60614932
Just report and hide, faggot
>>
>>60614481
read C primer plus
>>
>>60614971
>All the *chan websites are born out of anime culture.
There are containment boards for weebs, faggots and furries. Keep you degeneracy to your day care boards, you fucking lump of shit. I don't care if you jerk off to pedophile cartoons and what not, don't bring your degeneracy here, it's not programming.

Otherwise fuck off to >>>/a/

Reminder that anime is (((their))) propaganda to turn whites cucks and faggots
>>
>>60614971
>All the *chan websites are born out of anime culture.
Okay? How is anime related here? It's a technology board, programming thread. There are boards designed to contain your autism
>>>/a/
>>
>>60615025
This is not an anime site, wake up, weaboo faggot.
4chan is not an anime site, your waifu is not real
>>
File: confused.jpg (39KB, 374x347px) Image search: [Google]
confused.jpg
39KB, 374x347px
>>60615005
>anime is (((their))) propaganda to turn whites cucks and faggots
>>
>>60615025
>Anime is white and based
Are you mentally deluded?
>>
>>60614921
>Exactly, pic related.
That's a lot of lolis.
>But /g/ is a normie-as-fuck board...
It wasn't always. (e.g. techloli/g/) But it's far too late to argue now.
>>
>>60614806
Imagine a thread without a parent
>>
>>60615056
>>>/a/
>>
>>60615075
>on an anime site.
It's not an anime site, it has anime boards
>>>/a/
>>
>>60614932
>Are you actually deriving the gradients yourself,
Doing it myself. No time nor need for automatic differentiation a-la Theano. Too bad that actual documentation on how to build convolutional networks is scarce, everyone on the internet is "just use libs brah" or having implementations that are just simply wrong. Had to meditate over Caffe's code to understand it.

It's all for my Bachelor's thesis, I've deduced a way to make inference stage of processing videos in convolutional neural networks faster. And results are good. FCN-32s is 20-30% faster on a somewhat static video without much movement, up to 60% if almost nothing moves. I have additional ideas on how to improve it, but that's for summer and next diploma.
>>
>>60615075
>>>/a/
>>
>>60615075
>>>/a/
>>
>>60615025
>Anime is white and based
Anime is mongoloid and it's a form of degeneracy
>>
File: stronger.png (255KB, 432x426px) Image search: [Google]
stronger.png
255KB, 432x426px
>>60615071
Don't need to.

>>60615086
What are you doing to speed up evaluation? Is this regarding state-of-the-art on the CPU?
>>
>>60611303
link?
>>
File: 1494905613257.jpg (167KB, 597x1067px) Image search: [Google]
1494905613257.jpg
167KB, 597x1067px
>>60615124

you're right about the degeneracy though
>>
>>60615146
>An anime site
Where does it say "4chan is an anime site"?
>>
>>60615176
No where, it's just one of many mental delusions weebs like to hide behind of
>>
>>60614481
Use
-std=ansi
when compiling. After you read K&R, read Modern C.

>>60614973
It's mediocre.
>>
When will C++ finally get UFCS
>>
>>60615220

why does it need it?
>>
>>60615219
>Le norman ROO xD
>>
>>60615176
Right here: >>60615176
>>
>>60615219
Stop responding to their weak bait, anon. Unless you're samfagging for ultimate shitposting, then fuck you.
>>
Anybody have a pdf of Haskell Programming from First Principles they would be willing to share?

I am a girl, btw (male)
>>
>>60615224
Ddo(you(actually(like(doing(this?)))))
>>
>>60615228
See >>60615051
>>
>>60615224
You can never get enough features doing the exact same thing with different syntax.
>>
>>60615146
No problem man. Just try to keep board culture distinct, as it should be, weeb.
>>
>>60615236

I don't get it, if you want a member function just write a member function
>>
>>60615144
>What are you doing to speed up evaluation?
Sorry, can't tell until I both get published and defend my diploma. But there's enough info in my post to see how it's done. Acceleration in video is vastly unexplored, I found only 2 papers with similar goals to mine.

Currently I have only CPU implementation, but I plan to make GPU one over summer. Good way to practise CUDA. The core of my method won't change, just the BLAS methods would be replaced with cuBLAS and some loops need to be rewritten.
>>
>>60615243
I'm just quoting >>60615176-san
"4chan is an anime site"
>>
>>60615255
this().is().much().cleaner().because_of(ufcs)
>>
>>60615275

I agree, so use member functions.
>>
>>60615269
And I'm quoting where your claim gets debunked, disgusting weeb
>>
File: female developers only.jpg (4MB, 5312x2988px) Image search: [Google]
female developers only.jpg
4MB, 5312x2988px
>sorry we're not going to proceed with your application because you're the wrong gender
>>
>>60615279
>Anime is an integral part of this imageboard.
No it isn't. Go back to anime board if you like to talk about your degenerate cartoons, weeb shit
>>
>>60615284
Don't blame me, it was >>60615176 who said it.
I'm literally just quoting him.
>>
>>60615275
>>60615220
It's been proposed or so I hear, glad to see C++ finally catching upto decade old features that modern languages have
>>
>>60615335

what fucking languages?
>>
>>60615360
D and Rust come to mind.
>>
>>60615360
D has invented UFCS a long time ago, Rust and Nim have these already
>>
>>60615220
Wait, there's something the c++ standard doesn't have?
>>
>>60615255
Why do you need to write member function for things so trivial?
>>
File: relate.jpg (107KB, 1600x557px) Image search: [Google]
relate.jpg
107KB, 1600x557px
>>60615259
Huh, well at least to satisfy my curiosity, does it accomplish this speedup using some type of approximation method? Or is it designed to give the exact answer supposing the floats had unlimited precision?

>>60615301
Hey man, the neural net dude didn't even post any anime pictures.

>>60615328
Hell yeah
>>60615349
Himegoto
>>
>>60615377
>D invented UFCS
>>
>>60615419
Correct
>>
>>60615209
C primer plus then modern C
he's a beginner
>>
>>60615378
I've been waiting for concepts and modules for over a decade. FOR FUCK'S SAKE WHERE ARE THEY, ISO? I actually know where my country's ISO WG21 is. I'm gonna drive there and make them sign everything.
>>
File: dlang_chan_3.jpg (59KB, 339x339px) Image search: [Google]
dlang_chan_3.jpg
59KB, 339x339px
>>60615422
She's knows her stuff!

>>60615429
You can expect a beginner to go from K&R to Modern C. C Primer Plus is unnecessary and a waste of time.
>>
>>60614787

Not really. Microsoft also advertised that it would have VB.NET support, but this is not actually the case.
>>
Hey guyz I was learning C++ from the official k&r pdf but I was wondering why this won't work :^(
#include <iostream>

int main()
{
std::cout << 10.minus(8) << std::endl;
return 0;
}

int minus(int x, int y)
{
return x - y;
}


But I know this works in better languages like this"

import std.stdio;

int main()
{
10.minus(8).writeln;
return 0;
}

int minus(int x, int y)
{
return x - y;
}


Is it because C+2 is an old language? pls respond
>>
>>60615406
>some type of approximation method?
Nope. It achieves perfomance increase while being identical to the normal inference, though there is one option that you can tune to sacrifice accuracy for bigger speedups.
>>
>>60615491

pretty much

we need to tear C++ down, keep the good bits and start again
>>
>>60615452
>FOR FUCK'S SAKE WHERE ARE THEY
They exists, they're just not standa...
>ISO
ah, well then, enjoy your bureaucratic process, aka. shit post until somebody agrees with you, to decide how it should be standardized.
>>
>>60615491
wtf I hate C++ now
>>
>>60615503
>we need to tear C++ down, keep the good bits and start again
She's called dlang-chan!
>>
>>60615491
>declaring functions after main
Absolutely revolting. Also
>10.minus(8)

isn't a valid function call in C++. Read up on how functions actually work before attempting to use them.
>>
>>60615484
is it pure
>>
>>60615543
>declaring functions after main
Isn't gcc smart enough not to care?
>>
>>60615543
He's shitposting, anon.
>>
>>60615542

Not with that gc
>>
>>60615543
>>10.minus(8)
>isn't a valid function call in C++.
wtf I hate C++ now!``
>>
this is valid C++:

10_c.minus(8)
>>
>>60615562
Pretty much every compiler is smart enough not to care. That doesn't make it any less revolting.
>>
>>60615579
>That doesn't make it any less revolting.
Does it show any warnings?
>>
>>60615590
No.
>>60615578
No.
>>
>>60615570
It can be disabled for mission-critical code (Though some features like dynamic arrays are disabled because they rely on the GC.), and the GC is actually quite decent, and its impact is overstated. Still, I can't wait for it to be completely optional so that cleaner GC-free code can be produced.
>>
>>60615608
So let me get this straight
1. It doesn't care where you put your main, it'll look for the main first in any way
2. It doesn't even show any warnings
Aren't you being too autistic about trivial details?
>>
>>60615608
Yes it is.
>>
>>60615492
That's pretty cool, anon. Wish I could know more but I understand your situation.

In some scenarios like this, if you implement it in a facilitative language/platform, even if symbolic differentiation such as in theano isn't possible, autodiff in the general sense, using the chain rule given actual numerical input, will still be available to you. Cause you know, autodiff can differentiate algorithms, not just expressions. So then, if you find a faster way of evaluating, you have a faster way of differentiating, too.

Of course, it doesn't work everywhere, and you probably considered it already. But I just felt like throwing that out there.
>>
File: Untitled.jpg (118KB, 1556x491px) Image search: [Google]
Untitled.jpg
118KB, 1556x491px
>>60615636
It's poor form. A compiler also won't care that you declare functions with different case names and use a different bracket style making your code a mess, but it's still not a good idea unless you're programming alone in your basement for your eyes only.
>>60615645
No, it's not.
>>
File: 1451363404736.gif (742KB, 200x189px) Image search: [Google]
1451363404736.gif
742KB, 200x189px
>>60614973
>>60615209
>>60615429
>C primer plus
>Look this up
>mfw its 800 pages long
>>
>>60615679
>what are symbol tables
>>
Do these languages with UFCS allow calling static members instead of free functions?
i.e. I can write something like
class Foo
{
void do_thing(Foo foo)
{

}
};

Foo foo;
Foo.do_thing();


...and therefore remove the need for a difference between static and nonstatic functions, leaving just a virtual/nonvirtual distinction?
>>
>>60615679
>different case names
Necessary in some programming practices., if it's a module and you are going to export a function please star the function name with an upper case, easier that way
>a different bracket style
clang-format exists, no?

Learn to utilize the tools you are given, caveman
>>
>>60615701

I forgot the static
class Foo
{
static void do_thing(Foo foo)
{

}
};

Foo foo;
Foo.do_thing();

but I think you get the idea.
>>
>>60615689
>C tards afraid of page count
Isn't that why you people chose C over C++?
>>
Women in tech is dumb.

There's a white girl in my class who copied over half her code on the last programming assignment, and got caught and received a 0 on the assignment. Pretty light consequences. Her mom is a tech recruiter so she's landing an internship even though its her first year, and she's really heavily involved in all the female STEM groups so everything thinks she's a great person, and also gets into special programs for diversity here.

Fuck this shit. I'm an asian male busting my ass off getting an A/A+ in every course, studying interview questions whenever I have free time, and I feel like I had to jump through 5 times as many hoops as some of these other people.
>>
>>60615711
>star
start
>>
>>60615679
#include <iostream>
using namespace std;

struct CInt {
int data;

int minus(int c) { return data - c; };
};

CInt operator "" _c(unsigned long long x) {
CInt c;
c.data = x;
return c;
};

int main() {
std::cout << 10_c .minus(8) << std::endl;
return 0;
};
>>
>>60615725
Thanks for the update, jimmy
>>
File: 1495283059089.jpg (28KB, 720x474px) Image search: [Google]
1495283059089.jpg
28KB, 720x474px
>>60615689
>looks up C primer plus expecting it to be a 40 page C for absolute retards beginner guide for children below 6
>>
>>60615733
If you are using std namespace why not just write
cout<<"abc"<<endl?
>>
>>60615749
I wrote it in ideone.
That was automatic.
>>
>>60615658
>using the chain rule given actual numerical input, will still be available to you
Well, backpropagation is kind of that. Not as general as true autodifferentiation using dual numbers and whatnot, but still.
>>
http://www.learncpp.com/
Best site to learn Cp(p)
>>
File: 1486327323237.png (12KB, 500x294px) Image search: [Google]
1486327323237.png
12KB, 500x294px
>>60615733
>anon it works!
>if you explicitly go out of your way to make it work!
>>
>>60615771
I said it was valid C++.
The only part I got wrong was that you need a space before the dot.
>>
>>60615780
what
>>
>>60615797
He has severe autism triggered by io streams.
>>
>>60615807
Better alternative?
>>
>>60615816
not them, but stdio is much more compact
>>
>>60615780
You know, that actually made me think of a language without any io whatsoever, but with a trick: any "input" is compiled into the program as the program executes.

Fuck, that sounded much better in my mind.
>>
NEW THREAD!

>>60615837
>>60615837
>>
>>60615825
>No I/O at all.
Oh
Are you a weeb by any chance?
>>
>>60615845
I think he is, it's the gatekeeper so of course he's an autistic weeb
>>
File: Deluxe_package.jpg (17KB, 332x218px) Image search: [Google]
Deluxe_package.jpg
17KB, 332x218px
>>60615932
excuse you but this game is better than anime and you can't prove me wrong
>>
Why was the thread deleted?
>>
>gatekeeper BTFO
kek
>>
>>60616594
Because this one didn't reach the bump limit. I'd also like to think because it was also very low quality.
>>
>>60616619
When I made the new thread, we were at 320 in this thread.

What a backhanded thing to do.
>>
>>60616639
Your thread was taken over by intense shitposting. This is for the better. Also please make more /dpt/ edits of mangos.
>>
>>60616639
Next time start a programming thread with something related to programming, not your liberal SJW/LGBT anime propaganda
>>
>>60616669
Anime is the fundamental part of imageboard culture and being disgraceful to the anime must be a punishable offence.
>>
>>60616676
>>>/a/
>>
>>60616619
This thread got purged, AND the other thread was beyond saving.
>>
>>60616625 <=== New new thread
>>
>>60616668
I'm not the one who made the edit, but if you can link me to that one manga font everyone uses, I'll happily start making edits~
>>
I'm just getting into Ruby on Rails. Is it a meme? what should I learn instead? also can you suggest a Linux Distro for laptops? Thanks in advance.
>>
File: 1461999665080.jpg (95KB, 1280x720px) Image search: [Google]
1461999665080.jpg
95KB, 1280x720px
>>60611262
Embrace the anime era, it will come soon.
>>
File: 1414195293595.png (821KB, 683x700px) Image search: [Google]
1414195293595.png
821KB, 683x700px
>>60616676
>tfw the anime shitposting will eventually cause anime to become a bannable offense
>>
>>60616714
>meme
>>>/v/
>>
File: anti-anime autist gets banned.jpg (202KB, 897x445px) Image search: [Google]
anti-anime autist gets banned.jpg
202KB, 897x445px
>>60616725
nope
>>
>>60616691
http://www.blambot.com/
>>
>>60616714
>Is it a meme?
No but it's worthless the second you have to scale it up

>what should I learn instead
Golang if you plan on doing concurrency work, C otherwise.
>>
File: 1475782564656.jpg (46KB, 500x500px) Image search: [Google]
1475782564656.jpg
46KB, 500x500px
>>60616725
Being disgraceful to the anime must be outlawed.
>>
>>60616725
We got rid of desktop threads
Now we get rid of anime weeaboo culture all together
>>
>>60616770
thanks.
>>
>>60616800
OK, fuckers.
You had 1 (one) chance to show any respect to the local culture.
>>
>>60616847
>local
>>
>>60616847
weeb shit is not culture, not even in japan
>>
>>60616879
>>60616886
Anime is the fundamental part of imageboard culture.
>>
>>60616594
Because of dumb animeposters.
>>
File: 1495931170072.jpg (52KB, 480x516px) Image search: [Google]
1495931170072.jpg
52KB, 480x516px
>>60616893
No matter how much you scream it'll not become true.

There are containment boards for weebs just like there are containment board for furries

Not programming
>>>/a/
>>
>>60616676
>>60616893
>Evades bans to shill anime
Kill yourself
>>
GOOKMOOT! BRING /PROG/ BACK TO CLEANSE US FROM THE WEEB!
>>
File: 1438825787156.jpg (32KB, 400x400px) Image search: [Google]
1438825787156.jpg
32KB, 400x400px
>>60611262
Embrace the anime era, it will come soon.
>>
>>60616963
This.
>>
>>60616968
>>>/a/
We don't want stinky weebs around here
>>
>>60616968
>>60616969
>>60616979
this pic is really really cute
>>
>>60616985
Not programming
>>
>>60616985
It's not like that, weebs are the worst cancer. I don't care if you watch anime or not but do remember that weebs are killing /dpt/ inside out:
>Language wars
weeb
>gatekeeper
weeb
>No I/O
weeb
>what language would anime be
weeb
>writing linux in haskell
weeb
>cross-dressing and other SJW/LGBT propaganda
weeb
>Game development isn't programming
weeb
>"who are you quoting"
weeb
>"she"
weeb
>turing completeness was a mistake
weeb
>faggot programming socks
weeb

Ban and purge all weebs and this thread becomes infinitely better
>>
File: 1459874363915.jpg (233KB, 541x458px) Image search: [Google]
1459874363915.jpg
233KB, 541x458px
>>60616999
>No anime.
... on an anime site.

You have a very low IQ, anon.
>>
>>60617061
This is not an anime website. Deluded weeb
>>
>>60616772
>>60616725
It's true though. MLP posting had gotten so out of hand that it was a bannable offense.

>>60616743
The font does not match the rest of the webpage. I think this was shooped.
>>
>>60617086
It is though and always was. Look at its name
>>60617131
ML* isn't an integral part of imageboards.
>>
>>60617061
I have a question: anime lovers have their own boards that specifically cater to their interests. They have a board for anime, for japanese culture, and a few more for their degenerate pornography. So why is it that animefags feel the intense need to post anywhere else?

You see, the bronies keep to their own board. The gurocunts keep to /b/, the lolitards keep to /b/, but for some inescapable reason the animefags continuously overstep the welcome they have been granted and threaten their own privileges to post by encouraging an atmosphere that despises anime.

>inb4 cheeky anime screenshot
>>
File: 1459633347150.jpg (51KB, 1024x574px) Image search: [Google]
1459633347150.jpg
51KB, 1024x574px
>>60617182
Imageboards are based on anime culture. You can fuck off to somewhere else if you don't like it.
>>
>>60617139
I don't get it. How is deliberate shitposting an integral part of imageboards?
>>
>>60617228
>mageboards are based on anime culture
No.
Also, weebshit is NOT a culture. Take your liberal arts SJW agenda somewhere else
>>
File: 1460859389657.png (958KB, 1160x1000px) Image search: [Google]
1460859389657.png
958KB, 1160x1000px
>>60617237
Anime is an inseparable part of imageboards. I'm sorry if you don't like it. Go to some other website which better suits your interests.

>>60617238
>No.
Yes. The history is clear on this.
>Take your liberal arts SJW agenda somewhere else
Anime is purely right wing and based.
>>
>>60617228
>Imageboards are based on anime culture
Why, might I inquire, are there specific containment boards for your kind if the entire website is for anime, otaku culture, yaoi, etc?

Oh, right, because we have a semblance of organization here.

Furthermore: just because something originated in Japan doesn't mean it exists solely for the distribution/discussion of anime.

Mind you, I have nothing against anime and enjoy some myself. I'd prefer, however, if you didn't shitpost.
>>
>>60617262
1. Weebshit is not a culture, not even in Japan. Your kind is deemed as the leeches of the society. Your kind has no place on earth
2. "Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots
>>
>>60617280
Stop arguing. Just report and move on.
>>
>>60617262
>Anime is purely right wing and based.
This is why Trump won't be reelected.

>>60617262
>Anime is an inseparable part of imageboards because I can't be called out for shitposting
>>
File: 1457185396434.png (26KB, 290x272px) Image search: [Google]
1457185396434.png
26KB, 290x272px
>>60617280
I think you come from reddit based on the formatting of your post, so your opinion and factually incorrect view of history is entirely irrelevant.
The whole website is influenced and controlled by anime. Go to some other site if you don't like it.

>>60617292
OK, fuckers.
You had 1 (one) chance to show any respect to the local culture.
You didn't.
Anime is the fundamental part of imageboard culture and being disgraceful to the anime must be a punishable offence

>>60617299
Trump is a l*ft wing agent.
>>
>>60617315
SJW agenda is not the part of 4chan "culture"
>>>/out/
>>>/a/
>>
File: 1456588092714.png (65KB, 300x300px) Image search: [Google]
1456588092714.png
65KB, 300x300px
>>60617325
Anime is strictly right wing and based.
>>
>>60617336
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots
https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60617357
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60617396
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots
https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60617415
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60617437
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots
https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60617440
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60617468
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots

https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60617508
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60617511
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots

https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60617521
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60617568
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots

https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60617575
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60617613
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots

https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60617626
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60617647
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots

https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60617663
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60617682
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots

https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60617693
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60617732
>>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots
>https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60617756
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60617772
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots

https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60617777
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60617806
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots

https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60617819
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60617836
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots

https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60617843
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60617894
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots

https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60617931
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60617944
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots

https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60617987
>>>/a/
>>
>>60617963
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60618025
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots

https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60618045
Stop posting.
>>
>>60618056
Anime is (((their))) way to turn whites into cucks and faggots
>>
>>60618045
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60618121
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots

https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60618142
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60618152
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots

https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60618170
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60618196
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots

https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60618211
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60618267
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots

https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60618270
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60618289
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots

https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60618321
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60618376
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots

https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60618386
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60618437
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots

https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60618471
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60618499
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots

https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60618531
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60618557
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots

https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60618569
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60618595
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots

https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60618636
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60618661
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots

https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60618671
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60618710
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots

https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60618718
>"Anime is (((their))) way"
No it isn't. Anime is the purely right way to turn whites into alphas and harem masters

https://cs.sankakucomplex.com/data/c0/af/c0afeff223a42ba82e7ea7253c7112cf.webm?5056367
>>
>>60618856
>"Anime is purely right wing "
No it isn't. Anime is (((their))) way to turn whites into cucks and faggots

https://3.bp.blogspot.com/-lK5XYt8OtMI/UxN4eZkCzOI/AAAAAAAACks/xHi9e8STa24/s1600/iwatobi1.png
>>
>>60618718
>>60618856
>>60618876
>No it isn't.
It is. Anime is purely right wing.
>blog
Didn't even click the link.
>>
>>60619111
>"Anime is (((their))) way"
No it isn't. Anime is the purely right way to turn whites into alphas and harem masters

https://cs.sankakucomplex.com/data/c0/af/c0afeff223a42ba82e7ea7253c7112cf.webm?5056367
>>
The anime era will come soon....
>>
>>60619273
KYS weeb
>>
>>60611291
loles
Thread posts: 404
Thread images: 57


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