/dpt/ - Daily Programming Thread

What are you working on, Jow Forums?

Last thread:

Attached: dpt.png (934x1000, 389K)

Other urls found in this thread:

youtu.be/XsNk5aOpqUc?t=266
beta.rust-lang.org/
dlang.org/
ibm.com/plex/
beta.rust-lang.org/governance
reddit.com/r/programmingcirclejerk/comments/a1jmlq/lol_no_more_zero_cost_abstractions/eaqjcyx/
twitter.com/SFWRedditVideos

nigge.rs

h-how could you

Attached: apu.png (821x869, 36K)

Thanks for posting a programming (anime) related picture

Attached: 1520087551851.jpg (1296x1488, 804K)

FP > OOP

in terms of useless wankery.

RISC-V > x86_64

nth for nim!

POWER9 > RISC-V

>I don't understand it therefore it is objectively useless

Professional OCaml coder. Ask me anything.

Attached: ocaml.png (500x500, 20K)

>try VBA for the first time (excel macros)
>make a Do Until loop with a fairly complex condition
>program never ever enters it, no matter what I keep rewriting for 30 minutes
>get angry
>realize I don't need to deny the condition with Until

I have never felt like such a brainlet my entire life, goddamn

As one of the few people at my job that regularly has to work with POWER8 and POWER9 I find this to be false

pure = useless
plain, simple.

*provides enterprise examples*
>t-toys!
*provides more objectively not toys*
>-b-but java/C++ has X amount of more companies using it so irrelevant!
At this point, i want to just believe you're (you) farming, but who knows.

FP isn't necessarily pure though

do {
if
else if
} while (fucking braindead);

It's a personal conviction of mine to never use anything with an autistic logo or name

>I don't understand it

It's your problem, not mine.

>I have never felt like such a brainlet my entire life, goddamn
embrace that feeling user, it's gonna be with you for the rest of your life.
*blows up your run-time*
*segfaults your system*
*bugs your code base*
>yeah i just don't think purity is important lmao

How do you bullshit employers into paying you

INRIA? Or Jane Street?

Functions are by definition pure.

what is FP

Same, it's the equivalent of stickers on a laptop

>he uses functions
>he doesn't copy-paste his code to save callstack performance

Attached: 1541876122696.png (512x512, 80K)

I'm competent.

Another company, I won't tell which one.

'>' was not necessary
Yes, if you don't believe me you can test it right now by comparing the amount of C++/Java jobs with shitkell/whatever the fuck cook kids shill these days
>*blows up your run-time*
>*segfaults your system*
What the fuck do those even mean?

Write the project for yourself, not for others. Make it do exactly what you want it to do and discard any *potentially* useful features for others. Your userbase will most likely be only you. If others do show interest, you can always add the requested features.
I also keep the following in mind when choosing a hobby project:
>useful for yourself
>challenging enough to keep you interested
>small enough to finish in a reasonable amount of time
TL;DR start a project you're passionate about.

>Functions are by definition pure.
stating the obvious, eh?

Functional programming.

^ why i dont like rust

>Functions are by definition pure.
you what lad
only most FP languages enforce pure functions.

Feminine penis

*unrolls all your loops*
you're welcome bby

Fashion programming. A useless fad that no one touches for non trivial use cases.

dont modern compilers do this for you?

Failing for such laming troll. You should be ashamed.

This image makes no sense, why the fuck is she doing a backflip?

>What the fuck do those even mean?
enforced purity + totality gets rid of 99% of run-time errors as proved by Elm and NoRedInk (who technically are 100% because they've never had an RTE on their Elm side, but 99% is fairer.).

>doesn't know what a segfault is
>accuses others of lacking understanding

Sometimes people have misapprehensions, even about the very basics. It's often useful to make sure you have corrected them before proceeding to more advanced material.

huehueheuehuehuehue

Not pure? Not functional.

So when are you gonna define FP?
dum dum

I didn't ask for your made up numbers, I asked what "blowing up a runtime" and "segfaulting a system" means.

>doesn't know what a segfault is
I know what segfault is. Tell me what "segfaulting a system" means.

"Impure FP" should really be referred to as procedural programming.

what about weak purity (function local mutation only)?
I've thought about it a lot and i think i really like it, as you offset some of the tedium without sacrificing safety.

but there are no people that have to work with RISC-V :^)

>enforced purity
enforces uselessness*

If you need remedial English education then is a better board for it.

So, impurity? If you want to do it then do it but don't call it something it isn't.

I have to work with RISC-V because I dropped a $1k investment on that shit

Attached: akame.png (879x910, 218K)

>I didn't ask for your made up numbers
youtu.be/XsNk5aOpqUc?t=266

The opposite of dysfunctional programming

If it contradicts him, it's made up.

And how does her hat stay on?

>impurity
well the function is still technically pure because it doesn't produce any side-effects. Anything you make and modify are only in the scope of the function itself. But I see your point that it's also technically more than
>input == output
so not pure as well

By being the correct fit? Honestly I don't understand why so many people buy clothes that are the wrong size for them.

It's a drawing dude.

Centripetal force

What's your favorite CS book, user?

The Folly of OOP

Workin on a shill bot there, bucko?

Communicating Sequential Processes.
It's so elegant, I love it

Anything made in the last 2 years or it will be outdated

Rust's new website
beta.rust-lang.org/
D's website
dlang.org/
Nim's website
lol who cares Nim will forever be a beta project

Why did Rust fuck up so bad?

Attached: 1542629541459.png (1200x800, 43K)

The Pragmatic Programmer is p good

>Why did Rust fuck up so bad?
It didn't have HKTs from the beginning.

nu-techies think their programming language is a startup

Anyone else just immediately leave when they see a design like the Rust one?

rust is made by people who don't care about programming.
D is mostly older people and turbo-autists.

Prepare your anus
ibm.com/plex/

D is dead.

also it's hilarious Rust no longer has any actual Rust code on its front-page. Just proves rust cultists don't actually enjoy their language.

Attached: 1540491518819.png (804x876, 456K)

>yep this looks good

Attached: quality™.png (1903x690, 53K)

open Num;;

let fact_gen is_zero one mult pred n =
let rec loop accu n =
if is_zero n then
accu
else
loop (mult n accu) (pred n) in
loop one n
;;

let fact_int = fact_gen (( = ) 0) 1 ( * ) pred;;

let fact_num = fact_gen (( =/ ) (Int 0)) (Int 1) ( */ ) pred_num;;

let () =
let n = int_of_string Sys.argv.(1) in
Printf.fprintf
stdout "%d\n%s\n"
(fact_int n)
(string_of_num (fact_num (Int n)));
flush stdout
;;

>Jow Forums gets upset about not being as cool as the rust folks again

If you use Rust are you a Rustie?

roastie*

for me its zip

>books
who tf reads anymore

>rust folk are cool
if by cool you mean being a _soy drinking mutts

>beta.rust-lang.org/
It doesn't look that bad really. Especially by today's standards. Although it's hard to distill from the website that it's about a programming language.
Let's play a game: find all social outcasts. Communists, transgenders, white race haters, etc.
beta.rust-lang.org/governance

>getting upset about people consuming a plant

when you have to question whether a programming lang's site is about a programming lang, you've severely fucked up your one and only task.

How to learn any language fast

1.) Use a very barebones IDE, preferably Notepad++
2.) Google what you want to do
3.) Type the code in, not copy paste, and read the explanation

Do this for a week or two and you can get a Junior position

>rust

Attached: soy1.gif (413x243, 51K)

Almost nobody gets excited about Java

>java

Attached: soy2.png (276x337, 176K)

There is no "hip" programming languages so this makes no sense

reddit.com/r/programmingcirclejerk/comments/a1jmlq/lol_no_more_zero_cost_abstractions/eaqjcyx/

what is the most chuuni language?

Attached: T5.png (836x1200, 545K)

Agreed, but I was referring to the design of the website.

malbolge

test onions _soy

> Go to new Rust website.
> Ctrl+F "fearless"
> "Phrase not found"

Is this a joke?

>mfw Jow Forums can't even write a Helmholtz solver
>not even in Python, the so-called babby language

Attached: thbfamlmao.jpg (499x499, 17K)

>think of a problem
>don't tell Jow Forums
>lambast Jow Forums for not solving it

>tfw Jow Forums doesn't use who and whom correctly