News for hackers. Stuff that matters.
Re:A Brainfuck interpreter inside a single printf statement by Sir_Cmpwn on Wednesday December 20, 2017 @04:45PM (#15974124)
Not sure who spit in your frosted flakes this morning. The other code is support code that sets up a runtime environment of sorts, and the actual interpretation of the input brainfuck happens in a single printf statement.
Re:A Brainfuck interpreter inside a single printf statement by cdancette on Wednesday December 20, 2017 @06:14PM (#15974763)
Would it work with just this printf statement and all the other code removed?

Edit : why the downvotes? This is a real question, I'm didn't get why they were used for here.

Re:A Brainfuck interpreter inside a single printf statement by Sir_Cmpwn on Wednesday December 20, 2017 @10:01PM (#15976059)
Would any other brainfuck compiler work without libc? Without the kernel? Without x86 microcode? This question has no meaning, in my opinion. What's important is that the printf statement is doing the logical work to calculate the next state of the machine.
Re:A Brainfuck interpreter inside a single printf statement by cdancette on Thursday December 21, 2017 @06:59AM (#15978169)
I see what you mean. I don't know C, so I had no idea why the printf was doing all the work after looking at the code. I'm just wondering what all those other lines are doing.
Re:A Brainfuck interpreter inside a single printf statement by _sdegutis on Wednesday December 20, 2017 @07:10PM (#15975155)
Will it work with just all the other code, and the printf statement removed?
Re:A Brainfuck interpreter inside a single printf statement by tim333 on Wednesday December 20, 2017 @09:57PM (#15976038)
Not wanting to be negative but I can't figure which of the 330 lines of code is the single printf. The only one I found was

printf("Time elapsed...

on line 236 of the C code. I presume that isn't it. Any ideas?

Re:A Brainfuck interpreter inside a single printf statement by Sir_Cmpwn on Wednesday December 20, 2017 @10:02PM (#15976061)
Re:A Brainfuck interpreter inside a single printf statement by tim333 on Friday December 22, 2017 @02:15AM (#15985789)
Ta