[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
/dpt/ - Daily Programming Thread
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 255
Thread images: 21
File: K&R himegoto waifux2.png (1 MB, 1000x1400) Image search: [Google]
K&R himegoto waifux2.png
1 MB, 1000x1400
old thread: >>52142701

What are you working on, /g/?
>>
Do not post in this invalid thread.
It was created before the bump limit.

REPORT AND HIDE.
>>
>>52146389
as were most of the previous threads
>>
Rate my strrev implementation.
void strrev(char *str)
{
int i = strlen(str) - 1;
int j = 0;
register char c;
while (i > j)
{
c = str[i];
str[i] = str[j];
str[j] = c;
j++;
i--;
}
}
>>
>>52146363
MonoDevelop AddIn to disable some "features"
Already finished it just now though
>>
>>52146377
>>52146351
>>52146304
>>52146167
>>52146434

disgusting bloated crap
let rec rev = function | x::xs -> (rev xs) :: x
| [] -> []
>>
Daily reminder that if your language of choice is not on this list you should probably give up and kill yourself:
- C++
- C#
- Lua
- Python
- Elixir
- Haskell
- Bash
- Clojure
- D
>>
>>52146470
Worse than Haskell.
rev [] = []
rev (x : xs) = rev xs ++ [x]
>>
>>52146481
oops forgot tags

void reverse_string(char *s) {
char t, *d = &(s[strlen (s) - 1]);
while (d > s) {
t = *s;
*s++ = *d;
*d-- = t;
}
}
>>
>>52146485

how do I do this in haskell
let mutable i = 3
i <- i + 1
>>
>>52146508
If you absolutely needed a mutable variable, you'd use IORef within the IO monad or preferably STRef within the ST monad (which is escapable).
>>
>>52146499
code golf/10
>>
>>52146508
Use the state monad.

Source: my ass, I actually have no idea.
>>
>>52146531
show me the code
>>
>>52146434

Again,

>register
>>
C++
struct rstring { std::string forwards; bool reversed; }
O(1) reversal
>>
>>52146540
withIORef :: IO Int
withIORef = do
i <- newIORef 3
modifyIORef i (+ 1)
readIORef i

withST :: Int
withST = runST $ do
i <- newSTRef 3
modifySTRef i (+ 1)
readSTRef i
>>
>>52146699

Never go full FP.
>>
>>52146724
Mutation should be avoided no matter what. In Haskell it's explicitly set out that mutation is an optimization, an implementation detail.
>>
>>52146672
have to write operator overloads to check accessing brackets, as in if to start from the front or back, also don't forget <<
>>
>>52146744
>Mutation should be avoided no matter what.
This is why the world laughs at haskel fags
>>
>>52146762
I'm speaking from the perspective of both a type theorist and a performance-obsessed low level programmer when I say that.
>>
>>52146747
no, it's their responsibility
>>
>>52146508
Why would you want that? This reeks of the xy problem.
>>
>>52146776
You're clearly neither.
>>
>>52146389
but it has himegoto tho :)

i'm working on an ios app
>>
>>52146815
Whatever you say.

I'm okay with mutation of memory as a side-effect but mutation of variables is never useful.
>>
>>52146434
>register
>while loop instead of for
0/10.
>>
Can somebody fucking help?

Im trying to download mingw here
http://sourceforge.net/projects/mingw/files/
but it keeps redirecting me to the source forge file directory instead. Cant download shit.
>>
Im trying to decipher a web pages source code by typing the terms I dont know into google...

figured I might aswell get into it since Im at home..

Can anyone help me out with what window.NREUM is ?
>>
>>52146829
>but mutation of variables is never useful.
Write a reasonably complicated video game without mutation.
>>
>>52146893
>I'm okay with mutation of memory as a side-effect
>>
>>52146363
>animshit
>>
>>52146829
>I'm okay with mutation of memory as a side-effect but mutation of variables is never useful.
And where are every non-primitive (and primitives that spill out of registers) variable stored?
>>
>>52146902
>mutation of memory
>C/C++

youre only harming yourself.
>>
>>52146902
? Well obviously. If you didn't "mutate" memory you couldn't run any code. Mutation refers to editing the values of variables and fields within the scope of the language.
>>
>>52146876
google the name of the files, you'll probably find another mirror

>>52146470
string = string[::-1]
>>
In ocaml and F#, mutability is optional (and opt in)

But if you do want mutability, it's much easier to add ( >>52146508 -> >>52146699 )
>>
>>52146955
Found one thanks
>>
>>52146963
>F#, mutability
>opt in
Arrays, dictionaries, record fields or any .NET stuff are all mutable by default.
>>
>>52147045
Yes, but F# provides immutable versions of all those. You use the native .NET ones for backwards compatibility. You also have to use <- to mutate anything.
>>
>>52147045
>record fields
records are not mutable in any way, unless you opt those fields in with "mutable"
>>
>>52146933
In memory, of course, but there's a big semantic difference between having a chunk of memory and having a variable. Mutable variables can't be linear, they can't appear in dependent types, they introduce safety problems if you can take their address and use it as a pointer, static verification of their usage has to be a language feature and not part of the standard library, etc.

>>52146939
How is allocating stuff and mutating it not within the scope of the language?
>>
>>52147153
>How is allocating stuff and mutating it not within the scope of the language?
depends if you are explicitly doing it in the language, or if it is an implementation detail of the compiler.
>>
>>52147179
Explicitly. It's not built into the language at all, it's part of the standard library and is implemented with FFI or inline assembly or something like that.

However, the compiler is able to do a lot of register and memory reuse behind the scenes because of linearity, but that's an implementation detail.
>>
Daily reminder that languages with dynamic typing but without static typing are not welcome in /dpt/
>>
>>52147239
So it's not mutation as far as the language is concerned.

Again, my if you try to write something like a reasonably high performance game without mutation, you will run into a lot of difficulty. Sometimes some problems are just easier with mutation.
>>
>>52147307
You don't understand. As far as the language (compiler) is concerned, allocating, freeing, reading, and writing memory are just functions that are written in the language itself (and use FFI or inline assembly), with types that allow the compiler to statically verify that you're not going to segfault or whatever.
>>
>>52147399
What the fuck are you talking about? The language and compiler are not the same thing. If haskell, the language, does not support mutation, then it doesn't support mutation. It doesn't matter what kind of optimizations the compiler does behind the scenes.
>>
>>52147474
I guess I should have made it clear that I'm not talking about Haskell, I'm talking about a fictional language (that I am working on myself).

But honestly it's the same thing. It doesn't matter if Haskell has or doesn't have built-in support for mutation if you can write functions in it that do it through FFI.
>>
QUICK; POST FIZZBUZZ IN YOUR LANGUAGE OF CHOICE!
>>
>>52146893

And why? Because if you constrain yourself to the functional paradigm, you will write perfect state machines for sure, but you will run out of memory before the player ever reaches the final boss. /thread
>>
>this entire time I have been arguing with someone who is just trying to talk shit about Haskell
Remind me not to bother next time.
>>
>>52147540
FFI is not exactly a convenient to use mutation anon.
>>
>>52147659
Which is why you write functions to wrap it..?
>>
>>52147666
Can you me an example of one?
>>
>>52147563
for i in range(100):
i = i + 1
if i % 15 == 0:
print("FizzBuzz")
elif i % 5 == 0:
print("Buzz")
elif i % 3 == 0:
print("Fizz")
else:
print(i)
>>
>>52147740
Isn't this how the whole argument started? >>52146699

In a language with linear types (so not Haskell) you wouldn't need to do it in a monad.
>>
>>52147563
let (|Factor|_|) y = function
| x when (x % y = LanguagePrimitives.GenericZero) -> Some (x/y)
| _ -> None

let fizzbuzz = function | Factor 15 _ -> "FizzBuzz"
| Factor 3 _ -> "Fizz"
| Factor 5 _ -> "Buzz"
| x -> x.ToString()

[|1..100|] |> Array.iter (fizzbuzz >> System.Console.WriteLine)
>>
File: 1450463515813.png (583 KB, 740x571) Image search: [Google]
1450463515813.png
583 KB, 740x571
>>52147791
>LanguagePrimitives.GenericZero
So this is the power of F#...
>>
>>52147810
I could've just wrote 0 but I wanted it to work with non-integers

Polymorphism and F# are not the best of friends
>>
>>52146434

Anon, your compiler will make maximal use of your available CPU registers with or without you needing to explicitly tell it to do so.

Also, you should use size_t, rather than int, to represent the length of a string.
>>
File: fizzbuzz.jpg (12 KB, 215x222) Image search: [Google]
fizzbuzz.jpg
12 KB, 215x222
>>52147563
>>
>>52147781
yeah, but that shit is pretty overkill and unwieldy.
>>
>>52148046
The functions could have different names, they could look like operators, the point is that just because the language has only immutable constructs doesn't mean you can't work with mutable memory.
>>
>>52146399
these trap threads are exactly why people post before the bump limit. OP should kill himself.
>>
pls someone give me some tips what to make.
>>
>>52147563
void fizzbuzz(unsigned num)
{
unsigned i;
for (i = 1; i <= num; i++)
{
if ((i % 3 == 0) && (i % 5 == 0))
printf("%s\n", "FizzBuzz");
else if (i % 3 == 0)
printf("%s\n", "Fizz");
else if (i % 5 == 0)
printf("%s\n", "Buzz");
else
printf("%u\n", i);
}
}
>>
>>52148087
we should just remove the bump limit
>>
>>52148110
3d physics engine
>>
>>52148122
what language?
>>
>>52148153
C++
>>
>>52148153
Ocaml or F#
>>
Good morning. I slept in today, so lazy XD
>>
>>52148220
it's 7pm in the united states.
>>
>>52148220
It's 2:30pm in New Zealand.
>>
>>52148228
>>52148267
10:30AM in Tokyo
>>
>>52148220
kill yourself weeb
>>
>>52148280
nippon go home
>>
>>52148295
Stay jelly you never lived the dream
>>
>>52148295
>>52148280
knew it
>>
>>52148317
>muh animes
>muh otakus
jap culture is weird as hell and so are you
>>
File: QI7ayBQ.png (289 KB, 580x282) Image search: [Google]
QI7ayBQ.png
289 KB, 580x282
>Ian Murdock happens
>Suddenly every programmer is a Anarcho-punk that got arrested, beaten into a coma, lost their job for absolutely no fucking reason what so ever, other than walking about at 3am in all black where a string of burglaries happened

Sometimes I wish this community wasn't inhabited entirely by college kids.
>>
>>52148280
I wonder how many weeb neets spend all their savings on a 1-way plane ticket to their holy land only to live a miserable life as a foreigner with no communication skills in their country.
>>
>>52148345
who are you quoting?
>>
>>52148306
>>52148322
Jelly.

>>52148339
Normie.

>>52148361
Not me that's for sure.
>>
>>52146434
Faggot learn to recursion.
void reverse(char *string, int len){
if(len<1) return;
char temp = *string;
*string = string[len-1];
string[len-1]=temp;
reverse(string+1,len-2);
}
>>
>>52148384
>being jealous of irradiated mutant chinks
lelno
>>
File: 1450986634415.jpg (52 KB, 507x564) Image search: [Google]
1450986634415.jpg
52 KB, 507x564
>>52148393
>creating a new stack frame for every character in the string / 2
>>
>>52148424
>tail call
>creating a new stack frame
>>
>>52148424
Any optimising compiler would turn that into a tail call.
>>
>>52148393
>return in a void function
retard
>>
I'd rather learn C but it seems the market is more geared towards java in my area of IL

what do?
>>
>>52148440
>>52148460
Why bother with this parlor trick shit when iterative functions are guaranteed to run faster than your recursive code golf garbage.
>>
>>52148419
Grow up kid.
>>
>>52148393
kill yourself
>>
>>52148525
>guaranteed to run faster
Oh, are they?
>>
>>52148502
What?
Using return in a void function is completely valid.
Are you one of those "1 exit point" fags?

>>52148525
>code golf
Stop misusing that word, idiot.
That code is completely clear.

>>52148512
You're allowed to know more than 1 programming language, you know.
>>
>>52148295
Ok, pk.

spearmint and juicyfruit.
>>
>>52148556
my name isn't ian
>>
>>52148512
stop being such an epic memester and learn java you fucktard
>>
>>52148563
go reverse a char array of size SIZE_MAX using iteration and recursion and tell me which is faster.
>>
>>52148565
>That code is completely clear.
kill yourself
>>
>>52148512
Learn the basics of C and then learn Java, Java is a C descendant to it's easier to pick up Java after having learned C.
>>
>>52148569
i don't give a shit about ian murdock fuck off back to reddit with that shit
>>
>>52148600
Are you clinically retarded? Have you been programming for more than a couple of days>
His code has 3 very obvious, separate parts.
>1: Base-case
>2: Swap
>3: Recursive call
>>
>>52148619
got any good links? something for a moron like me that is easy to follow like code academy or anything else with a clear way on how to follow

I wish I practiced more instead of getting into shitty dead end application support jobs
>>
>>52148650
I learned C with C Programming: A Modern Approach and K&R.

I've been told Beej's C guide isn't bad either and it's free.

https://beej.us/guide/bgc/
>>
>>52148595
They will be equal in speed, assuming the presence of tail call optimization. The tail call increments the index, jumps to the beginning of the code, and checks against the base case. Each iteration increments the index, jumps to the beginning of the code, and checks against the loop invariant.
>>
strrev (iterative) >>52146434
size of string: 100000000
real 0m0.082s
user 0m0.004s
sys 0m0.076s

strrev (recursive) >>52148393
size of string: 100000000
Segmentation fault

real 0m0.091s
user 0m0.012s
sys 0m0.076s
>>
>>52148744
LMFAO

#REKT
>>
>>52148744
Did you turn optimisations on?
GCC doesn't do tail-call optimisations at -O0
>>
>>52148645
it looks like shit compared to an iterative solution. there is no valid reason to use a recursive function to reverse a string.
>>
>>52148763
So?
That doesn't make it code golf.
>>
Why is /dpt/ so mean and elitest? It's just programming.
>>
File: 1450669375714.png (80 KB, 347x324) Image search: [Google]
1450669375714.png
80 KB, 347x324
>>52148778
Why don't you go back to the reddit hugbox then?
Faggot.
>>
>>52148808
OOOOOOOOOOOOOOOOOOOOHHHHHHHHHHHHHHHHHHHHHHH
>>
>>52148808
Don't you agree that if we work together, instead of trying to tear other people down, we can make better programs? Genuinely curious, this isn't bait.
>>
>>52148778
You're entitled to your own wrong opinions, but don't be surprised when you get called out for being retarded.
Imagine writing a function so retarded it only works when you enable optimizations?
>>
>>52148827
People here can't program or logic for shit so no.
>>
>>52148827
we do help each other make better programs by offering constructive criticism. and sometimes it takes a smack in the head for someone to ge ttheir shit together
>>
>>52148827
>Don't you agree that if we work together, instead of trying to tear other people down, we can make better programs?
No. Hugboxes only lead to retardation and https://github.com/django/django/pull/2692.
Things aren't going to get better unless you criticise it.
>>
>>52148857
Very rarely is criticism offered here. Don't make calling something shit or calling someone stupid for criticism.
>>
>>52148866
>Don't make calling something shit or calling someone stupid for criticism.
If you don't like the abrasive attitude here, you can just fuck off. We're not here to pander to your feelings.
>Very rarely is criticism offered here
Usually when something is called shit, there is a reason offered as to why it's shit.
>>
>>52148850
>constructive criticism

>>52148556
>>>52148393
>kill yourself

>>52148600
>>>52148565
>>That code is completely clear.
>kill yourself
>>
>>52148898
Nice cherrypicking, m8.
>>
>>52148898
kill yourself
>>
>>52148898
see >>52148912
>>
>>52148911
Thank you.
>>
>>52148898

>>52146649
>>register

>>52147874
>Anon, your compiler will make maximal use of your available CPU registers with or without you needing to explicitly tell it to do so.
>Also, you should use size_t, rather than int, to represent the length of a string.
>>
>>52148937
>tripfags
Even worse.
>>
>>52148757
When I turn optimization on for the recursive one, the program finishes in literally 0.002 seconds of real time, regardless of the string size.

Clearly, it's not even attempting to reverse anything.
>>
>>52148949
Obviously because the compiler considered the result to be useless because it was unused.
Print it to a file or some shit, so it doesn't optimise shit out.
Also, don't use time(1) to benchmark shit; do it within the main loop of the program.
>>
>>52148968
You do it, I don't care enough senpai

i was feeding it this
char *str = (char *) calloc(1000000000, sizeof(char));
>>
This blog has some interesting F# stuff, as well as sample uses for computation expressions

e.g. tree manipulation
http://tomasp.net/blog/tree-zipper-query.aspx/index.html

tree 
{
for x in sample do
left
map (x * 2) // map left subtree
up
right
map (x / 2) // map right subtree
top
}


http://tomasp.net/blog/2014/update-monads/index.html
>>
>>52148968
>>52148949
no need to benchmark it, they compile to pretty much the same shit with optimizations on

gcc.godbolt.org

but the recursive solution is garbage
>>
>>52146470
strings aren't even lists in F# or OCaml dumbo
>>
Looking to get into web development

I have very basic programming experience in VB (lol)

Where 2 start
>>
>>52149463
learn HTML, CSS, JS, C# and ASP.NET
>>
>>52149416
But lists of characters are strings
>>
>>52149581
no they aren't
>>
>>52149614
yes they are
>>
>>52146363
who is this girl and why does it keep getting posted?
>>
>>52149736
Just an anime girl who was holding a book that could easily be shopped to be K&R.
>>
>>52149736
>>52149757
>girl
>>
>>52149654
in F# and ocaml? no, strings are primitives. Try passing a char list to something that expects a string
>>
>>52149790
sorry i didnt mean primitive strings
>>
>>52149804
: I
>>
>>52149821
can you use sequence functions on primitive strings? are they IEnumerables?
>>
How do I learn C++ the most girly way possible?
>>
>>52149868
Buy a schoolgirl outfit and The C++ Programming Language, 4th edition by Bjarne Stroustrup on amazon, preferably in the same cart.
>>
>>52149868
Let Bjarne fuck you in the ass.
>>
>>52149856
I don't think so. In F# you can do str.toCharArray() though. I might be wrong tho..
>>
>>52149736
himegoto

it's a guy dressed as a girl

it's one sick trans faggot/jew fag shiller that's been posting these threads. he posts the thread before the old one hits the bump limit just to force his tired old fag pics.
>>
OCaml is the best language by far. Prove me wrong. Protip: you can't. If your language even has a single flaw that OCaml doesn't have, it isn't better. Checkmate, Faggotsharp
>>
>>52150052
F# fag here.

Can't think of anything F# does better.

Commiting suicide now.
>>
>>52150052
C# fag here.

Can't think of anything C# does better.

Commiting suicide now.
>>
Asking again.
Is there any way to write javascript in a statically typed way, like C?
I don't want to deal with the compiler guessing what var1 + var2 means.
>>
>>52150052
OCaml doesn't have computation expressions
>>
>>52150052
>shitty library support
>no type providers
>no multicore
>no easy native interop
>not as cross platform as F#
>no built in scripting support
utter garbage
>>
>>52150157
You forgot it's biggest drawback
>is named OCaml
>>
>>52150101
Wait for WebAssembly.
>>
>>52150101
yes.
http://www.typescriptlang.org/
have fun
>>
>>52150052
>impure
>>
>>52150052
No higher-kinded types.
No overloading.
Standard library doesn't use OOP.
>>
>>52150174
OCaml is a badass name. Like the CamelPhat and CamelCrusher VSTs.
>>
Daily reminder: if your language of choice isn't based on a camel, it's not worth shit.
>>
>>52150157
OCaml's native interop is a billion times better than F#'s, especially since it can leverage C and C++ libraries easily. It is also available on any platforms that gcc targets, as well as any platforms explicitly supported by ocamlrun, and additionally by any architecture target for the native compiler, which is a fuckload better than F#'s Microsoft (tm) Windows (r) and linux and mac if you're willing to get a 50x performance penalty and only want to use 10% of available libraries. OCaml does in fact has in-buit scripting support via ocamlscript, the excellent Command module, and its amazing repl. Multicore is available both with multiprocessing and with native single-program multicore. Type providers are literally just crippled versions of functors with first-class modules, and computation expressions are just monads with another name.

C H E C K M A T E
>>
Any nim fans?
>>
>>52150241
>perl
>good
lolno.
>>
>>52150260
>what is the difference between necessary and sufficient
>>
>>52150195
>No higher-kinded types.
https://github.com/ocamllabs/higher

>No overloading.
https://opam.ocaml.org/packages/ppx_overload/ppx_overload.1.0.1/
Beside, it's a good thing WHEN combined with delimited overloading
Dicks.(a + b - c) === Dicks.(+) a (Dicks.(-) b c)

Since you always know which implementation is being used, and it allows for higher performance with no actual loss in practice.

>Standard library doesn't use OOP.
The module system is a more powerful version of the simula-style OOP and can be used in much the same way.
OO in OCaml is a whole other beast that, while it can perform the task, is better used for its intended purpose: codifying sharable runtime interfaces in a more natural way than with first-class modules.
>>
>>52150251
Fuckit. I can't beat the ocaml fags. Maybe I should learn this some day. Is this shit good for web dev or mobile dev? Does anyone actually use it for anything?
>>
>>52150260
Oh, you think the camel is Perl's ally?
Perl merely adopted the camel.
Objective was born in it. Molded by it.
>>
>>52150365
It is used for MirageOS, fftw (fastest fft implementation; pretty much what everyone uses these days), financial analysis at janestreet, and more. See https://ocaml.org/learn/companies.html for a list of companies using ocaml and a short description of what they do with it.

With js_of_ocaml, you can compile ocaml code to javascript for client code, and there are several web libraries and frameworks, including ocsigen, available for ocaml. See https://ocaml.org/learn/tutorials/ocaml_and_the_web.html for more details.
>>
Is there a recommended C book that isn't K&R?
I'd like to read something written this millennium.
>>
Alright lads, just got home from the bar and I've decided it's time to rewrite the linux kernel in haskell.
>>
>>52150551
>recommended C book
>written this millenium
>>
>177 replies, 38 posters
Never realised how few of us there is in here

>>52150553
>drunk programming
Sounds fun, post source later
>>
>>52150615
>Sounds fun, post source later

It'll be a literal trainwreck.
>>
>>52150553
Post hot blacks
>>
>>52150621
That's the whole point of drunk programming
Can't be any worse than my shit anyway
>>
>>52148896
>we

?
>>
File: 1447878952904.jpg (175 KB, 569x864) Image search: [Google]
1447878952904.jpg
175 KB, 569x864
>>52150641

wew
>>
CONDUCTOR WE HAVE A PROBLEM
>>
>>52150551
C Programming: A Modern Approach
>>52150553
Aight, see ya in a few decades
>>
>>52150553
https://www.youtube.com/watch?v=zmI-hGthrwA
>>
>>52150693
2x speed for maximum problems

catch (SecondAmmendmentException){}
>>
import std.stdio;

void main()
{
while(1)
{
writeln("CONDUCTOR WE HAVE A PROBLEM");
}
}
>>
>>52150693
>>52150803

Oh fuck me I'm crying.
>>
>>52150551
Yes, it's called uninstall_gcc.exe
>>
>>52150806
FTFY:
import std.stdio;
import std.algorithm;

void main(string[] args)
{
stdin.byLine.map!(x => "CONDUCTOR WE HAVE A PROBLEM! ").copy(stdout.lockingTextWriter());
}
>>
>>52150829
Half speed is pretty good too.
>>
>>52150551
>>52150676
This, get the first edition of C Programming: A Modern Approach. It covers C89, you can learn what C99 and C11 introduced after learning C89.
>>
>>52150848
>>52150806
# Python
while 1 == 1:
print("CONDUCTOR WE HAVE A PROBLEM")
>>
>>52150875
Yeah, learn all that depreciated (and insecure!) shit first instead of going straight to the real stuff.
>>
>>52150910
Yours doesn't give conversations
>>
CONDUCTOR WE HAVE A PROBLEM
>>
>>52150806
>>52150910
>>52150848
@echo off
:loop
echo CONDUCTOR WE HAVE A PROBLEM
goto loop

>>52150920
Who cares
>>
CONDUCTOR WE HAVE A PROBLEM
>>
>>52150918
99.9% of useful C is in C89. The safe alternatives to unsafe functions already existed.
>>
CONDUCTOR WE HAVE A PROBLEM
>>
But really though, that's why it's important to carry a gun.

The guy on that train merely pretended to have a gun and 'flashed' it at another passenger, but you never know when they might actually have one, or that they intend to use it.

Preparedness is key.

Carry a gun, folks.
>>
>>52150976
Nice source.
And appeal to popularity. Just because you eat shit, anyone else has not to.
>>
>>52150978
>>52150952
>>52150931
what the hell was that dude's problem?
>>
>>52151017
CONDUCTOR WE HAVE A PROBLEM
>>
>>52151017

Some black guy on the train pretended to have a firearm, and this guy went and hit the emergency button, but it did nothing.

I don't blame him.

Black people cannot be trusted with guns.
>>
>>52151017
Someone on the train owned a gun
>>
File: Screenshot_2015-12-31-04-33-33.png (146 KB, 720x1280) Image search: [Google]
Screenshot_2015-12-31-04-33-33.png
146 KB, 720x1280
@echo off
while true; do
echo CONDUCTOR WE HAVE A PROBLEM
done
>>
>>52150990
The entire incident happened BECAUSE someone had a gun.
He had a freakout and started spamming the emergency call button.

This is what happens when people are allowed to carry guns.
>>
>>52151049
Are you trying to say Conductor, he had a problem?
>>
hey, could use a little help.
I've just installed MS SQL management studio and can't connect to my local db.
I've been using entity framework to post to db but I'm not sure how to get the correct default db name. I've tried the obvious stuff "mymachine\SQLExpress" and "."
Any tips on where I can find this?
>>
>>52151002
Biggest changes with C99:

inline functions, I like these but they aren't vital to C
variable declarations within for loops, these are great but again not vital
boolean type, absolutely useless
comments beginning with //, these are useful but not vital
>>
>>52151049
>She deserved it because of what she was wearing

:')
>>
>>52151049
The entire incident happened because whiny bitch, who's been conditioned to fear guns all his life, freaked out at the mere sight of one.
>>
>>52151095
Isn't an inline function basically like a lambda macro?
>>
>>52151116
>black guy carrying gun
I'd freak out too.
>>
>>52151124
No, he means function inlining, i.e. calls to that function are replaced with the source of the function
>>
>>52151049
>The entire incident happened BECAUSE someone had a gun.

It's not that someone had a gun, the black guy didn't even have one. He gestured like he did. If someone gestures like they've got a firearm, and they're going to shoot you, it's reasonable to shoot them.

Unfortunately, our cameraman here didn't have a gun of his own.

>This is what happens when people are allowed to carry guns.

The moron who pretended like he had a gun was a nigger. Anywhere in the US you can carry a gun, he'd have been dead in a minute and we'd all be better off for it.
>>
>>52151136
yes, it's basically copy pasting the contents of another function into your larger function to avoid another function call.

isn't that basically how lambdas are used?
>>
Again, let's be clear: this was in DC. This is not a place where law abiding citizens carry guns because it is against the law.

If you see someone carrying a gun, the following things are true:
1. they're black
>>
>>52151146
... no. Lambdas are exactly the opposite.
>>
>>52151144
>everyone should carry a gun
>that black guy pretended that he had a gun
>everyone should have shot black guy for having gun

you're a special kind of retarded
>>
>>52151156
SHALL
NOT
BE
INFRINGED
>>
>>52151159

If the black guy 'just had' a gun, that would be one thing. He was gesturing to people like he was about to pull a gun on them, that's the problem. If someone was acting like they were about to pull a gun on me, mine would already be out.

>b-but they weren't going to shoot you!
>b-but they didn't even have a real gun!

Oh well. I'll cry about it while I'm chatting with the coroner.
>>
>>52151172

I admit that's true, but that doesn't mean you can go acting like you're about to pull your gun on somebody because you're a 'hard' nigger and you grew in DC.

I guess that flies in DC since nobody else there has a gun.
>>
>>52151180
Nobody else was having a freakout, just the camera guy.
He might not have even made any gesture and the camera man simply thought he made a gun brandishing gesture because he's mentally unhinged.
>>
>>52151205

Maybe, but considering the perp here was black, there's a near-on 100% chance he was acting tough and flashing his piece at everybody.

That's just what blacks do.

They can't control it.

D O
N O T
R E L A X
>>
>>52151218
at least be consistent you fucking cuck, do you have a fetish for blacks or hate them
>>
>>52151218
There's no evidence that the black guy pretended to have a gun.
There's no evidence to suggest that there was any problem on the train except for the camera man who was clearly having some kind of panic attack.

This isn't a dialog about gun control or lack thereof, you're just a moron who probably doesn't even like black women as much as you like to believe.
>>
>>52151262
Oh so he just had a panic attack for no reason, and the gun pulling thing is just completely made up.
>>
>>52151275
>so he just had a panic attack for no reason
not for no reason
maybe he's claustrophobic
i've known people with claustrophobia who have freakouts when they feel lost inside of large buildings
they feel the urge to see the exit and will become increasingly unhinged if they don't
>>
File: folders.png (9 KB, 377x461) Image search: [Google]
folders.png
9 KB, 377x461
>>52151262
>you're just a moron who probably doesn't even like black women as much as you like to believe.

Nah, I'm definitely into it.

>>52151228

Black women aren't 6% of the population responsible for nearly half of all the homicides. More than half of all violent crimes. Rapes, assault, and everything further.

Black women are fine.
>>
>>52151308
>Black women are fine.
you right about that lmao
>>
>>52151308
black women are the reason ian murdock is dead now
>>
File: 1438856283804.jpg (146 KB, 768x1024) Image search: [Google]
1438856283804.jpg
146 KB, 768x1024
>>52151322

I can dig it.

Damn this is like GTP honesty hour.
>>
File: dam.jpg (31 KB, 500x651) Image search: [Google]
dam.jpg
31 KB, 500x651
>>52151340
mhm
>>
File: er1.jpg (63 KB, 463x693) Image search: [Google]
er1.jpg
63 KB, 463x693
>>52151363

:^)
>>
Where do you guys sell useless books? I bought a book for an class about imaging and didn't even use it.
>>
This is a typical republican

https://www.youtube.com/watch?v=FrY1XltlRWg
>>
>>52151407
>buying textbooks
nice
sell them to students that are taking the class this semester
use google for your textbooks next time
>>
>>52151407
I don't buy the book until at least several weeks into the class when I'm sure we'll actually use it.
The college should be obligated to have copies of the book in the school library for you to photocopy from in case you need the book immediately.
>>
>>52151419
It was Multimedia Systems: Algorithms, Standards, and Industry Practices. Absolutely could not find a digital copy anywhere. And the class is only offered once per fall semester and I'll have graduated and be far away from here this time next year.
>>
>>52151418

I'm not a republican, obviously. And if I were really a racist, I wouldn't like black women.
>>
>>52151485
Mate, having a fetish for black women is racist
>>
>>52151485
he didnt even quote you
typical tripfag

also you post the same 3 black women every time you post them
>>
>>52151308
>>52151485
https://www.youtube.com/watch?v=2SrwsTyBHFU
>>
File: 600full-bria-myles.jpg (40 KB, 500x606) Image search: [Google]
600full-bria-myles.jpg
40 KB, 500x606
>>52151496
>fetish

Wow, what a rude thing to say.
>>
File: 1449198183577.jpg (38 KB, 400x388) Image search: [Google]
1449198183577.jpg
38 KB, 400x388
>>52151519
>Tfw white
>>
File: tumblr_nxbow99CYN1reedd6o1_1280.jpg (104 KB, 1024x1024) Image search: [Google]
tumblr_nxbow99CYN1reedd6o1_1280.jpg
104 KB, 1024x1024
>>52151508
>also you post the same 3 black women every time you post them

The rest are NSFW, and I don't want to get banned.
>>
File: 1364364128514.jpg (43 KB, 432x560) Image search: [Google]
1364364128514.jpg
43 KB, 432x560
>get in /dpt/
>pointless /pol/ rantings and bullshit
So... anyone actually working on something?

>>52151548
Nice niggers, dump your folder on /hc/, not here.
>>
>>52151548
nice

I really like the look of >>52151405 though tbf
>>
>>52151607
i sorta asked for his folder here lol
and I would actually work on something if I had an idea
>>
>>52151609

I prefer the high test black grils, but I agree, she's pretty qt.

>>52151607
>>get in /dpt/
>>pointless /pol/ rantings and bullshit

Sorry, I've been drinking. Not that that's a good excuse, but it's the only one I've got.
>>
>>52151548
That is disgusting
>>
>>52151634

I know it's degenerate, but I'd let her sit on my face.
Thread replies: 255
Thread images: 21

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

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.