/dpt/ - Daily Programming Thread

What are you working on, Sup Forums?

Previous thread:

Other urls found in this thread:

cs.princeton.edu/~appel/modern/,
cs.sjsu.edu/~louden/cmptext/
twitter.com/NSFWRedditImage

First for D

Do I need to learn about threads for GUI programming?

Trying to create the cutest programming language.

GPU ray tracing is not hard like people on OpenGL forums will tell you

in fact, it's easier because OpenGL will do the rasterization/interpolation for you at 10 times the speed

can you show us a code snippet of the language senpai?

what do you mean by gui programming?

do you mean developing a gui framework or developing applications?

for the primer, probably yes, for the later, probably not.

Hello,
does anyone know where I can get cool tasks involving graph theory?
I need a project for uni and I cant really make my mind up right now.
It should involve nodes and (weighted) edges which can be searched through with BFS or DFS

Thank you

I mean developing an application. How much resources could the main loop take before it starts getting low. Wouldn't I need to use threads at that point?

the GUI framework is already using threads underneath, just that it's transparent to the developer.

Can someone help me and give some advice on some things, I know this is the wrong board but it would be nice to get some "friendly" words.

chemoinformatics involves a gazillion of graph theory tasks, various morphism, subgraphs and shit

not sure about searches tho, have a look for yourself

T H I N N

>asks for help
>doesn't post the question
senpai

Share some code!

how do I code?
>been 2 years since then
>>join this force called user
>>>triforce fail

Sure buddy, what's up?

I am not gay at all but thinking about cuddling with Alan in the early xx century London and discussing computer science afterwards makes me warm and fuzzy. :3

imma out skie ya bone head can't never get ouf wliey rieddfilly

you could model transportation networks (car, boat, airplane, etc.) with cost and time (for extra meme points: co2 emissions) and then create a small application which gives you the cheapest or fastest way to transport a good from A to B

just open up notepad and type
[alt-255][alt-30] enter
[alt-30][alt-255][alt-30]

Who's that homo?

I'm not him but that is my goal too
pls rate
proc reverse_number
over 1 < @end if
10 *
over 10 % +
swap 10 / swap
reverse_number
end

getln 0
reverse_number
println

Yes you need to. Every task that takes longer than some milliseconds will make your GUI freeze until it's done if you do it in the main thread.

O boi creating a timer library is bound to be autism of the highest class

Program that solves mazes

Dijkstra, Prim, Kruskal etc

>end
trash

what do you suggest user

fuck me

I'm pretty new to programming and was following the Learn Python The Hard Way book, I'm nearly done but for some reason I can't get nose to work on fedora? I've made my project skeleton but whenever I use nosetests in the the skeleton directory It Always says Ran 0 tests in 0.002s.
What am I doing wrong?

>fedora
>python

}

A lot cuter than the first one you posted

>}
C influenced languages get an automatic F in my book. They are not cute.

but user, that's a direct downgrade in cuteness

Your book is a piece of garbage and no one cares about it

rude

Started playing around with AWS, I'm currently hosting a dumb static website on S3 and using Route 53 as my DNS

Any Sup Forumsuys here have experience with AWS, what cool projects are you doing on there?

Have you tried implementing other types of languages? Is a forth-like language easier to implement than a C-like language?

>caring about cuteness in languages
you girl~

You have to be genuinely delusional to disagree.

Programming languages are known to be a form of anime.

But C-like languages are boring! I already implemented an assembly-type language, and looking for more interesting. I saw a language that'd execute all instructions in parallel, unless one instruction depended on another, so that can be an interesting concept.

No I'm not. Your ""book"" didn't sell too, all the newer languages are based or influenced by C as well. Which means C drove your ""book"" out of relevance.

you would be a cock hungry trap character

>Your ""book"" didn't sell too
It sold pretty well actually.
>all the newer languages are based or influenced by C as well
This is incorrect. Not every new language is garbage.

>unless one instruction depended on another,
Or instructions could depend on solutions to open problems.

Name a new language that is not written/implemented and influenced by C

I'm not a programming language.

This is why traps should be banned from existence

Yeah but how'd you implement that?

My language.

Oh, of course, your ""language"" that which cannot do I/O.

you're an effeminate faggot though.

>can solve advanced algorithmic puzzles and math problems in any language and state their time complexity

>basic text processing and parsing poorly-formatted user input makes me want to die

Just encode the problem as a type in some language with a sufficiently powerful type system and use FFI.
You could also make instructions depend on whether or not the program halts.

A dirty lie.

Is I/O influenced by C?

Is the Dragon Book still worth reading for compiler design?

To the Kotlin shill,
If Kotlin native becomes a thing maybe I will try it out because of the LLVM backend

>K*tlin
K*tlin is strictly forbidden ITT. You can post that nonsense in /trash/

Just how many registers does that fucking timer need

>webdevs

minimal lisp interpreter with gc
neural network
chess solver
markov chains
to name a few

people tend to recommend cs.princeton.edu/~appel/modern/, cs.sjsu.edu/~louden/cmptext/
and "Engineering a Compiler" these days instead of the dragon book. my bud tells me it's kinda dated and verbose

BEHOLD
FOR THE POWER OF COMMUNICATION HAS ARRIVED

>implying python is trash
You have never programmed in your life, have you?

Sure I have never "programmed"
I have created

With Turing pic it's ambiguous.

[spoiler]Turing is a hero.[/spoiler]

How could I get all my replies aka (You)s from a thread?
I am using Python and found a way to use my web browser's cookies with it when opening websites. When I get the HTML of it, the (You)s aren't in it. How does that work? I also looked at the page's source within Firefox and the (You)s aren't there as well.

What am I doing wrong?

Saw this too. The worst things were the comments

>types not aligned
>array length not aligned

JS

An hero

your posts are tracked in localStorage

Why do I have such a hard time getting recursion? ;_; I think I'm genuinely too dumb to learn programming.

I teach recursion before looping and never once had anyone complain about it being too hard

>That awkward moment when a guy does your entire Culminating project (which takes a whole month) in merely 4 and a half minutes...
CS shits were a mistake

Thanks.
I just looked into it and I have to use some disgusting way (Selenium library) to run an instance of Firefox basically to extract it. Ew.

>Look at datasheet of some chinese mc shit button
>Lifetime: 100000 Uses

any pc building bros here? i need opinions please

Get a µc
Life the frugal life

Why glibc doesn't support C11 threads?
What's the fucking point of standard if major compilers are just going to ignore it. Also fuck C11 standard for not supporting gcc extensions and lambdas.

Wrong thread

>

what kind of thread should i be looking for?

Just use C++17

Maybe you should start with legos

Fuck off Bjarne, nobody likes you.

how can a popular open source project have 1500 open issues?

i thought there are a lot of people who want to contribute

how does it work? im new

...

I dunno, I just can't seem to picture what algorithms are going to do. I spent a few hours now trying to figure out how Towers of Hanoi using recursion works, but I don't understand less complex programs either.

But I like Bjarne.

>C++
Which standard library supports threads? Boost or STL? Or is it Libc?

Dude just watch inception

You should stop samefagging, though.

The one and only C++ standard library.
Just include

>The one and only C++ standard library
What nonsense are you blabbering?

>one and only C++ standard library.
That's an oxymoron