/dpt/ - Daily Programming Thread

Charles Adams
Charles Adams

What are you working on Sup Forums?

previously supforums.com/thread/65296438/technology

Attached: prog.jpg (126 KB, 2048x1536)

All urls found in this thread:

supforums.com/thread/65296438/technology
doc.rust-lang.org/book/second-edition/
rustbyexample.com/
doc.rust-lang.org/nomicon/

Owen Sanchez
Owen Sanchez

I can't read

Dylan Campbell
Dylan Campbell

Learn Rust.

doc.rust-lang.org/book/second-edition/
rustbyexample.com/

*not for brainlets*
doc.rust-lang.org/nomicon/

Owen Moore
Owen Moore

Hi. Please use an anime image next time.

Attached: 15296.png (322 KB, 644x611)

Wyatt Morales
Wyatt Morales

fuck opengl

Josiah Wood
Josiah Wood

Weekly reminder to use #![feature(nll)].

Nolan Kelly
Nolan Kelly

Reminder to use meme-lang of the tri-annum.

Jose Hall
Jose Hall

nigger

Gabriel Hill
Gabriel Hill

No :)

What are you working on Sup Forums?
ncurses

Parker Mitchell
Parker Mitchell

this, please.

Parker Sullivan
Parker Sullivan

Weekly reminder not to use Rust.

John James
John James

w-w-weakly reminder
Cniles, you're well on your way out.

Liam Sanchez
Liam Sanchez

is that book a meme only perpetuated by Sup Forums, like Install Gentoo, or is it something actually worth reading?

Carter Sanchez
Carter Sanchez

/go samefag to your hugbox >>>/github/

Ayden Long
Ayden Long

in C++ socket server
can I use non blocking select() for a socket while using epoll() ET for another socket
at the same time(in the same program)

Juan Bailey
Juan Bailey

Depends on you.

Attached: 1520090344292.png (137 KB, 600x603)

Jack Taylor
Jack Taylor

Well honestly expected this trip/post a long time ago.

Ethan Nelson
Ethan Nelson

Does Sup Forums cook at home and bring food to work?

Whats on the menu today?

Sebastian Bailey
Sebastian Bailey

camelCase, PascalCase or snake_case
which one do you fa/g/s prefer?

Tyler James
Tyler James

i've been posting here for years.
you just haven't been paying attention.

go learn Rust.

Asher Collins
Asher Collins

remove-kebab-case

Xavier Lopez
Xavier Lopez

cC 4 ever

Joshua Smith
Joshua Smith

It's an outdated meme, not even the shills have the patience to read past Chapter 3.

Eli Mitchell
Eli Mitchell

PascalCase.

Ethan Reed
Ethan Reed

depends

James Gonzalez
James Gonzalez

Depends on the language. Usually I follow that language's conventions.

Usually I use PascalCase for types, camelCase for procedures and snake_case for variables.

Angel Long
Angel Long

Daily reminder that Rust should be avoided like plague; its user base is feminist and anti-white.

Connor Moore
Connor Moore

{-# LANGUAGE DataKinds, GADTs #-}
data Nat = Zero | Successor Nat
-- datakinds lifts this to the type level

-- let's just be clear that these are types and not values
type TZero = 'Zero
type TSuccessor = 'Successor

data Vec n a where
EmptyVec :: Vec TZero a
NotEmptyVec :: a -> Vec n a -> Vec (TSuccessor n) a

data Fin n where
FZ :: Fin (TSuccessor n)
FS :: Fin n -> Fin (TSuccessor n)

at :: Vec n a -> Fin n -> a
at (NotEmptyVec a xs) FZ = a
at (NotEmptyVec _ xs) (FS n) = at xs n
-- the GHC type checker is not perfect
-- what if the input vector is empty?
-- if the input is an EmptyVec
-- then n = TZero, in this case
-- but if n = TZero, then our second argument, (Fin n), is (Fin TZero)
-- Fin TZero is uninhabited - you cannot (consistently, without non-termination) create a value of this type
-- thus we shouldn't need to handle the case (but GHC can't tell)

Ethan Robinson
Ethan Robinson

all me btw.

Hudson Garcia
Hudson Garcia

Are there any documents that detail the benefits of using this constrained environment (non-unsafe code) in a practical way?
Ideally I'd like an example of a real project from a person with an established programming style they lay out upfront and then they explain how the development process has improved, from prototyping to finalizing the software.

Doesn't have to be a huge project, just something that exercises the features of the language.

Parker Price
Parker Price

AHHHHHHH
where can I find simple openSSL client example
using TSL 1.2 with non blocking sockets

Christopher Fisher
Christopher Fisher

IDontFindCapitalsAnAptReplacementOfHorizontalSpacing-case

Caleb Gonzalez
Caleb Gonzalez

Huh I never noticed, but I already tried Rust. Sweet mix of imperative and fp.
Compile times were a bitch. VSCode plugin was also a bit goofy from time to time. People are currently recommending IDEA, but yea I moved on.
Ownership wasn't that hard. Lifetimes made everything a bitch, so I just clone()'d whenever. Might try it again after SIMD stabilizes and they do more about ccompiletimes(besides incremental).

Logan Jones
Logan Jones

filter Rust
can't filter C.
oops.

Disable AdBlock to view this page

Disable AdBlock to view this page

Confirm your age

This website may contain content of an adult nature. If you are under the age of 18, if such content offends you or if it is illegal to view such content in your community, please EXIT.

Enter Exit

About Privacy

We use cookies to personalize content and ads, to provide social media features and to analyze our traffic. We also share information about your use of our site with our advertising and analytics partners.

Accept Exit