[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: 313
Thread images: 35

File: 1471196056158.jpg (108KB, 575x387px) Image search: [Google]
1471196056158.jpg
108KB, 575x387px
Previous thread: >>56094389

What are you working on, /g/?
>>
>>56097145
First for D
>>
File: lambda cube.png (6KB, 321x294px) Image search: [Google]
lambda cube.png
6KB, 321x294px
Pick a vertex, any vertex
>>
ocaml as replacement for c?
>>
>>56097182
Doesn't it use a GC?
>>
No politics edition. :)
>>
EMPLOYEDFAGS HOW MANY NIGGER PROGRAMMERS ARE THERE IN YOUR WORKPLACE AND HOW MANY FEMALE PROGRAMMERS AND HOW MANY FEMALE NIGGER PROGRAMMERS
>>
James Watson is my negra.
>>
>>56097221
2, 10, 0
>>
>>56097217
communism > capitalism
capitalism breeds corruption
communism makes us all equal.
>>
>>56097236
Equally poor.
>>
>>56097175
why wouldn't they label the vertices a, b, c, etc?
>>
>>56097236
communism is bad and you should feel bad
>>
>>56097239
Equally equal, while capitalism makes only few rich
>>
>>56097221
I got a bunch of Indians, and also a bunch of qts on what I'm assuming is Sales
>>56097236
>commies feel the need to derail the thread yet again
>>
I want to write my own screen locker, but it seems that I can't even test if a given password is valid for a user, because the shadow file can only be accessed by root.
Is there any other way to do this?
>>
File: 1430853197680.png (331KB, 474x432px) Image search: [Google]
1430853197680.png
331KB, 474x432px
>>56097241
>muh lambdas
>>
>>56097275
Windows and Linux provide syscalls that allow you to do that
>>
File: nazi shig.jpg (45KB, 250x250px) Image search: [Google]
nazi shig.jpg
45KB, 250x250px
>>56097236
Both are Jewish schemes to neuter and enslave the people. There is only one system that enables individual to achieve their highest potential - national socialism.
>>
>>56097275
run the screen locker as root
idiot
>>
>>56097236
capitalism > communism
communism breeds corruption
capitalism makes us all equal.
>>
>>56097276
yeah that's what I thought too
>>
>>56097264
>he hasn't read animal farm
go to bed kiddo
>>
>>56097299
So only root should be able to look his screen?
>>
>>56097318
>literally paid by the US govt to make people think "for themselves" that communism is bad
>>
>>56097267
>I got a bunch of Indians

brown =/= nigger though
>>
>>56097296
Like getspnam(), which gives a permission error when not run as root?
>>
>>56097324
No, any user should be able to look at the screen.
>>
>>56097333

Animal Farm was written by a commie. That's the supreme irony of it all.

Orwell was a good writer, though.
>>
File: neppu eats pizza.jpg (407KB, 700x495px) Image search: [Google]
neppu eats pizza.jpg
407KB, 700x495px
This is a programming thread.
>>
>>56097384
every thread is a /pol/ thread
it's time to migrate from 4chan
>>
>>56097333
Its all that propaganda. American dream! America is best! America america america,. Is america best in education? No. Healthcare? No. Equality? no. Longevity? No.Crime rate among civilized world? Yes. Military spending? Yes Economy? Yes. There you go america is best, capitalism is best you damn pinkos
>>
>>56097353
I don't get it. how can any user lock his screen when the screen locker must be run as root?
>>
File: le m8 face.jpg (216KB, 1080x1920px) Image search: [Google]
le m8 face.jpg
216KB, 1080x1920px
>>56097333
>a book by a british socialist written during wwii, when the us and ussr were allies, was paid for by the us govt
>>
>>56097404
It should have something to do with policy kit, im not sure tho
>>
>>>/wsg/1239748
>>
File: dolfie warned you.jpg (139KB, 816x1024px) Image search: [Google]
dolfie warned you.jpg
139KB, 816x1024px
>all these people unaware of the JQ discussing false dichotomies built upon unfounded premises
>>
>>56097442
oh fuck wrong one

>>>wsg/1239848
>>
File: file.png (178KB, 1920x1036px) Image search: [Google]
file.png
178KB, 1920x1036px
>>56097145
>What are you working on, /g/?
Form validation.
>>
Javascript is such a disgusting language.
How the fuck did it become the defacto standard for writing website backends?
>>
>>56097503
Join me, anon, and write your backends in lua. >>56097489
>>
File: le smug fence sitter.png (28KB, 613x488px) Image search: [Google]
le smug fence sitter.png
28KB, 613x488px
>>56097399
>being triggered by the existence of opinions about important things
>>
>>56097384
>neppu eats pizza.jpg
indeed
>>
File: tripfag enters thread.gif (3MB, 370x208px) Image search: [Google]
tripfag enters thread.gif
3MB, 370x208px
>>56097507
But statistics is certain about one thing: tripfags are faggots, no exceptions.
>>
>>56097507
on /pol/ there was like a dozen links to studies showing that intelligence is mostly genetic
>>
File: myboyboyd.jpg (22KB, 194x300px) Image search: [Google]
myboyboyd.jpg
22KB, 194x300px
>humans have been evolving independently
Just because some of us are hairier than others and some us can see in water better than others and some of us are more accustomed to the sun's cancerous rays than others doesn't mean some of us have bigger, more "evolved' or 'developed' brains, humans haven't been living long enough for evolution on that scale to take place, and trying to claim white superiority after succeeding in dismembering blacks as a people and a culture is pretty fucking retarded but ive know white people to believe and parrot some really stupid shit so whatev
>>
>>56097507
>Biologically innate differences in intelligence among human beings has not been proven, and there is evidence against it as well.

I'm the Queen's butler.
>>
>>56097523
>"important" things
lel
>>
>>56097489
How's atom anon? I tried using it before but its sluggish speed turned me off from it
>>
>>56097606
Not very sluggish for me, I'm not sure where that meme comes from. I like all the addons it has. A lot of the themes can make it feel comfy.
>>
File: 1995-SAT-Income2.png (35KB, 911x623px) Image search: [Google]
1995-SAT-Income2.png
35KB, 911x623px
>>56097586
lad, there is intermixing with neanderthals and other primitive people, east asians and whites have the most neanderthal dna and they just happen to be the most intelligent people, and africans have zero neanderthal dna and they happen to be the least intelligent people. also if you look at something like dick size, why do you think dick size can vary so much but brain power can't vary?
>>
>>56097624
you're running an independent chromium instance with your text editor.

A text editor has no business eating up 500MB of ram.
>>
>>56097348
im fairly sure there is no linux syscall to do user authentication, but there certainly is an authentication API. it's probably got to do with PAM: http://www.linux-pam.org/Linux-PAM-html/Linux-PAM_ADG.html
>>
>>56097507
There's tons of reasons and evidence explaining issues of poverty and lack of education amongst blacks

The problem is that once u try and start telling whites, they lose interest or might get bitter so they feel guilt or they're just too stupid to pay attention and just parrot "eh niggers gon nig" and call it a day

It's not like issues of poverty and low education don't affect whites as well, who do you think is supporting trump the most? Harvard grads?
>>
>>56097634
Honestly I don't care. I have 10GB of RAM, and unused RAM is wasted RAM.
>>
>>56097276
>>56097305
it's called Lambda calculus
>>
What's the most fun thing you've programmed?

Did you learn anything?
>>
>>56097586
What are you talking about? You can breed humans with smaller brains in less than 200 years.

See: United States of America

>after succeeding in dismembering blacks as a people and a culture
there was never a "black culture". black is a broad label that covers many different people and cultures just because their skin is over an arbitrary brownness threshhold.

tell a nazi that a frenchman is different from a german and they will agree

compare a nigerian and a somalian and they'll ask which drugs you are on and whether or not you know how degenerate anything but reichstag approved bier is
>>
>>56097636
also btw screen lockers are one of those things that are deceptively hard to do right and they aren't particularly enlightening to write either. i would pick a different project
>>
>>56097632
Problem is you develop intelligence, if you were raises by retarded slimes you would be more likely to be stpid as well. So nigger stupidity might be part of culture
>>
>>56097632
Call me a stupid faggot but I don't think about dicks that much
>Muh /pol/ starter kit argument and pics circa. 2008
It's time to grow up
>>
>>56097275
chown root:root yourfile
chmod +s yourfile
Now it'll always run as root, no matter which user starts it.
Doesn't work with scripts.
>>
>>56097683
lol ok keep denying the overwhelming majority of the scientific literature on the subject
>>
>>56097636
Never mind. I just looked at the permissions for the binary of my current screen locker. It has the suid bit set. This is probably the way to go.
>>
File: file.png (4KB, 530x27px) Image search: [Google]
file.png
4KB, 530x27px
>>56097634
also, le "500MB of RAM" meme
>>
>>56097723
You forgot the background processes
>>
File: file.png (14KB, 515x110px) Image search: [Google]
file.png
14KB, 515x110px
>>56097741
only another 70MB. Nowhere near 500 for sure.
>>
>>56097711
Thanks, I just found that out myself, too.
>>
>>56097713
>leer reviewed scientific literature
>uncited images you found on /pol/
Pick one and only one
>>
>>56097664
Just because I'm generalizing blacks in the aftermath doesn't mean they didn't have cultures of their own that were lost and wiped out in the midst of the Atlantic slave trade

You're talking a lot of stupidity with an air of arrogance, lemmeguessurwhite
>inb4 no im black lel
>>
>>56097145
Delete this thread and make a new one with an anime image
>>
>>56097723
mine's using 100MB just for the main thread alone
>>
>>56097748
You sure are winning this fight.
Next we should have calculators that use the Unity 3D engine
>>
>>56097711
Do those permissions carry or every user has to run those?
>>
>>56097713
>Keep denying shit science and biased arguments and faulty evidence
I will, as will the majority of humanity
GG
>>
>>56097795
It'll work for all users, only need to do it once per file.
>>
>>56097580
On /pol/ there was also a dozen pics of black men fucking white women at one time
>>
File: 1465717835995.png (4MB, 3736x4588px) Image search: [Google]
1465717835995.png
4MB, 3736x4588px
>tfw ordered a copy of Mythical Man-Month
>>
File: unnamed.jpg (129KB, 1280x800px) Image search: [Google]
unnamed.jpg
129KB, 1280x800px
I thinking about making a simple video player and I'm not sure how to proceed. To render a video on a screen, I need to do two things:

1. Parse a video file to determine the pixels that need to be displayed for each frame.

2. Render those pixels on the screen.

How would I do part 2? Can I just use OpenGL to send the pixels to some buffer?
>>
>>56097790
Maybe you just have a shitton of addons. Not sure what's wrong with yours, I don't have this problem.

>>56097791
If it's a really good calculator, sure, why the fuck not? I don't care how much resources atom is using because
1) I have enough RAM, not half is being used total right now on my system
2) It's a good text editor in my opinion.

I'd switch to vim, but I'd never be able to put the time in to learn it. ADHD's a bitch. I'd try to learn some shortcuts for 10 minutes and then I'd be doing something else.
>>
>>56097812
What prevents me from running that on other linux machine and send passwd data to my server? Something obviously does
>>
>>56097828
It will be done for you by another library.
>>
>>56097841
>Maybe you just have a shitton of addons
this is the default installation from the .deb on the website

it's shit, i just uninstalled it anyway
>>
finally finished the cross challenge
cross d 
= let hx = zipWith (\x y -> replicate x ' ' ++ y) [0..] $ make (n-2) ++ ["*"]
in hx ++ reverse (init hx)
where n = if even d then succ d else d
make 1 = ["* *"]
make k = concat ["*",replicate k ' ',"*"] : make (k-2)

putCross = mapM_ putStrLn . cross


> putCross 17
* *
* *
* *
* *
* *
* *
* *
* *
*
* *
* *
* *
* *
* *
* *
* *
* *
>>
>>56097748
>>>18MB
>(+70MB)
>>
>>56097580
Yes but sources are everything, and it would have to be some very rigorous stuff.
I know that if there was any serious literature suggesting innate differences in intelligence between whites and blacks, then I would probably not understand it, and neither would anybody on /pol/.
>>
>>56097718
trying to parse the shadow file yourself fails as soon as someone is using 2 factor auth etc. PAM is the way to go
>>
>>56097828
https://www.opengl.org/wiki/Pixel_Buffer_Object
>>
>>56097876
Get with the times, gramps. 100MB of RAM isn't that much anymore. Most systems have 4, if not 8, GB of RAM installed.
>>
>>56097875
rate my meme cross!
void cross(int n)
{
n = (n < 0) ? -n : n; /* abs */
n += (n % 2); /* force even n */
int i, j;
for (i = 0, j = n - 1; i < (float) n / 2; i++, j--)
{
int z; /* top */
for (z = 0; z < i; z++)
putchar(' ');
putchar('*');
for (z = 0; z < j - i; z++)
putchar(' ');
putchar('*');
putchar('\n');
}
for (i = 0; i < (float) n / 2; i++)
putchar(' '); /* middle */
putchar('*');
putchar('\n');
while (i-- != 0 && j++ != n)
{
int z; /* bottom */
for (z = 0; z < i; z++)
putchar(' ');
putchar('*');
for (z = 0; z < j - i; z++)
putchar(' ');
putchar('*');
putchar('\n');
}
}


*         *
* *
* *
* *
* *
*
* *
* *
* *
* *
* *
>>
captcha "LOL C"
>>56097875
>>56096102
>>
someone recommended i learn C a few days ago and i've started learning

just want to thank you for convincing me. i have 1000 pages left of this book, but i'm having a good time.
>>
>>56097880
so james watson's opinion doesn't matter to you since it's not what you want to hear
>>
>>56097925
it's not "LOL C" it's "LOL 3GLs compared to 4GLs" you fucking moron.
>>
>>56097947
I only had "LOL C"
Definitely no 3
>>
>>56097964
what
>>
>>56097925
lamo, thats hard to read

>>56097917
I like how the code is split and documented
honest 10/10 for an imperative code
>>
>>56097978
>hard to read
Because you don't know Haskell, idiot.
Although of course the second one is hard to read.

>>>>>an imperative code
>>
>>56097847
You need root on the other linux machine to run chown root:root yourfile and chmod +s yourfile, and if you already have root there then why shouldn't you be able to send the passwd data back to your server?
>>
>>56097952
Compared to asians whites are niggers.
>>
File: 1464735487226.png (502KB, 960x539px) Image search: [Google]
1464735487226.png
502KB, 960x539px
>>56097991
Why so rude?
>>
File: YUUGE CROSS.webm (799KB, 1920x1080px) Image search: [Google]
YUUGE CROSS.webm
799KB, 1920x1080px
LAMO
>>
>>56097994

It's ~2x vs 4-8x, so not really. Though, I'll admit, American Asians have managed to engender a courteous and peaceful culture. Nice to work with if they've got good English skills.
>>
import std.stdio;

void main(string[] args)
{
string output = "* *\n"
" * * \n"
" * * \n"
" * * \n"
" * * \n"
" * \n"
" * * \n"
" * * \n"
" * * \n"
" * * \n"
"* *";

writeln(output);
}
>>
>>56097991
the haskell code is just all the shit in one line, it's shit code regardless of the language
>>
>>56098046
>std.stdio
>not std.io
what the hell
>>
>>56097991
fampai, its hard to read because its on one line
im sure if it was in multiple lines, it'd be better to read
>>
>>56097507

>Biologically innate differences in intelligence among human beings has not been proven, and there is evidence against it as well.
> Entire nature structure disproves it

DENIAL
E
N
I
A
L

I hate people that put they shit emotionalism on serious matters.
Equality is the most inhuman and powerful disease.
>>
>>56098073
Read my entire post. It's not that long of a post.
>>
>>56098080
>>56098073
>>56098052
>>56097991
>>56097978
watching miscommunication unfold is always fun
>>
>>56098095
ok i see it now, but i don't like the first one either, it still has a bunch of shit on each line, i just dislike haskell in general
>>
>>56098095
I think you might be misreading mine too; I said to read my entire post because I said in my post that the oneliner Haskell is hard to read of course, but the regular Haskell is not. I didn't say that my post wasn't that long of a post thinking that he was talking about my post when he said it was hard to read.

This is pretty fun though, it's kinda gotten crazy
>>
More Lua low-level memery.
terralang.org
Lua code is run with LuaJIT and exposes the FFI, which is used for calling AoT compiled code. The Terra code is statically typed and compiled to LLVM to be JIT compiled. Lua is essentially used as a metaprogrammer.
>>
>>56098115
>>56098117
whats going on, i don't understand
>>
>>56097931
First of all an opinion is not rigorous, and I won't be accepting his opinion on intellectual authority because his research stops almost exactly where the current inquiry begins.

Second, just because I don't want to hear it doesn't mean that I wont, can't you give me a little more credit than assuming I do nothing unless I want to?
>>
>>56098138
how was your day, in the freedom land?
>>
>>56098020
i have ffmpeg installed, but dont know how to record your desktop

what's the command?
>>
>>56098117
I know exactly what you meant. I know so because your description of what you thought I could have thought you meant does not match what I actually thought you meant and instead my understanding of that post was exactly the same as your explanation of it.
>>
>>56098076
Can you not.
>>
>>56098166
how do u know where I live?
>>
>>56098193
You have a space in the Name field.
>>
>>56097236
Balanced production to compensation ratios are worthless when producing nothing.
A lot of socialist European bullshit is questionable, but co-determination a best.
>>
File: 2016-08-15-171031_20x20_scrot.png (510B, 20x20px) Image search: [Google]
2016-08-15-171031_20x20_scrot.png
510B, 20x20px
>>56098186
https://trac.ffmpeg.org/wiki/Capture/Desktop
>>56098199
what are the implications of that?
also, pic related is whats in my name field
>>
>>56098193
Americans are more retarded than i thought
>>
>>56098125
>Lua but with static typing
HELL YES
>>
>>56097952
>I love fucking black girls trust me im not racist, if there's one thing a racist never did it was fuck a black woman, trust me!


>I don't feel guilty or bitter, either, because I had nothing to do with slavery or the restriction on civil rights,
Yea no shit, you'd have to be very very very very old do have participated in any of that shit
Doesn't mean that most of those old facts didn't have families and children who could right the wrongs of their ancestors. But evidently white people don't feel the responsibility to right the wrongs of the past because that requires a lil effort and let's face it BLACKS ARE THE LAZIEST RACE, AMIRITE

>it's just that I'm not going to take the blame for it.
What the fuck does taking the blame have to do with righting the wrongs of the past, you stupid pussy?
>>
ok, I rewrote some parts
is it more readable now?
cross d 
= let hx = zipWith padding [0..] $ make (n-2) ++ ["*"]
in hx ++ reverse (init hx)
where n = if even d then succ d else d
make 1 = ["* *"]
make k = concat ["*",replicate k ' ',"*"] : make (k-2)
padding x y = replicate x ' ' ++ y
>>
>>56098296
>evidently white people don't feel the responsibility to right the wrongs of the past
Nope, nor will I ever. Sorry blackie, no reparations from me.
>>
>>56098296
>>>/po/
>>
When should I put my projects into git?
The problem I have with putting them into git right away is early on in development things change drastically between commits and I don't know what to put in the commit message.

Is it bad practice to wait until the codebase is somewhat stable before putting it into git?
Also should I sign my commits even though it's private?
>>
>>56098331
>papercaft and origami
>>
>>56098333
git != shithub
>>
Anything to read on syntax-case? The racket manual is too difficult for me.
What is the id on
(syntax-rules (literal-id ...)
[(id . pattern) template] ...)
>>
>>56098371
When did I imply that you fuckface?
I'm talking about the git command line application, not the fucking website you idiot.
>>
>>56098371
He didn't even mention GitHub or anything to do with Github you sperg.
>>
>>56098396
>>56098397
so what's the problem with putting it on a private git repo?
>>
>>56098413
I was asking about best practices for when to put your project into git, and committing in general.
Putting my projects into git right from the start often leads to messy history and bad commit messages for me until the codebase becomes more stable.
>>
Guys is it possible to ecrypt Xen domU OS which is Windows? Gonna use HVM.
>>
vector cross best cross

function [] = print_cross(n)
back = repmat(int8(' '), n);
left = diag(repmat('*', n, axes=1));
right = fliplr(left);
display(char( max(back, max(left, right)) ));
end
>>
>>56098328
That's fine anon, i never took white people to be generous or "humane", just white :)
>>
>>56098296
>But evidently white people don't feel the responsibility to right the wrongs of the past because that requires a lil effort and let's face it BLACKS ARE THE LAZIEST RACE, AMIRITE
Every single person alive has ancestors which have done morally abhorrent things.

No one is responsible for actions or crimes which they didn't do and couldn't change.
>>
>>56098328
>reparations need to come from everyday citizens
This ignorance is exactly why so many whites get away with spouting stupidity on the daily
>>
>>56098125
Lua variables are interpolated and you can also save the JIT'd Terra code so it functions like a metacompiler. It can also be used as an application driver and dynamic code generation engine. I'm in love.
>>
>>56098460
how about you simply ignore early project history then. if there is something particularly embarrassing you can squash it away.
>>
>>56098612
>le were all victims in some way argument
Nice meme, whitey

Just because some fucking Romans enslaved your great grandma doesn't mean I need to get over the fact that the country I live in gained its fortune and power off the backs of my ancestors less than 200 fucking years ago

God, the lengths white people go to so they can justify American slavery and get everyone to forget about it, sickening
>>
>>56098643
post timestamp of black skin, the area just below your belly button to be precise, pol false flag shill or you have a steamy wet pussy between your legs
>>
Can we stop with the >>>/pol/ and get back to coding? Geez, guys!
>>
>>56098296
so if, for example, your parents had racked up gambling debt, you'd think it fair the burden fell on you to pay it off? i'm guessing no, because in addition to making no sense, it wouldn't be beneficial to you. ethics is a matter of consistent principles, not cherrypicking aspects of mutually exclusive ideologies based on how convenient they are for you at a given time
>>
POO
O
O
>>
>>56098742
god she is perfect
>>
>>56098065
std is the standard library.
stdio is "standard input/output" as opposed to other kinds of input/output that may be handled by the standard library.
>>
>>56098758
tushay
>>
>>56098673
>>56098643
lying sack of shit is your pussy wet atm

or did you decide to shut it down
>>
Which should I use, GCC or Clang?
>>
>>56098870
Glang
>>
>>56098870
ccc
>>
>>56098870
gcc

but llvm is a fucking dragon
>>
>>56098603
Okay
>>56098616
>the government is just going to conjure up reparations out of thin air and not pull it from our taxes
>>
>>56098889
>>56098897
>>56098898
not him but does the choice of the compiler change/improves anything in small/learning projects?
using gcc at the moment
>>
>>56098870
clang is my nigga
>>
>>56098956
not really unless you mean non standard extensions
>>
>>56098898
If you think LLVM is better why would you still get him to use GCC? The rest of GCC is far worse than clang.
>>
>>56098956
Literally doesn't matter, no. As long as you avoid compiler specific extensions (which you probably haven't heard of or used, anyway, and usually require specific flags when compiling)

But no, it doesn't matter for just working on your own.

gcc has range cases for example, like
switch (i) {
case 0..2: //...
case 6..10: //...
}

I'm not sure if there are two periods or spaces or what but yeah
>>
>>56098977
which you shouldn't use
>>
File: 1457274399165.jpg (44KB, 544x529px) Image search: [Google]
1457274399165.jpg
44KB, 544x529px
>>56099026
>shouldn't
>>
>>56097404
Here you're talking about locking the screen
>>56097324
Here you said
>look his screen
>>
>>56099040
>using compiler extensions when you don't know if the target machine will be using the same compiler
Literally retarded.
>>
>>56099116
Thanks, surprised he didn't catch it.
>>
>>56099040
how can you open-source your fizzbuzz implementation if it isn't portable?
>>
>>56099040
Not the guy you're replying to but I have a little bit too much pride in my own work to make it unportable for no good reason
>>
>>56099026
>__restrict__
>__attribute__
>__builtins
lol ok

you can easily restrict a project to be compiled by gcc only anyway, gcc is ubiquitous
>>
>his language is so garbage it needs compiler-specific extensions
>>
>>56099192
that's a little different from what i meant. those are okay if appropriately defined so as to remain portable

>you can easily restrict a project to be compiled by gcc only anyway, gcc is ubiquitous
top kek
>>
>>56099266
it's not that it needs it, without them it's still better than most/all languages depending on the use case, it's that it's so good that it allows for further fine-tuning and taking advantage of cpu instructions with __builtins etc
>>
>>56099292
>it's so good this feature is non-standard
>>
File: bugpost.jpg (118KB, 720x960px) Image search: [Google]
bugpost.jpg
118KB, 720x960px
>>56097145

More mud for the mud ball.

Management is helping!
>>
File: trigger burger.jpg (206KB, 1280x960px) Image search: [Google]
trigger burger.jpg
206KB, 1280x960px
>>56099338
>>
>>56097236
>communism makes us all equal.
Do you even know what communism is? There is still a ruling class of aristocrats. The only difference is that the rich in a communist society don't have to work or come up with a good business plan to be rich, it's the people in government.
>>
File: 1470905575802.png (57KB, 250x229px) Image search: [Google]
1470905575802.png
57KB, 250x229px
>>56099338

Yum!
>>
>>56097145
New language for defining the learning mechanisms of AI systems.

Can't post any of it.
>>
>>56099505

Meant to reply to this post.

Oh well...
>>
>>56097875
>>56097917
>>56097978
void print_cross(int lines){
for(int y = -lines/2;y<=lines/2;y++){
for(int x = -lines/2;x<=lines/2;x++)
if(abs(x)==abs(y))
putchar('*');
else putchar(' ');
putchar('\n');
}
}
>>
>>56099562
that's not what communism "is" either. that's just what it inevitably becomes because it's corruptible just like everything else
>>
Learning emacs, am I making a mistake?
>>
>>56099686
>le no true scotsman fallacy

No, this has been observed in every relevant communist society, China, the Soviet Union, Cuba, North Korea.. Your false idea of what you wish communism was is irrelevant, communism is an awful idea.
>>
>>56099505
I think this is heated meat juice
i would eat to be really honest
>>
>>56099687
do you mean emacslisp, or just learning how to use emacs? I mean, it's one of the best, so there's nothing wrong with learning it I'm sure
>>
>>56099759
Both, I'll eventually want to extend emacs myself, but first I'm just learning to use it.
>>
>>56099728
no shit, dumbass. did you even read what i said? and i'm not the original poster. communism is retarded and so is capitalism. congrats on your 9th-grade-level reddit-tier copypasta understanding of government
>>
>>56098673
>>56098812

What is this samefag retardation
>>
File: 2016-08-15-185721_343x154_scrot.png (10KB, 343x154px) Image search: [Google]
2016-08-15-185721_343x154_scrot.png
10KB, 343x154px
>>56099841
idiot
>>
>>56099796
>he doesn't program C in Microbest Word 2016
>>
what is the state of smalltalk?
>>
>>56098740
You cannot just compare the revenue made from slavery in America to a fucking gambling debt owed to anonymous

YOU SEE THAT SHIT YOU JUST DID THAT?
That absolutely horrific attempt at a comparison?
Thats what whites people's problem is. They just wanna make false equivalencies because they think it quickly proves their point but in actuality it just proves you have no grasp of the complex elements you're trying to discuss and whittle down, stop trying to discuss racism and slavery and such through allegories and comparisons, you fucking suck at it.
That goes for all white people.
You sound childish as fuck
>>
>>56099897
dead as fuck
>>
>>56097875
for (unsigned y = 0; y < dim; ++y) {
for (unsigned x = 0; x < dim; ++x) {
if (x == y || x == dim - y - 1) {
putchar('*');
} else {
putchar(' ');
}
}
putchar('\n');
}
>>
>>56099884
I can't afford office, that's why I'm using gnu
>>
File: laughinggirls.jpg (210KB, 489x500px) Image search: [Google]
laughinggirls.jpg
210KB, 489x500px
>>56099820
>That's not what communism is, that's just what communism is.

When did you realize you were retarded?
>>
>>56099904
You're still not getting those reparations Jamal, and no amount of shitposting in a programming thread will change that
>>
>>56098643
Oh you're just trolling. Have fun with that.
>>
>>56097503
It was either JS or Java.
>>
>>56099904
okay pretty sure now that you're a white /pol/ shitposter. but just in case somebody this retarded actually exists, yes, i am comparing those things, because it's the same principle. being offended at the comparison doesn't somehow make it not make it the same principle and it doesn't save you from having to back up your argument with some kind of logic
>>
give me cool thing program
>>
>>56099940
the context-free definition of a system and the end result of a contextual application of that system are not the same thing. if you want to actually learn anything about politics you could start by not being so arrogantly reductive. do you have any idea how many times i've heard your stock opinion of communism parroted verbatim by cocky pseudointellectual manchildren? christ alive. have a fucking original thought
>>
>>56099651
What, Lisp?
>>
posted this on sqt, but I figure it's more relevant here.

So, I finished my second year in my course (a mix of Computer Engineering and Software Engineering, with a strong focus on software) and I have a few ideas to create some things. But whenever I actually try to do something, I get extremely lost. It feels like everything I learned is useless. How can I get over this?
>>
File: le curious donut man.jpg (11KB, 352x398px) Image search: [Google]
le curious donut man.jpg
11KB, 352x398px
>>56100204
>commie
>original thought
>>
>>56100330
Read SICP
>>
Anyone on /dpt/ have experience with fuse filesystem? Thoughts?
>>
File: le newfag scum.gif (46KB, 496x599px) Image search: [Google]
le newfag scum.gif
46KB, 496x599px
>>56099841
>referring to your previous post is samefagging
>>
>>56100065
It being the same principle doesn't matter considering one is a gambling debt, and the other is the amount the U.S. Govt owes to blacks for literally developing the country and making it rich

There's too many differing factors
It's a false equivalency
Kill yourself, dumbass

>>56099953
Ouch, that stung, if there's one thing that bothers me, its a white fag talking shit on the internet!
>>
>>56100419
wouldn't it be cool if you could post a timestamp of your dark skin
>>
>>56099873
What the fuck are u talking about
>>
>>56099338
>Management is helping!
You poor bastard.
>>
>>56099873
???

btw these lowercase posters aren't all me
>>
>>56100450
Why do you need proof I'm black, do you think a white person would be systematically responding to this stupid shit with a sense of importance

Has nothing to do with what I've been arguing
>>
closures are fun
def fizzbuzz(n):
counter = 0
def f():
str = "FizzBuzz"[4 if counter%3 else 0 : 8 if counter%5 else 4] or counter
counter += 1
counter %= 15
return counter
return f

meme = fizzbuzz(100)
for i in xrange(100):
print(meme())
>>
>>56100488
>do you think a white person would be systematically responding to this stupid shit with a sense of importance
well yes, we're on 4chan after all
>>
File: we wuz slave owners n shiet.jpg (84KB, 506x506px) Image search: [Google]
we wuz slave owners n shiet.jpg
84KB, 506x506px
>>56100419
>U.S. Govt owes to blacks for literally developing the country and making it rich
WE
>>
>>56100492
>return counter
*return str
also add
if counter > n:
return ""

to the beginning of f()
>>
>>56100492
>side effects
>>
>>56100517
wtf i hate blacks now!
>>
>>56100536
What do you think closures are for, sperg?
>>
>>56100550
ordinary function application
>>
match me fgts
>>
>>56100419
>blacks for literally developing the country and making it rich
>blacks still think they were the only ones capable of picking cotton
wew
>>
>>56099916
for (unsigned y = 0; y < dim; ++y) {
for (unsigned x = 0; x < dim; ++x) {
putchar((x == y || x== dim -y-1)? '*' : ' ');
}
puts("");
}
>>
>>56100419
no, it's not. no matter how many differing factors there are, it all ultimately still hinges on the question "should a person be held responsible for the actions of their ancestors?", and you know the only real answer is "no", because you know there's no possible way one could reason that a person could be responsible for something that occurred before they were born, because time moves fucking forward. if you actually have a logical argument that disproves cause and effect, boy would i love to hear it
>>
File: we wuz smart.png (238KB, 640x640px) Image search: [Google]
we wuz smart.png
238KB, 640x640px
>>56100488 (checked)
>do you think a white person would be systematically responding to this stupid shit with a sense of importance
Yes, given the frequency of autism and cuckoldry within white people, but that's exactly the reason they're not likely to ask for gibsmedats like you're doing.
>>
int a(b * c);

Sepplefags can't parse this without knowing what b is
>>
>>56100738
typedef int b;
>>
>>56100738
>>56100783
oh wait you can't initialise like that in C can you?
how will C++ parsers ever recover?
>>
>>56100783
typedef your mom;
>>
Why are parser combinators so hard to use?
>>
>>56100807
>oh wait you can't initialise like that in C can you?
Right. In C, that could only be a function declaration.
>>
>>56101005
Because you're not using Haskell

>>56101017
Indeed. C > C++
>>
>>56101060
I am using Haskell
>>
I want to learn ruby on rails, what can give me solid knowledge? Courses on net, books, mentor? How to start from 0? Anyone can give me some advices?
>>
>>56101103
https://shodan.me/books/Programming/Ruby/
>>
File: 2016-08-15-202550_216x97_scrot.png (2KB, 216x97px) Image search: [Google]
2016-08-15-202550_216x97_scrot.png
2KB, 216x97px
I did it guys

http://pastebin.com/xpAygfZH
>>
>>56101174
very nice
>>
>>56101200
thanks
>>
>>56101117
Thanks
>>
>>56101174
Do qsort.
>>
Say I have audio. 8bit signed samples. I want to lower the amplitude by a fixed percentage.

Is there a way to do this without branching using abs()?
>>
File: qsort.webm (10KB, 228x108px) Image search: [Google]
qsort.webm
10KB, 228x108px
>>56101325
>>
>>56101362
Divide each sample by a fixed positive value.
>>
>>56101174
So. How does this compare to a basic C implementation?
Not using the STL because it's slow.
>>
>>56101387
Yeah you're right. I've confused myself. of course that works.
>>
>>56101362
Holy shit, you don't even know basic math?
>>
>>56100668
Except we're not just talking about settling a debt, were talking about making up for the decades of slavery and ensuing generations of racial persecution that blacks endured.
You can't argue that those causes have no fucking effect, and thus you can't argue that no action is needed to address the effects of those causes
Now comes the part where you justify slavery, assure me it wasn't that bad, and reaffirm how much you refuse to pay blacks reparations

This isn't the same as some money your parents owed somebody, this isn't just about MONEY

And even if it was, you don't think the people that got rich off of slavery owe a little back? Obviously I'm not talking about every white person, but that doesn't mean that the 376916 whites that did own slaves didn't make a fortune and it's not like all their fortunes died with them.


I get it, YOU DON'T WANNA PAY REPARATIONS
I DON'T WANT YOU TO EITHER
that doesnt mean reparations aren't fucking due, nor does it mean they need to come out of some average Joe white guy's paycheck, stop being so fucking stupid and shove ur shit allegories up your retard ass
>>
>>56100690
This has to be a fake message. Or is there really a pro black organisation saying "we're not all dumb stop being racist". Because that'd be very self aware.
>>
>>56101174
What language is that?
>>
>>56097683
"Grow up" is not an argument against what everyone can plainly see.

>>56097675
The culture is a product of a tendency to stupidity.
>>
>>56100517
>Slave trade began in the middle of the 15th century
First slave owner was black and it happened in the 1600s
Why are white people so fucking stupid
Oh wait, my bad
Why is /pol/ so fucking stupid?
They ruin everything with their dumb shit like OP
>>
>>56097675
Interesting. So using correct communication a chimp can be as intelligently apt as a human.

I'd really like to see this experiment being done.
>>
>>56101438
You should go to /pol/ they'll really make you feel at home there, amongst other morons
>>
>>56101473
OK this has to be bait. Now Africans are appropriating my Nordic history. We were slaving back in the 900's and probably before then.
I'm not claiming we were the first, that'd be rather bold, but if you think 1600's was the first we got you beat by a long shot.
>>
>>56101427
>I DON'T WANT YOU TO EITHER
That settles that then
>>
>>56101489
I'm not sure what you're saying. I'm not racist like /pol/ and they're certainly morons. But the prospect of a separating racial movement is interesting. That's an interesting development. Because even as late as the 1900's major racism has been about superficial traits. If there's a racist movement actually distinguishing itself by intelligence then that's fresh.
>>
>>56101388
C doesn't have the STL you twerp.
And it's extremely slower, by a lot.

>>56101452
Saturn, a silly language I made.
>>
How do you set system/application volume programmatically in Windows?
>>
>>56101524
>culture, temperament and physique are superficial traits
Yes, enlighten me on how you can transcend such fundamental traits as to dismiss them as superficial.
>>
Getting a job.

How do I get a job?
>>
>>56099562
>Do you even know what communism is?
>the people in government
do YOU know what communism is?
>>
>>56101617
Talk to people you know that have jobs at a place you might want to work.
>>
>>56101577
>culture
Not a 'genetic racist'-thing because it's cultural.
>temperament
A lot of factors in that one. Correlation is not causation (except in social 'science')
>physique
Certainly superficial.

My point is rather that it's an introspective thing. Sure, racists often call people of different skincolor stupid in one form or another. But they still group by skin color. This (hypothetical) black movement clearly equates the 20% blacks with 50% of white people. The message is clear. You're supposed to care about black people's rights because of the 20%.

So they ignore the superficial entirely. Instead of being in favor of light skin, dark skin or some other simply visible trait they focus on intelligence.
>>
>>56097221

Out of roughly 95 developers:

0 nigs
5 women - only one isn't complete shit and they just graduated.
>>
>>56101654
>>56101577

>>56098095
>>
>>56099562
>government
>communism
Retarded.
>>
>>56101665
I believe that at the core all discussion is miscommunication. Either of understanding or intent. I may be looking for truth. Someone else is serving self interest. Understanding can be lacking so even if both of us are looking for truth I may not be there because of a lack of information in some form.
>>
>tfw you're browsing the latest on pastebin
http://pastebin.com/58YWLq6J

>>56101702
One anon reads superficial as 'fake, put on for show but illegitimate', hence the miscommunication
>>
>>56097221
Women - 2 within R&D, one is boss one is a very experienced systems engineer
Ethnic - 3 Indians that work on the project from time to time they're offshore in sourced. Its working quite well. No black people.
>>
>>56101617
you don't. become a NEET and enjoy the easy life
>>
>>56101735
But I need money :(
>>
>>56101723
>http://pastebin.com/58YWLq6J
I <3 u 2 an0n

>>56101739
then steal it
>>
>>56101739
How much. If you come over and be my sex toy for a while you could have some of my large disposable NEET income.
>>
>>56101723
Someone post one with improvements before he ruins his relationship. Women don't like a nice loving person.
>>
>>56101777
There's no way to contact ther person that pasted this; except for if he's refreshing to check the latest on pastebin and you title a paste something like 'TO THE GUY THAT LOVES HANNAH'
>>
When implementing a function in MIPS, can I use temporary storage registers like $t0-9 just like I would outside of a function?
>>
>>56101795
Do it. Pray.
>>
>>56101654
>race is skin color
Spot the lemming. Some Jews may have pale skin, blue eyes and light hair, but it's still clear as day that they're Jews by the way they look, think and act.
>>
>>56101887
>doesn't understand my very clear post
No I just said physique is race. Yes there's cultural racists but that's a far less interesting group because if they're ideologically honest they're just saying 'if people are assholes treat them as you should treat assholes'. If they're not, as often is the case, they generalise a group as assholes and treat them as such.
>>
does anyone know how to cross-compile MIPS stuff from ubuntu? I don't fucking get it, I downloaded lots of packages for mips, arm, etc, and yet I can't get shit to cross-compile...
>>
>>56101964
install gcc for MIPS, then use that like so
mips-gcc file.c -S

your MIPS will be in file.s

http://stackoverflow.com/questions/17006843/compile-c-for-mips-architecture
>>
>>56097221
0, 0, 0.

[spoiler]I'm employed in an optical lab.[/spoiler]
>>
File: breen.jpg (16KB, 400x400px) Image search: [Google]
breen.jpg
16KB, 400x400px
>>56097489
your syntax highlighting hardens my penis
>>
>>56097419
>US and USSR were allies in WW2
They definitely weren't, they just both happened to be in a war against Japan and Germany.
>>
What are you guys fucking working on? Why don't you answer the damn question?
>>
>>56102105
I'm procrastinating right now.
I'm supposed to be working on setting up IO completion ports for my server application on Windows.

They seem nice.
>>
>>56101977
I don't want the MIPS ASM code, I want to cross-compile.
also, emdebian seems to have been abandoned or something. I used to use those packages, they worked... the ones distributed by ubuntu suck, they work for weird, almost unused archs
apparently, other than openwrt, the current state of things regarding non-ARM cross-compiling on linux is a disaster
>>
>>56102124
then don't include the -S flag you fucking moron
>>
>>56101958
>racists often call people of different skincolor stupid in one form or another. But they still group by skin color
>not implying that racism is based on skin color
You apparently can't understand your own post, or the way you think. You're working by the central premise that race => skin color => superficial trait which makes you reduce race issues to simplistic dichotomies.

If anyone had the power to peer inside people's minds and determine exactly whether they were "assholes" or not, they'd surely use it in their dealings, but since that's not the case, in order to know whom to trust and whom to avoid before it's too late, you have to learn to recognize patterns. Those traits you deem superficial all exist for a reason, and serve to actualize the deeper traits that are otherwise invisible to our eyes. "Ye shall know them by their fruits", the fruits being the external manifestation of inner traits, which are by themselves hidden from the outside.
>>
>>56102057
Yes, they just happened to be part of the same Allied Powers.
>>
>>56102143
it doesn't work you retard. it's not that simple, that's the problem. not even passing -march helps, it will compile amd64 code and put "MIPS" in the headers of the executable
>>
>>56102155
I understand the reasons people do that completely. But they do not allow people to prove themselves usually. They take a negative posture rather than just being on guard.

Racism has often been based on superficial traits like skincolor. And yes obviously not because a distaste of the color. But I found the hypothetical racists that were discussed earlier interesting just because of how they structured it.

>you can't understand your own post
Rather you should say you're the one not understanding it. My post is an attempt at conveying something. If my best attempt was a random string of characters it'd still be you who didn't understand. But it's obviously silly to expect you to. Communication is a collaborative process.
>>
>>56102318
That's the thing, you may be conscious of what you're conveying but you have little idea what it entails.
>>
>>56102318
The association of race with skin color is at best a strawman and at worst a consequence of the mixed nightmare of today's globalized melting pot that has degraded societal bonds and similar traits to what you deem superficial. But race is far deeper than that.

I'm not one to believe in things like a collective consciousness, but I recognize the necessity of the feeling of identity and having a ground to stand on, which is enforced by more superficial traits that symbolize that common yet contingent identity. Race does not just concern impressions of other people as dichotomously good or bad, but the very identity of the individual, and I lament that the mixed, muddled nightmare world of Richard von Coudenhove-Kalergi has stripped people of that identity and forced them to strive for the impossible task of pulling themselves up by their bootstraps.
>>
>>56101503
Clearly just referring to the north Atlantic slave trade you silly goose
>>
>>56101521
That doesnt mean somebody shouldn't have to though!
>>
>>56099681
I like it.

main = putStrLn `mapM_` plot cross 9
cross x y = abs x == abs y
plot f n =
for range $ \y ->
for range $ \x ->
if f x y then '*' else ' '
where
range = [-n `div` 2 .. n `div` 2]
for = flip map
>>
Why can't we ban all tripfags already?
All they do is derail the thread into cancerous political "discussions".
>>
>>56102619
Cause they've got a 4chan pass.
>>
>>56102577
I'm a bit out of Haskell practice. It occurs to me after I posted that I could write plot a bit more pointlessly:

main = putStrLn `mapM_` plot cross 9
cross x y = abs x == abs y
plot f n = range (range . point)
where
range = flip map [-n `div` 2 .. n `div` 2]
point y x = if f x y then '*' else ' '
>>
>>56102576
As a Libertarian, I don't believe in forcing people to do something they don't want.
>>
I like how lolbertarians always talk about muh capitalism, muh free trade and muh gubmint is corruption... yet they clearly ignore the obvious fact: without regulation (and even WITH them :^) ), the big fish (big corporations) will always eat the smaller ones.
>inb4 muh evolution applies to capitalism
- evolution doesn't necessarily imply "good" or "improvement"
- in this case, it's practically impossible for the big fish to lose...
- they, as organizations, don't have the same interests as human beings
>>
>>56102872
>>/pol/
>>
>>56102743
And that applies to shitty people that profit off of human lives with no regard for ethics in any way,
Even the people behind private prisons and shit like that?
Is your egalitarianism so strong that you don't think crazy people who wanna kill and rape people cause they like it shouldn't be executed, because they wouldn't want it?
I'm saying sometimes u gotta do something because you gotta do it. We can argue about how dumb and inferior blacks are to whites or we can agree they've been historically set up to fail, welfare and AA didn't help and were clumsy attempts at damage control and at this point the system just churns blacks into either dead worm bait or fresh prison meat and this also extends to a large extent to other poor people in the US and we gotta help them out or a huge portion of our population is gonna keep getting wasted in prisons or dying in ghettos
>>
NEW THREAD!

>>56103011
>>
>>56103015
dumbass
>>
Go 1.7 has been released! https://go.googlesource.com/go/+/go1.7

People are reporting big performance/binary size/compile time improvements:
https://twitter.com/mattetti/status/763913903600349184
>.@rakyll Go 1.6 vs 1.7rc6
>Test suite from 3:34 => 1:48
>Docker image building 3:05 => 1:50

Can't wait for those sweet benchmarks, Go vs C/C++ :^)
>>
no more /pol/ shit in the next thread please
>>
>>56103045
>using the smiley with a carat nose
Thread posts: 313
Thread images: 35


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