/dpt/ - Daily Programming Thread

What are you working on, Jow Forums?

Last thread:

Attached: 1545505134663.png (400x400, 341K)

Other urls found in this thread:

sourceforge.net/p/maxima/code/ci/master/tree/
stackoverflow.com/questions/6900343/how-do-i-add-data-from-a-form-with-a-variable-number-of-rows-into-a-mysql-table
github.com/Koopiq/cocbot
twitter.com/NSFWRedditGif

First for cute anime muslimahs reading programming books.

Attached: 1499489785070.jpg (775x775, 239K)

EXPLOD THIS.

good OOP

bad FP

Attached: 1536893045133.jpg (480x440, 77K)

Employed LISP programmer reporting in

Attached: 1543108622786.jpg (1280x720, 66K)

5th for C!

Attached: 1546572696811.png (376x341, 102K)

sure buddy

*buffer overflows*

How do I get a lisp job as a retard who doesn't understand other programming languages?
More serious than it looks question.

>anime avatar
>Lisp
Doesn't check out.

where can I read a lot of LISP

the fuck are you talking about, LISP was discovered by the anime industry

Attached: 1530929184096.gif (500x388, 232K)

want

sourceforge.net/p/maxima/code/ci/master/tree/

The creator of Lisp was not a weeb. He invented KFC.

The creator of Lisp was much worse than a weeb.
He belonged to a certain tribe.

I know that feel.

Attached: 1532518744136.png (1200x1400, 502K)

Attached: dpt.png (1214x1078, 270K)

Attached: 63b6f0f3bf38da07b1c388052baf66fe.jpg (420x350, 34K)

Saved.

>Haskell doesn't have a heap
Genius.

That is literally not possible in any high level language that doesn't expose pointers and raw memory.

In this day and age, we could use utf-8 to make length-prefixed strings. say {'\0'} is still the zero-length string, {'\1', 'a'} is "a", etc...

haskell produces 2GB of garbage per second.
While it certainly has a heap, the incredibly fast rate at which garbage is produced and collected puts the heap in a stateless situation where it is both full and empty at the same time, making it impossible to exploit.

In memory that's gay shit, but as a storage format that could work...

see Your image sucks.

How do I insert into a mysql db for a variable number of inputs?

This answers my question for PHP, but I don't know what that looks like for python/flask/pymysql
>stackoverflow.com/questions/6900343/how-do-i-add-data-from-a-form-with-a-variable-number-of-rows-into-a-mysql-table

wow, you can read

...

Fuck off to the webshit general. This thread is exclusively for FP circlejerking.

Thank you!

>databases are only webshit
kys

They're also not programming, user.

Don't expect (dys)functional zealots to have the slightest idea, user.

based

Lisp is the most powerful programming language.

This is some interesting bait.

JavaScript rocks!

Attached: js-rocks.png (1000x494, 286K)

>SmugLispWeenie

I asked my stepfather to show me all the steps in between turning a switch on to the graphical images and letters and moving things on a screen. It has taken me a decade and a half, but I finally feel a link between the power button and the keyboard I'm typing this on. If you feel it to, hit the like button

Attached: ats-rocks.jpg (792x990, 225K)

>muslim women are tempting
Ikr

Attached: ohdear.jpg (600x600, 40K)

memes are supposed to be funny

*behaves undefinedly*

Truth hurts, doesn't it?

>2019
>his language doesn't have package manager

Attached: 1523913347067.jpg (720x960, 52K)

>MMXIX
>his package manager doesn't have a language

What C or C++ static analysis API do you recommend?

I don't know

trying to fix this fucking texture glitch. it looks like maybe i'm not sampling all the image data

Attached: crysis_nanosuit_nig.png (515x739, 752K)

Why reply?

Attached: 1479590891717.jpg (657x387, 39K)

I am so bad at programming
I'm gonna make this fucking compiler any way god dammit

Attached: 1511875419251.png (500x500, 170K)

I don't know

ganbatte lua dev~~

>package manager
RED FLAG

Doesn't clang have a static analyzer

compiler for what language?

>yes hello i love manually fetching and building git repos
>time waste and quality of life? Don't care about it!

I just realized that all I do is copying code from stackoverflow

Attached: 1533496929678.jpg (1080x1081, 69K)

Hwat do you mean exactly?

write fizzbuzz

remove your programmer badge right this fucking instant

sql is a gift of god

That's a great sign, you don't wanna reinvent the wheel, user.

Attached: WPfe1w4LGCdWSJTkMoCJzWmIY_E1CaP8otJ5ZtAGPko.jpg (720x551, 53K)

POST LESS
CODE MORE

>2019
>his

i never tried ats but once i watched a presentation about it and had to go to the hospital to get my brain checked.

glorified assembly

>assuming his gender
Fucking BIGOT

Attached: wat.jpg (800x450, 18K)

How do I perform static analysis from C or C++ to detect what kind of function calls a binary is making?

Attached: 1495515978630.jpg (498x654, 68K)

do you ever think the people you post with here are the same people in the loli threads on /b/

all me

0


The objective is that a command is launched in a bash shell with Popen, and then the output of this command is passed to a variable, but Popen should wait until the command finishes before moving on, which doesn't happen.

I tried using call instead of Popen, but call doesn't output anything but the exit code, which isn't ideal. I tried using wait() too, but I get an error.

var1 = Popen(["command | grep 'stuff' | cut -d 'delimiter' -f3"],
shell=True, stdout=PIPE,
universal_newlines=True).communicate()[0].rstrip()
var2 = Popen(["command | grep 'stuff' | cut -d 'delimiter' -f1"],
shell=True, stdout=PIPE,
universal_newlines=True).communicate()[0].rstrip()
print(var1 + var2)

Python prints var1 correctly, but not var2, which is None because it was not assigned by anything since the command didn't run or wasn't allowed time to finish. Running the var2 command directly on the terminal, exactly as in the python program, yields the desired results, but when python tries to run it, it simply skips it and prints var1 and var2, but only the var1 string is displayed, var2 is completely ignored.

Attached: war never changes.png (500x399, 108K)

This program doesn't close when "END;;COM" is inputed. Why is that and how do I fix it? Yes my brain is small

Attached: Capture.png (335x241, 6K)

I pretend that printf is scanf thanks

strncmp

>tfw too brainlet to specific my AI meme problem

Attached: 1447448038486.jpg (500x371, 120K)

That comparison compares the addresses of both arguments rather than it's contents.

Thank you user!

Attached: poop.png (909x823, 87K)

r8 my shitty code Jow Forums

github.com/Koopiq/cocbot

Attached: 15178506337850.jpg (472x314, 77K)

>cawkbot
topkek

Yikes!

class Poo:
def ecate(self):
__init__()

How do I stop being a lang hipster?

Attached: 1532598343021.jpg (540x540, 20K)

CAN SOMEONE ANSWER MY QUESTION PLEASE!!!?

yes

sry, tl

Working with Amavis makes me want to commit die

You're a retarded gorilla nigger. LOOK!

Attached: Screenshot_2019-01-04 UsedPastelBases.png (1580x857, 41K)

Stop using Haskell and Lisp

bump

SLL(h, n, ?xs)
:= h = n & ?xs = nil & emp
| h != n & exists x, xs'. ?xs = cons(x, xs) & exists h'. h~>(Val(?x), Ptr(?h')) * SLL(h', n, ?xs')

Attached: 1538190305054.gif (429x592, 2.8M)

ok, so Idris then

now this is accelerationism

To expand on that: communicate always fucking waits. The issue isn't what you think it is. And Python isn't going to go back and edit variables after waiting for subprocesses, that doesn't happen and that's magical thinking on your part. So I'm 99% sure your problem is with your retarded "command" or the gay grep/cut combination and not anywhere you are currently looking. Maybe command has a race condition idfk.

This is why no one likes you.

:(

Now make it commit CODE_OF_CONDUCT.md and submit a pull request.

Why

But the fucking command works on its own when typed directly on the terminal. WTF