/dpt/ - Daily Programming Thread

What are you working on, Sup Forums?

Old thread:

Other urls found in this thread:

freevms.net/
pastebin.com/3hWZmBn9
twitter.com/NSFWRedditVideo

Thank you for using an anime image!

Thanks for posting

quick, post a programing challenge!

implementing tls with different hash and oneway functions

oneway meaning oneway trapdoor

Elm or Purescript?
Easy-to-understand oilerplate or mind-blowing haskellisms?

write a parser, typechecker and interpreter for a good language

Write a program which will accept any arbitrary program as an input, and determine whether it will complete a computation on some other input.

Mind-blowing haskellisms

Honestly Haskell can be a lot simpler than people give it credit, it's just that it can also be complicated.
You can choose how complicated you want your code.

How long does R take to learn?

I'm cracking open the Tox source code and trying to set the Opus bitrate to be inversely proportional to the number of people in a group chat. The previous Tox groupchat died after a third person joined.

Typescript or C/C++/Rust compiled to asm js/WASM.

Man, we ded

freevms.net/ ;^)

What are your programming environments?

Ubuntu Server 14.04 + Openbox
Vim or Sublime with GCC for programming.

Ubuntu + Openbox
VS Code + Docker containers for CI tests

sissy

>Gentoo
>i3
>emacs (-nw)
>gcc
>dmd
>gdb
>git

faggot

cocksucker

gay slut

OS X
Sublime
gcc

Isn't g sfw?

is this a boy or a tomboy

I'm learning about semidefinite programming so I can crack quantum one-time-pad encryption ;)

depraved bitch

Ubuntu with i3
GCC

How do you crack "One-Time-Pad" encryption if it is impossible

The quantum version is supposed to have some extension that would allow it, some sort of "shield" that is a matrix and when you modify that matrix a bit it stops being a shield, but I don't actually know anything about it yet.

good luck then

Thanks, I'll need it.

xfce
Vim
Gentoo
gcc

Windows 10
VS Code
Git bash
cargo

windows 10
vim
cl.exe
visual studio debugger

I got called autistic today for using emacs.
:(

dumb wojak poster

>cl.exe
Girlinredshirtvomitting.png

What's wrong with Wojak?

...

Is it weird to put porn rippers and user stalking tools on Github? I've got it marked as 'Available for hire' too.

But Wojak is a krautchan meme.

You know the answer.

...

>krautchan

somehow worse than r9k

Why do you care what populus say?
Emacs is a nice multitool, and people don't care what do you use if you have the job done.

>Calling people autistic for using Wojak.
You're part of the problem not the solution.

...

Considering there are even dildo drivers on github, no.

Yes, it is weird.
Weird and immoral.

What kind of coding would require a computer with good specs?

300 tweets DPT!

twitter.com/dpttxt

vidya manchild programming

What about like big data/machine learning? I don't really know much about that kind of thing

i suppose

Coq

Buttplug?

Why the fuck would you do that when you can easily make a private bitbucket?

>stalker tools
go on...

I heard that the real way to get good at programming is watching The Rocky Horror Picture Show, not anime. Is this true?

No, it's a lie.

That's false.
The only thing to watch that has been proven to make your better at programming is anime that features cute girls doing cute things.

coderlife

Nice facebook image, fag.

been fucking around with this program I built to generate a bitmap from a random sequence of bitwise/algebraic operations

Works suprisingly well, every 3rd or 4th image is unique and interesting

Pic related, it shat out what looks like a ruler function

What did you just call me, you little twerp?

>been fucking around with this program I built to generate a bitmap from a random sequence of bitwise/algebraic operations
Pic related is something I made along the same lines. Any guesses to the algorithm?

R, easy to learn.
But do you know stats already?

Turn it 90°
Looks like a 3D landscape pointed at the horizon

>whatever OS
>vim

more

obviously Xor

what libraries and language did you use?

I think it might be related to euclid's orchard

On basic level, I just look for a language to print graphs.

This picture gives me A E S T H E T I C feelings.

SDL2 in C++

All that's important though is to get a window where you can draw pixels

I know this is supposed to be a meme, but I actually HAVE gotten better at coding since I started watching more anime. What does this mean?

Is there any sort of standard logic or well-known, accepted solution when you need to sync entries between 2 or more devices?

For example I have my device, I register people and their hobbies, and when I sync with your device I want both of them with the most updated data from both.

I was needing something like this when I was working like 2y ago but didn't manage to find much about this (not even discussions) on google, and I ended up writing one that I wasn't much confident on.
It worked though I think it could be better, anyone has any sources on this topic?

time for war
SFML vs. SDL in current year, which one should you use?

neither

GLFW.
You don't need any of that other bloat.

It's not really stalking. The one tool is for checking Reddit accounts for new posts and scraping them and alerting me as soon as they're posted.

So I can have some good code in my portfolio to show friends and potential employers

writing directly to video memory

GLFW doesn't work well with i3 and i don't plan on changing window managers just to use it

Hey Sup Forums
I am working with a lot of 3d sampling algorithms and would love a way to paste a huge amount of x,y,z coordinates from one long string into some web app and see them plotted on a 3d graph. Does anyone have any recommendation?
I tried a bunch online but they all involve typing in the x,y,z manually.. I just want to paste one uber string with 100 point x/y/z coords in it.

Alternatively, some online web programming app where I can type code and see the points plotted automatically.

CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT
BEGIN
RETURN (
SELECT Salary
FROM Employee
ORDER BY Salary DESC
LIMIT 1 OFFSET N-1
);
END

What can I substitute for N-1 so that this will actually run?

>what is an operating system
>implying it will just let you

>GLFW
>Calling others bloat

Did you mean: FreeGLUT?

1 (pass 1 to the function)

hey there newfags

Never mind, apparently OFFSET can't take expressions

What's wrong with this? It's supposed to be a hailstone sequence generator. It works, until it gets to 4, and then it starts going back and forth between 2 and 4, forever.

Gentoo + DrRacket

I'm working on networking stats for BasicTV. I rewrote some of the network data request code to make it cleaner and make it not as interdependent on other parts of the code. I'm also making subscribing to a linked list for a set amount of data chunks possible to prevent redundant queries. TCP holepunching and UPnP are being implemented as well.

I also fixed the /dpt/ ToxBot. When you send an friend request to the bot, message 'invite 0' to join. You can find the ID at pastebin.com/3hWZmBn9

9/11 truther here. What's the best language for me?

Hebrew.

I've written (simple) GLFW programs and they worked fine with i3.

because when you get to 2 it divides by 2 to get 1 and then it checks the remainder of 1 and 2 to get 1 which it multiplies by 3 and adds 1 to producing 4