/dpt/ - Daily Programming Thread

What are you working on, Sup Forums?

Old thread:

Other urls found in this thread:

sourceware.org/binutils/docs/as/Pseudo-Ops.html
esolangs.org/wiki/Parenthesis_Hell
twitter.com/NSFWRedditVideo

1st

h a s k e l l

is unsound shit

>expected cute anime image?
>too bad is me, Chaika.

Learning Clojure.

NOT LISP and barely even programming language.

>"don't use async in C# unless you absolutely need it, it starts spreading like a virus once you use it anywhere"
>that sounds silly, let's just use it
>it really starts spreading like a virus
>end up using a blocking wait to stop the outbreak

Assembler such as GAS is definitely an abstraction, and "1 to 1 mapping" is even a stretch.

mov ,
The output varies greatly based on what X and Y are.

foo: add $1, %eax
cmp $10, %eax
jle foo
The label has to be compiled and linked, which is quite an abstraction. Especially considering labels can appear before or after the jump instruction.
There are also a LOT of assembler directives:
sourceware.org/binutils/docs/as/Pseudo-Ops.html
You can't possibly be saying that ".fill" or ".set" or ".if" are any more "just 1 to 1 mappings to machine code" than C is

>NOT LISP
It's a dialect of Lisp.
>barely even programming language
It actually is a programming language.

The discussion was in the other thread.
sageru!

Did I just skim this correctly? Do you honestly have to create some top-level methods to declare whatever is supposed to handle asynchronously? Really?

T H R E A D P O O L

Who are you quoting?

can anyone tell me why the highlighted class has that little diamond on the icon and what that means. Im new to android studio

Is using quaternion calculations in your program makes you autistic or math genius?

My game proceeds apace, I'm finally adding enemy AI and sheeit but boy is it a bore sometimes.

It means that your code is of enterprise quality.

Class is final

It makes em wet that's what it does

SSE2 doesn't completely supersede MMX, does it?
In any case try compiling some vectorizable code (eg. using 32-bit rgba pixel structures) with -march=pentium-mmx. I haven't seen gcc emit a single mmx instruction so far.

>quaternion
>math genius

>autistic or math genius
Is there a non-autistic math genius?

If you are programming the space shuttle (which used quarternions) you are a math genius

If you are mayking a gayme then you are autistic

>tfw mathlet ;_;

What language to you use for small/simple projects?

last time i tried using them i watched youtube videos on them for like 2-3 hours then gave up.

i am obviously neither

Common Lisp

D

This needs a name. I'm sure it's a dude but I don't give a shit.

>i am obviously neither
You most likely have low-functioning autism

>SSE2 doesn't completely supersede MMX, does it?
It does.
>In any case try compiling some vectorizable code (eg. using 32-bit rgba pixel structures) with -march=pentium-mmx. I haven't seen gcc emit a single mmx instruction so far.
Auto vectorizng is still pretty garbage in all compilers, you need to adhere pretty strictly to very simple patterns for it to work, and even then it's often not close to optimal.
You can forget about hoping to get things like rgba blending vectorized. Use intrinsics.

>You can forget about hoping to get things like rgba blending vectorized.
My compiler can easily do that. Just don't use a shit compiler.

>My compiler can easily do that.
No it can't.

What math topics should i learn before learning 2D-3D graphics.

Linear algebra

Proof theory.

It can, quite trivially even.

Nope.

lets solve this now lads, cocks out.

Why has Sup Forums such a hateboner for everything popular, like Java or Python and shills for hipster languages that almost doesn't exist in real world?

It can. Didn't expect you to understand such simple concepts anyway.

Playing around with retraining of depth neural networks

What is the real world? How can a language exist outside of it? How can something "almost" exist when existence is a binary state?

...

What is the best programming language in the world?

Visual Basic.

Lisp

C++

Trash.
Trash.
Trash.

Python

Ook.

return *this;

Absolute trash.
Almost good but still trash.

Malbolge

Even closer to being good but unfortunately it's still trash.

esolangs.org/wiki/Parenthesis_Hell

>It can.
It can't.

So looks like there is no perfect programming language. And to programmers should know at least 4-5 languages.
Let me guess them
>R for statistics
>C for embedded and SoC
>C++ for windows, linux and eveything general purpose, mostly video games.
>Javascript for web
>Objective C for mac.
Did I miss something.
Also imo if C++ can do the job then there is no need for java.

Just use C for everything.

Who are you quoting?

> balls for smashing
> anus for smashing
> dick for smashing
> anus back again for smashing
just reading off my notes here.

>javascript for web
>java for desktop
>c for hardware
>haskell for memes

Name one modern website made in your utter disgusting C language?
>inb4 javascript v8 engine is written in C++ which is an spritual successors to C. SO every website is written in C.

Oh, I see. Continue on then.

Who are you quoting though?

imma quote w/e i wanna quote

Python for Data science/ML

Why would I want to name a 'modern website' written in C? I hope there aren't any, because they're all shit.

>Green texting is made for quoting and nothing else.

> C for websites
> R for config management
> Javascript for server-side applications
> VB for data science
prove me wrong faggots

But who were you quoting?
Nobody said this, why are you quoting it?

Trig , linear , and calc preferably.
The more the better really.

You mum is calling you.

>Nobody said this, why are you quoting it?

rate my vectorized alpha blending, Sup Forums

Why are you plebbit-spacing your quotation operator? And who are you quoting?

C guys are too busy to do webdev codemonkey job.

Data Science?
>Data science, also known as data-driven science, is an interdisciplinary field about scientific methods, processes and systems to extract knowledge or insights from data in various forms, either structured or unstructured,[1][2] similar to Knowledge Discovery in Databases (KDD)
From Wikipedia
Didn't know this. Thanks I will look up more .

this is 16-bit with a 1-bit alpha channel
much darker for some reason, I'm probably mis-shifting a bit somewhere

She isn't though.

OpenGL or DirectX?
I will give you 8/10

no api, writing straight to video ram.

> Does that trigger you faggot?

Got any tutorial on that?

Whomst was the original source of this phrase?

How many cycles/pixel?

look up VBE (VESA BIOS Extensions). that's what I'm using to find the framebuffer address.

Not Him but it looks like an x86 DOS emulator , so video ram is somewhere from 0xA0000 to 0xB0000 (cant remember now). I think you can read that up in OsDev.net

You cant really do that in protected mode on modern day systems in case you did not know that.

> I'm quoting the bible nigger.

Whom quotest thou?

You must be very proud

too many probably
(the whole loop doesn't fit on my screen)

I think you mean whomst'd

you can use vbe to access the frame buffer directly from protected mode. A000 is the vga segment and is limited to a 64k window.

oh yes I am.

What disassembler is that?

objdump

Employed Haskell programmer reporting in

Can I get fries with that?

Unemployed Haskell programmer reporting in

Oh, so it's just a colored objdump output? Thanks, m8, appreciate it.