/dpt/ - Daily Programming Thread

Old thread: Lisp is the most powerful programming language.
What are you working on, Jow Forums?

Attached: lisp.png (2880x1800, 562K)

Other urls found in this thread:

pastebin.com/A3xamV3Z
warosu.org/g/
stackoverflow.com/a/31113618/4723053
github.com/aaronc/c-in-clj
twitter.com/SFWRedditGifs

I'm trying to figure out how the fuck an IPFS application is supposed to be designed.

Working on not dying from the heat.

Attached: cd454282109f8efea051c2e227056464.jpg (1890x3000, 1.24M)

>Common Lisp programmers are rude.
Is that what you're trying to say?

Cute pic

move away from australia

It's the middle of winter here.

Are the programming and CS courses on LinkedIn Learning good?

Common lisp sounds like a disease name

i don't know
why don't you try them and report back

i want to fuck miku

I am writing a population simulator to improve my C++ skills.
Here is the source, if anyone is interested: pastebin.com/A3xamV3Z

Attached: chaos simulator.png (848x461, 20K)

Maybe, use them for yourself for practice but don't put them on your resume. Companies want to see you learn this stuff from school so they get suspicious if it looks like you learned it from stuff like that

Attached: 243599.jpg (300x387, 11K)

Is it true that HRT dramatically improves programming skills? Should I take the plunge?

you should take the plunge
off a bridge
do a flip

Miku is for holding hands and making her smile.

But user how can I program if I flop off a bridge???

Nice.

a while ago (more than a year), some user here wrote an image viewer in rust, what library did he use?

Attached: 1559366242625.jpg (640x640, 174K)

>unordered map
Why write in c++ if you dont care about performance

go look for it
warosu.org/g/

Stop using rust.

idc about the rust part

I was hoping I could avoid that

and impregnating

And rough gangbang

stackoverflow.com/a/31113618/4723053

No, only impregnating gently.

It's a hash table.

SHITPOSTING WITH SCALA.
FUCK JANNIES.

>open hashing
It's shit.

Go, or C/C++?
I need an efficient language when Clojure is not good enough. I'm aware C++ is better for games but yeah.

C

if you're doing webshit, use Go.
if you're not doing webshit, use something else

>C/C++
No such language exists.

What is the initial velocity as a function of click duration?

I have a large, connected, undirected graph (~1m vertices) with each vertex having about 8 edges. One vertex is designated as the root. I want to be able to remove a CONNECTED subset of these vertices and if it results in the graph being split in two then I want to get the half that is not connected to the root.

I could do this with a flood fill to find disconnected components, but this would run in O(V+E) time. Is there a faster way?

>I am coding like few years already, starting 3 year of CS soon

Attached: JA1y4DR.png (2808x2412, 335K)

>but this would run in O(V+E) time
No, all algorithms are O(1).

Is it your belief that the Common Lisp community is in such poor shape that it stands to benefit from having people you call "losers" join it?

java?
javacpp?
someday carp

I'm doing webshit but I use Clojure for it.
Would I benefit from C family languages then?

Oh dear, this is your third year of college and this is what you write?
Dear god. What a disgrace.

You can mix Clojure with C using JNI.

>Jow Forums is one person

but Jow Forums IS one person

github.com/aaronc/c-in-clj
you can also write C in clojure but it sounds scary

What's the benefit of doing that?
Why not just use C when I need to be close to the metal?

I got invited to speak at a woman who code event (long story short, I taught my sister how to program, she's in a womens group and they invited me). I've never given a talk and I really don't want to. How can I turn them down without looking like a sperg?

Attached: Women_Who_Code.jpg (1000x825, 165K)

>an idle github tab leaked 1.6GB of memory and started slowing down chromium
When did we lose the ability to program a web browser?

Suppose profiling tells you that a particular algorithm in your program is too slow. You could write a C library and call it from Clojure.

okay why not

>What's the benefit of doing that?
You get the convenience of Clojure and the performance of C.

It'll be easy. You'll be in your element. Go do it. If they don't know how to program then anything you do will seem amazing.

it's probably easier to just straight up tell them you're a sperg and public speaking makes you anxious

Why not do it? This will make you look very good and this can boost you professionally and give you new ties to people that can help you out. Plus there's a non zero chance that you meet a cutie. Why not just do it? Just come up with a generic speech about diversity or something and that's it.

why not what?

this, more people are afraid of public speaking than death

he was invited to talk about code, not diversity

Just make sure to wear your programming socks, you'll be fine.

Then what's the problem? You're in your element, it doesn't matter who listens to you. Just pretend you're talking to Jow Forums about your hentai scraper or whatever. It doesn't matter.

who was invited to a womyns who kode event not a programming meatup/conference

don't bother worrying.
If it's anything like race-based diversity events, then people will talk about everything but race until the white guy in the room asks a question about it, then the question will be summarily unanswered and people will move on.

how the fuck do i find a job
no one is eve considering me reeeeeeeeeeeeeeeeeeeeeeeeeeeee
i saw a "mid-level" c++ interview question and its easy as fuck
how the fuck do people get it?

experience on paper

do you swear that much in interviews?

i am one of the top 100 contributor to some relatively big cpp project
and im just applying for some shitty junior job, im not asking much
i am willing to be a code janitor for fucks sake
is that not good enough? half of my peers can't understand templates
cant swear when u cant get one

Oh, Anone. It's so wamr out here... Let's go inside and learn JavaScript.

Attached: 6ecec161b2c59536f544fc340802fc4c.jpg (798x1200, 142K)

i meant professional experience (granted that is less important for entry level). your project contribution would be a plus on your resume. i assume either your resume sucks in general or your social skills suck if you're not landing a junior job.

it has to be my resume, cuz im not even getting replied
if its professional experience then just fucking kill me, cuz i have none
and im not some autist sperg either, i did multiple public speaking in high school too so im not some fat fuck
that or they ip banned people who visit exhentai

Are you not getting interviews OR are you failing interviews?

>how the fuck do i find a job
Keep applying until you find one.
>i saw a "mid-level" c++ interview question and its easy as fuck
They only care about professional experience. If you're feeling ballsy make some shit up and see what happens. It's not like they can sue you.

You know you can meet people like Sheryl Sandberg at WomenInSTEM events right? The networking opportunity is just too good to pass up - even if you suck at public speaking.

Attached: 130613-sandberg-gross-tease_xs3zl9.jpg (1566x880, 100K)

no emails, no answers, no nothing, literally just silence like i never ever applied
no hello
no i saw ur resume
no i saw ur application
nothing
i never seen anyone from the company

>wanting to work on a sinking ship

How long would it take to gain 50 lbs of muscle if I made all the sacrifices?

well keep it down to one page if it isn't already.
i listed my education first, then projects, then prior experience (you'll need to substitute this for something else i guess)

Why should I use Common Lisp over Javascript?

>wamr
Very moƩ.

>Essential game design originating flow control doesn't appear very often in profiles as causes of branching, as all the supporting code is run far more frequently.
what the fuck does "Essential game design original control flow" even mean?

But it's cold

use the power of the dick to subdue them
if hentai can do it, you can too user
pls report back

Why use Common Lisp when you can use Racket or Clojure

use whatever you want to use
they're both fun

probably input update render repeat

so its actually
(Essential game design)'s originating flow control
why are programmer such bad writer? this fucker cant write for shit albeit his content is good

made an illustration to make what I'm asking for clearer

red=connected subset of vertices
blue=subgraph disconnected from root vertex (labelled R) which is returned

Is it possible to do this O(|blue|+|red|) time, or at least better than visiting every vertex? You can do whatever precomputation you want, but obviously the graph will change when these vertices are removed (and this operation will happen more than once).

Attached: remove red return blue.png (786x694, 29K)

Give a string s, count the number of non-empty (contiguous) substrings that have the same number of
0's and 1's, and all the 0's and all the 1's in these substrings are grouped consecutively.

Substrings that occur multiple times are counted the number of times they occur.

Example 1:
Input: "00110011"
Output: 6

Explanation: There are 6 substrings that have equal number of consecutive 1's and 0's:
"0011", "01", "1100", "10", "0011", and "01".

Notice that some of these substrings repeat and are counted the number of times they occur.

Also, "00110011" is not a valid substring because all the 0's (and 1's) are not grouped together.

Example 2:
Input: "10101"
Output: 4

Explanation: There are 4 substrings:
"10", "01", "10", "01" that have equal number of consecutive 1's and 0's.

p.s.
>s.length will be between 1 and 50,000.
>s will only consist of "0" or "1" characters.

I'm retarded, the graph in pic related is still connected but just assume the blue is disconnected.

Why does /dpt/ look like a bunch of college students asking people for homework help?

Attached: Vitalik Buterin.jpg (378x378, 17K)

Because that's exactly what /dpt/ is.

college students are loud and obnoxious when you don't want to help them
adults with jobs already know how to solve their problems, and besides that they usually aren't allowed to talk about them anyway.
complex problems that can't be solved by professionals are so niche that asking is pointless.

crawl from the root
mark them as connected_to_root
when you see red, switch to a different algorithm where you now want to add these vertices into a new subgraph
should be O(n)

Whats the dumbest, simple problem thats wasted too much of your time?
For me, it was figuring out why
printf("%s",argv[0][0]);
wouldn't work

>carp
holy fuck, finally a Lisp I could use for gamedev? Is this a dream come true?

you could probably do it in O(log |blue|+|red|)
there are tons of graph algorithms
just search the literature

You're retarded if it took you more than a second to figure that out.

probably missing semicolon somewhere

why the ableism?

wagies are too busy slaving to post in /dpt/
also summer

somehow knew this would be the first reply
I wasnt aware characters and strings were seperate data types at the time, just like you at some point, I was new