/dpt/ - Daily Programming Thread

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

Attached: Shiomiya_Shiori_Holding_Shy_Ada_95_From_The_Beginning.jpg (1052x1342, 402K)

Other urls found in this thread:

github.com/edwinb/Blodwen
twitter.com/NSFWRedditGif

First for scheme

Attached: sicp-mahoro-alpha.png (796x720, 456K)

Idris > *

Please use a non-shooped image next time.

based anime posters

Attached: 1488160255154.jpg (800x720, 496K)

ok

Attached: [polished] Mahoromatic 02 [BD 720p][7C2CFF46].mkv-0001.jpg (1280x720, 129K)

good job ada user

Attached: 1474889876567.jpg (563x712, 148K)

Does birb anime count?

Attached: budgerigars.jpg (1280x720, 126K)

We need more languages like Ada and Idris.

Python comments are exactly the same as static types in terms of facilitating program correctness.

then make more anime images

Attached: 1486934426149.png (1000x1300, 786K)

Contribute to Idris2 then
github.com/edwinb/Blodwen

Attached: [Coalgirls]_Yuru_Yuri_06_(1280x720_Blu-Ray_FLAC)_[F8694A5A].mkv_snapshot_21.17_[2018.07.11_11.39.11] (1280x720, 1.27M)

look harder
There's nearly 6 decades of material.

Am I doing something wrong? I've been trying to get into programming since a time ago, but I just can't get the grip. The only thing I can actually do is make some shitty code for Arduino projects, but aside from that, I can't even solve challenges on fucking Codewars.
I'm already used to the 'getting better with time' thing, but I'm going nowhere. I'm having no progress at all. Help pls

Attached: 47b.jpg (665x574, 25K)

Writing a million unit tests is worth it if it means you don't have to learn a better programming language.

I suggest beginning with Haskell, and then advancing to Idris.

go through another book.
pick a statically typed lang.
start a small project
if you don't have an idea clone something.
all else, you can always clone an arcade game.

Who wants to have an obtuse bullshit in Haskell competition?
main = print $ take 10 fib where fib = 1 : 1 : zipWith (+) fib (tail fib)

Just make a rock, paper, scissors game in Python.

Haskell is a meme meant for making bullshit. That being said, it's still my favorite language of its species because Lisp syntax is asscancer.

that's not obtuse though, anyone who's been programming longer than a week can translate that to their lang of choice.

import Data.List
import Data.List.Zipper as Z (toList, duplicatez, fromList, Zipper(..))
import Data.List.NonEmpty as NE (nonEmpty, toList, NonEmpty)
import Data.Bifunctor
import Control.Monad

anyEqualSumPartitions :: [Integer] -> Bool
anyEqualSumPartitions = maybe True (or . ((.) . fmap) (uncurry (==) . bimap sum sum . (\x -> case x of Z.Zip l r -> (l, r))) ((Z.toList . Z.duplicatez . Z.fromList) Haskell is a meme!
>no, all those uses of it in the real world by big companies don't count!

It has to be one line. It only counts if vimfags can't read it.

reposting template //

Attached: chad.jpg (608x473, 99K)

The function implementation is one line.

>commenting anything
nice LARP, dweeb

Why wouldn't vim users be able to read that? vim can wrap text.

Nobody cares, Bjarne.

Python is the most powerful programming language

Nope. It's not even Turing-complete.

Wrong.

turing-complete = shitlang that can't check totality

>import a bunch of things to solve the problem for you
>then just pipe the data through the problem solvers
>look how good it is guys!

in python or js you'd just do "npm install problem-solver" and be done with it.

how new

>import a bunch of things to solve the problem for you
Do you write everything not in the Prelude from scratch in every project you work on?

Haskell requires understanding. Python prevents understanding.

dumb snak poster

Attached: snak.gif (560x314, 1.98M)

>coping the fact that you wasted years learning a language just to be as effective as some python begineer

Kek functiotards btfo

This

>muh elitism

nah, keep telling yourself that and wondering why your code is fragile and difficult to change

Python mongs have an even larger inferiority complex than JS artisans.

All languages are SHIT.

Attached: 1545210960385.jpg (500x687, 89K)

We just use the best tool for the job, which is always Python.

cringe and slow language pilled

#define ALEN(ARRAY) (sizeof(ARRAY)/sizeof(ARRAY[0]))
#define SETUP() for(i32 RUN_ONCE=1; RUN_ONCE; RUN_ONCE=0)
#define DECLARE(...) for(__VA_ARGS__, RUN_ONCE=1; RUN_ONCE; RUN_ONCE=0)
#define DO(...) if(__VA_ARGS__, 1)

#define ITERCOMPSVAR(OUT, BITINDEX, BITSET)\
SETUP()\
DECLARE(i32 OUT = 0, BITINDEX=0)\
DECLARE(u64 bitset=0)\
for(i32 i = 0;\
BITINDEX=i, bitset=(BITSET), i

Is this obtuse enough?
main = print $ [(\n -> foldl1 (*) $ take n $ drop (n + 1) [-n..]) i | i

I stopped writing my shitty videogame and started lifting. Better use of my time to b h.

>being so beta and incompetent you have to pick one or the other
wwwwwwww

I see we've read the same book.

Attached: art of readable code.jpg (500x656, 67K)

When all you know how to use is a hammer...

Python is a massive ass toolbox.

>ass toolbox
Sounds about right.

what in fucks name are you doing

tunnel effect using plane deformations with opengl. I dont feel like setting up visual studio for compiling opengl code so I'm running it on a linux vm, therefore it gets laggy if I use a large resolution.

Attached: plane.webm (512x512, 2.94M)

o/

I have created chicken scheme bindings for libwayland, xkbcommon and about half of wlroots. Hopefully sometime this weekend I can actually start working on a compositor.

Attached: scwm.png (1028x772, 301K)

I barely know Hasklel and don't see a problem with this

What about this one

lacks monads and 50 character operators.

What are the best use cases for Haskell? What are the worst? Is it ok for natural language processing?

>c arrays deca-
#include

struct array {
char arr[10];
};

size_t sizeof_array(struct array arr)
{
return sizeof(arr.arr);
}

int main()
{
struct array arr;
printf("%zu\n", sizeof_array(arr));
}

being a really smug dick.
not being a really smug dick.
mayhapsibly.

What a fucking shitty language.

>fixed length arrays
it's like you want a buffer overflow.

C runs the world.
That's not possible since you always know the size.

>C runs the world.
right into the bottom of the ocean.

I’m bored, not feeling like working on any of my three ongoing projects, and I want to do something practical.
ideas?

>C runs the world.
Without an internet swarm of autists like Linux C runs into the ground.
>That's not possible since you always know the size.
That what every C programmer says before handing me shit that buffer overflows. The only good C programmers are people who hate the language.

What is the least powerful programming language

fizzbuzz*2, it's like fizzbuzz but twice. it's 2 times as complex as the regular fizzbuzz

Learn Assembly and make a compiler or an OS. Those will keep you busy and bring tangible rewards if you're man enough.

pick literally any esolang.
Except Rockstar.

False is actually pretty powerful.

pass it the actual array faggot

one of my three projects is a clang/llvm plugin
i have had enough of compilers for the time being

pretty neat, seems a lot better than the average esoShitLang.

I'm a woman though

>Fold expressions
>Ugly as fuck
Time to get better taste.

y.

Wearing a dress doesn't make you a woman, queer. Kill yourself.

Your hate is unsubstantiated and unjustified.

Taking hormones does though :3
I think I'll continue living thanks ^.^

are there any female programmers

Eh, the usual conversation with you cniles is boring.
It goes the same way every time
>every issue is actually a feature
>all useful things C could have are bloat
>but at the same time you can also implement them with a disgusting 400 line macro with 2x the tedium and none of the safety or convenience if you want :^)
>just be a perfect programmer like me!
etc etc

No, they're all male or male pretending to be female.

It doesn't. Until I can cum inside you, impregnate you, and have you give birth to children, you are not a woman.

Python is what Lisp intended to

Except it doesn't, you mentally ill sack of shit. You deserved to be gassed.

>he doesnt know the difference between sex and gender

If you saw me in the street you would take me for a women though

>just be a perfect programmer like me!
The cshits are far from perfect though. When they get uppity enough they post their own code here and it's always filled with UB errors.

user this is extremely rude behavior over an anonymous poster on the internet. Please calm down and take your meds

Get raped and kill yourself, you retarded fucking faggot sack of nigger shit. You deserve to be burned alive and buried in a landfill with the rest of the garbage, you fucking subhuman shit smear.

>this is what mentally ill trannies actually believe

>wanting kids
and people wonder why they end up unhappy and broke

If I saw you in the street I'd bash your shit filled skull in, you fucking failed abortion.

Absolutely not, trannies are easy to spot. I know instantly every time I see one.

Missing the point.

Anons, I don't know what you're going through to be this toxic, and it must be very traumatized to act like this, but I'm praying for you to get better. *hug*

>he thinks he can differentiate them

You barely leave your house anyway lmao

You sound upset. I recommend writing some Haskell and wearing programming socks.

the fact that multi-line variadic recursive function macros can even be a thing is objectively significantly worse than the fact that C++ templates are an independent programming language.
it reflects poorly upon the c preprocessor as a whole