« first day (673 days earlier)      last day (3643 days later) » 

22:00
I'm also wondering what language @SirPython's is in...
I have done a Java Brainfuck compiler myself, would like to continue work on it some day...
just imagine brainfuck unit tests!
or some kind of assertions that you can add in your code to make sure that the memory is what you think it is
I'm going to turn my image checking program into a unit test.
@Corbin I'm doing it in C
would allow more readable Brainfuck code!
@SirPython Y U NO JAVA!?
Also, I'm going to create a unit test for a few other parts of my code.
@SirPython ah. It's interesting how C seems to be a common choice for it.
22:02
user image
3
@SimonAndreForsberg I don't know JAVA that well. And, I hadn't even thought of doing it in Java.
0
Q: Fully Generic C++ Stack Implementation Without Lists, Arrays, or Vectors

DenmarkI'm trying to write a fully generic Stack in C++. I'm not sure if this is the best way to do this. Right now I know that the Pop method needs improvement since if T is a value type, returning a nullptr will cause a compiler error. Also, I'm pretty sure that this can be optimized in a few way...

@SirPython right. good point :) JAVA != Java. Hard to write Java in yellcase without changing meaning these days.
PUBLIC STATIC VOID MAIN(STRING[] ARGS) {
:-(
22:07
@Phrancis PUBLIC CLASS HELLOWORLD {
SYSTEM.OUT.PRINT.("CHALLENGE ACCEPTED");
Something like that :)
@rolfl I have a message from my friend Simon, he says: Great puns.
And when Simon, who is the king of puns around here, says great puns, then it is really a great pun.
gah, i'm going to have to actually unit test this or something
i can't figure out where in the world my bf interpreter is messed up :(
yes, it is a good idea to unit test BF-interpreters
I had some issues with getting the while-loops to work correctly. Especially when they were nested.
Can't even remember how I solved it.
22:15
> Is this the socially accepted correct way of doing this?
14
Q: Brainf**k Interpreter in Java

Simon André ForsbergDescription To increase the awareness of my previous brainfuck question, not only is there a bounty on it (Thanks, Mat's Mug) but here's also a brainfuck interpreter. This is written with Java 8 Class Summary (298 lines in 4 files, making a total of 7409 bytes) BrainF.java: Represents a Brai...

The main problem seems to be indenting, not semicolons... anyway, you might want to ask at Code Review instead. — Juhana 1 min ago
@SimonAndréForsberg At least it's better than LOLCODE, which your last message sort of looked like.
@SirPython true that
How does one make a strike through of some text?
22:19
@SirPython In chat? ---I have no idea---
thanks
i'll check someplace else
That's odd - it's not working on the post that I am writing.
Interesting set of valid tags for my new question:
0
Q: Do my Image Widths Exceed Limit?

Hosch250I needed to find whether any image's width at or higher than a certain directory folder exceeds a limit. Is this code a good way of doing this, or is there a way in which it can be improved? I ran it over at least a couple hundred images and several hundred other files contained in the main dir...

0
Q: Do my Image Widths Exceed Limit?

Hosch250I needed to find whether any image's width at or higher than a certain directory folder exceeds a limit. Is this code a good way of doing this, or is there a way in which it can be improved? I ran it over at least a couple hundred images and several hundred other files contained in the main dir...

Downvote, close, and delete all you want. I'm taking off now.
VRROOOOOMM!!!
Why would we do that? Seeya.
22:26
Just kidding. See you.
oh my god... finally figured it out. i'm an idiot and misremembered the exact semantics of for loops.
@SimonAndreForsberg How do I do the strike through on a normal post, rather than chat?
@SirPython <s>No clue.</s>
<s>You aren't a very helpful resource</s>
Thanks ;-)
22:32
@Corbin for (initialization; condition; iteration) ?
@SirPython <s>Many problems</s>
No problem ;)
for (i = don't remember; i < RTFM; i++) :D
@rolfl The motive seems to have been, according to at least one Swedish media site, a money debt.
I wonder how killing someone is going to help that person pay a money debt?
It's only going to help the next person not forget to pay a money debt...
It is likely that drugs seems to be involved here, somehow. Some of the involved people have been caught using.
Sounds like a loan shark, which could be a part of a small organized crime group.
22:36
@Phrancis I don't think it's about forgetting...
Either way, the two arrested are apparently "good friends" with the two murdered men. And, of course, they deny any involvement....
@SimonAndréForsberg Murders suck.
The woman was just at the wrong place at the wrong time.
Morning all
Morning, Australia!
@Mehrad Happy Monday Monking!
22:40
There's only been 11 cases of triple-murder during the whole 1900's in Sweden, so this is
Ouch
@Phrancis Ohhh yeahhh... it's the same jolly Monday we all know :)
@JeroenVannevel ^^
Thanks :) had a good start so far
aw, looks exactly like one of mine
22:42
@SimonAndréForsberg Were the murders back-to-back, or were they spread out across months/weeks?
@SirPython The night to saturday. Around 1-2 AM. All at once.
That's horrific. I'm glad you are okay.
I don't deal or do drugs, I don't owe bad people money, I'm alright.
Writing Brainfuck interpreters doesn't kill people. Drugs do.
Hello, @BarzinM!
22:46
Writing Brainfuck interpreters only kill braincells when you hit your head against the desk.
5
@SimonAndréForsberg I was literally going to say the same exact thing.
0
Q: A BrainF*ck-ish compiler in C

SirPython-ish because I removed the input functionality from the compiler I've been recently reading up on compilers and how they work. Although this doesn't use most of the things I've learned about (the lexical and parser things), I thought it would be fun to try create a brainf*ck compiler, rather th...

0
Q: Finding the Mth to last Element

LegatoChallenge: Write a program which determines the Mth to last element in a list. Specifications: The first argument is a path to a file. The file contains series of space delimited characters followed by an integer. The integer represents an index in the list (1-based), one per l...

Thanks, Santa! I've finally reached 1000 reputation points!
@SimonAndréForsberg i forgot that iteration is executed on the last iteration even when condition is about to be false. Kind of ironic since I always lean towards signed ints in reviews where reasonable since for (unsigned i = ...; i < 0; --i) is always a fun bug.
Congrats!
I'm having to write part of Unix's ls for an assignment, and I'm actually not doing too badly with it. I just need to figure out recursive listing.
22:52
@Corbin Would that not.. stop once i is less than zero?
@Jamal That sounds tough. I can't think of any other way to do it than to brute force file names until I get a match.
@Phrancis whoops! I put completely the wrong thing. I meant for (unsigned i = ...; i > 0; --i)
although... that's not right either
this is not a good day for me
If an unsigned value were to go beneath 0, what would happen? Would it go back up to it's maximum value?
it's implementation defined in C++
@SirPython I'm going to give it a try, while prepared to hit CTRL+C in case it ends up being an infinite loop.
22:54
but typically it wraps around to its max value
0
Q: Random class C++

Nathan CooperI've very new to C++, I've been working through a tutorial and got as far as std::rand(). I was immediately horrified and rushed out to see if I could implement this as a service. This is my (pretty basic) implementation in the style of .Net's System.Random. There are a number of things I'm unha...

It should have been for (unsigned i = ...; i >= 0; --i)
waited too late to edit that
@SimonAndreForsberg The compiler has been posted. I'm going to go take on the ultimate challenge and will report back with the results.
@SirPython Oooo nifty. I was expecting to to compile to C instead of asm.
22:59
@Corbin That was my original plan, but all my tests for that failed.
@Duga "shiny-octo-archer"? Really, @janos?
Hah, that's pretty ballsy to run into problems with C and think "eh, screw it, I'll compile to assembly instead."
@Corbin Compile to C? You compile C++ to C?
@SimonAndréForsberg nah. His brainfuck compiler targets assembly. I was just saying that I would have expected it to target C instead.
@Corbin Why would C code not target C?
Wait a minute...
23:03
i... don't think i understand what you're asking.
puts("xor di, di\n"...
I don't think I've yet understood how @SirPython's code works...
his brainfuck compiler compiles brainfuck into assembly
@SimonAndreForsberg Is that because I have not commented enough?
i saying exactly what you're saying (i think): i would expect a compiler written in C to output C
it goes a step lower though
23:05
@Legato I was actually typing an answer...
I'll un-delete it in a few.
now someone needs to make a C to brainfuck compiler.... that would be both incredible and horrifying
A comment made me realize I may have misunderstood an important detail.
@Corbin well, at first I didn't expect it to execute the code directly, but then I realized that oh, right, it is a compiler and not an interpreter. But yes, outputting C would be more obvious.
The problem was not what I expected, but I found an interpretation that seems to make sense, and your code passed my unit tests
so I think you can bring it back
23:07
@Corbin I'll get back to you on that when I've implemented the Java classes ArrayList and HashSet in Brainfuck.
@SimonAndreForsberg My compiler failed the ultimate test
on the other hand, looks like I just capped
so it's not the best time to post anymore
Santa says whoops?
I don't think I've ever capped on CR.
also, this still has just 4 votes in any direction:
4
A: Should comparisons of code snippets be closed as "not seeking a code review"?

nhgrifWhile I don't think we should completely remove comparative-review, I do think it might be a good idea to considerably narrow the scope on what's allowed under this tag. Comparative reviews should be written in the same language. While it's not impossible to be sitting on the fence about whic...

23:13
@SirPython ? What happened? :D
@SimonAndréForsberg My compiler does not support nested loops.
Although, my patience went when I had to go through and escape each < and >
I predict @janos is going to hit 40K in approximately 46 minutes.
:)
if I get an accept, I'm tempted to accept something, which will put me at precisely 40k
@SirPython That's not optimal. It's not many cool things you can do in BF without nested loops.
23:14
@SirPython wut
I'm equally tempted to go to bed already
How can something not support nested loops and call itself a compiler?
Sorry.
Wait; you can nest loops?
@janos I don't think you have any answer on any of my recent questions that I can accept. I think I have one answer on one of your questions somewhere that you can accept though :)
23:16
yup, that's the one I'd go for, btw
I was having a lot of trouble thinking of a way I could implement nested loops.
I'm not in a rush anyway
I don't understand this Stack Exchange site at all...
@nhgrif I don't either
@Phrancis I'm not sure why you're surprised. You can nest loops in SQL too.
23:18
@Phrancis for (x = 0; x < 10; x++) { for (y = 0; y < 10; y++) { echo "Sure you can!"; } }
I was mostly being cynical :D
@nhgrif It's a Stack Exchange site for Judaism? If there's one site I don't understand, it's definitely World Building...
WHILE SQLLoopsAreBad BEGIN
    WHILE NestingThemIsWorse BEGIN
        -- do something
    END
END
What's so strange about Mi Yodeya?
@SimonAndréForsberg The questions from that site that show up as hot network questions.
23:19
@nhgrif Luckily, nested loops are better in other languages.
@nhgrif SELECT "LOL" AS [Response];
@nhgrif I pinged you in chat earlier today about some possible typos on that meta answer.
0
Q: I sometimes loose the unique key property in my sort-by-value Map. How can I fix this?

dwakamI have a "sort by value" Map working, but occasionally it fails based on the sequence of insertions. I know where it fails, but I don't know what to do about it. If the second line in my test is commented out, it works. If that second line is there, I loose the property that my Map does not have ...

I like WorldBuilding. I don't know how good it is as an SE site... but it's hot network questions are always worth reading.
@CaptainObvious ORLY
23:23
@SimonAndréForsberg Has my answer convinced you?
@Legato I gotta go.... I finished typing my review (even there's no more question), I put it in this gist: gist.github.com/janosgyerik/9bc571fd122767f00f5d
TTGTB see you guys later
Night @janos !
@nhgrif Should I change my title to "A BrainF*ck-ish compiler-ish written in C"?
Good night Janos, I'll be reposting the question. No worries.
@nhgrif Not entirely, but you might be getting there.
23:26
What's missing>?
@SirPython How about "A BrainF*ck-ish compiler-ish written in C-ish"?
6 hours ago, by Simon André Forsberg
@nhgrif And with any sort of "which is better?" question, isn't this too broad? what is "this" here?
6 hours ago, by Simon André Forsberg
@nhgrif and snippet B as "Is this too abstract? How can I make it more abstract?" - s/more/less/ ?
0
Q: Print different results in Python a dictionary

TurfI'm writing a words unjumble program. Here is my code: sortedWords = {} with open("/Users/xxxx/Desktop/words.txt", "r") as f: for word in f: word = word.strip() sortFword = ''.join(sorted(word)) sortedWords.setdefault(sortFword,[]).append(word) while True: jumble ...

I fixed the typo.
@SimonAndréForsberg A question which asks simply "Which is better?" without defining any sort of criteria by which to guide answerers to judge the better piece of code.
@CaptainObvious The title would have been brilliant if it wasn't off-topic.
@nhgrif it is not clear in the question. I read that paragraph is the last paragraph under the So, what would make for a good comparative review? header, which talks a lot about a specific Java question that you consider a good such question. The transition from that Java question to that last paragraph is not clear.
> And with any sort of "which is better?" question, isn't this too broad? Isn't this not seeking a review? Without appropriate, specific guidelines, isn't this primarily opinion based (even moreso than an average Code Review question)? Isn't this potentially just seeking an explanation of the snippets?
that last part makes it sounds like you consider the Java question too broad.
23:36
Hadn't I already discussed how the Java question outlines specific guidelines by which the two snippets should be judged?
@nhgrif yes, I think you did, which makes the last part very confusing.
You're welcome to make an edit which clarifies.
I'm considering changing that answer to Community Wiki
I'm not sure how to edit when I'm not sure what precisely you mean.
The criteria by which the two codes should be compared should be clearly defined.
and it should be a criteria that's not a purely objective, measurable difference ("Which snippet runs faster?" should be off-topic)
That answer is more than I want to read..... hmmmm
23:48
@nhgrif Those two messages sums up your opinion about this very well, and makes your opinion much more clear. My suggestion: Remove some fluff from your answer and make it more concise.
Anyone is more than welcome to edit it into shape. I felt a long, overly-convincing answer would be especially important given how long we've basically had an anything-goes attitude toward
That Java question you referenced is a horrible example of a comparative review.
Really?
What's a good example?
Possibly a question better suited to codereview.stackexchange.com? — Benjamin James Drury 45 secs ago
@SimonAndréForsberg Whoa, how'd you rep cap so fast?
Oh, I see.
I didn't adjust my computer's time.
23:56
@nhgrif There is no good example, they all suck
It looked like 55 minutes after UTC midnight instead of 5 minutes before.
@rolfl lol... then, you at least agree with most of the top half of my post?
The more I think about comparative reviews, the more I feel they should be abandoned as a nice idea that failed, and should be consigned to /dev/null
@Hosch250 I haven't rep-capped in several days...
@SimonAndréForsberg Whoops, that was meant for @janos
23:58
@Hosch250 Is it Daylight Savings Time in U.S.?
There is nothing about a comparative review that can't be solved by having one question fro each 'option', and then treating each independently.
Yep, just started.
That is proof that I'm tired.
I could totally agree to completely eliminating comparative reviews as well...
@Hosch250 oh crap. I bet @Duga's reload message will be off by one hour for a few weeks. Sweden starts DST in 3 weeks.
@SimonAndréForsberg Yes. Started today. It's almost 8pm EDT, almost 7pm CDT for me.
23:59
@SimonAndréForsberg Duga is not set to UTC?
There's a lesson in "writing production quality code" in there.
@rolfl Duga uses the local time on my Linux box, which uses Swedish time (CET)

« first day (673 days earlier)      last day (3643 days later) »