/dpt/ - Daily Programming Thread

What are you working on, Jow Forums?
Old thread:

Attached: nene.png (900x506, 596K)

Other urls found in this thread:

youtube.com/watch?v=EtZYaESX5M4
dropbox.com/s/lnptbwpgldd7xqr/jadematrix dump 2018-03-10.tgz?dl=0
youtube.com/watch?v=MymMJJ2Ppcs
youtube.com/watch?v=SO6v0DDXRjY
youtube.com/watch?v=4gICvx1Jv6U
twitter.com/NSFWRedditImage

A chatbot utilizing a Markov chain generator with a neural network instead of a weighted random choice
Based on preliminary tests it's absolutely fucked

Attached: Screen Shot 2018-06-25 at 10.28.55 PM.png (2880x1750, 1.22M)

bump against communism.
Only utilitarian things now, like C++ (the superior C)

Attached: China2.jpg (1920x1080, 577K)

got any webm's?
Lets see it in action.

Tell me about this discord downloader.

Is it a bot? or a bot pretending to be a user?

There's no "action" yet, I'm still getting the network & generator tweaked
>tfw first test run this revision is an empty message

Attached: Screen Shot 2018-06-25 at 10.37.18 PM.png (1566x238, 87K)

C/C++ > other languages > Java, JS
youtube.com/watch?v=EtZYaESX5M4

Attached: New Game C++.jpg (1179x810, 164K)

I can't tell if its a bot or my exboyfriend who blocked me.

Congrats on passing turing.

Currently writing a TUI implementation for a Pleroma client.
I'm trying to move away from everything graphical. I already got pictures working in the terminal so I'm almost there.

Attached: 2018-06-26-032538_1366x768_scrot.png (1366x768, 1.05M)

It was just a script I wrote to download some nsfw I posted because people wanted an archive
I was using it as a discord.py reference for the scraper for the training data
Just something I do for languages or libraries I haven't used in a while

kek

sauce, this is super comfy

its not hard to make a webm you know. Just use ffmpeg with screen as input and unmodified file as output, then slice and format the relevant part of the media into a webm and post it.

link to archive?

Or share your discord scrapper.

Either one.

i want to smonk weend and code

Attached: 1528780904163.jpg (491x363, 29K)

Writing a program that is a Vigenere Cipher.

The algorithm I found for it is:
Ei = (Pi + Ki) %26 + 'A'

I keep getting the wrong results. Even if I try something simple like

E = (i + b)%26 + 'A' I am expecting to get "J", but am instead getting "V"

What's the correct formula to do this?

>warning: link is of course very NSFW
dropbox.com/s/lnptbwpgldd7xqr/jadematrix dump 2018-03-10.tgz?dl=0
Scraper itself is a bit trash and only written for the specific task
basically what I had done was copy & pasted a bunch of images from sancom (and a few other places) into discord, and since I'm on macOS it pasted PNG versions because of course
so the scraper went through and for every filename (which macOS luckily preserved) it used that to look up the pics on sancom by MD5 and download the original
there were a few odd ones where I had to hard-code the MD5 filename, the whole thing is a hack and not very good code
I can still gist it if you want

I'm literally still just calling the generator function manually, pic related is the current state

Attached: Screen Shot 2018-06-25 at 10.46.58 PM.png (1122x366, 130K)

Newbie about to start self-teaching here, what texts would be good to start learning, primarily Java/C#/C++/JS? I want to at least try and get something when I graduate in 6 months, and I've heard these are the most feasible options for myself who has little programming experience.

Why does it seem like every fucking post in these threads is written by a freshman CS nerd who literally has no idea what they're doing? Where are the people who actually do useful shit?

>i dee the
>ao
>ao
>i whe
you just made a pop bot, you could make millions with those deep and insightful lyrics user!

(webm would still be comfier but meh)

The anime is called "New Game"
It's about Game Dev Lolis

youtube.com/watch?v=MymMJJ2Ppcs

youtube.com/watch?v=SO6v0DDXRjY

Attached: New Game C++.jpg (1061x720, 123K)

nice colours, smiles and white skin

this is a anime for me

define "useful"

Anything that is not a weekend project that you write to learn the very basics of a programming language, no shitty fizzbuzz or chatbots or other retarded shit.
Something that actually has contributions, unit tests, open issues on a github repository, people using the software, etc.
You know, real software development, not first year undergrad stuff.

/dpt/ are largely amateurs/cs students/hobbyists. I don't know where you got an idea otherwise. And then i ask, where's your useful software?

>/dpt/ are largely amateurs/cs students/hobbyists.
Yes, that's what I'm talking about. It's garbage.
>where's your useful software?
Nice whataboutism, unrelated to the conversation.

Deciding between two different architectures for part of a project - one uses SQLite and the other uses PostgreSQL. Also wondering if it might be worth the effort to pillage code and ideas from Fossil or if it would be less awkward to design something native, in-house.

Attached: Fossil_SCM_logo.png (1200x1650, 121K)

>unrelated to the conversation.
It's not. If you bitch about a lack of X, but have none to contribute to the thread yourself. Then you're just as bad, if not worse.
But enough meta shit.

>game dev
:^)
>lolis
:^(

Nene-chan
Waifu 4 Laifu

youtube.com/watch?v=4gICvx1Jv6U

Attached: nene chan.jpg (225x350, 32K)

Maybe I'd contribute to the thread if I were people at my level of knowledge to talk with, rather than a bunch of undergrad students in their basements.

>Where are the people who actually do useful shit?
Most of them probably try to avoid people like you.

legally 18yo/19yo in college
according to the anime story
They look 12yo though

Attached: NEW GAME.jpg (522x415, 84K)

Cat, improved

Its called catm, im going to add syntax highlighting and stuff

You dont seem to have a super firm grasp on the difference of markov chains and NNs

>18-19
thats fine
>they look like 12yos though
what do you expect from the worlds most perverted people?

aren't you essentially just making a CLI TE at this point?

I work at a gamedev company and I can confirm that my coworkers look exactly like this.

>Cat
>improved
oh no no no no...
*laughs in bloat*

M_i + K_i % 26
Where M_i is the ith chunk of a message and K_i the ith key or cipher. Both i not necessarily equal, just repeating evenly against each other to permit decryption.

Also just implement any cipher and youre kinda done. Ciphers like these are horribly weak against a calculator.

A conCATination tool should not be highlighting fucking anythinv

Good programmers:
>have female and/or non-binary and/or fluid gender identities
>are trans
>are furries
>are vegans

Bad programmers:
>watch anime
>wear striped socks
>are incels

explain further

Writing argv parser is so tedious

How do I into extreme programming?
I have a month to document my project. Fucked up from the beginning and didnĀ“t do shit.

Attached: 1527383504222.png (657x527, 38K)

that's why you should use getopt

Why is C++ IO so much shittier than C IO?

Why do you waste your life doing shit like that?

maybe it's homework

Don't fucking give a shitfuckoff pirate scrawling luftwafter bastards.

>vegans
Is programming in Rust the path to becoming a cyber vegan or a data pagan?

Attached: 1493588561838.jpg (2500x1870, 629K)

I thought you needed to be over 18 to post on this board.

college homework

>Is programming in Rust the path to becoming a cyber vegan or a data pagan?
Yes.

A markov chain is BASICALLY just a single node neural network. Or to be a little less inaccurate, they both rely on probability networks. Markov chains just dont think about the past or future in their probability while a NN might.


Tl;dr im being a pedantic cock

Too much disagreement on an STL implementation, same reason std::string isnt implicitly converted to const char* by the compiler when necessary despite it having an infallible function to do so.

>A markov chain is BASICALLY just a single node neural network. Or to be a little less inaccurate, they both rely on probability networks. Markov chains just dont think about the past or future in their probability while a NN might.
lmao no

I mean I guess you can think about it that way, but most people think of Markov chains as something that uses the last N values to predict a next value, while they think of NNs as magic input->output devices. My description just clarifies how I'm trying to use the NN.

getopt doesn't support non -option if your option have different flag other than -, the only way is by write it yourself

Except Markov chains have literally nothing to do with neural networks whatsoever.

I'm the chatbot guy not

I don't give a shit who you are, this is an anonymous website, not reddit or your tumblr.

ignoring post context won't help you build a good markov chain

listennn I have the most difficult c++ problem

const int *a = {blablabla};
const int *b = {blebleble};

int *c = a;

what kind of hurdles will i run into if i decide to write a disassembler? how could i go about testing a processor emulator in a meaningful way? i'm really interested in writing an emulator for one of the old intel or zilog processors, but i'm not sure what i could *do* with that project once i've completed it

learncpp.com
use it
learn it
complete it

Use for dumb questions.

const int *c = condition ? a : b;

you need a const_cast in there

int const *c;

non const pointer to const data

That's the same as this
const int *c

What it should be is this
[code
int * const c

Been interested in NNs and the like for awhile now, you have any good resources on how to get into it?

fuck off, pedo
this is the real thread: sage goes in all fields

Attached: tips.png (1335x634, 346K)

fuck off SJW

Attached: low iq sjw.jpg (640x640, 309K)

kys faggot pedo, go get raped by a priest

>

Attached: SJW.jpg (693x693, 105K)

please stop replying to it.
just report please.

>t.

Attached: iur.jpg (640x375, 30K)

>fuck off, pedo
>can't look a little girl without thinking of pedophilia

Attached: 1461394509176.png (500x500, 240K)

>mfw spend more time watching lectures and reading theory/code than actually making anything

I'm in a rut guys.

Attached: ineverhadachoice.jpg (667x659, 77K)

shut up tankie. stop trying to derail the thread

>implying a cartoon makes me feel anything
haven't you realized you anime fags are mentally ill?

the other thread was created first, and retarded anti-communists derailed it

Attached: projecting.jpg (720x480, 56K)

sounds like you need a long-term project you're interested in. I'm always thinking about mine and i don't even play that much vidya anymore because of it.

>i-it was made first
this thread has more posts that are actually related to programming, tankie

not really, I'm basically making this shit up as I go based on my recollections of learning it years ago in a single college course

>>implying a cartoon makes me feel anything
hmm if you have trouble connecting to abstract realizations of humans you might be on the spectrum

because you couldn't keep Jow Forums in Jow Forums

I didn't make that thread, retards.
but again, it only shows your hypocrisy. anime in the OP? no problem. political propaganda you don't like? destroy the thread.

>hmm if you have trouble connecting to abstract realizations of humans you might be on the spectrum
I don't watch anime in the first place, you retarded pedo. did the priests dick leave you brain damaged or something?

>complaining about anime
found the redditor

Attached: 1522687073054.gif (237x240, 1.95M)

actually it's tumblr, apparently they're """"raiding""" us.

if you don't watch anime then how do you know?
>pedo
>priests dick
??

>anime in the OP

gee who would've thought an anime imageboard would have posts where the OP's pic was anime

>anime imageboard
it's not
go back to

Child sexual abuse is very serious, and a lot of people abused by priests spend years trying to cope with what happened to them. Pretty fucked up that you would use that for cheap point scoring in on an internet anime image board.

Attached: 1521224685291.jpg (1129x916, 118K)

go back

Attached: 1505921240838.jpg (897x445, 173K)

thanks for the (You)s

Attached: n8umjWj.png (698x1284, 3K)

>two /dpt/s
>one arguing about capitalism/communism
>one arguing about pedophilia/anime

this
we should start another language war instead

good OP

Haskell > Lisp
C > C++
Python > Ruby/Perl/PHP/other scripting languages
C# > Java
Rust > Go/Swift/other modern "safer" compiled languages
come fight me

You're free to leave and find people who match your intellect . You clicked on this thread. Nobody forced you to.