/dpt/ - Daily Programming Thread

What are you working on, Sup Forums?

Old thread:

Other urls found in this thread:

youtu.be/iDFhvCkCLb4?t=2m30s
servo.org/
github.com/uutils/coreutils
piston.rs/
redox-os.org/
amazon.com/Beginning-Python-Professional-Experts-Professionals/dp/1590599829
stallman.org/amazon.html
tensorflow.org/get_started/
github.com/espruino/Espruino/tree/master/src
twitter.com/AnonBabble

First for
>Please use Rust

That picture makes no sense.
>sepples shitter giving SICP to somebody

Is anime a construction?

Listening to Walter Bright. I wish this man was my professor

youtu.be/iDFhvCkCLb4?t=2m30s

Nth for use dynamic for your ints.

/dpt/-chan, daisuki~

Ask your much beloved programming literate anything (IAMA)

Thank you for using an anime image.

It's funny that nobody actually programs in rust.
There are just "rust programmers" who tell others to rewrite all their shit in rust.

>shot0033.
>33
You are an impostor

Nobody ITT does any programming, and that includes you

how do i become a hacker srs question

servo.org/
github.com/uutils/coreutils
piston.rs/
redox-os.org/

Most people in this ITT thread do programming, and that includes you.

If you need to ask you will never become hacker

> Memory Safety and D
> Let's add poor man's borrow checker to a language with GC and Null
Wew, they're desperate to stay relevant.
I actually program in Rust occasionally.

All programmers visit /dpt/

meme answer

You didn't even finish the whole video, is it the lack of attention span?

>meme

I skimmed other the slides, and I've been aware of the development for some time.

T-thanks user.

No he is actually right.

If you can't type "essentail skills for hacking" in a search engine, you are way too stupid to begin hacking.

BTW it takes years of dedication. You don't have this dedication, so just stop it.

>1. Game "programming" (as you put it) is one of the most difficult fields in programming with applications of things like higher math and artificial interlligence.
Fucking this. Regular programming is a stroll in the park for me, ezpz. The only hard part is going through the slog of error handling boilerplate.
But game programming man. You need to do so many awkward things. Just starting with basic shit like having to find arbitrary other objects requiring ridiculous setups to be performant with any number of objects in the game. Figuring out how often to run logic because if you do it too often it slows the game down but too rarely and the game experience is diminished. Goddamn.

Learn your place in the world you overgrown toddler.

ill hack ur mom first when i learn

@60342023
>Fucking this.
>ezpz

So, what is the equivalent of "The C Programming Language" for Python?

>Figuring out how often to run logic because if you do it too often it slows the game down but too rarely and the game experience is diminished. Goddamn.
Is this really what Sup Forumsedditors consider "difficult"?

i just want to make video games to play
i went to computer science because i wanted to program video games like crysis and blackops

> Just starting with basic shit
No?

"The Python Programming Language"

>programming language lines dont end with ;
into the trash it goes

There is no book on Amazon with this name.

Pls no bully I really want a good book

Fuck ;
Why the fuck would you need that shit

You could look into engines like torque3d or qfusion.
They pretty much implement fps shooter which can mod on.

;

amazon.com/Beginning-Python-Professional-Experts-Professionals/dp/1590599829

Source? I want to read the full story.

my ass

Hahaha.
No.

Maybe there are some japanese kids with a lot of spare time and passion out there that can do an amusing little game with mediocre graphics in one year.

Doesn't mean you can do this.

can I program something quickly without knowing the scary math? i just want to make some games for myself and my friends and maybe then make a bigger game (something like call of duty)

Read this instead.
stallman.org/amazon.html

Why the hell do you space your posts like that, redditor?

> i wanted to program video games like crysis and blackops

LOL

In anyways start learning C++

>reddit spacing xd
Shut the fuck up.

>stallman
Why would I be reading anything he has to say?

People have been spacing their posts like that since creation of Sup Forums.

Because he's right.

>meme
>LOL
Please refrain from posting here.
>>>/v

>xd

To annoy underage newfags without any programming experience like you.

btw


lurk
more.

Do you think anyone actually cares that you get an autistic meltdown at others' posts?

>>>/reddit/
meme reply btw

Someone with his political opinions can't be right unless he is quoting someone less retarded. I will consider reading that page if it doesn't contain a single word originally written by him.

Stallman was right again

@60342168
>btw
I didn't even bother reading the rest of your post.

>meme
see

60342198
no you this time memer

can i use artificial intelligence and deep / machine learning to make games?
i just want to make games to play. like call of duty.

No.

hey. do you know if i can make games using machine learning?
why?

that's what i call quality trolling

is the Sup Forums elite raiding Sup Forums..?

actually i've written 7 games (on my 8th), am a contributing dev to an open source game project

yes dude u can did call of duty in 1 day myself

In its current state, deep learning allows you to create a thing that takes a bunch of numbers and outputs another bunch of numbers. Naturally that can't be used to create a videogame, you'd have to write additional code, and that additional code would be enough to make a videogame even without deep learning.

> Machine learning

> meme

> xD


> Classes and Objects. OOP

> Game dev

> Test driven development

> Web scale

> Employability

did you use machine learning and deep learning? how can i make a game using those?
but why not? isn't machine learning like artificial intelligence

I'm studying java and developing a calculator with swing. Still solving what I will gonna do for base conversions.

who asked u

learning machine learning at the moment to try and make a triple A game for me and friends.

I outlined the "why not" in my post. Please read it.

Is python okay for learning neural network and deep learning AI?

but can't machine learning be used to make the amount of codes lesser? i just want to make a game.
yes. i'm learning it to make a call of duty style game in the future.

using assembly mips to use AI and machine learning to make call of duty 10 in 2 days tops
tips?

The main thread...

op

Is there a lisp that doesn't have a garbage collector and allocates memory on the stack instead?

Yes. Your other option is Lua with its Torch. Python's Theano and Tensorflow are just as good, though.

>but can't machine learning be used to make the amount of codes lesser
For some very specific tasks in your game, maybe. But most certainly not the thing you'd work on first.

why are u answering a faggot

>that collar

Who is this sex slave?

>Tensorflow
yes! i've heard of this. didn't they make an AI with it?
>But most certainly not the thing you'd work on first.
why not? can i just make an AI which will help me write code for my game?

What's difficult about base conversions?

They didn't make an AI with tensorflow.

>can i just make an AI which will help me write code for my game?
Definitely not.

tensorflow.org/get_started/

>can i just make an AI which will help me write code for my game?
>Definitely not.


Well, why not?

But it would be about 100 times harder than just writing the game yourself..


I think about a GUI with sprites. Every state in the game gets represented by a matrix. First line is your personal life points, x-value, y- value and some kind of weapon. Next line is the same for the first enemy and so on.

Say your input are four buttons for "move up/down/left/right". The result is another state, represented as matrix, but visible for you as sprites.

Now you need to generate input data. For every button press, you give the desired result. For example I press the up button and expect my sprite to move upwards and the enemies to move closer towards me.


Something like that would be pretty difficult, but doable (for smaller games).

Like I said, you'd write more code to support the NN than you'd need to write the same game without NN.

kek

jesus christ the AI meme is fucking cancerous

AI is a tool people you use when you know what the result of something should be but you don't know how to get there.
For example, making an AI for your game so people can play against it makes a lot of sense because you want the computer to make decisions based on a given state of the game, but you don't want to program what it should do for all given states of the game.

Think of it as a calculator that never is able to learn math.
You show it a ton of calculations and what the result should be and at some point the calculator will be able to calculate the problem.
But often you need to implement the rules the AI should follow anyway so it can make the best decisions.

>Definitely not.
but why not?
but what if i implement some rules which will help it invent new rules? then i will have a game writing AI which i can use to help me write my game. can i do this with machine learning and tensorflow?

github.com/espruino/Espruino/tree/master/src

Look at this clusterfuck

>but what if i implement some rules which will help it invent new rules?
why dont you just program an AI that does every task in the world so we don't need programmers anymore?

I wonder if it's possible to make a completely fair AI for a game like Street Fighter. Input is every pixel on the screen and output are controller input for the game. Just like an actual player.

>but why not?
No one was able to do that yet including leading researchers.

idk. i just want to write and make some games.
i don't care about "street fighter". i want to make something like call of duty.
are you sure? i mean it sounds possible if you use machine learning.

Looks neat

it is and it's already been done

Definitely yes. This has been done for Doom, and the AI that only sees the pixels ended up playing better than custom bots.

I am sure.

>JS interpreter written in C
It's like the two worst things in the industry blended together.

you mean you want the computer to make some games?

where can i learn about machine learning if i want to make triple A games in the future?

Really? Got a source? I'd love to read about it.

The C code has two-space indents and C89-style for-loops.

It also doesn't have working serial communication.