[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
/dpt/ Daily Programming THread
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 255
Thread images: 28
File: dpt.jpg (198 KB, 720x720) Image search: [Google]
dpt.jpg
198 KB, 720x720
old thread: >>52530057

What are you working on /g/?
>>
your moms cunt
>>
File: 1452549804494.png (901 KB, 690x460) Image search: [Google]
1452549804494.png
901 KB, 690x460
>programming
>>
File: 1449761716956.jpg (170 KB, 436x624) Image search: [Google]
1449761716956.jpg
170 KB, 436x624
>>52533639
Nice image editing OP
>>
What should I put on my CV, Code crafter or Software alchemist?
>>
>>52533731
Turing Machine Operator
>>
>>52533639
$ ./maths
>def max(a,b) = if(a>b,a,b)
>def min(a,b) = if(a<b,a,b)
>eval max(min(3,4),min(1,10))
= 3
>end


I got conditionals working somehow, and it made like 80% of my predefined functions redundant
>>
:(((((((( https://github.com/SlashGeeSlashOS
>>
File: 1451421311035.png (129 KB, 240x228) Image search: [Google]
1451421311035.png
129 KB, 240x228
>>52533778
>>
Friendly reminder that C is NOT Turing complete!
>>
>>52533639
Wasn't that an RMS poster before
>>52533934
u wot
>>
>>52533934
friendly reminder this meme is wrong
>>
>>52533934
Just stating something doesn't make it true
>>
>>52533940
>>52533954
>>52533961
It is not wrong. A Turing machine requires infinite memory. C limits the size of void * as well the standard imposes limits on the source file size etc
>>
>>52533934
even HTML is turing complete now. Fuck off
>>
>>52533977
I don't think there's anything in the C standard that prevents it being used on a machine with infinite memory.
>>
>>52533983
>HTML is turing complete
BS

>>52533986
>C limits the size of void *
>>
>>52533977
>imposes limits
It imposes minimums, not limits, fuckface.
>>
currently rewriting my chromosomes in ocaml
>>
>>52533927
no it works, especially when your relatives asks what you're studying. this'll get them to stop asking you to fix their routers
>>
>>52533977
LOL WUT
>>
>>52534002
Never mind, I saw an inside joke where there was not one.
>>
>>52533998
The minimums are limits for any programmer that writes portable programs and respects the standard.

>>52534006
What can't you understand?
>>
>>52533993
breh http://lemire.me/blog/2011/03/08/breaking-news-htmlcss-is-turing-complete/
>>
>>52533983
html is chomsky type 2 grammar you freshman faggot
>>
>>52534019
>css
Not HTML.
>>
>>52533993
No, it doesn't.
>>
>>52534011
>being this stupid.
are you for real, anon-kun?
>>
>>52534019
Kill yourself
>>
>>52534042
sizeof (void *) can't be infinite.
>>
>>52533934

Mate, you can't make a device with infinite tape irl. Nothing is Turing complete.

Doesn't mean we can't emulate a Turing machine with a finite, but really large amount of tape. C can do that.

>>52533993

The C standard does not actually state how large values have to be. You could let void* be 200 megabytes, and it would still valid.

Also, C allows pointers to be of different sizes. int* could be larger than void*. The only requirement is for void* to be as big as char*, IIRC.
>>
>>52534055
Why not?
>>
>>52534055
not with that attitude
>>
>>52533977
First prove to me that non-cardinal computations is meaningful concept, faggot. If you can't actually build a turing machine that can do infinite computations then you're just circlejerking to minutae of meaningless abstracts instead of what they are actually meant to represent.
>>
reposting from last thread because I didn't realize we were near 310 replies


How do you distribute python programs to Winfags, /dpt/?
Winfags want to double click an .exe and have shit just werk, they don't want to (or don't know how to) install python, add it to their path, and install dependencies with pip.
>>
File: sh.png (579 KB, 1600x2160) Image search: [Google]
sh.png
579 KB, 1600x2160
>Getting overexcited by a 3D girl that's into programming, so much so you thought you'd use her as a /dpt/ image

Kinda pathetic, anon.
>>
>>52534062
won't it just be the size of the pointer? like 32 or 64 bits?
>>
>>52534055
It's as big as your internal memeory
>>
>>52534082
Why does a pointer need to be limited to 64 bits on a machine with infinite memory?
>>
>>52534055
>sizeof (void *) can't be infinite
Uh, no shit? You realize it will never be infinite in any language?
>>
>>52534055
C is Turing complete because you can actually allocate infinite memory on a machine with infinite memory, just because sizeof (void *) cant be infinite does not mean we cant create infinite memory.
>>
>>52534020
And a (classical) Turing Program is a regular expression.
>>
>>52534081
>implying it's any better to be excited by a 2d girl

it's like you don't value your time or money
>>
>>52534043
What can't you understand anon? You do not need to spread buzzwords to get attention, I would help you anyway.

>>52534058
>Nothing is Turing complete
Yes, but faglords here can't seem to understand that.

>The C standard does not actually state how large values have to be
I know that, see >>52534055 for what I meant.

>int* could be larger than void*.
I know that, however, I said void * because void * should be able to store all data pointers.

>>52534090
If a language supported variable-length-address or simply did not use pointers, there wouldn't be such a limit.

>>52534095
Except you can't as you will not be able to address the said memory.
>>
File: 1448510781859.jpg (88 KB, 720x720) Image search: [Google]
1448510781859.jpg
88 KB, 720x720
>>52534081
she's not even into programming, I projected that onto her
>>
>>52534078
There's a package that can compile your functions into .exes (google it). If it's a small script and you need user inputs and don't feel like building a GUI just read from a spreedsheet or something.
>>
Also, since Anon is claiming void* is limited, I would like to demand they show where exactly in the C11 standard void* is required to take up a finite amount of memory.
>>
>>52534049
good argument
>>
>>52534129
size_t is an integer (thus finite), not a float that can be equal to INFINITY.
>>
File: o.png (150 KB, 800x450) Image search: [Google]
o.png
150 KB, 800x450
>>52534122
>She even has a tattoo
3D girls are trash
>>
>>52534122
I don't know what to believe anymore.
>>
>>52534147
>thus finite
Who the hell said that integers are finite?
>>
>>52534147
Why does an integer have to be finite?
>>
>>52534147
>integer
>finite
>>
File: RxID022.jpg (61 KB, 960x931) Image search: [Google]
RxID022.jpg
61 KB, 960x931
>>52534119
IS LIFE EVEN REAL ANON HAVE YOU EVER THOUGHT OF THAT
>>
Have you accepted ocaml as your lord and savior yet, /dpt/?
>>
>>52534147
>integers are finite but floats are not
Topkek.
>>
>>52534035
Yeah I know, just haven't gotten around to trying it yet.

Also VS2008 was doing the same thing, so now I'm even more confused.
>>
>>52534119
Did you discover a machine with infinite memory?
>>
Threadly reminder that you should not refer to the act of programming as coding. It is improper and makes you look like a 16 year old

You are a programmer, not a coder

Software Alchemist is GOAT
Developer is okay
Magician is okay
Software Magus is okay
Software Engineer is okay
Software Architect is okay
Code Guru is okay


Archmage is reserved for only the most senior of programmers

Writing in HTML and CSS is not programming, therefore it should be referred to as designing
>>
>>52534159
>>52534160
because that's what an integer is. You can't have an integer of infinity.
>>
>>52534159
>>52534160
>>52534170
They are limited by their corresponding *_MAX, such as SIZE_MAX for size_t

>>52534176
In C99+ you have the macro I mentioned.
>>
>>52533639
wow pretty rude desu
>>
>>52534183
>being this stupid in /dpt/
>>
>>52534181
I'm inspired by this confident and proud ownership of your autism. #austisticlivesmatter
>>
>>52534184
You could make an integer be an arbitrary number of bits wide (as long as it's at least 16) and it would still comply to C.
There is absolutely no reason to bring up an "infinite integer" type, because it cannot possibly exist.
>>
File: 1.jpg (126 KB, 720x717) Image search: [Google]
1.jpg
126 KB, 720x717
>>52534155
>>
>>52534208
>because it cannot possibly exist
Exactly.
>>
>>52534215
photoshop level 7/10
>>
>>52534208
I will make my integers an infinite number of bits wide.
>>
>>52534183
>>52534184
Add a value that means "infinity" to the type. It would work with operations the way you would expect. I don't think the C standards committee would argue with you if you found out a way to have a machine with infinite memory and you wanted to implement C on it.
>>
I'm moderately familiar with Python, to the point of mindlessly reading documentations of the libraries and creating a few applications, but I want to get a more general understanding of coding, because I feel like it's something I could benefit from in the long run (Going into Comp-Sci soon after completing an Associates). What book to I read?
>>
>>52534127
I'm aware
there's tons of different solutions, py2exe, pyinstaller, cx_Freeze, nuitka
I'm just wondering what's the least shit/what I should use
I'm using pyinstaller at the moment because of the --onefile option
>>
>>52534184
I will simply make SIZE_MAX an infinitely large number. I can because we have a computer with infinite memory.
>>
>>52534235
SICP
Real world OCaml
>>
Reminder that no language is Turing complete now that anon decided to add the impossible requirement of infinite memory
>>
>>52534227
Good luck building a computer with infinitely wide registers.

>>52534225
That's just a limitation of the real world.
>>
>>52534215
Photoshop ruined the internet.

Look at how fast this faggot was able to do that.

I mean it looks fucking good, it will fool most people.
>>
>>52534235
CS isn't about programming, it's more about theory/concepts and math
>>
>>52534055
what exactly do you mean? which part of the spec are you referring to?
>>
File: 1452125095649.jpg (152 KB, 1280x720) Image search: [Google]
1452125095649.jpg
152 KB, 1280x720
Quick, post your favourite anime OPs.
>>
>>52534249
Well we are talking about such system so what's your point beside the fact that you can't remember the topic after two posts?
>>
File: 1416109433310.jpg (18 KB, 331x341) Image search: [Google]
1416109433310.jpg
18 KB, 331x341
How's this for an anti-ddos system

>If 40 connections are made within one second of each other, it automatically bans all IPs that connect until attempted connections per second drops below one
>IPs can easily be unbanned if someone submits a ticket

It's for a relatively low-usage program, does this seem reasonable?
>>
File: 1453144232793.gif (2 MB, 500x281) Image search: [Google]
1453144232793.gif
2 MB, 500x281
>>52534181
>Writing in HTML and CSS is not programming

HTML is technically a programming language, and CSS is Turing complete. But I don't know why I'm bothering replying to a 17 year old shitposter.
>>
File: きりの.png (306 KB, 593x540) Image search: [Google]
きりの.png
306 KB, 593x540
>>52534159
>>52534160
The C standard you fuckers
>>
Who here maintains a programming blog? Wordpress? GIthub pages?
>>
>>52534248
False, a language without pointers or with variable-length-addresses support would have a higher chance of working on a real turing machine.
>>
>>52534260
https://www.youtube.com/watch?v=DjUtmbZt8zc
>>
File: 1437699258004.jpg (22 KB, 174x172) Image search: [Google]
1437699258004.jpg
22 KB, 174x172
What will Vulkan change exactly?
What will be different from using GL and what will be the same?
>>
>>52534184
then make your own type
I think the standard doesn't require any specific type for sizeof
>>
>>52534215
>you're not real
She's right about 358/360 of the time.

2D is better though, it may be imaginary but it has no direct way of being irrational.
>>
>>52534184
>They are limited by their corresponding *_MAX, such as SIZE_MAX for size_t
which are implementation defined...........................................
>>
>>52534291
We've explained this to you a billion times in AGDG.

I know that's where you're from because you're using the Umaru/Vulkan meme.
>>
>>52534304
And can't be infinity............................... (faggot)

>>52534292
>then make your own type
Offtopic

>I think the standard doesn't require any specific type for sizeof
size_t
>>
>>52534291
>>52534308
Vulkan vs Direct3d?
>>
>>52534332
Vulkan/D3D12? Same difference as OpenGL/D3D11.
>>
>>52534256
Well, it may end up being Database Administration or something like that, I'm not sure what I want to specialize in, but I'm sure whatever it is being able to code will be of vital importance. Half hobby-driven, half with the best interest of my future, I want to learn now.

>>52534247
I'll check these out, thanks.
>>
>>52534314
>size_t
Which can be any type you want, it doesn't have to be int.
>>
>>52534291
just stick to opengl es 2.0 for mobile games at least. opengl is still perfectly fine unless you're an enginebabby who desperately needs all the crutches they can get.

on a related note, does anyone know if vulkan will increase input lag vs opengl since how it works clearly just focuses on overall throughput?
>>
vulkans are jews
>>
File: 1451359581509.jpg (81 KB, 1024x623) Image search: [Google]
1451359581509.jpg
81 KB, 1024x623
>>52534308
>he visits adgd on a regular basis
you're no better than him desu. Game development isn't programming.
>>
>>52534343
>it doesn't have to be int
It has to be an unsigned integer type.
>>
>>52534276
>ddos you
>submit ticket
>repeat

What's to stop me from doing this? Are you going to do some kind of traffic analysis? Why not build that into the system?
>>
>>52534343
size_t has to be an unsigned integer (not unisgned int necessarily).
>>
>>52534360
Yes, but not of the standard types that require a maximum constant.
>>
Learning C++ OpenGL ray-casting.
Other than the superbible (of which I own), what's a good resource?
>>
>>52534363
>submit ticket
>accepted
>do it again
>submit ticket
>denied
?
Also, you'd have to submit a ticket for every single one of your bots that got banned, which would probably be all of them.
>>
>>52534352
Throughput/latency doesn't work that way.

If anything, it will generally reduce input lag, since now the application is in control of things like double buffering and display synchronization.

>>52534358
Funny, because there are shitposters there that say programming isn't game development.
>>
>>52534314
we are talking about a hypothetical machine with infinity memory you fucking retard. the value of things like SIZE_MAX can be arbitrarily big and by extension infinitely big. the implementation might not work in the same way as conventional ones but this little nitpick thing isn't it for proving that C "isn't turing-complete".
>>
>>52534286
>higher chance of working on a real turing machine
So you can't even guarantee that they would
>>
>>52534384
What?
>>
Friendly reminder computer science is not programming.
>>
>>52534358
shitty bait, /g/ is for fizzbuzz/hello world threads, /agdg/ is for getting things done
>>
>>52534396
>and by extension infinitely big
Except they can't

>>52534397
It depends on other characteristics too.
>>
>>52534396
>the value of things like SIZE_MAX can be arbitrarily big and by extension infinitely big
no it can't. SIZE_MAX must be integer of some kind, which cannot be infinite.
>>
>>52534398
Stuff like INT_MAX is required by the standard.
A max value for size_t isn't.

At least in Ansi C
>>
>>52534426
>>52534448

Where in the standard does it state that integral types can't be infinitely big?
>>
File: GPU-Pipelines.jpg (183 KB, 1374x715) Image search: [Google]
GPU-Pipelines.jpg
183 KB, 1374x715
>>52534394
well pic related is directx but how do you explain this? it says latency will go down but how? "upload data from processor" happens in parallel so is the data supposed to travel backwards in time? or do you compensate for an extra frame of delay by having a higher frame rate?
>>
File: 1374576681088.jpg (235 KB, 1212x1010) Image search: [Google]
1374576681088.jpg
235 KB, 1212x1010
There is all of this shit about C (any any non-theoretical language) not having an infinite integer size, but a Turing machine DOESN'T NEED an infinite integer size. It doesn't even need integers at all.
It just needs an arbitrary amount of tape (memory in this case) a '0' symbol, a '1' symbol and a blank symbol.

The person who posed the original question is a retard and doesn't know anything about computer science.
>>
>>52534358
>Game development isn't programming.
The best part about this mindset is that you're objectively wrong and your opinion doesn't matter
>>
>>52534426
>>52534448
that's like saying a turing machine can't exist because memory can't be infinite. it's fucking retarded because we're talking about an entirely theoretical machine and either you allow infinity or you disallow all languages from ever becoming turing-complete.
>>
>>52534235
Satanic Bible Anton Lavey
>>
Let's say I have a group of letters. The alphabet, perhaps.

I'm going to output them, and I want to be able to say:
>certain letters never follow certain other letters (maybe X never follows Z and T never follows Q, or something)
>certain letters always follow certain other letters (U always follows Q, for example)
>certain letters never precede certain other letters
>certain letters always precede certain other letters (are these last two redundant and unnecessary?)

How the fuck do I organize this information?
>>
>>52534493
to be fair, the kind of game dev that most agdg kids do could hardly be considered programming.
>>
>>52534457
>A max value for size_t isn't.
SIZE_MAX
(size_t)-1

>>52534478
>It doesn't even need integers at all.
This is about C not being able to support infinitely big addresses.

>the original question
It's not a question.

>>52534502
>that's like saying a turing machine can't exist because memory can't be infinite
And this is true.
>>
>>52534448
The set of integers consists of zero (0), the natural numbers (1, 2, 3, …), also called whole numbers or counting numbers,[1] and their additive inverses (the negative integers, i.e. −1, −2, −3, …). This is often denoted by a boldface Z ("Z") or blackboard bold \mathbb{Z} (Unicode U+2124 a) standing for the German word Zahlen ([ˈtsaːlən], "numbers").[2][3] a is a subset of the sets of rational and real numbers and, like the natural numbers, is countably infinite.
>>
>>52534406
heh

The difference is agdg codes in babby helping hand languages that anyone can learn. We program those things for you do use.
>>
>>52534522
Can't find SIZE_MAX in the C89 standard
>>
>>52534522
>This is about C not being able to support infinitely big addresses.
Modern (real) computers can't support infinitely big addresses. There is no point bring up the fact the programming languages can't do it.
>>
>>52534279
[Citation needed]
>>
>>52534522
>And this is true.
so you're just being an insufferable sperg just like with the halting problem. piss off lad.
>>
>>52534518
Most people in AGDG fall into three categories:
Engine devs. These are programmers, no two ways to slice it. They're arguably not game devs, though.
Unity devs. These are also (99%) programmers, with 1% rich people that just buy all code assets
Artists. These are not programmers, but that's because they're artists. They usually work with programmers or buy code snippets.
>>
>>52534471
The diagram only seems to be showing what happens on the GPU. The 1st lane is the graphics engine, the 2nd lane is the DMA engine, and the 3rd lane is the compute engine. I don't think the serial nature of the D3D11 part is implying that there's any dependencies between the uploads and the processing, it's just showing that you can do both concurrently as opposed to cooperatively,
>>
>>52534536
>The difference is agdg codes in babby helping hand languages that anyone can learn

This is how I can tell you're still in high school
>>
>>52534391
>Normal user bob accesses site during ddos
>gets banned
>submits ticket
>it happens again
>ban bob forever?

Also, submitting a ticket for each bot wouldn't be hard
>>
>>52534528
mathematically yes. But there's no way to represent an integer with the value 'infinity' in C.
>>
>>52534561
>Unity devs. These are (15%) programmers, with 1% rich people that just buy all code assets, but most (84%) just use built-in assets and customize drag-and-drop menu values.

ftfy
>>
>>52534561
>They're arguably not game devs, though.
Nice meme.
>>
>>52534528
>wikipedia
Now, try to find the same in the standard.

>>52534546
Because it does not exist in the C89 standard. Try a newer one or use (size_t)-1

>>52534555
>There is no point bring up the fact the programming languages can't do it
Many programming languages CAN do it.
>>
How do I get into emu dev?
>>
File: Euphonium_01_4.jpg (107 KB, 1280x720) Image search: [Google]
Euphonium_01_4.jpg
107 KB, 1280x720
I have an infinite computer, it is waiting for more memory to be streamed in
>>
>>52534592
It's still probably the most widely adopted standard.

Why can't I go by that one, if we're talking about C.
No one specified C99.
>>
>>52533639
Fuck off and kill yourself whore.
>>
>>52534522
>This is about C not being able to support infinitely big addresses.
>waaaaaaah a practical programming language doesn't play well with my mythical setup waaaaaaah

Back to your original statement, why don't you find a problem that a Turing machine can solve, but a C program cannot?
Because you're pretty much full of shit if you can't.

It's impossible to prove by exhaustion that C can solve any problem that a turning machine can, but all you have to do is find one tiny example where it can't.

We're fucking waiting.
>>
>>52534592
>>52534578
Please tell me of a programming language that has a way to have an integer represent inifinity. NOT floating point, NOT some shit like
struct int64_t {
bool is_infinity;
actual_int64_t;
};
>>
>>52534575
Well it would be case-by-case. Tickets currently have a message body and an IP field and are handled manually. If you were to submit tickets for your hundreds of bots, you'd have to hand-write individual tickets for all of them.
If bob actually writes a message both times, bob should be able to be unbanned.

The scope of our service isn't big enough (yet) for anything more advanced.
>>
>142 replies
guys you're better than this
>>
>>52534579
people who use unity are (100%) also retarded.
>>
>>52534578
you can have arbitrarily big values. you can keep making them bigger and bigger and when you do that an infinite number of times you will have infinitely big numbers. so, just because 'infinity' behaves unintuitively, it doesn't mean that C can't be turing-complete. SIZE_MAX can be made arbitrarily big, you will never exceed it.
>>
>>52534628
>Please tell me of a programming language that has a way to have an integer represent infinity.
I don't know of one
>>
>>52534617
>Why can't I go by that one
The currently recognised C standard by ISO is C11. Everything should be in terms of that.
>>
>>52534578

You can if the size of the integral type storing it is infinitely long. Nowhere in the C standard is there a requirement for SIZE_MAX to be finite, only that it be an integer.
>>
>>52534638
>>>/reddit/
>>
>>52534648
Standards don't mean shit if no one's using it.
>>
>>52534583
If you're working on an engine and have absolutely no game that you're building on it
you are not a game dev necessarily

>>52534579
If you think you can actually build a game in unity with nothing but built-in assets then you're very wrong. Unity can do almost nothing other than scene building without scripting.

>>52534639
>Using an engine that lets you deploy to pretty much every environment out there are retarded
Surely this is why activision and other major game companies are using unity for their mobile apps.
>>
>>52534639
You can tell who the undergrade dilettantes are because they're arguing over engines when they haven't even taken a graphics course.
>>
I hope to code a few projects so I actually have something tangible to show on my applications for a CS MSc [with an unrelated BA].
I have no idea which language I should start with, although I've got some textbooks on C and JS, because I have no idea what my first project should be. I don't know what I want to make really.
Can anyone give me a few ideas together with the language[s] best suited to the relevant projects?
>>
>>52534628
I have no idea

>>52534626
Nice try

>>52534617
>Why can't I go by that one
You can, but then you are a goalposting turd.
In reality C99 is the most adopted standard and C just implies the last standard. Even then, I gave you a way to do the same thing.
>>
>>52534665
>Standards don't mean shit if no one's using it.
Literally the default standard used in both GCC and Clang, the most relevant C compilers.
>>
>>52534665

It is literally the default for the current version of GCC and Clang.
>>
>fucking sperg doesn't know how infinity works
>>
>>52534665
They do actually, people program in terms of standards, not in terms of implementations.
>>
>>52534667
>If you're working on an engine and have absolutely no game that you're building on it
I don't think you can definitively say that this applies to anyone in AGDG.
>>
>>52534692
This
You can't have infinity in a unsigned integer in C, some people are just unable to comprehend something that simple.
>>
>>52534565
ah, that makes sense.
>>
>>52533639
I WANT TO MARRY HER
>>
>>52534696
LOL, GCC doesn't even fully implement the standard fully.
>>
>>52534711
yes you can if the implementation supports it, which the hypothetical implementation with infinite memory can
>>
>>52534716
It does (tip: the optional parts do not count)
>>
File: fuck you.jpg (53 KB, 1024x578) Image search: [Google]
fuck you.jpg
53 KB, 1024x578
>codeeval scores for C solutions are 1ms and 640b of memory usage in a worst case scenario
>site switches from valgrind to a docker based sandbox test system that purposefully inflates C scores
>hello world now runs in a minimum of 50ms and uses 140000 bytes of memory

Fucking web dev faggots man.
>>
>>52534687
Both actually don't fully support all of the C99 standard.
>>
>>52534716
It does though. There are just some optional annexes they (and glibc) haven't implemented.
>>
>>52534742
I know
>>
>>52534714
>her
>>
>>52534746
Prove it faggot
>>
>>52534746

But that doesn't matter. Only C11 matters.
>>
>>52533639
A++ thread image, saved for future use
>>
>>52534746
You don't need C99 support for C11
>>
>>52534676
Until you find an example of a problem that a Turing machine can solve, but a C program cannot, you are full of shit.

There is no mention of integer sizes (or types of any kind for that matter) in the definition, it is simply a language that is able to perform any Turing machine algorithm, given adequate hardware.

9/10 for getting so many replies, but you still fucked up in the end.
>>
>>52534776
C11 never matters.
>>
>>52534792
this
>>
>>52534792
>integer sizes
We are talking only about the lack of the ability for C to address infinite bytes.
>>
Failing at Java.

Spent about 6 hours on this one code. It's not long. But It's late at night and it's due for my CS prof in like 40 minutes so w/e.
>>
>>52534812
Post problem
>>
>>52534805
it can address infinite bytes if the implementation can address infinite bytes you insufferable sperg
>>
/dpt/ help, I've suddenly lost all motivation to program.
>>
>>52534798

@image
That's against the ruuruus mate.
>>
File: Sure is b here today.png (46 KB, 739x639) Image search: [Google]
Sure is b here today.png
46 KB, 739x639
>>52534798
>>
>>52534798
How would I tell the ones going along from the clueless fags to laugh at the proper ones?
>>
The C standard definitely doesn't stop you from addressing infinite bytes. The problem is that it can't express an infinite size, because it technically defines size_t as an unsigned integer type.
>>
>>52534181
>Writing in HTML and CSS is not programming

both are turing complete you autist, go back to shitposting on /sci/
>>
>>52534812
Ask us

>>52534817
Read the thread.
>>
>>52534823
inb4v&
>>
File: 1453335852955.png (72 KB, 963x704) Image search: [Google]
1453335852955.png
72 KB, 963x704
>java
>not even once
>>
>>52534805
Give an example, specifically, where that prevents a C program from running a Turing machine program.

As always, we're fucking waiting.
>>
>>52534830
So is Magic The Gathering.
Still not programming.
>>
>>52534840
That's C#, idiot.
>>
>>52534181
>Software Alchemist

Fucking kek
>>
>>52534833
>Read the thread.
i have read the fucking thread. you're just an insufferable delusional dunning-kruger mount stupid sperg who doesn't know what mathematicians mean when they talk about infinities.
>>
File: vaccine.png (112 KB, 1151x790) Image search: [Google]
vaccine.png
112 KB, 1151x790
just wrote my own gtk widget for this
>>
>>52534828

An unsigned integer type, but not necessarily a finite unsigned integer type.
>>
>>52534830
I tried saying this and they got buttmad anon watch out
>>
I propose a new type
uintInf_t
>>
>>52534846
Not too far from C#
>>
In C++, are negative numbers false? I thought anything greater than 0 was true, and anything less than or equal to zero is false.
>>
>>52534704
There was graphicsenginedev and voxeldev
>>
>>52534860
non-zero values are true
>>
>>52534852
but GTK is shit
3 is the worst version and you're a faggot
go kill yourself
>>
>>52534852
Good job
Can you flip it to dark theme in the Gtk Inspector so I can see how it looks?
>>
>>52534667
There are tons of other such engines. The reason unity is dogshit is that it has garbage performance. Expect your game which should be able to work fine on 15 years old hardware to struggle on hardware not made in the past 2 years. Professional and indie games alike have the exact same issue no matter what so it's clearly an engine problem, not a widespread coincidence.
>>
>>52534860
non-zero is true
>>
>>52534851
We are talking about the C standard, not what integers are in mathematics.

>>52534855
Read the standard.
>>
>>52534828
>The C standard definitely doesn't stop you from addressing infinite bytes.
>The problem is that it can't express an infinite size
Well would you look at that, something in the C standard that stops you from addressing infinite bytes.
>>
>>52534861
That's really descriptive.
>>
>>52534669
The amount of projection is hilarious in this post.
>>
File: dark.png (88 KB, 1151x750) Image search: [Google]
dark.png
88 KB, 1151x750
>>52534874
it's awesome

>>52534875
i have a setting for this
>>
>>52534881
if a theoretical machine has """"""""infinite"""""""" memory you don't think it can address it? it it can't, then it doesn't really have """"""""infinite"""""""" usable memory now does it?
>>
>>52534876
>Professional and indie games alike have the exact same issue no matter what so it's clearly an engine problem, not a widespread coincidence.
and yet they continue to use it because the massive benefits outweigh the downsides
It doesn't matter how efficiently your game can run if it lacks features that people want or has a development cycle of four years.
>>
>>52534898
>awesome
maybe if you like cock up your ass
>>
>>52534881

I have read the standard. Nowhere is a requirement mentioned that SIZE_MAX must be a finite integer.
>>
>>52534669
My graphics course had me do horrible modern OpenGl stuff in C++ without a single word about unity.
>>
>>52534737
sizeof (struct {size_t a, b;}) > sizeof (size_t)
Are you claiming that infinity > infinity anon?
>>
>>52534898
It's so awesome that it still hasn't fixed the bug where tabs stop working at random on most system (you can't click them, they start working the same as window borders). That bug has been a thing since 3.0.0 alpha.
>>
>>52534846
Honestly who can tell the difference they're both shitty meme languages
>>
>>52534885
Only if you had to allocate the space for the address using something like malloc(sizeof(void *)).

Though I have a feeling that you can't get around that, at some point or another.
>>
>>52534910
>and yet they continue to use it because the massive benefits outweigh the downsides
>there are people who believe this
Guess we should use windows instead of linux. Beats by dre are the best. Avatar is the best movie ever made. Do you love the marvelous artform that is
>>
>>52534919
can you reproduce it? there's a bug tracker for these kinds of things https://bugzilla.gnome.org/
>>
>>52534914
We talked about it before.

>>52534899
I think you are totally missing the topic. This is about C not being Turing-complete.
>>
>>52534933
>earlyposting
T-thanks 4chan
>wubwub
>>
>>52534933
You can go on and on all you want but at the end of the day industry professionals are using it for a reason and they're making billions off of it.
>>
>>52534918
idiot

if this means anything at all it just shows that the the hypothetical machine with infinite memory can't exist. it's as boring a contradiction as the one that "proves" the halting problem. it doesn't tell us anything interesting about the C programming language.
>>
>>52534936
To which you still haven't provided an example to show a single case where C cannot run a program, whose equivalent algorithm would run on a Turing machine.

But please, keep shitposting.
>>
>>52534947
No, industry professionals are not using it.
>>
>>52534936
it IS turing-complete in any sensible sense of the word you fucking shitsperg.
>>
>>52534935
There are already several entries for this bug.
>>
>>52534955
>if this means anything at all it just shows that the the hypothetical machine with infinite memory can't exist
No, it shows us things about C, not the machine itself.

>>52534971
Read the thread.
>>
>>52534959
Yeah they are. I don't want to take the time to make an exhaustive list, but off the top of my head the clan wars app is made using it, as is the new skylanders game.
>>
>>52534798
https://archive.rebeccablacktech.com/g/thread/52533639#p52534798
>>
>>52534986
kill yourself.
>>
>>52534899
> if a theoretical machine has "infinite" memory
A TM has "unbounded" memory.

The computational model doesn't require that it has infinite tape, only that it has enough tape that it never reaches either end during the course of the computation. This results in a model that is sufficient for any computation.

Infinite computations aren't even theoretically possible. Even if you had infinite tape, they'd never terminate, and the requirement for the computation to terminate is fairly explicit in most definitions of "computable".
>>
>>52534989
>indies are pros pls belib
Typical agdg retards. I bet you think toady is a master programmer god and not a complete hack, too.
>>
>>52535005
>clan wars
Clan wars is the /call of duty/ companion app. Skylanders is made by Activision.
You're talking out of your ass.
>>
>>52534992
made you look :^)
>>
>>52535001
Loosing the argument?
>>
>>52535002
so what if the implementation has an unbounded SIZE_MAX?
>>
>>52535005
assuming the clan wars he's talking about are the call of duty ones, you're full of shit
https://www.callofduty.com/advancedwarfare/app
>>
>>52534920
>they're both shitty meme languages

&:^)
>>
>>52535033
It can't.
>>
>>52535026
i have already explicitly refuted the central point but your shitty sperg ass simply refuses to listen and i will not waste more time on you thank you

nice troll though
>>
>>52535047
He is right you racemixer
>>
>>52535048
why can't it?
>>
>>52535048

Why can't it?
>>
>>52535026
>I'm better than one guy in a thread, therefore I think I'm right even though 52 posters disagree with everything I'm saying
>Loosing
>(You)

That'll drop you down to 8/10, still not a bad score.
>>
>>52535048
It could in the sense of making SIZE_MAX dependent on the program being compiled.
So if SIZE_MAX needs to be VERY LARGE NUMBER + 20 it just sets it to it.
>>
>>52535056
>>52535057
>>52535074
IT'S OVER

SPERGFAG IS FINISHED AND BANKRUPT

B T F O
T
F
O
>>
>>52535054
>racemixer

You say that like it's a bad thing/.
Thread replies: 255
Thread images: 28

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.