[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 / qst / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Home]
4Archive logo
/dpt/ Daily Programming THread
If images are not shown try to refresh the page. If you like this website, please disable any AdBlock software!

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

Thread replies: 322
Thread images: 28
File: dpt.jpg (198 KB, 720x720) Image search: [iqdb] [SauceNao] [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: [iqdb] [SauceNao] [Google]
1452549804494.png
901 KB, 690x460
>programming
>>
File: 1449761716956.jpg (170 KB, 436x624) Image search: [iqdb] [SauceNao] [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: [iqdb] [SauceNao] [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: [iqdb] [SauceNao] [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: [iqdb] [SauceNao] [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: [iqdb] [SauceNao] [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: [iqdb] [SauceNao] [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: [iqdb] [SauceNao] [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: [iqdb] [SauceNao] [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: [iqdb] [SauceNao] [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: [iqdb] [SauceNao] [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: [iqdb] [SauceNao] [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: [iqdb] [SauceNao] [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: [iqdb] [SauceNao] [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: [iqdb] [SauceNao] [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: [iqdb] [SauceNao] [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: [iqdb] [SauceNao] [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: [iqdb] [SauceNao] [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.
>>
>>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: [iqdb] [SauceNao] [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: [iqdb] [SauceNao] [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: [iqdb] [SauceNao] [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/.
>>
>>52535049
>i have already explicitly refuted the central point
Can't see it.

>>52535059
95% of the people using PCs have windows. Does that make it better somehow? Nope
>>
>>52533639
>not using C++
>>
>>52535107
i like the part where you ignore

>>52535056
>>52535057
>>52535074
>>
>>52535110
you know what is the sad thing man?
I know that butt,
>>
>>52535110
is that mal malloy or someone else?
>>
>>52535110

I partake in fat white ass from time to time.
>>
>>52535092
>>52535122
I can sense the butthurt from miles away. It feels like we are in Tumblr:
>lolol you din't reply in the first 5 minutes, u lose xDDD

>>52535056
>>52535057
Talked about it multiple times

>>52535074
Will think about it tomorrow, this seems not too bad. However it feels weird.
>>
>>52535135
Happens to the best of us
>>52535151
Sarah Big Butt
>>
>>52535161
k tard
>>
>>52535101
Race mixing is not bad per se, but whites and Japanese will certainly be gone first.

And some day humans will ALL be the same.
And the NWO plan will be complete.
>>
>>52535017
>being this butthurt about being TOLD
>>
>>52535101
Breeding a race horse with a donkey is a bad thing.

Breeding a champion dog with a mongrel is bad thing.
>>
>>52534756
T_T
>>
>>52535197
It's okay to be wrong, anon :^)
>>
>>52534674
What was your BA and what makes you believe you're qualified to pursue a MSc CS degree?

Asking because I'll probably be in a similar position one day.
>>
>>52535188
>japanese
don't they have nice immigration control and focus on building robots instead of importing shitniggers?
>>
$ ./maths
>def discrim(a,b,c) = b^2-4*a*c
>def quadpos(a,b,c) = ((0-b)+sqrt(discrim(a,b,c)))/(2*a)
>eval quadpos(2,2,0-10)
= 1.79129
>end

This could actually be kind of useful
>>
>>52535208
lol butthurt
>>
File: 1449409170768.jpg (53 KB, 907x718) Image search: [iqdb] [SauceNao] [Google]
1449409170768.jpg
53 KB, 907x718
>>52535169
Give me more of that, it excites me seeing you buttblasted.

Oh well
>>52535122
>>52535169
>>52535049
Your turn to give me an answer. See >>52535107
>>
Why do Jews want goyim to race mix?
>>
>>52535216
:^)
>>
>>52534989
so they made a shitty fucking app and a crappy toy commercial """"""""game"""""""" with mind-numbingly bad gameplay
>>
>>52535217
>Can't see it.
>implying this deserves a reply
SIZE_MAX can be unbounded since it's implementation defined you fucking shitter
>>
>>52535262
Ah, but they're still games, and they're still making millions
Just admit that you were wrong, and that there are more factors than pure efficiency at play. Actual designers aren't as autistic about performance as you are, and they make bank.
>>
>>52535275
>4chan is one person
unity is fucking shit and literally none of those agdg kids using it are making millions. a select few of them maybe made some decent money on some SHITTY steam greenlight game
>>
>>52535107
Please, continue to stall and not find an example of C failing as a Turing complete language.
>>
>>52535275
>it kinda work if all you're making is a 1980's-tier games with 1980's graphics that targets the latest, most powerful devices
>therefore it's a good engine
>unlike the bazillion engines that target even more platform than unity and can produce real graphically demanding games on low-end hardware without issues
>>
>>52535269
We know.

>>52535308
I am not searching for one nor I am going to bother with that.
>>
>>52535313
extraordinary claims require compelling evidence
>>
>>52535301
>unity is fucking shit
nah
>literally none of those agdg kids using it are making millions
They're indie developers, of course they aren't. Almost no indie devs make millions unless they're notch.
> a select few of them maybe made some decent money on some SHITTY steam greenlight game
Some of the games out of AGDG are pretty good. The fact of the matter is, unity works, it works (decently)well, and people produce good content with it and make money off of it. I'm sorry that this triggers you.

>>52535309
They're using it for a reason, anon. That reason is, it's easy to work with and preforms well. Sure, it's not a AAA engine, but that's not what the argument's about.
>>
>>52535313
>not going to bother posting anything that might actually back up my point, just more shitposting

Funny how you can't prove something that isn't true, huh.
>>
>>52535236
Pretty obvious.

1. The current race situation is not manageable and we need to move away from it. (protests every week, growth of blm movement, trump's popularity, race always a huge factor in presidential elections) The elites are worried that racial unrest will cause them to lose power.
2. Homogeneity is key to racial harmony, but genociding the darkskins (or the lightskins) is out of the question after the horrors of WWII.

That leaves race mixing as the only long term solution. Once the all races have mixed into a mulatto blend, homogeneity will be and stability will be achieved.
>>
>>52535328
kill yourself lmfao
>>
>>52535328
The reason is you can buy code fragments and assets off their store so you don't have to do any work to make something.
Unity is the opposite of performing well.
>>
>>52535328
>not using UE4

why is unity even trying anymore
>>
>>52535332
>>52535325
I did bother to back up my point, see all this thread - that C can't address infinite memory.
>>
>>52535352
just because you say something a lot doesn't make it true
>>
>>52535335
homogeneity would have been fine within each country if you hadn't stirred up all this shit with the mass immigration. have fun with all this chaos and economic stress throughout at least half your entire lifetime until it settles down again stupid kike
>>
>>52535352
Neither can the Turing Machine.
>>
>>52535347
This. UE4 is superior in every single way.
>>
File: unsightly.png (66 KB, 411x518) Image search: [iqdb] [SauceNao] [Google]
unsightly.png
66 KB, 411x518
>>52534918
>Are you claiming that infinity > infinity anon?
You do realize that there are provably different sizes of infinity. Actually, there's an infinite amount of sizes of infinity, starting at aleph null.

Look up Hilbert's Hotel if you don't believe me.
>>
>>52535352
K I L L Y O U R S E L F

you remind me of that fag CrowHater that shills the FPC stock. it's not a bad stock but what a fucking sperg
>>
>>52535377
Multiple arguments were given in this thread. But nice shitposting regardless.
>>
>>52533639

Anyone been able to cop a pi zero yet
>>
>>52535412
LIKE
>>
>>52535409
>aleph
>not omega
Recycle yourself, nigger.
>>
>>52535423
Like read the thread.
>>
>>52535416
what's with the rasp pi shit what are you even using them for
>>
>>52535409
for sets, not for integers
>>
>>52535335
But black gangs are always killing each other.
>>
>>52535378
Massive immigration was for a "good" reason - the elites want additional customers. If they can bring in 20 million immigrants, they have 20 million more people who can afford their product. The elite's goal for society is a huge class homogeneous, docile, lower-middle class customers. That way they can maximize their profits.
>>
>>52535438
Funding SJW agendas in a huge way.
>>
>>52535352
Could you back-pedal a little faster? We wanna give the folks a real good show when you crash!

Are you now claiming that >>52533934 was not you?
Because that is all anyone here is refuting, anyone without severe social disorders anyway.

Nobody cares about the specifics of memory address, not here and not today.
>>52533934 made a stupid claim, and we're all here to prove them wrong.

If you've got nothing to defend that claim, we can just happily accept they're a shitposting faggot and move along with the rest of the thread.
>>
>>52535473
>>52535473
>>52535473

NEW

>>52535473
>>52535473
>>52535473
>>
>>52535478
The plan was to prove that C is not turing complete since it can't address infinite bytes.
>>
>>52535431
No, you fuckbrain, omega is aleph 1. Aleph null is countably infinite, but omega is uncountable.

Nice try though.
>>
>>52535484
RIGHT ON 310

you did good
>>
>>52535438

it's a computer for 5 bucks with a 1 ghz clock.

it will connect to the internet, do everything an arduino can do, run a web browser, play videos, compile C, etc.
>>
>>52535517
That has nothing to do with the definition of Turing completeness.

Either find a definition that says a Turing complete language requires infinite byte addressing, or find an example that shows C cannot process a Turing machine algorithm.

Or just stop shitposting, your call.
>>
>>52535547
isn't it like $50+ or $150+ with accessories or something like that

seems like a kinda useless toy unless you have a specific application for it
>>
>>52535602
$5 with $30< accessories. lmao
>>
>>52535627
my phone has like a 2.2 GHz or something like that quad core cpu, 2 GB RAM and a beastly GPU (adreno 330). suck on it
>>
>>52535602

no

It's a given that you need a keyboard, monitor and mouse.

Also you must purchase an SD card, an HDMI cable, and a ethernet cable if you want to get the internet

But that is all negligible. Who the fuck considers the cost of cables when buying a computer.
>>
>>52535673
which isn't 5$ and doesn't run a usable os
>>
>>52534181
autism b8
>>
>>52534215
That looks pretty legit desu nice Photoshop.
Thread replies: 322
Thread images: 28
Thread DB ID: 448937



[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 / qst / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Search | Home]

[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 / qst / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Search | 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.
This is a 4chan archive - all of the shown content originated from that site. This means that 4Archive shows their content, archived. If you need information for a Poster - contact them.
If a post contains personal/copyrighted/illegal content, then use the post's [Report] link! If a post is not removed within 24h contact me at wtabusse@gmail.com with the post's information.