/dpt/ - Daily Programming Thread

Old thread: What are you working on Sup Forums?

CHAR_BIT >= 8

Other urls found in this thread:

msdn.microsoft.com/en-us/library/yyaad03b(v=vs.90).aspx
twitter.com/achrisevans/status/737278995729895424?lang=en-gb
en.wikipedia.org/wiki/Successor_function
twitter.com/NSFWRedditImage

First for 7 bits == 1 bite

First for 8 bits =/= 1 byte

First for broken fucking captcha

bid dick playa ready to rape some mouths; line up, tripshits!

Anyone have something that's the C# equivalent of K&R but for programmers moving from C and C++ to C#?
A book made for programmers who know programming but don't know this new language?

eat shit

Reminder that pissfits over technicalities of the C standard is what /dpt/ was made for and is what brings us all together

MSDN has some articles like that.

msdn.microsoft.com/en-us/library/yyaad03b(v=vs.90).aspx

bully me please

Thanks that looks really helpful.

I learned C# on Murach's coming from a Java background.

It pairs the basics with business-case GUI application practice, so you learn GUI interaction at the same time as the language.

Unfortunately, it does use WinForms, rather than a modern GUI framework like WPF or UWP.

You're welcome. They pay me a lot of money to shill C# on here, so I should at least be useful.

i want you to shill in my mouth
no homo

C# is like a shit version of F#

They are both nice languages, user.

>F#
What the fuck some guy told me they had nothing to do with eachother.

So I guess I'm gonna ask again. F# or C#?

F#

Both plus A, get a nice minor triad going

C#

F# is nice, but it's still meme status.

>i think its a meme so you shouldn't use it
retarded non-argument

I think you've got it the wrong way around, lad. C# is [spoiler]faster[/spoiler].

F# for native soon
Plus Microsoft aren't giving F# the attention it deserves, they're too busy peddling their Java clone trash

r there any katawa shoujo pics with sicp

preferably with lily

>Plus Microsoft aren't giving F# the attention it deserves, they're too busy peddling their Java clone trash

Fair enough, but there's a bigger market for C#. Functional is becoming more popular, but not near enough to be their main focus.

C# is much easier to control a complex, stateful UI than F#.

F# doesn't have any GUI design tools at the moment, from what I understand.

Popularity is also a huge boon to C#; there are massive amounts of code examples for doing literally anything in C#, while F# is limited in this respect.

It's hard to stress just how important popularity of a language is. That means more documentation, more funding for development, more examples, more forum posts, and more libraries and tools.

Loads of code samples for F#, for instance F# snippets

F# isn't exclusively functional

Hey gee, how can I average 2 ints while avoiding the alignment issues of EOF?

I can guarantee there are no F# examples for some of the things I'm working with in C#.

FACT:

all languages except C are shit

>F# isn't exclusively functional

Didn't say it was.

>the alignment issues of EOF
Are you just spouting random C-related phrases, hoping that they form a coherent sentence?

>feeding the unoriginal troll

Why don't you just getchar() then? You afraid of the memory model?

Sounds like a FACT to me
twitter.com/achrisevans/status/737278995729895424?lang=en-gb

>I got raped before
>pls no more

All languages that are C are shit

GTP stay in your fucking containment thread
You don't know anything about posting on Sup Forums

You lads are lively this morning

>3D
REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE

What is a byte?

I mostly go on there to post black women. It's the best.

...

4 super bits or 2 ultra bits
at least according to my professor

Try running tis-interpreter on any application and you'll be surprised how much uncompliant shit you've written in your life

>implying I can understand that

I'm not high test enough for that.

Certainly not 8 bits like the Jews want you to believe

Should I learn OpenCL or CUDA?

libgdx

learn OpenYOURMOUTHBITCHBOI

o-ok user

srs answers pls

>spent a week implementing a new, somewhat complicated feature
>finally get it working
>it's beautiful
>a few days later
>spend 8 hours working on a completely unrelated part of the program
>suddenly notice the shiny new system you spent a week working on has utterly and completely stopped working
>run it through some tests, inspect the code
>see nothing obvious why it's broken
>it just doesn't do its thing anymore
>no backups, no source commits to restore a working copy from without erasing the whole day's worth of code away

I can fix this... no panic...

You've got to go back

OpenAL

maybe i could cheer you up :3c

PyGame

>have to revisit a project I started 6 months ago
>app has to dig through various mailboxes looking for a certain behavior, restart a service if needed, and email all of this completely logged

Ugh.

I'm going to ballmer peak this bitch.

nice meme

Your meme is quite nice as well, friend.

>dump pretentious teens are so retarded they think they're expert on programming even though they don't even know a single programming language

Where does this happen?
Are you talking about the C bullshit in the last thread? Just leave it.

I don't think there's anyone who knows a language completely. Most people are too old to remember everything.

...

>get to work
>nothing to do for the day

whats something fun i can program?

Let me rephrase this then.
>dumb pretentious teens are so retarded they think there doesn't exist a language where memory issues cannot exist despite multiple such languages existing
>dumb pretentious teens are so retarded they actually think that C has the only memory management language that exists in the world

That's a vague question.

We have no idea what interests you.

Create an email client compatible with all major delivery protocols, including Exchange compatibility.

You think there's a language where memory issues cannot exist?

Do tell.

That's what you get for using shitty languages.

lrn to linear and dependent types, retard.

You can write a program without memory issues without dependent types, even in shit like python but that's not the point. What language wouldn't compile a program with arbitrary "memory issues"?

>I don't think there's anyone who knows a language completely
I know everything about C.

Any compiled language with linear and dependent types, or hell, just uniqueness types in most cases, depending on what you consider to be memory issues.

You don't.

>depending on what you consider to be memory issues.
That's the thing; your statement was vague and retarded, because 'memory issues' could be anything.

You can have memory issues just from the fact that a computer has limited memory and your program tries to use too much.

Sure I do.

Can you do it?

how arw the tree nodes implemented, question is not well defined.

>without stack
What does that mean?

>Without stack
So just registers?

>What does that mean?

It means the interview is over.

Grrrr... any chord that involved F#, C#, and C is going to sound like shit, so I can't make a C joke now. REEEEEEEE

I know everything about you're moms vagina.

but user... my mom has a penis...

Ya, no one wants to waste their time doing stupid programming puzzles

are pointers in C just ints?

Yes and no.
It depends how you want to think about it.

>Yes and no.
well, that's a worthless answer!

Pointers are just memory addresses which are represented as numbers

long ints, actually

/dpt/-chan, daisuki~

No, You shall think about pointers as typed address.

but where do you store the list of all keys ?

is it a reference to pic ?

StarPU

Smallest addressable unit.

I'll slightly expand that then.
Pointers are typically represented as integers (as pretty much everything on a computer is), so you can think of it as an integer (but not the int type specifically).
However, they don't have the usual properties that you would expect from an integer. It doesn't make sense to multiply a pointer, for example.

>No version control
You did this to yourself

One difference to keep an eye out for.
For int n, n + 1 == succ n
For a pointer p, p + 1 == (size_t)p + sizeof(*p)

another worthless answer, everything is represented as 1s and 0s
are you sure?
>you can think of it as an integer
>they don't have the usual properties that you would expect from an integer
what the fuck good does it do to think of it as an integer? you might just as well think of it as a string!
>For a pointer p, p + 1 == (size_t)p + sizeof(*p)
any pointer?

>it's been almost a year since this tsundere faggot got roasted
time flies so fast ;_;

>succ n
Is there something I'm not getting here?

>what the fuck good does it do to think of it as an integer?
You've pretty much hit the nail on the head. There is very little reason to think of them as integers.
You can cast them to (u)intptr_t, and treat them like integers, but there usually isn't any good reason to do that.
>any pointer?
Yes. That's how pointer arithmetic works.

>any pointer?
Yeah, as far as I'm aware.

en.wikipedia.org/wiki/Successor_function

It's the successor function, you uneducated swine.

That was a kind of a loaded/trick question, you can't do pointer arithmetic with void pointers