/dpt/ - Daily Programming Thread

What are you working on, Jow Forums?
Previous:

Attached: 86a6ecca2632dfd6fa22987a4cbdd640c3ce067e.png (400x450, 20K)

Other urls found in this thread:

burns-stat.com/pages/Tutor/R_inferno.pdf
twitter.com/SFWRedditImages

Haskell and C

>what are you working on
copying those 50 thousand files on the local disk because I just realized they've been on the shared network disk this whole time

And Scheme!

I FUCKING LOVE THE HASKELL TIDDIE MONSTER

Attached: 1567009522543.png (850x1200, 1.18M)

Why are all editors so complicated that you could dedicate an entire book to them? I just want a simple terminal editor that has sensible controls. Any suggestions

trying to get into machine learning. figuring out that i'm a brainlet

C# takes half an hour to read 2GB files. How does your solution fare?

Attached: Screenshot_2019-08-30 g - dpt - Daily Programming Thread - Technology - 4chan.png (1732x306, 42K)

Banging my head over the new blender interface.

No

stop using linux

Just use intelliJ

you just want to lazy read/write, use a proper buffer size, and avoid pointless iterations when to it comes to IO benchmarking.

based

literally every editor
it's not like you're forced to use all the arcane features, retard

Attached: 1549434357945.png (700x1520, 690K)

shut the fuck up rajesh

Which C standard do you use?

the haskell one

You literally are forced. If I wanna use emacs I have to learn their bullshit language and how to configure it to get a decent experience. Same thing with vim

just use nano if you're so deadset on being inefficient

oh no no no

Attached: Screenshot_2019-08-30 Fast Directory Traversals in Rust.png (1402x5313, 528K)

you said you just wanted a simple editor with sensible controls, not that you wanted to configure it.
emacs and vims controls are features of these editors, if you don't like those, well good news the gorillion other editors have different controls.
take that fucking dick out of your ass, ffs

I would be interested if you formatted this into a proper challenge with known input.

absolutely disgusting

If anyone have to deal with this shit, know that you have to define and export a global variable NLS_LANG and set it to whatever you are using. In my case :
NLS_LANG="FRENCH_FRANCE.UTF8" export NLS_LANG

>queen of concurrency
Vanessa writes like a fag.

based

c99. the classic.

t. oni fag

for (int i = 0;
>this is illegal ansi/c89/c90
i had no idea

>Arc
>Ordering::SeqCst
This is almost certainly suboptimal.

>ansi/c89/c90
lmao nobody uses those

except boomer uni teachers that force you to write in ANSI C

whats up with /game developers/? its like a metoo all over again

what are you talking about ?

see twitter, everyone and their mother (male) is complaining about something
i wish they just shut up, i want to see actual gamedev twitter not this horseshit drama

cat *.log | grep -v "\"type\": \"system\""

What's the basedtag they're using this time?

I'm writing a CoC for my language, what should I put into it?

i don't know what this new cringe term means but presumably the basedtag you are using is basedtag
please keep your shitty memes in their own board

>rule 1: do not say nigger

subtyping

>college and tutorials
>dude you'll be making red black trees for substring search it's really important!

>most complex job I had in 5 years doing coding work
>right click on database, export sql script, add to repository

Why does everyone pretend this job is complex?

1. all maintainers must provide their race and gender before commenting. this is to foster an open and welcome environment.
2. you must refer to each contributor by prepending their race to their name. this is to bring into the open privilege any member may have.
3. the owner of this repo can terminate any member at any time for any reason. this is to foster a community of inclusiveness.

I wanted to say s o y tag but hiroshimoot filters anything starting with s o y
I just want to see the twitter retards REEEing at each other

nano desu!

Attached: hanyuu.jpg (645x913, 344K)

This. It can be faster, since acc does not require sequential consistency, and could instead use relaxed atomics. And Arc could be removed by making acc 'static, afaik.

>i wanted to say onions

Attached: onions.png (644x800, 15K)

why they hell are you wasting your time on twitter anyone ? That's filled with a bunch of retard that just wants an echo chamber and cry whenever their feelings are hurt.
Go back to old RSS feed and put blogs and website in your favourite, follow devs announcement on their forums instead of this trash.

>That's filled with a bunch of retard that just wants an echo chamber and cry whenever their feelings are hurt.
But what am I supposed to read while I'm eating?

So much this

Attached: 1567014965303.png (640x257, 27K)

you retard fucks who are reading this typing already it's obviously fucking bait why do i have to reply to your replies telling you not to respond to bait you dumbasses

Attached: 1566849179044.jpg (1280x720, 84K)

well if you find a way to easily create 50000 80-500 kb text files in the explained format I can try it

why do you come her to complain about stuff happening on twitter?

npm might be the most used package manager.. I wouldn't hire any of the guys behind it!

>People are asked to avoid talking about anything unrelated to the project.

And if you have a blog / forum or anything where a community can discuss about anything they want including things not related to your projects :
>people in this [board, forum, blog] are asked to avoid talking about : politics and religions.
>As a reminder, freedom of speech is the ability to express any idea without fearing being persecuted by the authority of your country. As we're not a country and since you can find better place to talk about your ideas, mods have the right to ban anyone not following this code of conduct.

newspapper ? watch an anime ? just stop using social medias. They are all trash

No communism and liberalism allowed

# Code of Conduct

This program is FEUDALWARE. Contributors must swear fealty to the king of the
code. Users are requested to tithe.

## Your pledge

“I promise on my faith that I will in the future be faithful to the king, never
cause him detriment of code quality, and will pay homage to him in features
and fixes, in good faith and without deceit.”

## Your responsibilities to your fellow lords

Try to avoid infighting. In the event of unreconcilable differences the king
may dismiss contributors at his discretion for the good of the kingdom.

## Your responsibilities to your serfs and vassals

Try to generally treat them well, we don't want a riot on our hands.
Problematic and useless serfs may be disposed of freely. Inefficiency will be
seen as weakness.

that's discriminating

#include
#include

int main(void){
int d, m, y;
printf("Enter date in form YYYY/MM/DD (inc /): ");
scanf("%d/%d/%d", &d, &m, &y);


printf("%d%d%d", d, m, y);

return EXIT_SUCCESS;
}

Where did you find this

Attached: ProfChaos.jpg (768x576, 35K)

Two stone tablets

Good.
I want to discriminate against harmful elements

wtf the computer doesnt boot now my dad is gonna kill me ??

I wrote it for an unpublished project.

Is there a way to mark a JUnit test as being 'long' in the sense that I don't want to run it every time because it will take ages? Essentially I want my normal tests I run every time and then my more thorough tests that I'll run before deployment.

Thanks, stealing this for my own project

kek I'd love to see this brought up in litigation

You can't take the king to court. How can the crown prosecute itself?

court is about settling disputes. That one end of the dispute is the court itself doesn't mean the court can't move to settle the dispute. And indeed modern states settle disputes (that they themselves create) all the time. The response shouldn't be
>You can't
but
>Oh no! This probably won't go the petitioner's way.

Fuck off """""conflict resolutionist'''''' shouldn't you be letting people genocide each other in africa or levelling some baltic village?

HOW DARE YOU
I have nothing against the Baltics and would never level or advocate for levelling one of their villages.
This is the worst insult I've ever received in my life. I can't even imagine a worse thing to have been accused of. Fuck you, user. There should be limits to how vicious you can be, just because you're on the internet.

>2019
>STILL no type lambdas in h*skell
>system fw has been around for decades

I have written a FIFO queue.

Attached: 1566307977491.gif (360x360, 1.96M)

purely functional, or no?
how are you assuring correctness?
1. tests
2. contracts/assertions
3. refinement types/proofs

>FIFO queue
as opposed to a LIFO "queue"?

As opposed to a priority queue.

backed by what data structure?

all in best out

Attached: 1567005704900.jpg (425x530, 134K)

It's a naive imperative program. There's no tests.

An array.

consider a using a linked list instead

surely you mean a pair of lists, user
or a doubly-linked list

not him but linked doesn't necessarily mean singly linked
i think you just need a link to the next and the end in this case, i'd need to think about it

no just a single linked list will do. to add a new element to the queue just create a new node and have its next point to the head of a list. to pop an element from the queue, advance the head pointer to the next element and deallocate the old head.

Sure user, I recently wrote some variations of linked lists. I'm working my way through basic data structures.

or the previous and end actually
that's a stack. you're inserting where you're going to pop

"use a linked list" always means singly linked.
you need more than a pointer to the end, because the end doesn't tell you anything about the penultimate position, so you still have to walk the list every time to get that position.
if you have a doubly linked list, you don't need a separate pointer to the end, because you can just have the head of the list point to the end as its 'previous'.

>you're inserting where you're going to pop

Attached: 1566652084946.webm (800x572, 2.84M)

Write entries to the end, read entries from the head. It works.

>"use a linked list" always means singly linked.
no, it doesn't. "singly linked list" means singly linked.

oh you're right. a doubly linked list then.

do you have a version of this with a better FS/N girl like s*kura or saber

what are you replying to?
what you're trying to avoid, with a list-backed queue, is O(N) pushing or popping.
ok friend, go out into the world and be wrong and have people correct you over and over again. Eventually I'm sure you'll reach a position where you're surrounded only by underlings who will pretend to accept your terminology but will mock you behind your back, and then will immediately eliminate your terms after you die some ironic death involving linked noodles.

What the fuck is the rationale behind having

Nice cope. I bet you claim list means linked list as well.
>not using pascal :=
R is totally retarded. Actually you can just think the R stands for Retarded.

...

Pascal reinvented the wheel too, what was their fucking problem?

yes, 'list' without some heavy context obviously only ever means 'linked list'.
>linked from that SO answer
burns-stat.com/pages/Tutor/R_inferno.pdf
this is a really cool theme.