/dpt/ - Daily Programming Thread

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

>Gamedev questions?
>Webdev questions?

Attached: the-little-typer.jpg (550x708, 132K)

Other urls found in this thread:

xarql.com/polr
eweek.com/security/node.js-event-stream-hack-exposes-supply-chain-security-risks
twitter.com/NSFWRedditVideo

How do I handle handlers in Java

Lisp is the most powerful programming language.

All Turing-complete languages are equally powerful.

Which make for better programmers: furries or scalies?

You couldn't be more wrong.

do people actually use cmake in real life? the documentation is horrible

Scalies because they can weigh stuff

Use cargo instead

>The Little Schemer
>The Seasoned Schemer
>The Reasoned Schemer
>The Little Typer
>The Little Prover
which ones? r8 em

so this is the power of bootcampers

>r8 em
8/8

Doesn't matter, you are learning trashlang anyways.

Just read the standard.

Hello dpt

Attached: Funny_Moment_Terry_A_Davis.jpg (1294x478, 69K)

JavaScript rocks!

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

The Little Schemer should be required reading for all starting programmers.

Implemented a function in 3 languages, using the features of the language I've improved the speed of it by a factor of ~960x!

but I'm programming in c

Why do all these books have such gay titles?

because you are projecting your insecurities

...

sorry I hate lemons

why are you gay

...

Mundanes are lousy programmers.

They literally have titles like childrens books
It's so fucking pretentious

Programmers are so emotionally fragile.

not just that, but it's made for MIT

Has anyone here ever tried to use SBCL as if it had static typing by going all out on compiler hints? I feel like it would ruin the syntactical vibe.

Attached: 1475465743454.jpg (446x595, 86K)

do the childrens book titles help with that?

how do I set up valgrind in windows with eclipse and wsl?

>java.lang.IllegalStateException: The specified message queue synchronization barrier token has not been posted or has already been removed.

Why, and how can I fix this?

Would probably get really annoying fast. Just use it for hotspots.

Attached: tryitIguess.png (1042x520, 51K)

Reasking from last thread. Leetcode or hackerrank or both for interview prep? Any other resources that can help me solve obnoxious technical questions faster?

Attached: 1520520003975.png (500x775, 416K)

If only there was simple macros to abstract that extra syntax into just simple additions to existing syntax like

(let ((x ) ...)
...)


would expand to the correct code that declares the type and such without having to do it manually.

I've tried it with chicken scheme and it's just a pain in the ass. The number of bugs I caught was so low it didn't even come close to justifying the effort.

this is why you need type inference

what does #pragma once even do?

no one knows. there's still research on that.

->68752281
haha le edgy FBI nigger man xD
here's an upboat, sir!

include guards without name collisions

(defmacro typed-let (bindings &body body)
`(let ,(loop for binding in `,bindings
collect `(,(first `,binding) (the ,(second `,binding) ,(third `,binding))))
,@body))


CL-USER> (typed-let ((x integer 20)
(y string "hello"))
(format t "~a, ~a~%" x y))
20, hello
NIL

Is it worth learning bash scripting if you know Python?

Funny story
ML syntax originally comes from ISWIM, an early attempt to "save Lisp" by giving it a new syntax

(defmacro typed-let (bindings &body body)
`(let ,(loop for binding in `,bindings
for (name type value) = binding
collect `(,name (the ,type ,value)))
,@body))

ty

rate

Attached: _.jpg (699x484, 80K)

Goal?

What the fuck is this even for
On a side note, what the fuck do I even program, I have the knowledge, just like no drive

>no drive
google drive?

Get a better font and colorscheme please. And that had better be a 4k display with that font size.

I was referring to no drive to program, although I wouldn't use google drive anyways

you're gullible

I want to write a webcrawler which sends me prices of certain products on ebay like websites per email. It also should be able to disregard any listings which include keywords. Where do I start?

Attached: 1532974388033.jpg (916x687, 53K)

It's a thing you have or you don't. I program(med) professionally but at home? I barely care to eat. I was a debugger and tool implementer. If you don't have stuff set up (makefiles, GOALS) there's really no reason to work at it.

Fair

Use RPA. uipath.com

write a parser to filter out keywords

python + 20 minutes tops

I have the stuff set up on my home PC, I've been trying to do some different things in order to build up a portfolio so I can hopefully get a remote job, but idk what to even code

You got me on throw fit.

Reading some code just drains you.
How do you bounce back?

>take a nap
>go for a walk
>don't read code

take a shit

(defmacro typed-let (bindings &body body)
(let ((let-bindings (loop for binding in bindings
for (name type value) = binding
collect `(,name ,value)))
(declarations (loop for binding in bindings
for (name type value) = binding
when (null value)
collect `(type null ,name)
else
collect `(type ,type ,name))))
`(let ,let-bindings
(declare ,@declarations)
,@body)))

xarql.com/polr
Basically Jow Forums 2.0

>recaptcha
DOA

Jow Forums has recaptchas. You used one to make that post. It's fine

It does seem odd that so many programmers are deviants.

And you're probably one, too.

Rustfags, how do you deal with such an inadequate standard library? The majority of the 3rd party libraries (crates) are far from v1.0, and undermaintained, I wouldn't be surprised if crates.io suffers from the same disaster as NPM recently. But unlike JS, Rust isn't one of the languages that encourage you to do stuff by yourself as it's cumbersome to fight the BC and such.

Also, is cargo compatible with meson? It's very important for polygot projects.

C dinosaurs need not reply.

Attached: 1542680170320.jpg (636x773, 32K)

try {
chase(suspect);
} catch (thief) {
print("You are under arrest");
sendToCourt(thief);
}

u gay

No u

...

Use a better language.

Such as?

>wouldn't be surprised if crates.io suffers from the same disaster as NPM recently
What happened with npm?

backdoors

Retarded people using bad dependencies. So basically just retarded people, nothing out of the ordinary.

Lisp

eweek.com/security/node.js-event-stream-hack-exposes-supply-chain-security-risks

not really

Yes, if you're using linux, it would help to learn bash. You don't have to be an expert, but it really helps with system administration and basic tasks.

gay

If you want to shill lisp, you should not waste time on people that are into Rust/C++/D/Nim etc. Maybe take this to functional LARPers. Because at the end of the day you are not going to do anything useful anyways.

How do fleshies even program?

yeah, because it is good for setting up new machines

>t. made nothing useful

Repost from previous thread.

Attached: Lab 3.png (1082x861, 63K)

I ported a device driver to FreeBSD in 2010. What have you accomplished with Lisp?

>Rust/C++/D/Nim
>going to do anything useful

Your point being?

gay signaling

>reinforce the concept of communication between objects
wtf is this

you're not going anything useful with d or nim

>reinforce the concept of X
I guess that's teaching-related linguo rather than tech words. That would mean "the point of the exercise is to train communication between objects"

does indeed add to the overall gayness of the text

Nice homework

>nim
You're going to trigger the butthurt nim user here.

Processing unicodes.
I intend to start a new text editor project and I want a modern language for unicode processing.
Gtkmm and C++ can take care of the UI while I'm open for a language that can work with meson and has practically no cost in interfacing to C++.