[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: 324
Thread images: 43

File: pope3.png (463KB, 640x427px) Image search: [Google]
pope3.png
463KB, 640x427px
Old thread >>61333611

What are you working on, /g/?
>>
>>61341350
First for scheme
>>
File: lookatthiscomputer.jpg (3MB, 4032x3024px) Image search: [Google]
lookatthiscomputer.jpg
3MB, 4032x3024px
>>61341350
DSL in Lisp for pushing forth to embedded uC's
>>
>>61341403
best poster
>>
>>61341403
I fucking love you no homo
>>
File: ulisp.jpg (350KB, 768x1024px) Image search: [Google]
ulisp.jpg
350KB, 768x1024px
>>61341411
to be real with you, I only learned about forth a while ago but I'd been running uLisp on my esp's and atmega chips. There was only enough ram left to do really basic crap but with forth i can embed the interpreter, an mqtt client, and still have space to send a decent set of instructions. it's just a super nice way to be able to take any uC's I have, and repurpose them live. cool right?

>>61341411
>>61341437
you guys :-D
>>
>>61341292
They didn't want convicts in the company
>>
>>61341463
what oled screen is that? been looking for one that isn't a major pain in the ass

would be nice if it had raspi drivers
>>
>>61341480
>>61341292
Makes perfect sense if they do anything that involves a government contract or healthcare or anything that's regulated in any way. No way was that guy getting a clearance.
>>
>>61341482
it's an SSD1306 128X32. does SPI and I2C. it's nice enough but what I really want to find is a big e-ink screen. I've been searching for 'replacements' online but can only find digitizers and stuff :( there are a lot of e-ink screens available but none big enough to do what I want
>>
for (auto it = m_Animations.begin(); it != m_Animations.end(); ++it){
if( it->m_Name == name)
return &*it;
}


>
return &*it;

So this is the power of sepples
>>
>>61341403
Didn't know there were trinitron monitors. Fugg.
>>
>>61341714
it's just a VGA tv, I've got it plugged into an SJWA+ in this picture.
>>
>>61341648
for (auto& it : m_Animations)
if (it.m_Name == name)
return ⁢
>>
File: haru_improvement.jpg (30KB, 500x500px) Image search: [Google]
haru_improvement.jpg
30KB, 500x500px
Posted the other day but I figured it out on my own for the most part

Is there a more optimized way to calculate where the y should be on a tile slope?

For ascending-right slopes (that are 45 degrees), I have been using:

y = (ty*v) + ( v - ( ox - (tx*u) ) );


For ascending-left slopes (that are 45 degrees), I have been using:

y = (ty*u) + ( ox - (tx*v) ) * ( v / u );


This is what the following stuff means:
>ox: the bottom corner on the front side of the direction entity is moving
>tx: tile column
>ty: tile row
>u: tile width
>v: tile height (both u and v are 16 in this case)

They work, for their corresponding sides, and i've been playing around and haven't encountered any problems.

What I would like to do later is center the entity along the slope, so ox would become the entities x + w/2 in both scenarios; it works, but i've encountered an issue where it collides with solid tiles underneath it. The thing I have thought of doing is creating a world box that doesn't sink into the slope, and then its a simple offset from there.

I have two (45 degree) ramps that are descending left or right, and I have yet to find or come up with a formula that works for those. Is there a better formula I can use that applies to all ramps, with all the variables I have so far?
>>
i wrote a vba script for my boss and he was impressed. i am da programur now
>>
>>61341811
Yes.
>>
>>61341811
can you give more context? is this a sim and you're just creating functions to determine positional interactions with a geometric shape? is this a game and you've got objects interacting with a plane? What libraries are you using?
>>
>>61341350
Disgusting.
>>
File: 1416876644603297.gif (2MB, 600x451px) Image search: [Google]
1416876644603297.gif
2MB, 600x451px
How do I become as good a programmer as Terry?
>>
>>61341920
kys
>>
>>61341920
hello muslim OP poster
>>
>lefty religious leaders reading programming books
Is this a new meme?
>>
>>61342098
>Catholicism considered leftist
what a day and age we live in.
>>
>>61342121
Hey, welcome to the Internet.
https://www.commondreams.org/news/2016/08/02/pope-francis-capitalism-terrorism-against-all-humanity
>>
Working on a program for managing sheep tags that are imported from a file that the tag scanner produces.
Pretty simple, but I'm beginning to regret writing it in Python with PyQt4. Works as it should on my machine (running Arch Linux) but I'm trying to target Mac OSX and not having much fun getting PyQt4 to work
>>
building a search engine (wibr.me) comprised only of older style websites. I am often able to coax old sites from people by asking about old sites in /g.
>>
>>61341874
This is a 2D platform game and tiles are in a 1 dimensional array.

I'm using SDL2, but I am not using SDL_Rect's, I am using a box struct I made myself that stores the x, y, w, and h.

0 starts at the top left corner of the screen.

Here is an example of the code I am using:

ox = (int)ent->hb.box.x + ((int)ent->hb.box.w/2);

// ascending right slope
if ( tiletype == 2 )
{
int y = (ty*v) + ( v - ( ox - (tx*u) ) );

if ( ox > (tx+1)*u )
y = ty*u;

if ( ent->pos[1] > y - ent->hb.box.h )
{
ent->pos[1] = y - ent->hb.box.h;
A_P_sethb ( ent );
}
return true;
}
>>
Does anyone know why whenever I execute a python script in linux (which uses subprocesses), I can't see any text I type at the prompt when the script has finished executing. Whenever I press enter too, there's no newline. Just prints the prompt over and over
>>
>>61342138
>https://www.commondreams.org/news/2016/08/02/pope-francis-capitalism-terrorism-against-all-humanity

I'll chalk it up to he comes from South America. A place known for it's beautiful multifaceted historically significant culture, wild and verdant landscapes, and lush natural resources--all of which have been getting raped to death systematically by large US corps for years. I get why he'd have an opinion.
>>
>>61342185
>I'm using SDL2, but I am not using SDL_Rect's, I am using a box struct I made myself that stores the x, y, w, and h.

you know SDL_Rect alrady does that?

https://wiki.libsdl.org/SDL_Rect
>>
>>61342225
>(which uses subprocesses)
m'lad you're clearly already in dangerous waters. give us more info. you've probably spawned a process that is not returning and it's tied to the terminal session you're on.
>>
File: KYS.png (379KB, 582x480px) Image search: [Google]
KYS.png
379KB, 582x480px
>>61342237
>ye olde "it's the US' fault that south america sucks" meem
KYS
>>
>>61341350
>What are you working on, /g/?

Exploring the deepest, darkest corners of Racket
>>
>>61342262
I want to use my own, it doesn't change anything
>>
>>61342310
reinventing the wheel i see.

keep it up
>>
>>61342299
if I come into your house and beat the shit out of you every day is it your fault? you get new locks, i break them. you get a gun, i'm bullet proof. you try to nationalize your resources? I set up a coup against you in your family.

CIA openly admit their tactics faggot wake up and realize we're in control because we have the sack to strong arm other nations. you're god damn right it's our fault and we're on top of the world for it.
>>
>>61342310
>reinventing the wheel
>c user
no news here
>>
>>61342263
Oh that makes sense, I've got stuff running in the background but I've sent the standard out to /dev/null
>>
>>61342299

B-but it's true, anon:

http://www.globalresearch.ca/us-led-economic-war-not-socialism-is-tearing-venezuela-apart/5535633
>>
>>61342517
I would try and find another way other than subprocesses to do what you're doing. they're just nasty. always. there is the os and sys libs you can probably use those. if it's some application you're working with i bet there is a module for it already
>>
>>61342339
>The CIA invented all the cartels
Doubt[x]
>>
>>61342605
found the 18 y/o. just because you were still your dad's jism inside your fat fuck truckstop mother at the time doesn't mean it didn't happen.

https://en.wikipedia.org/wiki/Operation_Condor
https://www.cia.gov/library/center-for-the-study-of-intelligence/kent-csi/vol44no5/html/v44i5a03p.htm
http://www.telesurtv.net/english/analysis/10-of-the-Most-Lethal-CIA-Interventions-in-Latin-America-20160608-0031.html
https://en.wikipedia.org/wiki/Iran%E2%80%93Contra_affair

notice the .gov on one of those? it's because we openly admit to what we're doing. If i'm fucking you in the face, telling you i'm fucking you in the face, and you feel my rock solid cock choking the life out of you, go ahead and doubt all you want.
>>
>>61342338
>>61342357
No it's because it's a simple struct, and I had to change libraries before, I found it easier to have minor things not attached to the library.

Now do you have any idea on how to do the slopes better?
>>
>>61342676
You misinterpret.
I never said we dont do those things.
Im just saying the cartels are the primary reason.

Now back to P R O G R A M M I N G
>>
>>61342706
>Im just saying the cartels are the primary reason.
found the C# dev
>>
>>61342726
Id rather be accused of being nearly underage than a C# """"""""""""""""""developer""""""""""""""""""
>>
>>61342772
you're right that was really fucked up of me.
>>
>>61342799
apology accepted, lad
>>
File: 1495124754734.jpg (60KB, 525x551px) Image search: [Google]
1495124754734.jpg
60KB, 525x551px
>>61342835
it's easy for me to forget we're all people here on /g/
>>
>>61342889
am i people?
>>
File: 1497979307205.gif (479KB, 758x866px) Image search: [Google]
1497979307205.gif
479KB, 758x866px
>>61342903
you are an element in the list that is people.
>>
my roommate doesn't want my bicycle inside the apartment.

where the fuck do i put it?
>>
File: FB_IMG_1496562951229.jpg (15KB, 480x375px) Image search: [Google]
FB_IMG_1496562951229.jpg
15KB, 480x375px
>>61342079
>hello muslim Original Poster poster
>>
how do I tackle reading some large program's code in order to learn how to modify it?

>open some file based on a filename that vaguely hints at what functionality it contains
>it's full of functions i don't what the FUCK they're about
Do i just start at main and read without fully understanding until i get a sense of what's going on?
>>
>>61342924
is it like a lisp list?
>>
>>61342936
kill your roomate, sexually dominate the corpse and display it so that other people who would get between you and your bicycle never consider intervening ever again.
>>
>>61342947
op poster clearly means original post poster.
>>
>>61342772
w-w-whats wrong with c#

:(

im getting a netduino soon
>>
>>61342979
yeah so technically you're an atom in that list, unless people is actually mapping a function to each element in which case there is probably a lot more going on with you once properly evaluated after the read phase
>>
>>61342995
OP means Original Poster. Its implied that the original post poster is called Original Poster. Thats why OP is fag, not Original Post is fag. That wouldn't make sense stupid anon.
>>
>>61343060
OP has always had two meanings: original post and original poster
Fuck off newfag.
>>
>>61342978
Depends on the language.
>>
>>61343076
OP has always been the person starting the thread. You are living in some fake nigger world where you are somehow an old fag dictating nonsense to people.
>>
>>61341350
>What are you working on, /g/?
A bootloader.
>>
>>61342691

The best way to do slopes for a tiled game is to use the Separating Axis Theorem(SAT). So basically, all "slopes" would be triangles and you just do Convex-polygon-vs-Triangle SAT tests to detect and resolve overlap. If the geometry doesn't rotate then you can make simplifications to your code. There are simpler less mathy ways to do the same thing in 2D. For example, you could just do a bunch of perpendicular projections, find the max dot product inside the polygon and then extract the contact manifold that way.
>>
>>61343020
>whats wrong with c#
You're being meme'd.
>>
>>61343076
why the fuck would you say "hello OP poster" without linking to a post, when its implied that OP means Original Poster. I bet you use a whole line for open curly bracket at the beginning of your programs, you moron.
>>
>>61343121
>>61343163
dumb samefag
>>
File: 1497978977415.jpg (46KB, 480x480px) Image search: [Google]
1497978977415.jpg
46KB, 480x480px
>>61343163
>I bet you use a whole line for open curly bracket at the beginning of your programs, you moron.

>>61343176
you wish. are you just gonna take that from this guy? I think you're a huge faggot already but he is adding fuel to the fire
>>
>>61342052
what is this?
>>
>>61343195
TempleOS -- Brought to you from God himself by the Prophet T.A Davis
>>
{
objectively correct
}


        {
objectively pajeet
}

>>
>>61343099
c++
>>
File: 141686640013333.gif (2MB, 641x484px) Image search: [Google]
141686640013333.gif
2MB, 641x484px
>>61343195
>he doesn't know TempleOS
>>
>>61343251

I wish Terry hadn't gotten banned from every streaming service.
>>
>>61343251
>>61343204
can you actually do anything in it or is it just some schizo religious sandbox to explore
>>
>>61343235
I think you meant to say

{
awful
}
>>
>>61343195
https://www.youtube.com/watch?v=FPC0_k3lt0c
>>
>>61343274
It has no network support, is its basically useless.
>>
>>61343251
I know TempleOS but what's this "Press OK to be puppeted by the Holy Spirit" program
>>
>>61343274
the OS is the result of a man's schizophrenic break--it has limited applicability. You should look at it as an example of the fruits yielded by verdant but untended mental gardens. Terry could probably help this entire planet if only this planet would help Terry.
>>
>>61343274
You can actually do quite a bit.
>>61343311
>It has no network support, is its basically useless.
Wrong.
https://github.com/minexew/Shrine
https://github.com/tramplersheikhs/crocodile
>>
>>61343142

not sure what that is, I've never been educated on game development or programming, but thank you I will look into it.

If anyone is interested in the working code:

    switch ( tiletype ) 
{
case 0:
case 1:
break;
/* ascending right */
case 2:
ox = (int)ent->hb.box.x + (int)ent->hb.box.w;
oy = (ty*v) + ( v - ( ox - (tx*u) ) );

if ( ox > (tx+1)*u )
oy = ty*u + 1;

if ( ent->pos[1] > oy - ent->hb.box.h )
{
ent->pos[1] = oy - ent->hb.box.h;
A_P_sethb ( ent );
return true;
}
break;
/* ascending left */
case 3:
ox = (int)ent->hb.box.x;
oy = (ty*u) + ( ox - (tx*v) ) * ( v / u );

if ( ox < tx*u )
oy = ty*u + 1;

if ( ent->pos[1] > oy - ent->hb.box.h )
{
ent->pos[1] = oy - ent->hb.box.h;
A_P_sethb ( ent );
return true;
}
break;
/* descending right */
case 4:
ox = (int)ent->hb.box.x + (int)ent->hb.box.w;
oy = (ty*u) + ( ox - (tx*v) ) * ( v / u );

if ( ox > (tx+1)*u )
oy = (ty+1)*u - 1;

if ( ent->pos[1] < oy )
{
ent->pos[1] = oy;
A_P_sethb ( ent );
return true;
}
break;
/* descending left */
case 5:
ox = (int)ent->hb.box.x;
oy = (ty*v) + ( v - ( ox - (tx*u) ) );

if ( ox < tx*u )
oy = (ty+1)*u - 1;

if ( ent->pos[1] < oy )
{
ent->pos[1] = oy;
A_P_sethb ( ent );
return true;
}
break;
}
>>
>>61343274
>>61343311
>>61343339
https://github.com/tramplersheikhs/uriel
>>
>>61343339
>>61343371
I thought TOS's whole thing was it was PURE and cant be tainted by the outside world?

But a modern fork would be pretty cool desu.
>>
>>61343391
pretty sure TA davis's definition of what pure is would change about as often as his train of thought.
>>
>tfw you will never be a genius like Terry
>>
>>61343135
First/second/nth stage? Is it for x86 or for some other architecture?
>>
File: 1486762177554.jpg (128KB, 1200x1600px) Image search: [Google]
1486762177554.jpg
128KB, 1200x1600px
>>61343430
count it a blessing.
>>
>>61343476
thats a pretty bad trap.
>>
File: 1486741102735.jpg (125KB, 960x960px) Image search: [Google]
1486741102735.jpg
125KB, 960x960px
>>61343517
fuck, I've already wanked it at least once to this. Mostly because it's chucky themed i'm fine in that respect right?
>>
>>61343549
Surprisingly its the low-quality wig that kills it for me.
>>
>>61341350
Building a neural network that takes in images of anime girls in bikinis and outputs images of naked anime girls (and vice versa).
Training should finish in about an hour. So far, results look less bad than expected, but it's not something that'll see serious use.
>>
>>61343517
>trap
>>
>>61343589
didn't see that till you pointed it out. the boobs though how
>>
>>61343618
>
>>61343620
fake boobs are easy lad.
If he did more stuff with bangs to cover up the forehead he'd be wankable
>>
File: 1499897377296.png (31KB, 1246x936px) Image search: [Google]
1499897377296.png
31KB, 1246x936px
>>
File: programming language rank.png (139KB, 1250x915px) Image search: [Google]
programming language rank.png
139KB, 1250x915px
Here's a more accurate chart.
>>
File: 4ufdJEh.jpg (91KB, 720x540px) Image search: [Google]
4ufdJEh.jpg
91KB, 720x540px
>>61343644
C wins again
>>
>>61343653
>github
if you want the sjw demo
>>
File: 1491927855489.gif (350KB, 540x640px) Image search: [Google]
1491927855489.gif
350KB, 540x640px
I guess I'll ask here since this is where programmers hang out...

I got kicked off uni for failing a class and now looking for some junior position in software development. I know C/C++ pretty well, some basics of java and your standard scripting languages like python, bash and lua but I don't know any webdev (tried django, had no idea what i was doing). I'd love to score a job coding in C++. Any advice for interviews, CV, cover letters or any other thing that could give me a better chance at employment? How should I prepare? I have free time now until I get my first interview, how should I use it?
>>
>>61343615
Post some result if the training is done pls
>>
>>61343679
Whats a /dpt/ approved git solution?
Or a repo hosting solution in general?
>>
>>61343679
literally everyone uses github
when they ask if you if you're familiar with source control, they won't call it "git" they'll ask about github, people don't even realize they're separate things, nobody cares if some tranny retards are code policing on projects nobody gives 2 fucks about
>>
>>61343712
github, bitbucket, stash, gitlab, TFS. anybody too autistic to realize any resource is a means to an end doesn't belong in industry anyway.
>>
>>61343705
dropbox
>>
>>61343712
ive never used github in a professional setting
no one I know has ever used github in a professional setting
github is the hobby programer demo
>>
>>61343738
i was thinking google drive instead, but i will check out that
>>
>>61343705
>getting advices from dpt
kek.

Free git hosting

https://github.com/
https://notabug.org/
https://bitbucket.org/
https://gitgud.io/
https://gitla.in/
https://gitlab.com/
https://git.zxq.co/
https://git.teknik.io/
>>
>>61343774
"git" is stupid. all git is stupid. go fuck yourself you stupid n*gger.
>>
File: 1498790642513.png (25KB, 669x514px) Image search: [Google]
1498790642513.png
25KB, 669x514px
>>61343060
You're new, OP means original poster or original post depending on the context.

op is a fag = original poster is a fag
refer to the op = refer to the original post
>>
>>61343332
That's fucking poetic anon.
>>
File: super_big_faggot.jpg (223KB, 1000x823px) Image search: [Google]
super_big_faggot.jpg
223KB, 1000x823px
>>61343793
I contend with mental illness myself on a daily basis. I only have respect for T.A. Davis. People don't understand that if the fault is in your mind it's impossible to recover from alone. He needs a community that isn't just us faggots on /g/ lauding him for saying nigger. He could have a full time job and be making regular pull requests to major resources if it weren't for how selfish we all are.
>>
File: neogafok.png (298KB, 500x628px) Image search: [Google]
neogafok.png
298KB, 500x628px
>>61343784
Yeah, well, that's just, like, your opinion, man
>>
>>61343853

Terry is too busy working on God's temple to contribute to communist nigger free software.
>>
>>61343853
>shitskin advocating for handouts and everybody else take responsibility for mentally unhinged people
how surprising.
>>
>>61343853
He's really uncooperative and wouldn't do anything if people started bossing him around like that.
Remember that he believes that his internet isn't the real internet, it's a fake one put in place by the CIA to monitor him and his actions there have no consequence he can spam nigger all he wants.
>>
>>61343887
>fedora tipper is angry
kek
>>
File: Main170702.jpg (2MB, 2592x1944px) Image search: [Google]
Main170702.jpg
2MB, 2592x1944px
And if you have a problem with that, say it to his face.
>>
>>61343887
hah, you wish. Scottish through and through lets see if you actually know your roman history and can tell me why thats my skin tone.
>>
C++ related question.

I have something like this:
uint8_t *array[5];
for (int i = 0; i < 5; ++i)
array[i] = nullptr;


I'd rather it be more like this:
uint8_t *array[5];
for (i : array)
array[i] = nullptr;


or even just:

uint8_t *array[5] {nullptr};


Anything I'm missing? It's a static array, the size of an element and range of memory addresses is known at compile time. It should just make use of the array's size, or initialize an array to a single value. Thought of just using memset.
>>
>>61343899
that's a result of his mental illness. I have friends that have been years into their schizophrenic breaks. they are harmless, and full functional if they have medication and support.
>>
>>61343853
A schizophrenic isn't going to be able to hold a full time job anon...

There's a reason he's on disability. It would be nice if he had a schizo wrangler to direct him to more useful behaviors but that doesn't seem to have happened because his parents apparently don't love him.
>>
>>61343909
Is this real?
>>
>>61343921
uint8_t *array[5] = { 0 };


I think C++ requires more hoops so try { { 0 } } if that doesn't work.
>>
File: FB_IMG_1499667718621.jpg (15KB, 480x342px) Image search: [Google]
FB_IMG_1499667718621.jpg
15KB, 480x342px
>>61343684
what class did you fail
>>
>>61343920
>scottish
Then youre still a sub-human.
>>
>>61343939

What do you think? Of course it's real.
>>
>>61343935
I disagree with you knowing two offhand. I get that he's on disability because of the situation he's in. My issue is that people see his situation, see his talent, and do nothing to attempt to help him because it'd clearly benefit the rest of us.
>>
>>61343947
I know you guys are going to laugh at me for this but it was Introduction to Computer Science and Programming in Python. I just didn't put as much effort into it as I should have and slacked off. I regret it deeply.
>>
>>61343684
Have you ever written a project?
If it's something less than 2000 lines, you are not ready for a job programming with others collaborating on a project with a much larger cognitive load than a hobby project.
>>
>>61343947
Anabelian geometry...
>>
>>61343963
t. has never actually been around a real schizo
>>
>>61343952
Found the Brit. I'm a 1st gen American so you can hate me because I'm Scottish *and* American. I eat a cheeseburger at least once a month, I've got a medical marijuana card, I think Python and Lisp are highly applicable in today's industry come at me
>>
>>61343981
Not funny.
>>61343977 is me (>>61343684)
>>
>>61343985
>e I'm Scottish *and* American
>americans trying to be europeans
kek

you're an amerilard, that's all
>>
>>61344003
apply rope to neck
>>
>>61343979
Longest project I've ever written is probably 150 lines... How do I work on this without a job?
>>
>>61344015
>because I'm clearly overweight in that picture
bet I know more Gàidhlig offhand then you do even if you are UK
>>
>>61343985
Not even a bong,
>Scottish American
t. Ishmaul Campbell
>>
>>61344037
You follow the president's advice. Think big anon.
>game
>chat program
>compiler
First 3 ideas off the top of my head
>>
>>61344064
you're thinking Irish American there you Dickensian street urchen.
>>
>>61344088
Like I said, I failed a Python class. How am I supposed to make a chat program or compiler?
Maybe I can make a game with Turtle though. Thanks.
>>
File: The so called scot.png (24KB, 695x395px) Image search: [Google]
The so called scot.png
24KB, 695x395px
>>61344090
literally just googled scottish surnames for that post.
>>
>>61343684
>>61344112
Barracuda is hiring. I used to work there. I'll be real their products are shit but they will hire anybody. They've been pulling from military recruiters lately because the well is so dry for what they're looking for.
>>
>>61344114
way to go, you did a cursory search for basic bitch scottish last names. I'm decended from Gellatlys. Theres a name you don't know.
>>
>>61343684
go neet or get a wageslave job and try again later. you ain't getting a programming job.
>>
>>61344112
Take something you're interested in, and can use, then start creating it. Make a png decoder. Make a jpeg decoder. Make a simple game. Rework an existing project to do things how you want it to, or add a feature.

Etc. If there's nothing you're interested in writing, I'm not sure why you've even gone down this avenue to begin with. Look within, you'll find what it is.
>>
>>61344163
>Doesnt even know the John Smith names of his so called """"""""""heritage"""""""""""""

im done shitposting though, but you should really kill yourself.
>>
>>61344187
edgy af
>>
>>61344187
low effort, disregarding.

I should kill myself for a plethora of reasons, last of which being any interaction with an anon on /g/
>>
>>61341350
Pic saved
>>
>>61343979
How about if my largest project is 6.5k lines but it's a game.
>>
File: why.jpg (117KB, 1276x657px) Image search: [Google]
why.jpg
117KB, 1276x657px
This is a valid Java program, given the file name FuckYou.java


\u0070\u0075\u0062\u006c\u0069\u0063 \u0063\u006c\u0061\u0073\u0073 \u0046\u0075\u0063\u006b\u0059\u006f\u0075\u007b\u0070\u0075\u0062\u006c\u0069\u0063 \u0073\u0074\u0061\u0074\u0069\u0063 \u0076\u006f\u0069\u0064 \u006d\u0061\u0069\u006e\u0028\u0053\u0074\u0072\u0069\u006e\u0067\u005b\u005d \u0061\u0072\u0067\u0073\u0029\u007b\u0053\u0079\u0073\u0074\u0065\u006d\u002e\u006f\u0075\u0074\u002e\u0070\u0072\u0069\u006e\u0074\u006c\u006e\u0028\u0022\u0048\u0065\u006c\u006c\u006f\u002c \u0057\u006f\u0072\u006c\u0064\u0021\u0022\u0029\u003b\u007d\u007d


>>
>>61344256
>it's a game.
about what?

post screen shots
>>
>>61343979
This isn't true at all.
Your skills in programming is secondary for getting hired.
>>
>>61344282
why wouldn't it be?
>>
>>61343921
you can use std::array if you know the array size at compile time.
std::array<uint8_t*, 5> array = {nullptr};
>>
>>61344282
Are you dumb? That's not surprising at all.
>>
>>61344282
That's boring and queer version of a classic. It's just unicode.

Here's the real man's version:
short main[] = {
277, 04735, -4129, 25, 0, 477, 1019, 0xbef, 0, 12800,
-113, 21119, 0x52d7, -1006, -7151, 0, 0x4bc, 020004,
14880, 10541, 2056, 04010, 4548, 3044, -6716, 0x9,
4407, 6, 5568, 1, -30460, 0, 0x9, 5570, 512, -30419,
0x7e82, 0760, 6, 0, 4, 02400, 15, 0, 4, 1280, 4, 0,
4, 0, 0, 0, 0x8, 0, 4, 0, ',', 0, 12, 0, 4, 0, '#',
0, 020, 0, 4, 0, 30, 0, 026, 0, 0x6176, 120, 25712,
'p', 072163, 'r', 29303, 29801, 'e'
};

NB: You'd need a vax-11 to run it.
>>
>>61344285
If you're male you're gonna be judged at least somewhat on your ability to hit the ground running with a team.
If you've never worked with a largish code base before you're gonna get fired.
>>
Why isn't there a single anime about programming?
>>
>>61344340
#include <stdio.h>
main() {
long long P = 1,
E = 2,
T = 5,
A = 61,
L = 251,
N = 3659,
R = 271173410,
G = 1479296389,
x[] = { G * R * E * E * T , P * L * A * N * E * T };
puts((char*)x);
}
>>
File: battle programmer shirase.jpg (37KB, 640x480px) Image search: [Google]
battle programmer shirase.jpg
37KB, 640x480px
>>61344365
>>
>>61344365
To an outside observer, programming is not interesting.
There actually are some, though.
>>
>>61344365
https://myanimelist.net/anime/13759/Sakurasou_no_Pet_na_Kanojo
https://myanimelist.net/anime/1210/NHK_ni_Youkoso!
https://myanimelist.net/anime/9253/Steins;Gate
>>
Why do Europeans like programming so much? I see a disproportionate amount of people named Andrjez writing programming blogs and things.
>>
File: C stella no mahou.jpg (154KB, 1280x720px) Image search: [Google]
C stella no mahou.jpg
154KB, 1280x720px
>>61344365
There's plenty but they're never the main focus, because programming is boring.
Even to other programmers, programming is boring if you're not sitting at the keyboard.

stella no mahou has a C programmer in it, it's about a doujin game development club
>>
>>61344394
Americans are too dumb to program
>>
>>61344394
>Why do Europeans like programming so much?
Europeans invented programming
>>
>>61344365
Kobayashi has some programming in it.
Laine
>>
>>61344412
Europeans invented a lot of things
>>
>>61344372
Did you come up with this by yourself?
>>
File: 1487014390311.jpg (32KB, 580x435px) Image search: [Google]
1487014390311.jpg
32KB, 580x435px
>>61344394
>>61344411
>>61344412
are you guys upset that we rejected your H1-B's on the basis that you only know PHP?
>>
>>61344444
I'm not even a european, but why the fuck would I want to live in burgerland?
That place is a shithole.
>>
>>61341350
>What are you working on, /g/?
A site like Twitch except instead of playing video games people program.
Anyone interested?
>>
>>61344437
no i did not

here's another
main(){
int i[]={
1819043144,
((0x1bc5c81b|1<<0x14)*4)+3,0xa646c00|(0x39<<1),0
};
printf("%s",i);
}
>>
>>61344466
I can count at least 3 websites that do that.
Nobody wants to watch others program.
I wouldn't want to watch myself program either.
>>
File: 1491134358477.jpg (49KB, 475x600px) Image search: [Google]
1491134358477.jpg
49KB, 475x600px
>>61343947
I failed security. It was mostly math. I put it off until I only had a week to study for a final and although I crammed there was just too much to remember, they went into quite a detail on a ton of encryption algorithms.

>>61343979
I've written like 1.7K chess with some simple AI and a tower defense game that was a little shorter that that. I did pretty well on programming classes, only struggled with math.

(I have no idea why that other guy started to pretend he was me)
>>
>>61344444
>implying I'd live in burgerville
>>
>>61344444
I don't want to work or live in America
>>
>>61344444
>are you guys upset that we rejected your H1-B's
>Jewusa
>can decide to go to war at 18
>can't drink till 21
>>
>>61344444
Since when is PHP a European thing?
>>
>>61344283
It's a shmup. I left it with placeholder art so there's no point in posting screenshots.
>>
>>61344486
>struggled with math
You're fucked.
>>
File: spring_lake_spring_pics-114_0.jpg (236KB, 1148x500px) Image search: [Google]
spring_lake_spring_pics-114_0.jpg
236KB, 1148x500px
>>61344460
>>61344489

>he will never own beautiful, fertile land
>>
>>61344412
Yeah Europeans invented being white but they seem to hate that. Why are so many Europeans autistic programmers NOW
>>
>>61341350
>What are you working on, /g/?
A site like Twitch except instead of playing video games people have sex.
Anyone interested?
>>
>>61344365
Doesn't New Game have programmers in it?

That fucking dragon loli anime has something for sure, the non-dragon dyke is a programmer.
>>
>>61344537
Would people pay me to jack off?
>>
>>61344529
>Yeah Europeans invented being white but they seem to hate that.
>burger humour
>>
>>61344547
new game is effectively a high school slice of life except in an office building
You could change the setting and it would effectively nothing
>>
>>61344551
Probably not.
>>
>>61344499
>he's under 21
that explains why you get so needlessly triggered when anyone brings up your country, even in a positive light
>>
>>61344460
your situation is darker than I thought.

>>61344489
how would I be implying that by suggesting America rejected your H1-B. ESL confirmed, english reading comprehension is low.

>>61344491
you sound like a lazy german academic

>>61344499
>our soldiers are the best in the world--all real men and women
>drinking heavily now at 28 with a fully developed prefrontal cortex because i didn't drink at age 5 like all you arrested development idiots
>>
>>61344575
>he's under 21
where did i said I'm under 21 ?

please tell me retarded burger
>>
>>61344555
>implying it was a joke
>>
>>61344365
Serial Experiments Lain is directly indirectly about programming, from the perspective of the base logical structures and constraints the universe forces on any machine existing within it.

I find very little I do, no matter the job or the place, does not resemble low level software development. Everything needs a means, information must be stored to some degree to perform a given task, and whether it's a brain, a liver, a network of cells that function like coupled oscillators and use multiple signalling pathways to transition through states, or writing C code, it really is all the same. Try going around in circles, and breaking out of the loop after recognizing your start point. Then ask yourself how you did it. It will generally obviously resemble a null terminated string on smaller scales. Less obviously at larger scales. Sometimes other data is stored and used to figure whatever. Methods of storing strings as arrays with a numerical size attached, and referencing dynamically allocated storage of some branching object structure are like this.

Etc. As above, so below.
>>
>>61344593
you didn't, but the only people who care about this issue are <21
>>
>>61344600
tl;dr
>>
>>61344477

Uh, it's called coding now.

And maybe you're not interested, but it would appeal to the natural social instincts of young gurls who we should be getting into coding.
>>
>>61344613
k
>>
File: 1484337437571.jpg (7KB, 344x145px) Image search: [Google]
1484337437571.jpg
7KB, 344x145px
>>61344590
>you sound like a lazy german academic
what did you call me???
>>
>>61344620
>coding
i'm a writer, but from now on, I'm a worder
>>
>>61344600
I watched the first 4 episodes and nothing screamed PROGRAMMING to me.
Does it suddenly change in the last half or is it supposed to be this girl's slow-moving atmospheric descent into computer-related autism?
>>
I want to work and live in America
>>
>>61344634
I've been making food every day for a while now, I think I'm starting to become a real fooder
>>
>>61344631
BEADY
>>
>>61344661
I ____ed your mother, so that makes me a mother____er!
>>
>>61344657
>does it suddenly change in the last half

lol you could say that
>>
>>61341350
Is that book a good place to start for someone with a little experience in other languages?
>>
>>61344631
I SAID YOU CRAVE BUREAUCRACY.

rofl I jest but for real my expact homie is over in Berlin right now. His primary complaint: he cares about his work way more than any of his coworkers.

Eurofags like to think themselves wise for 'working to live and not living to work' the don't understand that as humans we are subject to the same thermodynamic laws that effect gasses. If it's not for those who naturally *want* to put in the effort we'd all stagnate. America rewards those willing to cut their teeth in pain for greater reward. Europe rewards the status quo.
>>
File: 1496585546802.jpg (156KB, 920x960px) Image search: [Google]
1496585546802.jpg
156KB, 920x960px
>>61344690
how dare you call me german??
>>
>>61344685
yes
it's not a very big book
>>
>>61344700
for you
>>
>>61344699
is being German an insult?
>>
>>61344657
Pretty much the latter. It's what I just said linked fluidly with computers and "programs" in the abstract. What generates your idea of context and reality, and how this can be programmed.

Ultimately, memory is the creator of reality. For both computers and humans. Because a machine that computes is really just a signal manipulator. More directly stated, computers don't run on math, they run on signals. All computational devices do.
>>
File: 1484336394869.png (611KB, 568x688px) Image search: [Google]
1484336394869.png
611KB, 568x688px
>>61344725
>>
>>61344725
Not at all, my slight was toward German academics. I actually think the every day working german is the same upstanding person that any average working class anybody would be.
>>
My boss wants me to start using Python

wat do
>>
>>61344792
quit
>>
>>61344792
Python 2 or Python 3?
>>
File: 1473373799640.jpg (38KB, 663x579px) Image search: [Google]
1473373799640.jpg
38KB, 663x579px
>>61344792
I work at a Python shop now. I've slowly been committing Lisp projects into the repository. I've been merging my own pull requests. Take the fucking wheel of your own life friend.
>>
>>61344806
>hey anon, i'm gonna put you in some python projects
>"i quit"
>>
>>61344792
Tell him that 4chan dot org slash gee slash dpt told you to use Haskell instead
>>
>>61344809
>pic related
Is that andrei wallowing in regret for creating an awful programming language?
>>
>>61344806
Can't

>>61344808
I don't think he knows enough about it to know that you have to choose

>>61344809
No way I could get Lisp code running in production, the servers are locked down hard
>>
>>61344824
fuck I loled
that'd be an extremely autistic scene
>>
>>61344792
... ... start use python?
>>
>>61344849
are you insane?
>>
My boss wants me to start writing software

wat do
>>
>>61344840
>he knows nothing about python
then why is he making technical choices anon
youre the expert
>>
>>61344870
because he's the manager

last year he wanted us to write everything in node until somebody pointed out that none of the team had experience in it, but this time one of the team uses python for hobby projects, I think my boss is hoping he'll teach the rest of us
>>
>>61344869
quit
>>
>>61344792
Start wearing Converse sneakers to work and he'll assume you already use it.
>>
>>61344897
yeah quit
>>
>>61344907
>not full rick

pleb
>>
>>61344840
I've got prod access on my shit, you're not a decision maker? pleb.
>>61344849
an actual reasonable solution
>>61344857
nah i bet he/she actually has a job he/she holds

>>61344870
thats the standard project manager model wake up this is real life.
>>
>>61344927
>nontechnical people manager makes technical decisions because he's in change
only in dysfunctional teams anon
>>
>>61344927
our manager decides what we should do
our tech lead decides how, including languages
>>
Do animals have blood types like we do?
>>
Are cs qts good gf material?
>>
>>61344979
no
>>
File: 12wedfrgb.jpg (99KB, 1080x810px) Image search: [Google]
12wedfrgb.jpg
99KB, 1080x810px
>>61344979
hmmm
>>
>>61345007
woman are like robots.
>>
>>61344970
How is this programming related?
>>
>>61345055
what are you talking about?

I'm talking about type checking
>>
File: game.png (284KB, 1440x900px) Image search: [Google]
game.png
284KB, 1440x900px
pls rate.
>>
>>61345007
I can't imagine being so self-unaware that I'm a carbon copy of each one of my workmates and I'm a living stereotype down to the T.
I bet they don't even realize it.
>>
>>61345081
rate what

whats that
>>
>>61345097
a dungeon generator.
>>
File: Capture.png (29KB, 593x147px) Image search: [Google]
Capture.png
29KB, 593x147px
>>
>>61344524
There are like 20 lakes where I live. That shit is nothing special.
>>
>>61345084
How exactly are you assuming that? Because they all use Apple?
>>
>>61345081
make the level more interesting

>>61345084
i bet you're a stereotype of 4chan user down to a T
>>
>>61345140
got any idea, is just simple random drunk walks.
>>
>>61344953
>>61344962
found the intern who has never seen how dark it actually gets
>>
>>61345157
look at graph algorithms for maze generation like kruskal's algorithm or prim's algorithm
DO NOT USE THESE EXACTLY as they will make a perfect maze with a single exit every time and will be monotonous, but if you can implement them it will teach you a bit about sets and generation
>>
>>61344690
Or maybe Europe just has a higher standard/status quo. While in America people are "rewarded" with a job for havinga a uni or collee diploma, in Europe having a uni or college diploma, and therfore a job is a given. The real reward comes from being an outstanding employee, earning promotions, climbing the corporate ladder if you will, because thats where one reaches a level of achievement compared to his piers. I, as an American, would argue that Europes "starting line" ,so to speak, is ahead of ours.
>>
>>61345211
found the flyover working for business suits
>>
>>61345239
>piers
I meant peers
>>
>>61345081
The numbers Mason, what do they mean?
>>
>>61345081
>java
1/10
>>
>>61345279
is the number of their room.

>>61345295
fugg off
>>
>>61345295
0.1
>>
>>61345239
American innovation outstrips Europe's. Why? Regulations. Work with people from Italy. They're fleeing the country because the economy is depressed. Why? You need to jump though 300 hoops to start a business. Meanwhile startup culture is huge in the US, to the point where people ruthlessly make fun of startup hipsters.
>>
File: out2.webm (3MB, 1024x768px) Image search: [Google]
out2.webm
3MB, 1024x768px
>>61341350

I got tunnels working in my raymarcher!
>>
>>61345305
well done
>>
>>61345316
holy shit what is this
>>
>>61345313
It's huge in California, not so much elsewhere.
>>
>>61345316
is this done in js?
>>
File: 1481669880462.png (254KB, 580x504px) Image search: [Google]
1481669880462.png
254KB, 580x504px
>>61345316
amazing
>>
>>61345081
>>61345295
>windows 7
>chrome
>internet explorer still pinned to start menu
>some gaming app
>text of IDE only allocated like 30% of the screen
>>
>>61345339
Nah, just a GLSL fragment shader
>>
>>61344365
https://youtube.com/watch?v=Iojvf72xJfs
>>
>>61345313
good point, that slipped my mind
>>
>>61345354
I'm not autistic.
>>
>>61345316
what is a ray marcher?

how is it related to ray casting or ray tracing?

t. pleb
>>
File: 1485473684854.png (408KB, 824x792px) Image search: [Google]
1485473684854.png
408KB, 824x792px
>>61341350
>What are you working on, /g/?
I recently fixed an annoying as fuck bug in sway, a wayland compositor.
You can now move your mouse very slowly.
>>
>>61345336
Exactly. Only the US set the conditions for a tech boom. Only the US allows companies like Facebook, Microsoft, Apple, Snapchat, Uber, Amazon, Google to exist, where a few kids in their basement build a billion dollar machine. In Europe, you'd need millions of dollars just to comply with regulations.
>>
File: 12wertz.png (100KB, 824x792px) Image search: [Google]
12wertz.png
100KB, 824x792px
>>61345384
>408 Kbytes
>>
>>61345239
Nah, euro uni system is garbage, why do you think they're all coming here? esp. in Germany they have no say in their future when it comes to Uni. As a burger I've only ever been recognized because I showed genuine talent or took initiative. My friend who is a Prof. In Germany right now literally had to fill out a form explaining why he thought he was justified to have a wage increase. My boss saw I'd done good work and just knew it was the incentive I needed to keep doing what I was doing and doing it well. That's American ingenuity. It's the reason we aren't stale like EU. Look at Italy. They latch on to Greek and Roman culture as the epitome of what European culture should be because they have no recent contributions. They're all overly copper-toned shaved girly boys now that think soap operas are real

>>61345240
working for the devil, getting paid sweet sweet devil money and spending it on drugs that make me feel devilishly amazing
>>
>>61345374
>"Im not autistic", he said, on an online Shan Yue Buddha-sculpting imageboard
>>
>>61345313
those hoops vary friend. Northern hoops are bureaucratic, southern hoops are Mafia
>>
>>61345380

In my ray marcher, from each pixel, I cast a ray forwards some distance N times, and check whether it intersects geometry, which I define using distance fields. I use the returned distance from iterating each ray forwards to then colorize the scene. One of the cool bits is you can render complex geometry using only 4 vertices for your screen quad.
>>
>>61345374
>Hey anon, why is your seat 9 feet from the steering wheel? you wouldn't have to lay like that if it was closer. And why is your old radiator just sitting here on the passenger floor? what's the point of this bizarre google spying device on your dashboard?
>I'm not autistic
>>
>>61345451
sweet

so you said that is GLSL , C++?
>>
>>61345374
then you don't belong here
>>
>>61345466
I don't give a fuck.

I've used linux but is garbage.
>>
>>61345466
>Car analogies
You're not much better than the stupid cuck winkid.
>>
>>61345478

C++ for boilerplate like OpenGL initialisation and window setup, writing some functionality to recompile shaders on the fly- the boring parts. GLSL then for the fun stuff.

I found these resources really useful too:
http://iquilezles.org/www/articles/raymarchingdf/raymarchingdf.htm Inigo Quilez is the mastermind behind the technique
http://www.pouet.net/topic.php?which=7931&page=1
http://www.pouet.net/topic.php?which=7920&page=1
>>
How would you do the dialogue system in a game where characters talk or make choices, usually to NPCs? FSM?
>>
>>61345535
Use an AVL tree.
>>
>>61345535
digraph
>>
>>61345534
really nice.

so you're doing this for fun or ir it some college project?
>>
>>61345497
My analogy there was referring to the terrible screen real estate, IE on your taskbar, and chrome.

I don't really give a shit that you don't use a good OS
>>
>>61345559

Nah, just for fun! It'd be cool to sync the graphics to music some day and make a cool demo to enter at a demoparty though!

Something like this:
https://www.youtube.com/watch?v=IFXIGHOElrE
>>
>>61345583
wish you the best
>>
>>61345621

Thanks anon - I hope all goes well on your end if you try raymarching out some day too.
>>
haskell = "fun!"

main = putStrLn haskell
>>
File: mom-yelling-with-megaphone.jpg (4KB, 276x183px) Image search: [Google]
mom-yelling-with-megaphone.jpg
4KB, 276x183px
I've heard through the grapevine that the C++ standards committee have (finally) merged concepts for the next C++ standard.

Fucking finally.
>>
>>61345807
They were lying to you. They dropped concepts, as well as modules.
>>
>>61345807
I am working with the guy who implemented them and wrote the standard this summer on another feature!
>>
Trying to figure out how the fuck I can initialize some data in my Vuex store when a user visits any arbitrary page directly.
>>
>>61345875
what the fuck is a Vuex store?
>>
Imagine using a language that doesn't support multicore
>>
>>61345824
They dropped them for C++17. I'm talking about the next standard, C++20 or whatever.
>>
>>61345899
Yes, I was talking about C++20 as well.
>>
>>61345884
Vue state management library. The store is the "data" portion of the state.
>>
>>61345913
maybe this

http://vuetips.com/simple-state-management-vue-stash

also, why are you using vue?
>>
New thread:
>>61345953
>>61345953
>>61345953
>>
What languages are current in the industry for app/software development?
>>
>>61345951
Company uses it.
>>
>>61345785
in C++ this is just
#include <std::string>
#include <iostream>

const auto haskell = std::string("fun!");

int main (int argN, char** argV)
{
try {
std::cout << haskell;
} catch (const std::exception& e) {
return 1;
}
return 0;
}
>>
>>61345982
whoops
#include <string>
saves 5 characters
>>
>>61345982
#include <iostream>

int main()
{
std::cout << "haskell";
return 0;
}


string is included through iostream anyway you lying smelly nigger
>>
>>61345982
>(int argN, char** argV
>doesn't do fuck all with it
>#include <std::string>
>no std::endl
>try catch

0.2/10
>>
>>61346003
>>61346004
oh shit
i forgot to use OOP
>>
>>61346003
Wrong. Iostream doesn't include string, as you'll see if you try to use anything explicitly declared as std::string. The reason your cout statement works is that because C++ string literals are actually C-style strings, which are a built-in data type (nul-terminated arrays of const char) and the cout stream insertion operator knows how to print that, or implicitly convert them into a std::string once you've imported string. But in that code there, there is no use of std::strings at all.
>>
new thread when?
>>
ty janny
>>
>>61346094
New thread deleted?
>>
did a new
>>61346107
>>61346107
>>61346107
Thread posts: 324
Thread images: 43


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