/dpt/ - Daily Programming Thread

Maki Edition

What are you working on, Sup Forums?


Previous Thread:

Other urls found in this thread:

tutorialspoint.com/webgl/webgl_interactive_cube.htm
strawpoll.me/11763548
twitter.com/SFWRedditVideos

first for kangz

HoTT is always MLTT, not CoC, though.

4th for java is as memory-piggy as notch is fat.

>set breakpoint at end of function in Visual Studio
>run to breakpoint
>check return value
>modify function while program is paused
>set program counter to top of function
>run through function again and check return value
Sup gdbfags. I bet you cli losers wish you had these tools.

We do.

Can anyone tell me what indices are for in graphics programming?
tutorialspoint.com/webgl/webgl_interactive_cube.htm

order in which the vertices are drawn

i want to run Open-Gl programs written in C / C++ on Windows, but i don't want to use an IDE.

how do i run things from the terminal, like i do on linux?

long story short, the pc i bought has new drivers not yet supported in linux ,so i have to use windows

maki a slot

>We do.
>mfw gdbfags think rerunning the program a thousand times is the same as what VS offers

>reading comprehension

what are some good irc networks/channels for programming?

How do I loop so that the patterns at the top also show up where I drew X's? I've tried nested loops but it won't fill the entire space. Basically it should be 3x3. Python. Please if possible explain it to me like you would explain to a retard.

Please stop using anime in a tech discussion board

??
you just cd into the folder and type the program name

are you retarded

There are only four unique vertices to this shape but you need to supply six. Indices let you do this without duplicating information.

Why?

Nah. This doesn't work until you put "./" in paths. Just type in ./program

what are some things someone who (semi)-manages programmers but is not a programmer (rather, an engineer) know?

Anime belongs in Sup Forums

has anyone ever created an algorithm to either

1. classify an image as anime or not anime
2. quantify the animeness of a given image

shitty paradigms you can force onto them

? you do exactly the same on windows except skip ./

Things to tell every programmer without even looking at their code:

>complaint to compliment ratio of 4 to 1
>tell them to comment more
>tell them to add more unit tests
>tell them to be more descriptive with their commits

Hey /dpt/, a newbie here.

I am trying to program this excercise: you are given a matrix and you have to list a submatrix of a given sum. The numbers are integers, both positive and negative.
Would the correct aproach be to make a summed area table and check all the submatrices?
Also would someone mind posting a way to give a function an array as a parameter (in C)? Still trying to wrap my head around all the pointer stuff (inb4 brainlet)

Could you please not post emoji's so we can at least PRETEND this website hasn't been completely taken over by normies?

You could use cygwin or mingw with msys. The former replicates a linux experience while the later simply supports a good chunk of it.

But yeah, you could just open a console and do the same with dos commands instead.

Knew i'd trigger a NEET with those.

Oh shit. Didn't see "on window"

Man fuck Windows

Discussion of anime in general belongs in Sup Forums, anime pictures belongs in all boards as Sup Forums is a website where anime fans gather to discuss a variety of topics.

Any oldfags able to recommend a good assembler for the Motorola 68000?

At least keep your shitposting related to the board you're on, sjeez.

Sup Forums hasn't been about anime for over half a decade now

Maybe look into MinGW, Cygwin, or Scoop. For just compilers & other tools: MinGW. For a more "complete" environment: Cygwin. Scoop might be able to substitute or work nicely with Cygwin for an even more complete experience---seems like a nice and convenient package manager. MinGW is also a package manager but not as "opinionated", I guess. Scoop's default package index seems to refer to a MinGW source for a lot of Unix utilities (compiled for Windows), by the way.

Anyway, I'd recommend MinGW, true & tested, or *maybe* try out Scoop but it's not as well-known.

demographics check

strawpoll.me/11763548
strawpoll.me/11763548
strawpoll.me/11763548

Visual studio is terrible but it's one of he best complete packages for debugging atm.

Which sucks ass. It's complete aids and should have so many more features. You can't even have it track frees and allocations for you. Tracking down freeing freed memory bugs is something every debugger should help with. And all they do is do the cdcd and feeefeee.
How about you just put an address to the where the code is that did that free huh? Delimited with some symbols if you want to be picky.
Jesus.

if you need comments you have failed at writing clear code

Ha! Real programmers only use print statements.

It's easy. I've been running a web spider, classifying images as anime/non anime based off the text on the webpage. After I get a sufficient amount, I'll be able to implement a caffe convolutional neural network and have a javascript link to it.

Finally... No more anime

no, there is no way for someone to tell whether an image was drawn by a japanese animation studio (except for reverse image search)

no you retards

by analyzing the image itself

Ok cool il check it out. I'd like to broaden my view of programming but if it can't run well there's no point in it for me. It's not hard to write software that runs slowly quickly. If a FP language can replace that slowly somehow that'd be cool. Even if it's just a fraction of what you get with other languages.

That's what I ( ) suggested? I just don't want to spend 50 years making up rules, so I'm comparing pictures to a anime convolutional neural network

My brother was like this. He was a gay python programmer who only used print statements.

Now he has programmed his own OS on his own hardware using his white blood, masculine sweat and blue-eyed tears.
All because he started to use pycharm so he could get done with that intro language.

People who can't use proper punctuation, capitalize correctly or use acceptable grammar should not be allowed on /dpt/.
It makes us look like children.

2bh the same with anime posters

That's less offensive than what I mentioned.

Thanks!

>. I bet you cli losers wish you had these tools.
you stated it yourself

I agree. People who can't do that are either the types of idiots who don't belong here or are phoneposters.
All it does it bring the quality of the whole place down, and make other idiots think they're welcome here.
It's the same with frogposters and feelfags.

>Complaining about Chinese food in a Chinese restaurant
I think you should leave, idiot.

If by Chinese food, you mean actual Chinese food like insects and frogs, and Chinese restaurant by an American offshoot of a popular Chinese restaurant, then yes, you're right

you are not changing the y co-ord (vertical). Change that (and so long as your loop is drawing more than 3) after every 3 and it should be alright

Could someone post the image where it shows a person programming in C # and in the other comic shows programming in Java and a monster appears?

Thanks advance!

Not on Windows (stupidly enough…).

Really? . Is current path on Windows. / works on Windows
Why wouldn't ./prog.exe work on Windows?

why are there so many animeNEETs on /dpt/

Backslashes, right?

It's an anime imageboard

I'd have to check but I'm pretty sure I do do ../

not for the last 7 years it isnt lmao

>HoTT
>calculus
fag

lol

t. newfag

t. man living in denial

So, when you're on Sup Forums.org, and you click on "anime", it sends you to Sup Forums?

You should leave.

What I mean is that the current directory is basically in the PATH on Windows---you do not need to type "./". (In fact I don't know if it'd work.)

I think we can agree that this is the best argument newfags have that the site should change to be about them
>when you're on Sup Forums.org, and click on "anime" it sends you to Sup Forums
What a fucking retard

I've never understood why forward slashes are seemingly *sometimes* allowed to substitute backslashes in paths on Windows …

>dpt isn't even about programming it's literally just triggered animeNEETs furious because this website was cucked from them by the dreaded normies

>Talks about normies
>Posts a fucking frog
Go back to facebook, you fucking fag.

You said this is a anime imageboard.

This board is Technology. Not anime. If you're looking for the anime board, go to Sup Forums. You seem like you're lost

How fucking new can you be?
Sup Forums is the imageboard

...

I think it's amazing that paths are represented by strings in the first place.

an anime*

One day we'll have a typed OS, where programs are monadic actions

No thanks, substructural types for me.

... they don't replace monads

Not at everything, no. They are a lower level approach to controlling side effects.

Sup Forums is a discussion website linking to different boards (that you could post images on) that have different discussion topics.

I ain't reading all of that shit nigga

What can I say. Trolling is a art

Holy shit
You really ARE new

holy fucking shit Sup Forums is completely unredeemable

salt the virtual earth

I'm not sure if you're being sarcastic.

Let's get back on topic.
What's your ideal programming environment?
btw, I mean the environment you reside in, not the one on your computer.

This is actually very convincing.

my shell

Freenet

Basement, MONSTER energy drinks™ :^)

>not using a tiling wm

> what's your ideal programming environment
One with no anime and a cup of coffee

I want a bunker.
Seems cozy.
>30 years later
>remember this post and think of what a fool I was

There are precisely 819,353,200 20x20px thumbnails if you do two steps for a color on each pass (1/8 the number of single step color images).

Who wants to generate it and pick out the interesting porn thumbnails?

the one i'm in is very comfy, long L shaped desk around two corners of my room, bed on the other side and a couple windows, that's all

How often are function pointers used in C, and at what scale are they faster than a long switch statement?

tl;dr which programming language to make retro NES style vidya?

Hey Sup Forums, non-programmer here. I want to make my own NES / original Gameboy style game, just as a little hobby project. I have some experience in pixel art and chiptunes but don't know where to start with the programming aspect. I'd like to learn to program it for real as opposed to making it in a program like Game Maker because getting into programming is part of the point of the project. I'm sure I can find tutorials and books for myself, but I'm not sure about what programming language I should be looking into for this kind of project.

Probably assembly like they used to be made

Since those style of games aren't demanding at all, you could write it in practically any programming language.

>generating 320 GB of images to find some pixelated porn

I'm down, sounds like fun!