/dpt/ - Daily Programming Thread

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

Attached: 1543061887669.jpg (1500x2099, 1.62M)

Other urls found in this thread:

stackoverflow.com/questions/35502962/bit-representation-for-floats
code.videolan.org/videolan/dav1d
news.ycombinator.com/item?id=18593970
newyorker.com/magazine/2018/12/10/the-friendship-that-made-google-huge
stackoverflow.com/questions/4605669/what-is-polymorphic-method-in-java
twitter.com/NSFWRedditImage

first for judaism

Thank you for using an anime image.

nth for nim!

Thank you for using a pedophile image on 4channel.

Post more Karen.

How do I get into artificial intelligence?

i wanna fug karen

I'm having trouble getting the binary output of a float in C. Halp?

Get help.

Sure I can help you fug Karen.

>binary output of a float
What do you precisely mean by that?

Attached: 1453302305155.jpg (549x560, 50K)

Would you use a *LISP if it had all the features of Common Lisp and a standard library as big as SBCL but had pointers and manual memory management like C?

Well, I just need to print a float as an int, not the conversion of the float. I can get the binary from there.

how does MMM even look in Lisp?
I'm scared to find out.

Just google these dumb and simple questions next time

stackoverflow.com/questions/35502962/bit-representation-for-floats

Nevermind I got it.

>you're as smart as you think you are
I said I was having trouble, not needed my handheld.

I'd be curious if someone has already attempted it. You could have something analogous to malloc/free I guess.

Cast a pointer to it as an int pointer

Nice, actually easier than what I did.

Return to assembly user
Only once you have cast off the shackles of stack based runtime will you truly flourish

Attached: 1518737423533.jpg (1024x768, 251K)

That in undefined behavior. The proper way to type pun is with a union.

That is*

Based, stacks are shit.

That's what I did, makes me feel better.

...

Assembly has no standard library

i programmed a little vehicle with some IR rangefinders to navigate a maze in assembly for one of my class projects
am i Jow Forums yet

If you're truly an assembly programmer, you should be contributing to modern video codec libraries, where your kind is actually needed.
code.videolan.org/videolan/dav1d

How do I network properly?
>player sends location every 100ms
>players receive other players locations every 333ms
>Monsters send a single follow packet
>Monsters send a single target packet

>Everything is off & buggy as shit

Attached: STOPPPP.png (686x798, 33K)

x86 a shit

Standard libraries are a crutch

>x86 a shit
They need more than just x86 assembly. That's just what they currently have.

>Standard libraries are a crutch
lol

npm is greater than any standard library prove me wrong

>is-odd

>scheduling updates on times instead of actions
ya dun goofed bud

sure in any reasonable programming language that would be completely retarded but this is javascript we're talking about
what if some input got corrupted somewhere and instead of an integer your variable is carrying a float or a string or a function or a DOM node? how is your %2 going to handle that?

>%2
I use x & 1 instead.

What if this wasn't /dpt/

>obfuscating your code for the most trivial optimizations your compiler would have done anyways

>b-but the other retards and I weren't t-taught that in s-school
>obfuscating
You still haven't fucked off to

based

>installed Arch
>configured minimal tiling WM with monospaced bitmap font
>learned Haskell
>put stupid Anime avatar on GitHub profile
>still no job $300k starting
Did I get memed on?

Attached: 1420224787743.png (900x900, 281K)

Oh hey look, a Haskell job:
news.ycombinator.com/item?id=18593970

dumb frogposter

Arch + xfce master race.

Don't post your gay frogs here, you stupid redditor.

Attached: 1542859598835.png (538x538, 492K)

Arch + sway + vim master master race.

can sachiko say niggy

>tfw stuck on nvidia
sway seems fun, not sure if i could lose xfce though, going full autism with only a wm seems tedious.

Yeah, better post poorly drawed gay pedo cartoons...

I certainly hope you're using the 1.0-beta.

Throw that shit out; get an AMD GPU.

>sway --my-next-gpu-wont-be-nvidia
I have an nvidia card too, but muh x drivers crapped out on me. I can't play non-linux vidya (not really an issue), but I can do everything else. Actually, screen tearing is non-existent on my system.

Going full autist is the only way to go. Tiling wms are a game changer.

>I certainly hope you're using the 1.0-beta.
ofc, the arch package is 0.24 or some shit.

I'm having a problem compiling Nim code when I use the blockUntilAny proc. I've imported the threadpool module, but I get: Error: undeclared identifier: 'blockUntilAny'.
Any /nim/ bros here to help?

Stop memeing and rewrite it in C.

Based and redpilled.

>writing C in 2019
It's not stone age anymore, barbarian.

based

cringe

I don't have time for that, gramps.

Lisp is the most powerful programming language.

>Linux systems programming and embedded is stone age
>barbarians existed in the stone age
Anyway, if you want to use autistlang, actually learn it.

>has time to learn an meme language that will almost certainly become defunct

Dumb nigger.

Yeah but fags are too worried about tricking people and having tons of useless jobs on memory management.

/dpt/ likes to joke about dedlangs.
But if Dart of all things just got a major new version, there's hope for just about anything.

i wish i was an anime girl

is there a term for this

>is there a term for this
Autism.

>is there a term for this
mental illness

It only takes a single hyper-autist to create a release for a dead-lang compiler.
It doesn't say anything about the language's health.

patrician

nah, the repo has a fair bit of people.
Granted it's backed by Google which certainly helps. But it's weird that Google would let it stay alive with Go being their new toy.

>WHOOSH

There's also a term for this: shared delusion.

Based
Cringe

>is there a term for this
Degenerate.

>autist BTFO
>can't recover, but tries to save face
I have more respect for the user who wants to be an anime girl, at least that user knows something is wrong.

Whats a good book or online course for learning Go?

>Go
... Fuck yourself XDXDXDXDXD

I guess you have a miss, huh? Cowboy.

i'd probably start with the site itself, user.

This book is pretty good. Also, a tour of go is pretty good. I recommend you learn basic programming paradigms first. I'm an autodidact, and I had some trouble with it initially.

lolwut

Attached: 41oiM9rSONL._SX397_BO1,204,203,200_.jpg (399x499, 21K)

transsexualism

NIGGER.GTK

sorry I had to let it out

The story of how Jeff Dean and another guy built Google, and in the process, wrote the software that powers Facebook, Netflix, and the NSA

Do you think you'll accomplish even 10% of what they've done?

Jeff Dean runs their AI team

newyorker.com/magazine/2018/12/10/the-friendship-that-made-google-huge

Attached: JeffDean-google-1024x724.jpg (1024x724, 164K)

>helped create basically the cabal of the modern tech world
i certainly hope not.

Cope

So, does anyone know what are the polymorphic methods?

What do you mean (by this)?

Attached: 1465297400484.jpg (500x500, 100K)

you must tell me

>what are the polymorphic methods
>THE
Hello rajeesh

He's talking about the AV circumvention technique of self-mutating code. He thinks it's still 2012.

All ESLs O U T

This is the closest thing that i found about it but it is for java and i use C++ and i've been searching but i am still quite confused.

// note code is abbreviated, this is just for explanation
class Shape {
public int area(); // no implementation, this is abstract
}

class Circle {
private int radius;
public Circle(int r){ radius = r ; }
public int area(){ return Math.PI*radius*radius ; }
}

class Square {
private int wid;
Public Square(int w){ wid=w; }
public int area() { return wid*wid; }
}
stackoverflow.com/questions/4605669/what-is-polymorphic-method-in-java

I enjoy programming in the C programming language.

Learn Lisp.

delet this

>pajeet, my son
Read the sticky, faggot.

gay

Attached: do it anyway though.jpg (435x213, 29K)

4channel is a frog website

Attached: 1541383016912.jpg (500x333, 37K)

God bless you.

Enjoy your 40x suicide rate

dumb frogposter
die

Please send help. Last week I think I worked around 70-80 hours. This week is shaping up to be the same, I worked from 8am until 10:30pm today.

dumb "dumb frogposter" poster

Attached: 1537960079223.png (427x576, 305K)