[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/dpt/ - Daily Programming Thread

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 350
Thread images: 26

File: tmp_4888-1484152575123305764267.jpg (675KB, 940x822px) Image search: [Google]
tmp_4888-1484152575123305764267.jpg
675KB, 940x822px
What are you working on, /g/?

Old thread: >>59240106
>>
File: 1439648511159.jpg (116KB, 469x469px) Image search: [Google]
1439648511159.jpg
116KB, 469x469px
First for C and cute anime girls.
>>
>>59246957
C for C(ute)
>>
>>59246942
>99.9% uptime SLA
LOL
>>
File: cppmap3.0 (screen 8bit 96dpi).png (904KB, 1459x971px) Image search: [Google]
cppmap3.0 (screen 8bit 96dpi).png
904KB, 1459x971px
Looks like they've voted C++17, it's time to learn it: https://github.com/tvaneerd/cpp17_in_TTs/blob/master/ALL_IN_ONE.md
>>
>>59247010
>Piling more shit onto a pile of shit is going to make it better
>>
>>59247026
It's pretty ugly, yes, but this is what I'm going to use in the foreseeable future if I want to keep getting paid.
>>
>>59247010
C++17 isn't finalised yet. Also that page is incorrect, concepts didn't make it into C++17. Who knows what else it got wrong.
>>
>>59247106
It's been "approved", whatever it means: https://twitter.com/joncaves/status/837875591521017857 .
>>
>>59247127
Ah, I hadn't seen that.
>>
There are more game engines in sepples than there are niggers in Africa.
Why none of them exports C api?
>>
>>59247294
C is unpopular in gamedev.
>>
>>59247294
They could but only cargo shorts wearing ubernerds like you would use it!
>>
>>59247308
Yeah but considering how many engines there are you could think that at least one them would want to stand out.
>>
>>59247317
Well, there are numerous IdTech engine forks and extensions. Also, there are SDL and Allegro libraries.
>>
>>59247106
>that page is incorrect, concepts didn't make it into C++17
>"they are not part of C++17"
lrn 2 reed
>>
>>59247483
Not sure why he'd put it in a page about C++17 then...
>>
>>59247535
then maybe you really do need to learn how to read
>>
>>59247636
>Here's a page about features in C++17
>And just after an innocuous header, a bunch of stuff that's not in C++17
It's poor writing.
>>
I'm learning Ruby and really enjoying the language, but I see some hate for it here..why is that ?

I understand if you prefer compiled languages or as pure preference for another scripting language such as python, but why do you think Ruby sucks ?

so far to me, it seems like a great language and I do not use it for web stuff at all.
>>
>>59246957
C is Cancer
>>
>>59246957
C as in Comfy
>>
>>59247714
Ruby is fine, it's just there's no reason to use it instead of more popular Python.
>>
>>59247729
C++ is more cancer, D is degradation, R is retardness and Java is gay.
>>
>>59247779
D id dead tho.
>>
File: 050317-1123.png (637KB, 4000x2560px) Image search: [Google]
050317-1123.png
637KB, 4000x2560px
Reverse engineering this program. My keygen is coming along, 1/3 decryption done, C++ vtables are horrid to reverse, but not bad as some monstrous obfuscation routines I've had to replicate, no clue what they do, I just hope it replays correctly and it seems to match real outputs if provided with identical machine dependent bytes.
>>
>>59247779
Java is Jewa
>>
>>59247791

That's a lie, though. Andrei is working on it full-time, now.
>>
>>59247800

What program?
>>
>>59247865
So what, Digital Mars has been working on it for 20 years now, it doesn't mean it isn't dead.
>>
>>59247865
So? D has already used up it's chances.
You can only fuck up so many times before people completely give up on you.
>>
>>59247873
What is "dead"? Programming languages do not breathe
>>
>>59247755
Pytgon is the worst popular language
>>
Best book on lua?
>>
>>59247907
C is the worst popular language
>>
>>59247729
oh, wdg is closed,huh?
Don't worry, I opened a new thread ,now fuck off
>>
File: malcolm_logo_grey.gif (4KB, 114x155px) Image search: [Google]
malcolm_logo_grey.gif
4KB, 114x155px
What does /dpt/ think of Shen?
>>
>>59247912
There is a certain elegance to C that you shitty scripting fags will never understand.
>>
>>59247908
The stuff linked from their website.

>>59247924
I've literally never heard of it, and have no intention of looking it up.
>>
>>59247884
>I have nothing to reply so let's talk semantics
If a language doesn't attract new users and it's popularity doesn't grow in years, if it has no established niche and it isn't being actively used for new projects, it's dead. COBOL is dead, Pascal is dead, Lisp is dead and D was a stillborn.
>>
>>59247924
It's okay I guess. I haven't built anything large in it because most of the programming I do now is gluing thing together, it doesn't have enough libraries for that, and interop is hell in any system.
>>
File: lain_at_her_computer1.jpg (74KB, 1280x720px) Image search: [Google]
lain_at_her_computer1.jpg
74KB, 1280x720px
>>There is a certain elegance to C that you shitty scripting fags will never understand.
There is a certain elegance to Lisp that you shitty C fags will never understand.
>>
>>59247981
That's not Lain. Also you're wrong.
>>
binary search tree in C. I'm trying to stdin string data (call it key here) into a binary search tree. I'm only sharing the part that im trying to figure out. My insert function works fine.

Code#1 ends up changing what root->key is every time. What I'm trying to accomplish simply what code#2 does where root->key never changes but of course with stdin instead of the given strings.

code #1
        line = (char*) malloc (101);                    
if (inName == NULL) {
printf("\nEnter one line at a time:\n");
strcpy(tmp, "");
fflush(stdout);
fgets(tmp, 100, stdin);
strcpy(line, tmp);
root = insert(root, line, cflag);
printf("root: %s", root->key);
while (strcmp(line, "\n") != 0) {
strcpy(tmp, "");
fflush(stdout);
fgets(tmp, 100, stdin);
strcpy(line, tmp);
if (strcmpCase(line, "\n") != 0) {
insert(root, line, cflag);
printf("root: %s", root->key);
}
}
}


code #2
root = insert(root, "i", cflag);
insert(root, "am", cflag);
insert(root, "gay", cflag);



god fuck me, i hope im making sense
>>
>>59247981
I'm a Cfag and I have no problem with LISP. in fact, I think it's one of the better scripting languages along with bash
>>
What do I do if I'm struggling to learn programming? Been at it for almost two months now. And I'm having tremendous difficulty doing exercises.
>>
>>59247908
Programming in Lua Fourth edition
>>
File: 2017-03-05-121700_601x671_scrot.png (77KB, 601x671px) Image search: [Google]
2017-03-05-121700_601x671_scrot.png
77KB, 601x671px
What's a project I can do in C++ to pretend I know C++? Something that makes use of important/popular C++ concepts and I can mention in an interview as a proof that I am good at C++. I used C and Java during my undergraduate, but I've went into data science / machine learning since then and only been using Python. Never really learned C++

A compiler needs too much domain knowledge, and I never liked compilers in undergrad, an OS is too difficult, a WM would require GUI which I'm not really interested in... a shell? machine learning algorithm implementation? a neural net? I'm not sure if these would use enough core C++ concepts to actually make me pass technical questions about the language. For instance, I have no idea what the guy in pic related is going on about
>>
>>59248075
>mathematically inclined
>basic itertools functionality

Are you in a program for the mentally challenged?
>>
>>59248027
Your code is needlessly complicated and is doing a whole bunch of shit it shouldn't need to.
>strcpy(tmp, "");
This is pointless. It is equivalent to tmp[0] = '\0', and the fgets call later already ensures that this is true.
>fflush(stdout);
This is also pointless. Your message should be flushed immediately, because it ended with a newline. If you're concerned about this behaviour not happening, use setvbuf to make sure stdout is line buffered.
>if (strcmpCase(line, "\n") != 0) {
>while (strcmp(line, "\n") != 0) {
>fgets(tmp, 100, stdin);
>insert(root, line, cflag);
Your code has a shitload of duplicated logic. You should be able to write it in such a way that you only need to call these functions once.
>god fuck me, i hope im making sense
No, you're not really.
Are you just trying to get it so you don't have to keep reassigning 'root' like
root = insert(root, line, cflag);
?
>>
>>59248151
I haven't got to itertools.
>>
>>59248138

Just make a lisp interpreter.
>>
>Experience with implementing numerical methods

What does this mean? Any examples of "numerical methods"?
>>
>>59248151
It says write a function that solve it not use a function someone else wrote to solve it.
>>
>>59248072
>lisp
>scripting language

also
>bash
>better scripting language
>>
Can C++17 concepts completely replace object inheritance and polymorphism?
>>
File: IMG_0008.gif (7KB, 218x305px) Image search: [Google]
IMG_0008.gif
7KB, 218x305px
who MIPS_ASM here?
literally best low level language
>>
>>59248200
Euler's Method
>>
>>59247924
Is the logo meant to look like someone sucking themselves off?
>>
>>59248262
C++17 has no concepts. And no, they can't, it's literally just Type Classes from Haskell, aka Traits from Rust, all they do is add bounds to parametrical polymorphism templates provide.
>>
File: Jade_Emperor._Ming_Dynasty.jpg (271KB, 1080x1600px) Image search: [Google]
Jade_Emperor._Ming_Dynasty.jpg
271KB, 1080x1600px
>>59248296
No, you stupid shit. It's a spirit from Chinese mythology.
>>
>>59248262
they're checked at compiletime not runtime
>>
>>59248277
Writing an exam about this and other micro processor related things tomorrow.
I gotta know some basics like the ones in your image.
>>
>>59247873
>>59247875

Mere allegations.
>>
File: 1484634038012.jpg (5KB, 370x334px) Image search: [Google]
1484634038012.jpg
5KB, 370x334px
I'm probably the smartest guy here. Just saying.
>>
>>59248439
>least retarded guy on /dpt/
Congrats bro
>>
>>59248439
That's not much of an achievement tho.
>>
>>59248277
>>59248412
Also, your image uses subi, so it's not MIPS ASM but probably some other kind of ASM.
I had to google that before, if you want to substract an immediate, you gotta go
addi $sp, $sp, -4
.
>>
People something ask for "knowledge in C/C++" Does that mean knowledge in both or in either? How hard is it to transition to C++ from C?
>>
>>59248496
It usually means knowledge of C++, because if you know C++ you know 90% of C, and if you know only C, you know 30% of C++.
>>
>>59248380
Okay, but that doesn't stop it looking like someone holding their legs up in the air to get their tongue as as close as possible to their cock.
>>
>>59248496
c/c++ is retards way of saying c++. The sepples people just want to ride on C fame in case the subject is embedded.
>>
>>59248496
Don't compare the bloated garbage that is sepples to C ever again
>>
>>59247010
This one in particular is great for me, I have a lot of code that will be simplified.
>>
File: Untitled.png (14KB, 812x294px) Image search: [Google]
Untitled.png
14KB, 812x294px
>>59248535
Woops, forgot pic.
>>
>>59248563
Jesus Christ how ugly language.
>>
>>59248617
Thank you for your opinion, much appreciated.
>>
File: cat on CRT 2.jpg (41KB, 600x456px) Image search: [Google]
cat on CRT 2.jpg
41KB, 600x456px
what should i read if i want a detailed breakdown of how to impliment goal based agents? norvigs AI a Modern Introduction is pretty light on details on this as far as i can see

>>59246741
im implimenting agents in prolog, not in a proper game engine.
>>
>>59248528
That's just you being a degenerate.
>>
>>59247271
hi
>>
>>59248526
>C++ you know 90% of C
C++ and C are two different languages. They're fundamentally different.
>>
File: sub.jpg (32KB, 546x268px) Image search: [Google]
sub.jpg
32KB, 546x268px
>>59246942
Esoteric programming language interpreters.

Frustrating when the example code knocking about was either
(a) made for an existing interpreter that did not follow spec closely enough and relies on those differences to work
(b) relies on undefined behaviour (in the spec) that has been filled in using god-knows-what behaviour by some unknown existing interpreter
(b) not tested in an interpreter at all therefore buggy (who's gonna look right?)

I don't mind writing my own code in $language but I like to verify my implementation against existed documented examples...and then sometimes those examples fall over and I have to work out which of the above options has happened.
>>
Am I a programming language?
>>
>>59248783
Yes, but even C++ is better than you.
>>
  int N = 1<<20; // 1M elements 


Is
1<<20
= 1M because it's 2^20 ~ 1048576?
>>
>>59248783
I don't know, are you Turning complete?
>>
>>59248796
probably, yes
>>
>>59248793
No...
>>59248809
Yes, I can turn around completely.
>>
>>59248796
yes
>>
>>59248783
No, you're my bitch
>>
>>59248818
>>59248831

Is this how people think in C++? Using bitshift operations and thinking in binary? In python I'd have used
N = 1e+9
>>
Right now, I just finished a web-app development flow, and want to share it but haven't the fuckin faintest idea where to post it.

(React + Typescript + Less made easy)
>>
>>59248847
/r/programming or some other reddit subreddit for webdev or react or whatever. even HN if you're feeling lucky
>>
>>59248847
>web-app development flow
Like million other faggots.
>want to share
No you want attention faggot.

Post it in hackernews like the rest of your kind.
>>
>>59248796
>is 3*2 = 6 because 2+2+2 = 6?
>>
>>59248865
>not wanting attention
r u depression
>>
>>59248152
Let me try again

So I'm trying to figure out why my code (#1), which gets an stdin string and puts it into a binary search tree, isn't working like it does when I feed the strings myself.

        // root is a node, cflag is just an option for comparing not relevant to my question
line = (char*) malloc (101);
if (inName == NULL) {
printf("\nEnter one line at a time:\n");
fflush(stdout);
fgets(line, 100, stdin);
root = insert(root, line, cflag);

while (strcmp(line, "\n") != 0) {
fgets(line, 100, stdin);
insert(root, line, cflag);
}
}

inorder(root);
postorder(root);


I should be getting a result like I do when I run:
root = insert(root, "i", cflag);
insert(root, "am", cflag);
insert(root,"gay", cflag);

inorder(root);
postorder(root);


But it seems like it forgets what the original root is so when I go to to inorder/postorder I get no result with my first block of code.
>>
>>59248883
>>>/r/abbit
>>
>>59248865
If you say so. Personally, if I could use React with Typescript and LESS to do the UI of a C# application, I fuckin' would.

Also, if you're creating an app, you're a fuckin retard to not make it accessible on the web, unless you specifically require native capabilities of each platform.
>>
File: federallaw.png (49KB, 1214x124px) Image search: [Google]
federallaw.png
49KB, 1214x124px
>>59248847
people don't really like webdev here
hn, /wdg/, /r/webdev
>>
>>59248847
>>59248863
>>59248865
>>59248883
>>59248906
Back to your subreddit
>>
>>59248842
>In python I'd have used
N = 1e+9

That's not the same number though.
A MiB is 1024*1024, while 1e+9 is 1000*1000.
So you can either calculate 1024*1024, or you can do something much less ressource intesive, which is to take the 1 and bitshift it 20 digits to the left. It's a single operation.
Protip: 2^10, 2^20, 2^30, and so on are 1kiB, 1MiB, 1GiB, and so on.
>>
>>59248842
>>59248926
Also, chances are that habit comes from the C64 days, apparently it was really common to do bit operations like that. Maybe it's just some guy in his 40s.
>>
>>59248923
>/r/webdev
yeah, that's where your kind should fuck off to.
>>
>>59248923
I don't see why not. Programming is programming. Whether it be a native application, a web app, a server-sided application, or what-not, development is the goal, and if you can make it more accessible for your users, why wouldn't you?

I personally use C# for desktop apps, will soon be using Xamarin for android/iOS, use ASP.Net for web servers, and React + Typescript + Less for client-sided web apps.

But if I had my way, I'd be using C/C++ if I could use the React + Typescript + Less setup as the UI, and C/C++ as the under-layer.

>>59248952
Full stack, or you are incompetent. Eat shit, cunt.
>>
What cross platform(desktop, phones) options do you have other than web?
QT is one.
Kivy for python, but the hardware access is kind of limited.
I ques SDL with some gui library would work to some extend.
>>
@59248957
deport yourself back to your subreddit.
>>
>>59248961
If I really had to do cross platform, I'd be using GLFW with OpenGL for the UI. I am just waaay too fuckin lazy to learn a project setup at this point in time.
>>
>>59248957
>that ribbit spacing
How about you fuck off? Your kind isn't welcome here.
>>
>>59248714
Hello Master, what can I do for you today?
>>
>>59248975
>It is planned to at least attempt to add support for iOS and Android there too. It's not my highest priority atm but I am curious about giving it a try sometime.

SDL for windowing is more platform than GLFW.
For opengl replacement there is bgfx, or you would have to use gles 2.
>>
>>59248983
Ya mind providing a definition for ribbit spacing?
>>
>edgy Rust kids try to bully webdevs

I loathe webmemeshit as much as the other guy, but come on. Provide some arguments at least
>>
>>59248957
Web development is traditionally not the goal of /dpt/. There is the /wdg/ for that.
>>
>>59249006
How about just fuck off, you don't belong here.
>>
>>59249011
>edge
>"""meme"""
found the redditor. now fuck off back to your shithole.
>>
can't fucking sleep all I can think of is how to fix my type system. been laying in bed for 6 hours and have fleshed out and formalized a proper inference algorithm, + rethought many core decisions in the type system. still haven't gotten a wink of sleep tho
>>
@59249006
Yes, I do mind. Deport yourself to where you truly belong (ribbit)
>>
>>59249003
I didn't mind SDL. Definitely a lot better than fuckin GDI. Windows' cancerous hungarian notation types really bother me.

>>59249014
I was not aware. I'm quite the newfag here. Wanted to make web app development easier for others, so figured /g/ might be a good place to start.

>>59249030
You seem to forget that the website you're using needed "my kind" to make it. So why don't you get a fuckin brain and provide some arguments?

>>59249049
k
>>
@59249055
>I'm quite the newfag here.
yeah, that was pretty hard to tell. now fuck off, retard.
>>
File: >gtk-rs.png (25KB, 815x91px) Image search: [Google]
>gtk-rs.png
25KB, 815x91px
>>
>>59249047
what should I read if I want to make my own language too?
>>
I'm new to python

Say I have a 9x9 list. How can I make lists of each row and each column? This definitely seems like something python could do but no luck searching so far

ie if i had
1 2 3
4 5 6
7 8 9

i could get a list of 123, 456, 789, 147, 258, 369
>>
>>59249087
>that plebbit spacing
How about you fuck off?
>>
>>59249068
Says the retard who can't figure out he's not using CSS, and references a post id uses >>

>>59249087
Yeah, do a foreach loop.
http://stackoverflow.com/questions/40346498/python-foreach-equivalent
>>
>>59248961
Qt or GTK are portable, there's that Tcl/Tk GUI that works on every platform I think? I haven't used it but it comes with R. But at this point I think everyone is just going to embed some rendering engine inside their programs and let web designers do their UI/UX.
>>
>>59249074
Worst documentation ever.
>>
>>59248884
Anyone got any tips?
>>
@59249097
you really should go back to your shithole of a """website"""
>>
>>59249097
neat, thanks

>>59249096
lol
>>
>>59249102
It'd make the most sense. to do it this way.

>>59249097
Also, I mis-wrote. Do a nested-loop per array dimension, concatenating the inner-most into a single output.
>>
>>59249116
Have you tried making root a pointer, and accessing it like that? Just to make sure that something isn't over-writing what you're doing.
>>
>>59249076
Do you mean just a formal language or an implementation of a new programming language you designed?

>>59249119
>lol
Kill yourself.
>>
>>59249161
struct Node *root = NULL;

is how i have it declared.
>>
>>59249222
Ah. Well fuck son.

The things I question is the 4th line under the if, where it assigns root to an insert statement. What namespaces are you using, and what functions have you personally written in the code you supplied?
>>
>>59249076
Modern Compiler Implementation in {C, ML, Java} is probably the best though I haven't read most of that book. one of the best ways to learn is just by reading others' code and trying shit yourself until something works. tedious and takes forever but it did the trick for me
>>
>>59249215
Both, but I haven't designed the language yet. I'm just learning about HM type inference now.
>>
>2009 era /b/ tryharding in place of any substantive content
and /dpt/ continues to be a shining bastion of why /g/ is a shithole

:3c
>>
File: 1.png (9KB, 534x285px) Image search: [Google]
1.png
9KB, 534x285px
Im the faggot from yesterday, the one who's studying c++. I'm reading the book you have recommended me ( c++ programming language by bjarne) and i found a thing that doesnt seem to work for me.
So, I pic is my code and from what i've read it should make a copy of an array, right? But for some reason it ends up with 4200987, Why?
And why does he writes loops like
for(nigger;nigger)
action

instead of
for(nigger;nigger){
action}
Is it because of IDE I use?
>>
Any suggestions?
http://pastebin.com/mqZ2s9JB
>>
Retards are everywhere. I came here looking to help people with web apps and had a try hard tell me to fuck off back to [r][e][d][d][i][t] like nobody has ever said it before

>>59249263

(brackets are because it thinks I am spamming)
>>
>>59249252
i got an insert funct
/* Inserts a Node into the Binary Search Tree */
Node* insert(Node* node, char *keyStr, int cflag) {
// Creates new node
if (node == NULL) {
Node* node = (Node*) malloc (100); //sizeof try
node->key = keyStr; //strcpy try
node->left = NULL;
node->right = NULL;
node->count = 1;
return node;
}

// Compares Strings
int compareResult;
if (cflag == 1){
// Case sensitive
compareResult = strcmpCase(keyStr, node->key);
} else {
// Case insensitive
compareResult = strcmpNoCase(keyStr, node->key);
}

// Moves down branches of BST to insert node in correct order
if (compareResult < 0) {
node->left = insert(node->left, keyStr, cflag);
} else if (compareResult > 0) {
node->right = insert(node->right, keyStr, cflag);
}

node->count++;

return node;
}


2 string compare functs, a simple inorder and postorder traversal functs, and the following node struct

/* Binary Search Tree Node Struct */
typedef struct Node {
char *key;
int count;
struct Node *left;
struct Node *right;
} Node;


root is declared as

struct Node *root = NULL;

so my thinknig was i needed to first make the root node if I want to build off it for the tree. And like i said, it works for the simple second block provided in my op with the given strings, but when i try to apply the same logic to stdin something happens that when I try to inorder/postorder traversal output it doesn't start from the original root and therefore i dont get an output.
>>
>>59249347
Go back to rebbit
>>
>>59249324
Curly braces can be omitted for single line statements.
It doesn't make a copy of the array but rather each individual character, you can use int &x to get a reference which will not involve a copy at all.
>>
>>59249350
For debug, keep a linked-list (key, node address) of the nodes themselves so you can dump them to the command line and see if you're really doing what you think you are. But, I am still here, just trying to figure out what could be going wrong.
>>
>>59249253
What language are you writing it in?
>>
Interrupts were a mistake.
>>
>>59249347
That's because there are some unwritten rules (it's more "etiquette") newfags who don't lurk a bit before contributing tend to ignore. Proper formatting is one of them. Another one is /dpt/ not being for web development. Those who break those are usually greeted with ">>>/r/eddit" since that's where most of them come from.

>>59249254
I don't know what the good resources in English are. You'll want to write a (non ambiguous) formal grammar and define semantics for your language. Operational semantics provide the best rigor/sanity ratio in my opinion.
https://en.wikipedia.org/wiki/Operational_semantics
As for the implementation I recommend first focusing on the front-end, since you mentioned you were looking at some high level features such as type inference I figure middle-end and back-end is not what interests you the most. In that regard targetting LLVM might be a good idea.
http://llvm.org/docs/tutorial/
>>
>>59249494
To be fair, /g/ wasn't my first choice. I am just not so sure about posting it to StackOverflow, since it's not directly a programming-related question. But, I'm still sticking around trying to help the guy with the C Binary Tree issue.

I've used a fuck ton of languages for programming, because I strongly believe that a good programmer isn't limited by language. I've used C, C++, C#, Objective-C, LUA, Python, Typescript, Javascript, Java, and PHP.
>>
>>59249491
>have clock and spawn interrupt on on certain time
>structure you code in such way that you each block will take certain amount of time and do some test if your interrupt function should be run
yeah nah, interrupts are the best thing.
>>
>>59249491
What's the alternative? Polling every device?
That would have been a mistake.
>>
I want to fuck Ritsuko and cum on her slutty face!
>>
>>59249527
>Have timer interrupt
>Need to do something when it fires
>Operation should be atomic, so disable interrupts.
>Operation takes too long
>Missed an interrupt
Yeah nah.

>>59249549
Whatever guarantees that an interrupt is never missed.
Disabling interrupts is a pretty shitty and hacky method of achieving atomicity in interrupt handlers, but it's literally the only way to achieve it.
>>
>>59249575
Gendo pls
>>
>>59249578
That's why you store them on stack and execute the interrupt when free.
You usually have low and high priority interrupts.
>>
>>59249575
I'd hit her hard in her stupid face and then force my dick in her ass from behind. Spit on her face too.
>>
>>59249686
>>59249575
A-anon, this is programming thread
>>
>>59249607
>That's why you store them on stack and execute the interrupt when free.
You mean put them on a workqueue? queues are not stacks. Putting interrupt jobs on a stack makes no sense.
Yeah, the problem with that, is that inserting into the queue kind of needs to be atomic for it to work reliably.
Not only does inserting have to be atomic, but where the hell are you going to get your job struct? you need to dynamically allocate it, which requires going through your allocator.
So using a workqueue involves allocating a struct (potentially long operation) followed by inserting it into the list (very short op) all while interrupts disabled.
You could certainly miss an interrupt while inside the allocator.

>inb4 just copy a static struct into a preallocated contiguous array
Will never work properly.
Not only is that inefficient to maintain, but you have to handle the situation where the array overflows, which pretty much requires a dynamic allocation.


There's no nice way to do things with interrupts, and Linux handles it by simply making "sure" the operations done while interrupts are disabled (including heap allocations) complete fast enough.
Hence they're a mistake.
>>
>>59249727
I will inject all my genetic code into that old cum rag bitch! Many times, over and over!
>>
Btw, Should I stick to CodeBlocks while I'm a monkey at programming C++? Or should I install something that a professional would use?
>>
>>59249744
>>59249686
Good luck, she's behind 7 AT-Fields!
>>
>>59249795
My longinus penis spear will penetrate even 7 AT-Fields, bitch! That pussy will be mine and serve me coffee after brutal fucks.
>>
>>59249729
My only experience is with pic18f452 were it had stack for 31 interrupts?
You are going to have to deal with hard limits. If linux disables them then it probably is the best way to handle them with our limited hardware/software. If you don't like you are free to make your own better kernel.
>>
how does python's "in" work for each different structure: list, set, dict, etc?
>>
>>59249817
No, it's not a problem with the kernel. Linux handles it properly.
The problem is with the interrupt concept. It's fundamentally flawed because it does not guarantee that an interrupt won't be missed when it shouldn't.
At least on the PC platform.
>>
>>59249841
The concept is this:

for every key in collection
key = defined type (string/int/etc)
>>
>>59249869
Doesn't nested interrupts solves this problem?
http://stackoverflow.com/questions/24128926/what-happens-when-an-isr-is-running-and-another-interrupt-happens
>>
>>59249767

Depends on how far you have advanced in C++.
>>
>>59249890

but internally, is it a linear search?
>>
>>59249909
No.
Atomic operations within an interrupt handler requires disabling interrupts while the operation is in progress.
No interrupt can happen while they are disabled, not even nested ones.
>>
>>59246942

Memes apart, where should I start learning to write code?
There are a lot of languages for different purposes and it's difficult to find a way.
>>
>>59249968
Learn Lisp. Then learn whatever else.
>>
>>59249968
from book, from official documentation of the language of your choice.
Anything else shit tier way of learning.
>>
>>59249968
Codecademy
>>
>>59249869
>interrupts are fundamentally flawed because when you turn them off you don't have them
>>
>>59249975
I've heard this same argument with C instead of Lisp.

>>59249981
Too many books also. Tried "learn python the hard way" in the past and find it to be bullshit.
>do this exercise
>what happened? just figure it out you dumbfuck
>>
>>59250011

just go through kernighan and ritchie's book

this question gets asked so many times...
>>
>>59249968
Figure out what you wanna make first. If you just want to immerse yourself in code, learn Java because it's a real cunt to get going, but forces you to be a nazi with your code.

Once that's done, go to C++
>>
>>59250011
Learn C too. Your education is ultimately up to you, but you shouldn't cherry-pick it.
>>
>>59250032
>this question gets asked so many times...

and anytime gets a different answer. you are suggestin me to start with C (by that K&R suggestion) other user told me about Lisp, others told me just learn python, this guy >>59250033
suggest java.
and so on. that's why this question is made a thousand times. at least with the linux distros you have some advice about beginers vs harder distros. but with coding languages it doesn't seems to happen.
>>
>>59250080
That should be a hint there is no right answer.
>>
>>59250080
I don't know why everyone keeps memeing K&R, it's old af. Still I think C is a good starting language.
>>
>>59250080

you can start anywhere. it just depends on what you're trying to accomplish. k&r's book is very good, if a little outdated, and c is a staple that you'll probably want to learn at some point. that's why i recommended it. lisp isn't a bad recommendation, although if you go that route look into scheme instead. i'd avoid java just so you're not distracted by all the OOP boilerplate code.
>>
File: screenshot-05032017%.png (88KB, 1366x768px) Image search: [Google]
screenshot-05032017%.png
88KB, 1366x768px
Make an api for a RTDC files generate.
>>
>>59250102

Theres no need for one right answer above all, but I don't know why there aren't any order of programming languages, like.
R, Matlab if you are into data analisys.
Python for scripting.
C for the basics
I just made this out as I know nothing about this matter but you get the point.
>>
>>59250141
Actually, Wikipedia has something like this: https://en.wikipedia.org/wiki/List_of_programming_languages_by_type
>>
File: t_cloud .png (267KB, 1337x609px) Image search: [Google]
t_cloud .png
267KB, 1337x609px
Publish to cloud method
>>
>>59250132
What is that status bar at the top there?
>>
>>59250080
Learn these three languages, preferably C first. C, Lisp, Haskell. Then do whatever you want.
>>
>>59249920

any python wizards want to answer this question about the "in" operator?
>>
>>59250183
Lemonbar

https://wiki.archlinux.org/index.php/Lemonbar
>>
>>59250199
>C, Lisp, OCaml
Fixed it.
>>
>>59250208
Ocaml is ugly and retarded garbage.
>>
>>59250206
ty
>>
File: hide-the-pain-harold.jpg (47KB, 1024x536px) Image search: [Google]
hide-the-pain-harold.jpg
47KB, 1024x536px
>>59250165
1 Array language
2 Assembly languages
3 Authoring languages
4 Constraint programming
5 Command line interface languages
6 Compiled languages
7 Concurrent languages
8 Curly-bracket languages
9 Dataflow languages
10 Data-oriented languages
11 Data-structured languages
12 Decision table languages
13 Declarative languages
14 Embeddable languages

14.1 In source code
14.1.1 Server side
14.1.2 Client side
14.2 In object code

15 Educational languages
16 Esoteric languages
17 Extension languages
18 Fourth-generation languages
19 Functional languages

19.1 Pure
19.2 Impure

20 Hardware description languages

20.1 HDLs for analog circuit design
20.2 HDLs for digital circuit design

21 Imperative languages
22 Interactive mode languages
23 Interpreted languages
24 Iterative languages
25 List-based languages – LISPs
26 Little languages
27 Logic-based languages
28 Machine languages
29 Macro languages

29.1 Textual substitution macro languages
29.2 Application macro languages

30 Metaprogramming languages
31 Multiparadigm languages
32 Numerical analysis
33 Non-English-based languages
34 Object-oriented class-based languages

34.1 Multiple dispatch
34.2 Single dispatch

35 Object-oriented prototype-based languages
36 Off-side rule languages
37 Procedural languages
38 Reflective languages
39 Rule-based languages
40 Scripting languages
41 Stack-based languages
42 Synchronous languages
43 Syntax handling languages
44 Transformation languages
45 Visual languages
46 Wirth languages
47 XML-based languages
>>
File: p_101541444.jpg (19KB, 360x360px) Image search: [Google]
p_101541444.jpg
19KB, 360x360px
>>59250219
Are you pic related?

>>59250208
Also learn logic and Coq.
>>
>>59250233
you made a pretty epic meme :D
>>
>>59250208
>OCaml
This language is a fucking meme
The syntax is shit
top-level interpreter doesn't work the same as the compiler
incoherence in language design
documentation is trash

I had to learn it for uni, I'll never use this shit again, maybe I'll learn Haskell someday but I'm done with fucking OCaml
>>
>>59250231
tfw learning what language you need is harder than learning a language
>>
>>59250233
>coq
https://www.youtube.com/watch?v=e6-B2TJN8UQ
>>
>>59250255
>This language is a fucking meme
No. It's just fucking garbage. It's not a "meme" as you redditors like to call it.
>>
>>59250255
>This language is a fucking meme
>Thinks about learning Haskell
>>
>>59250199
>C, Lisp, Haskell
You mean Lisp, Lisp, Lisp
>>
>>59250276
Haskell is white and based.
>>
>>59250268
>you redditors
Fuck off already you faggot.

>>59250276
I said maybe you retard
>>
File: 1484937486398.jpg (63KB, 960x651px) Image search: [Google]
1484937486398.jpg
63KB, 960x651px
>>59250255
>OCaml is a meme
>maybe I'll learn Haskell
>>
Why don't anyone recommend Python anymore?
>Python (functional, compiled, interpreted, object-oriented (class-based), imperative, metaprogramming, extension, impure, interactive mode, iterative, reflective, scripting)
That shit's value for your money. Is it because it's the Ubuntu of programming languages?
>>
>>59250282
I'm pretty sure that would lead to your brain being crippled. as evident by the post you just made.
>>
>>59250268
I've never seen anyone use the word meme that way on reddit.
>>
>>59250294
It's only good for scripts.
>>
>>59250294
because it's straight up garbage with no redeeming qualities whatsoever. being """"easy"""" has nothing to do with it.
>>
>>59250294
>Python (functional, compiled, metaprogramming, extension)
kek
>>
>>59250296
Watch out, the /g/ gatekeeper is gonna send you back from whence you came.
>>
>>59250294
People are projecting their lost dreams on others.
>>
>>59250311
Plot twist: I'm him.
>>
>What are you working on, /g/?

Doing more work on my userspace NVMe driver. I'm successfully allocating buffers in userspace and passing them to a skeleton kernel module that simply page locks them and gives back the physical address.

I'm also successful in submitting the initial "Identify Controller" NVM command and getting a result back.

The next step is to add some queue processing logic and make a nice API to submit commands to the disk.

The step after that will be to implement the nvidia_p2p_get_pages() kernel magic so I can begin to host buffers on GPU memory rather than in RAM.
>>
>>59249481
Haskell but I'm regretting it desu
>>
>>59250341
it's just because you don't know what you're doing
>>
>>59250341
I know right. OCaml would have been a much better choice.
>>
>>59250328
Forgot link to those interested: https://github.com/enfiskutensykkel/ssd-gpu-dma
>>
>>59250265

I crye very times
>>
>>59250346
Why?
>>
>>59250358
Why would a fish need a bike?
>>
>>59250376
It wouldn't, that's the joke.

....yes I have shitty dad humour, blame 14 year old me that came up with that handle. It's kind of embarrassing to tell employers etc. what my github is.
>>
>>59250395
Yeah, it's not like you can change it or anything. Also, you look pretty retarded. Are you a downie by any chance?
>>
>>59250418
That's just my face.
>>
>>59250435
Yes, I was talking about your face when I said that.
>>
>>59250367
Haskell's goal to be as pure as practically possible is commendable but I found it to be a brake to my productivity on several occasions. In such cases I enjoy the freedom given by OCaml instead. Although I'm quite sure anything that can be done by mixing paradigms can be done purely in Haskell too. That and I find the compiler examples available in OCaml much more understandable. It's basically more about the environment than the language itself.
>>
>>59250454
I see, so it's purely due to your own retardation. At least you can admit it.
>>
Should I just give up on memelangs and learn C# instead?
>>
>>59250487
>"""meme"""langs
Sure, and return to your subreddit while you're at it.
>>
>>59250487
if you want to make money, yes
>>
>>59250445
Okay.

>>59250487
Why not learn C# and then come back to those other languages later?
>>
>>59250454
Have fun writing the same code over and over again because OCaml can't into abstraction.
>>
>>59250507
>OCaml can't into abstraction
...
>>
>>59250476
Yeah, I prefer the ability to get things done.
>>
>>59250517
Which you would be able to do in Haskell if not for your limited brain.
>>
>>59250514
I know, the realization that OCaml is basically C# with a worse standard library can leave you speechless.
>>
>>59250454
>>59250476
>>59250507
>>59250517
>>59250522
Quality thread you guy have here.
>>
>>59250506
>Why not learn C# and then come back to those other languages later?
that's probably the most retarded piece of """"advice"""" i've ever heard here
>>
>>59250527
>C#
Where is my sum type and my tail call optimization?
>>
>>59250529
Where is your program?
>>
>>59250529
Wait till the C-hating guy wakes up and starts samefagging again.
>>
>>59250527
idk man, only if you have the reasoning skills of a literal 10 year old. otherwise it's pretty easy to spot right away.
>>
>>59250550
C is obsolete
>>
>>59250550
>>59250558
>C(ancer)
Fixed that for you.
>>
>>59250556
Yes, it's easy to spot, but it's the sheer gall of the OCaml promoters that astounds me.
>>
>>59250541
Types are trash.
>>
>>59250540
It's pretty common to learn more than one programming language, and most people who aren't turbo autists learn one language at the time.
>>
>>59249841
>>59250203
a in b calls
a.__contains__(b)

for Cpython:

dict sees if it can retrieve the key from the dictionary.

list is a linear search, by comparing the object to look for with each index of the list.

Set is a complicated linear search, I cba to read it all so the source is here: https://github.com/python/cpython/blob/master/Objects/setobject.c#L48
>>
>>59250571
Oh I get it now. Go fix your bugs filthy code monkey.
>>
OCaml is worse than Scala tbqh
>>
>>59250544
I already posted it and was called downie face. So yeah, quite the high-quality thread here.
>>
>>59250576
i was talking about the order. if you absolutely have to learn blatantly shit languages, then at least do so after your brain has been exposed to better languages.
>and most people who aren't turbo autists learn one language at the time.
most people who are you stupid you mean?
>>
>>59250591
OCaml is bad but not that bad
>>
>>59250597
/dpt/ is beyond saving
>>
>>59250571
>>>/r/abbit
>>>/r/webdev
>>
>>59250606
Scala is more expressive than OCaml
>>
>>59250599
>better languages first
Which is why you obviously learn C# before you dick around with esoteric languages like OCaml and Haskell that have no practical use cases whatsoever.
>>
>>59250588
What bugs? :^) My code just works.
>>
>>59250616
expressiveness =/= goodness
>>
Question: why is

Optional<V> get(K k)


considered better than

V get(K k)


? The latter is much easier to work with.
>>
>>59250618
you have to be brain-dead to claim that C# is better than pretty much anything else. it has its use, sure. the use being employment. but let's not pretend that it isn't absolute garbage.
>>
File: mods-are-gay.png (52KB, 613x410px) Image search: [Google]
mods-are-gay.png
52KB, 613x410px
>>59250610
Indeed. Doesn't help that the mods are utter shit either.
>>
>>59250640
What language?

Either way, the former because the operation can fail. The former represents the failure properly.
>>
>>59250631
Expressiveness means you can say exactly what you mean, without having to resort to lots of boilerplate to handle cases you know can't happen (but can't prove to the compiler due to the limited type system).
>>
>>59250597
>I already posted it and was called downie face
Which you absolutely are.
>>
>>59250627
>My code just works.
>>
>>59250656
Most likely sepples I think.

>>59250640
Because if the element you try to return doesn't exist, then Optional<V> acts like a maybe rather than you having to manually check null-references.
>>
>>59250650
C# > Java 7

>>59250656
C# and/or Java, you know, the sort of standard OOP langs.

The latter can just return null if the key is not present
>>
>>59250653
That's rough. For a few days I tried reporting every GR3/6 violating post but nothing happened. Now I'm just part of the memeteam.
>>
>>59250682
>C# > Java 7
this statement doesn't mean much. both of them are so shit that it doesn't even make sense to compare them.
>>
>>59250681
What if I know the element exists though? Why should I have to deal with unwrapping the Optional?
>>
>>59250668
Okay, but how is that relevant to programming? Do you have anything to actually contribute or criticise relevant to the project?

Acting like a 12 year old doesn't make this thread better.
>>
>>59250694
>backpedaling
>>
>>59246942
If your language doesn't offer runtime compilation, it's trash.
>>
>>59250697
>if I know the element exists
A tiny minority of cases
>>
>>59250682
What if the element exists but is null?
>>
>>59250697
>What if I know the element exists though? Why should I have to deal with unwrapping the Optional?
A language that allows you to prove that should offer semantics for accessing that element directly.

Of course, don't implement Optional<V> just for the sake of it. If you know the element will always exist, then there's no need to.
>>
>>59250711
If your language doesn't have static typing, it's trash.
>>
>>59250706
>Okay, but how is that relevant to programming?
How is posting your retarded face relevant to programming?
>Do you have anything to actually contribute or criticise relevant to the project?
This isn't plebbit, you can't actually see any of my other posts.
>Acting like a 12 year old doesn't make this thread better.
You really should fuck off back to wherever you came from.
>>
>>59250721
Then you should use the null object pattern.
>>
>>59250724
>you can't actually see any of my other posts
He didn't have to, the post he replied to was garbage.
>>
>>59250724
>How is posting your retarded face relevant to programming?
I didn't, I posted a link to my repo. You started navigating around trying to find my face instead of looking at the code.

>This isn't plebbit, you can't actually see any of my other posts.
The only comment you made about my project was "you look like a downie lol xxDDDD"

>You really should fuck off back to wherever you came from.
I've been on /g/ longer than your 12 year old self.
>>
>>59250733
The what
this sounds like some retarded bullshit to me

better:
don't have null in the first place

that's what optional<T> does, it adds a null
>>
>>59250750
>the post he replied to was garbage.
The post in which he replied to the other post was itself garbage.

>>59250756
>I didn't, I posted a link to my repo.
Which for some reason has your retarded face on it. Why do you feel the need to post personal information on an anonymous imageboard?
>The only comment you made about my project was "you look like a downie lol xxDDDD"
How can you possibly claim that you can prove this with any certainty?
>I've been on /g/ longer than your 12 year old self.
Considering your fresh-off-the-boat plebbitor attitude I highly doubt it.
>>
>>59250733
>patterns
Sounds like someone is using a deficient language!
>>
>>59250756
>>59250757
>that spacing style
>>>/r/ibbit
>>
>>59250757
That's not "avoiding null", that's "making null explicit and non-ignorable" --- still a crucially necessary "pattern" of course; thanks once again to the FP pioneers ("academia fags" in 4chan kiddo parlance) for leading the way here as so often!
>>
>>59250786
>How DARE you post name and photo on your github account!!!!

Do you even have a point anymore?
>>
>>59250757
But the language already has null.

If you want to stop a value that might be null in a map then I agree you should use Optional for the value type of the map. But making it so get always returns an Optional regardless of value type? It just gets in the way when you know the key exists, and it adds very little when you don't, because you'll be checking for null at the place you try to get the value out of the map anyway.

How does it add any value at all?

V value = myMap.get(key);
if (value == null) {
throw new MissingKeyException(key);
}

/* vs */

Optional<V> maybeValue = myMap.get(key);
V value;
if (maybeValue.isPresent()) {
value = maybeValue.get();
} else {
throw new MissingKeyException(key);
}
>>
>>59250807
If you post your stupid face here don't be surprised when you get called what you are. Now go be retarded somewhere else, like on plebbit.
>>
>>59250792
What language is so "un-deficient" that "patterns" don't eventually emerge and get monikers..? Even FP is full of them (most notably, pattern matching, huar huar)
>>
>>59250831
and don't forget the classy lens boilerplate pattern in Hasklel
>>
>>59250807
>>59250820
>being this much of a fucking redditor
how about you guys just delete your accounts?
>>
>>59250820
V v;
if (!(v = myMap.get(key)))
throw new MissingKeyException();
>>
>>59250806
>>59250820

It's not a pattern, and it's not "avoiding null" or whatever.
The point is, is that it is utterly stupid and retarded to have fake values baked into every type.
That completely defeats the point of custom types.

A bool can be true or false... or null.
An integer can be ... -1, 0, 1, ... or null. Is null 0?
Who knows. Maybe it depends.

Optional<Optional<T>> is not the same as Optional<T>, and that's a good thing.

Optional is isomorphic to Result () / Either (), and to a list that has at most 1 element.


If you think null is a good idea, and optional is a bad idea, then you should go back to using integers and not booleans or enums, arrays of bytes and not structs or unions.
>>
>>59250829
I didn't post it. You looked it up yourself instead of looking at the code.

Are you seriously sperging out because I've somehow "violated" your sacred conception about what 4chan should be? Grow up.
>>
>>59248473
>He's never heard of pseudo-instructions
laughinggirls.jpg
>>
>>59250851
>muh small screen

Stop lurking from your phone if you have such a big problem with people naturally spacing paragraphs.
>>
>>59250869
>I didn't post it.
Really now? It's literally on the page you linked to. There is no way someone can ignore it, especially when it's that ugly.
If you actually want any feedback try not posting your work github next time, retard.
>>
>>59250831
>>59250838
Lisp.
>>
>>59250865
>it is utterly stupid and retarded to have fake values baked into every type.
Haskell does that too, with ⊥. I guess Haskell is stupid and retarded as well.

>A bool can be true or false... or null.
>An integer can be ... -1, 0, 1, ... or null. Is null 0?
Not in Java or C#.
>>
>>59250889
>muh
confirmed for being a plebbitor.
i don't own a phone nor would owning a phone somehow diminish my ability to see obvious redditry
>>
>>59250943
bottom is necessary for recursion, though exceptions are pretty shit


>not in Java
isn't there some integer Integer int bullshit going on?
you're just playing games
>>
>>59250967
>redditor == someone who disagrees with me
>>
>>59250926
>It's literally on the page you linked to.
In a 20 by 20 pixel sized image...

>If you actually want any feedback try not posting your work github next time, retard.
It's my personal github. I only have one account.
>>
>>59250970
>bottom is necessary for recursion
It's not.
>>
>>59250970
The default integer type in Java, int, is a primitive. It cannot be null.
>>
>>59250926
Stop being retarded.
>>
>>59250976
a redditor is defined as someone who uses a formatting style which you can see in the following posts.
>>59250865
>>59250889
>>59250943
>>59250970
>>
please be next thread anime
>>
>>59251011
please be next thread moderated.
>>
>>59250926
Not him, but why are you even on the internet if you get triggered by a profile picture? Do you think 4chan is some secret club or something?
>>
>>59251011
>>59251021
please be next thread anime moderated
>>
>>59251007
Why don't you go back to your hugbox if a particular style of reply formatting triggers you so much?
>>
>>59251007
A redditor is someone who posts on reddit.

Spacing quotes has been done on 4chan since the beginning.
>>
>>59250994
>int integer
told you

>>59251007
You're a fucking retard
redditors

talk

like

this


not
like
this

with
extra
paragraphs
>>
>>59250980
>I didn't post it.
>In a 20 by 20 pixel sized image...
So which is it?
>It's my personal github. I only have one account.
Then you should make another one. I highly doubt that I'm the only one who would immediately dismiss even the slightest bit of "value" your "project" might have upon seeing your retarded face.

>>59251024
>using "triggered" out of context
>Do you think 4chan is some secret club or something?
Opinion discarded.
>>
new thread

>>59251070
>>
>>59251053
You're clearly triggered, m8. Take a break from 4chan, do something else, I dunno, go outside, get laid maybe.
>>
>>59251053
We're pretty much all using Github because it's convenient and widespread. So should he make a new account when posting code because some idiot will react to his picture rather than his project? You're an actual moron. No wonder /dpt/ is mostly shit with retards like you.
>>
File: anomalus.png (57KB, 300x122px) Image search: [Google]
anomalus.png
57KB, 300x122px
>>59251053
>I highly doubt that I'm the only one who would immediately dismiss even the slightest bit of "value" your "project" might have upon seeing your retarded face.
not the guy you're responding to, but looking up that anon's other repos + name tells me that he is doing some pretty neat stuff, while you're just bitching on 4chan trying to act all "im edgy and anonoomose"
>>
>>59251073
What were you even trying to say with this shitpost?
>>59251100
>We're
Who "we"? Your friends from reddit?
>>
>>59251100
He doesn't have to put his photo on his GitHub profile. He's just vain and narcissistic.
>>
>>59250865
Do you read? Or am I dense.. I was *advocating* the option/maybe/either/etc paradigm, same as you apparently.

Null is a bad idea unless represented/enforced/"problem avoided" by option types, which are a good idea.

Anyway
>>
>>59251116
>associating your name and picture with your work is vain and narcissistic
Found the jealous NEET
>>
>>59251114
>not the guy you're responding to
This is obviously false. Try better next time.
>looking up that anon's name
Back to your subreddit.
>>59251100
>So should he make a new account when posting code because some idiot will react to his picture rather than his project?
Correct. Or just remove the image if you can't handle someone calling you a retard.
>>
>>59251155
Are you new to 4chan or something? The name "Anonymous" doesn't mean that there is only one poster. Look at the post timestamps, they are well within the cooldown timer.
>>
rate my program lads

https://github.com/wrclark/twitchspam
>>
>>59251186
This question is completely unanswerable as-written.
>>
>>59251115
>Who "we"?
People who actually contribute to this thread and want to share more than a fizzbuzz, which you're obviously not part of since you've been shitposting all this time.

>>59251155
>Or just remove the image if you can't handle someone calling you a retard
Fine if he doesn't like his face. But this thread is about programming, you either post about programming or shut the fuck up. Calling someone names for something irrelevant is GR6 violation.
>>
>>59251214
>Are you new to 4chan or something?
>"This question is completely unanswerable"

...
>>
>>59251186
>Look at the post timestamps, they are well within the cooldown timer.
yeah, that's something a samefag would say.
>>
>>59251214
No, it really isn't.
>>
>>59251234
>i know you are, but what am i
fantastic comeback
>>
>>59251227
>People who actually contribute to this thread and want to share more than a fizzbuzz, which you're obviously not part of since you've been shitposting all this time.
So your friends from reddit who have names here? How about you and your kind just post there instead? It'll be better for everyone.
Or are you claiming that you can somehow track my posting history?
>>
>>59251234
And thinking that because more than two posts disagree with you they have to be made by the same poster, is something a newfag would believe.
>>
>>59251229
everything in this post reeks of 9gag or reddit.
>>59251227
>But this thread is about programming, you either post about programming or shut the fuck up. Calling someone names for something irrelevant is GR6 violation.
fuck off back to tumblr
>>
I fucking love dramas
>>
>>59251252
>Or are you claiming that you can somehow track my posting history?
It's not exactly hard to identify individual posters based on their writing style, vocabulary, grammar etc.

Your "le we r anonymous we r leegion" worshipping is misplaced and not welcomed on this board, please take it back to >>>/b/ where it belongs.
>>
>>59251278
Everything in this post reeks of an aggravated and underaged teenager who just discovered 4chan.
>>
>>59251291
>Your "le we r anonymous we r leegion" worshiping
You have to be a drooling pseudo-intellectual retard to believe this.
>not welcome on this board
You seem to be mistaken, this is my board and my thread.
>>
>>59251305
>discovered 4chan
>discovered
upvoted! i am the hacker who started the whole Anonymous thing
>>
>>59250003
Interrupts are fundamentally flawed because the only way of getting atomicity in a handler is turning them off.
>>
>>59251578

Atomicity is highly overrated.
>>
>>59252321
Are you retarded by any chance?
Do you not understand why some operations need to be atomic?
>>
>>59252321
>using the buzzword "overrated"
opinion discarded
>>
>>59252321
If it weren't you I would have said troll, but you...
Thread posts: 350
Thread images: 26


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