/dpt/ - Daily Programming Thread

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

Attached: 1200px-Haskell-Logo.svg.png (1200x847, 15K)

Other urls found in this thread:

b-ok.cc/book/3615638/f732fd
teachyourselfcs.com/
thedailywtf.com/articles/The_Abstract_Candidate
twitter.com/SFWRedditVideos

first for C++ as the most powerful, beautiful and important language of the human race!

beautiful like a slum in india

Writing a SPI driver for a GPS chip (NEO-M8U) for an embedded application I'm working on. I think I'm close to figuring out what to do (create an interrupt, process bytes in an interrupt handler), but I need to write quite a bit of code to make sure it works and still need to figure out how to make sure I implement the interrupt handler correctly.

>pdf
but huwhy?

Would you prefer a txt file instead?

b-ok.cc/book/3615638/f732fd
Better link. If you have an account you can convert it to whatever format through the site.

>http

>What are you working on Jow Forums?
Reading tensorflow documentation. I have a slight idea what I want to do but no clue wtf is going on.

why are you reading that? do you have a background in ML? you won't understand shit just from the code.

I have a background in ML. I watched a youtube video on it.

sell me on nim.

Trying to figure out a way whether I have the permission to create a file without actually creating it in POSIX in Rust ;)

W-What? Anone wants to pair program JavaScript with me?

Attached: 6eeef14fef7f5d03f4cbdcda55e7af9d.jpg (799x1200, 98K)

Are Hackatons a scam to make you work for free?

It is a scripting language that compiles to reasonable c equivalent. It also has a FFI that can include c libraries and c++ libraries.

>he

...

Emacs and lisp is the most powerful combination
sites.google.com/site/steveyegge2/the-emacs-problem

slightly

Lisp is the most powerful programming language.

Correction: Common Lisp is the most powerful programming language.

>Lisp is the most autistic programming language.

Is it normal for modern *nix OS's to outright replace Vi with Vim?

Yeah. Look at all the programs written in lisp.
Emacs, Xemacs, Aquamacs, Remacs, the list goes on...

Yes, at least on most linuxes. Calling vi gets you vim.tiny or vim in compatible mode.

What level of autism does it take to shill a dead lang for free?

Thank you for using a non-anime image!

Could be some user who thinks it's hilarious. Different strokes for different folks. Everyone can express themselves how they feel.

like a more performant python, sorta

I want to make a GUI text editor. Would it be better to use swing or tkinter? I already know swing but tkinter would let me use Python which is 3x faster development time than Java.

There are people here who shill every language under the Sun.

Lisp macros are unironically the shit. The same goes for the REPL driven development approach.
Too bad the rest of the language is pretty shit because of how dated it is.

Enjoy your slow as fuck piece table/rope implementation. If you actually want your text editor to be useful, use better performing languages like C++/Rust/Nim or D.
Text-editor is not a trivial project either. unless you want a shitty notepad.exe clone #40122.

Lisp ain't dead. Emacs is mostly lisp. Gdb uses scheme for configuration files, guix also uses scheme. Outside of GNU, autocad is written in lisp, hacker news, boeing 747, some part of a Walmart backend...

I end up over complicating things. I just want to use proper types you know...

Attached: Screenshot from 2019-09-10 10-23-45.png (1920x2106, 341K)

>the entire jak and daxter series was developed in a lisp dialect
neat and also extremely based
en.wikipedia.org/wiki/Game_Oriented_Assembly_Lisp

nvm fixed it :)
pub fn generate_preferred_uds_path() -> Result {
Ok(std::path::PathBuf::from(&std::env::var("XDG_RUNTIME_DIR")?))
}

Happy coding, /dpt/ ;)

>tfw so experienced with Python and inexperienced with Rust that your Python runs faster

You too :)

>so experienced with Python
now that you're learning a real (albeit gay) language, how can you say this is a straight face? This is like walking up to some soldiers cleaning their weapons and saying "haha I'm about as slow as you guys but I'm way faster at cleaning my AR-15 in VR Gun Simulator 3000"

teachyourselfcs.com/

is this kino?

I know lots of languages including C, sepples, Java, etc and Python's one of the more useful ones because of libraries and dev time. When you work on real projects you'll see the value in that.

Learn Nim. Python to Rust is a massive paradigm shift.

You mean
>when you are a codemonkey you'll value that
Real software engineers use rust

I'm a rust user, but I wouldn't say Rust is that popular :) It's still in the early adopter's phase. And it has more room to improve.

Attached: 8675457687.jpg (228x221, 11K)

>sees "so experienced with"
>reads "this is useful:"
if I picked a dev at random and tossed them a Python book and gave them a task instead of you, how much would have they have to learn to produce similar results?

Reading about ML and this part makes me kek.
Think About Potential Bias. Many dataset are biased in some way. These biases may adversely affect training and the predictions made. For example:
- A biased data source may not translate across multiple contexts.
- The training sets may not be representative of the ultimate users of the models and may therefore provide them with a negative experience.
Example:
Since the measure "popular" is subjective, it is possible that the model will serve popular videos that reinforce unfair or biased societal views.

Poor bait.

ML IS META-LANGUAGE AS WRITTEN BY ROBIN MILNER THE GREAT
ML IS NOT "WE'RE TOO ASHAMED TO CALL IT AI BECAUSE IT'S SO SHIT"

Attached: Milner.gif (480x480, 108K)

Fair enough.

so are singletons good or bad? I ended up writing a bunch of them
i think they are all fairly justified as they are basically tables (like database tables) for storing textures, meshes, entities etc etc

A lot. Python like Marth has a low skill floor and high skill ceiling. Someone who just picked up Melee a month ago isn't going to stand a chance against my Marth.

They teach lisp at my school though
It's only taught in the algorithm class, but still

Singletons are fine if they make sense in the language.

>python has a high skill ceiling

Thousands of lines of spaghetti written in jQuery and php for work. Side gig I'm going to build an API for a fluid dispenser for a manufacturer. I'm thinking of doing it in node because I believe there's a node module that's a wrapper for the c functions to control the io pins for the sbc I want to use.

its c++, all it is a map
however, ive heard bad things wit singleton when you have cyclic dependency then shit gets REALLY Bad

>>python has a high skill ceiling
>t. doesn't even know what a generator is
Now you're probably going to google it.

He said he wants to make it, not use it.

In C++, bad things happen regardless :^)

Enumerate faggot

please dont badmouth my wife c++

yield and stop iteration exceptions aren’t hard
Most of the difficultly in python is learning how to write “pythonic code” so the “pythonistas” will recognize you as a fellow elitist scripter

>NOOOOOO STOP CALLING YOURSELF A CODER

Attached: 8CA17D86-BA04-49C0-94CC-210A193C9B6B.jpg (785x731, 101K)

What other languages do you know?

coder detected

>not gleefully pouring over 800 lines of error messages that result from the simplest of mistakes with C++ templates
it's like you're a luddite.

Ook!

THERE BETTER NOT BE ANY CODERS IN MY PROGRAMMER THREAD

Attached: CE16CF2E-2FFB-4B9E-A552-A9033189847B.png (350x263, 115K)

I know a few words in Spanish.

This guy, did he really just want to code?

Even though I've given him a C++, he's not doing anything?

I had planned to realise this guy's intent to rebel, take advantage of that and torture him but, what a mood breaker.

I don't know what "kino" means but that looks like a decent study plan.

It's not code, it's program lines.

Attached: 1483EBC6-BD0A-4F13-9F39-EBDD64093961.jpg (263x361, 16K)

>Someone who just picked up Melee a month ago isn't going to stand a chance against my Marth
You'd get 4 stocked like the shitter you are.

You can do this for every degree program. Just look up their courses and the books they're based on. Only works for a B.Sc though.

>t. got 4 stocked

Ever? Sure, we all have when we first started.

Excuses. Excuses.

this is the user from before
like i said, i lied in my resume and i have couple of senior programmers interview this week
i have skimmed through basic data structures what do i do now lads??
should i learn c++?? i heard rust is cool
PLEASE REPLY

Attached: 1pw9xu.jpg (250x236, 20K)

>should i learn c++?? i heard rust is cool
what did you put in your resume?

Learn ATS.

idk bro i just copy paste what i found from google

I hope you die in a painful accident.

HAHAHAHAHAHAHAHAHAHAHA
This is the face of /dpt/

Attached: Screen Shot 2019-09-09 at 10.03.50 PM.png (629x175, 72K)

well what did you copy and paste then?
if you don't even know what lies you told,
cancel the interviews and make sure you don't apply at those businesses for a long while.

not cool bro
i spent 2 hours learning how to flip a fucking binary tree
im serious

You DO realize he's baiting, right?

if you try real hard you can end up like this guy: thedailywtf.com/articles/The_Abstract_Candidate

who here /zig/ing?

real /zig/nig hours who up?

I realized after some internships that I would hate working as a programmer idk just wanna get it out there

Can someone explain who exactly is RedCream and Nikita Sadkov?

Maybe you'd be better suited as a coder, mister.

Attached: 4A9DD0C3-2E1E-4E49-9B87-39AEF66F0345.jpg (300x168, 6K)

What would you like to do instead?

Pretty much anything else man

I'm in deep shit and need books and courses to learn all things datascience. Can anyone recommend me anything please

Behold the faces of /dpt/

>all things datascience
>anything
Can you narrow it down at all?

I'm 72672273, I used to post here everyday and help anons with c++ and was super obsessed with datastructures and algorithms, efficiency and so on

Are you still doing C++?