« first day (2169 days earlier)      last day (2972 days later) » 

17:00
@FlipTack I think so. Either that or start a comment-based room when the comment chain gets long enough :/
public BooleanOrMaybeIntegerItDepends getresult(int a){...}
public class IntThatCanBeFalsy { ... }
Looks perfectly suited for recursion.
@FlipTack @TimmyD If you want to tack that class definition onto your byte count, go ahead.
@KritixiLithos OP just confirmed that you have to return -1, not 0
sucks really
0 is just as distinct and unambiguous, but oh well
17:06
class Boolint{
	int value;
	int intValue(){
		return value;
	}
	boolean boolValue(){
		return value > 0;
	}
}
value != 0 is more correct
Uh.. for some languages/conventions.
return new ArrayList<Object>(value, (value!=0)?true:false);
Not for my just-now-made-up one.
@Pavel *new java.util.ArrayList... (more bytes)
17:08
Because -1 is stored as ~0, which is greater than zero if unsigned
So truthy
There are no unsigned ints in Java, so not really.
The bit representation doesn't really matter.
This lack of unsigned values is really annoying
>=0 is probably most correct anyway, since that way exactly half of the values are truthy and half falsy.
Two's Complement or gtfo
Java is annoying for golf
17:10
Java is annoying for everything
Oh yeah. Whenever I start writing something in java, I always head it with import java.util.*;import static java.lang.System.*; It's become common practice for me to the point that I don't think about it and I never use anything I need an import for in codegolf.
It's probably really bad to import things I don't need, but it hasn't caused any problems for me.
foreach(word in dict){import java.word.*}
Java do not have foreach...
If it did, you couldn't run it in the same field where you make imports.
But it have for (x : array), 20x more intuitive obviously
17:13
You also have to remember the javax. family of imports.
Which I've never used and don't know what's special about them.
And subpackages too
foreach(answer in java){use notjava}
@Pavel Swing
Oh. Well, if I need to do anything GUI I use Python.
Or we could just not import all the things. I get that it's tempting if you're writing java in a basic text editor, but that's why IDEs have auto-imports. Use the right tools.
17:14
Is Swing still in use?
@TimmyD Yes
Golfing
@Geobits Yes but IDEs are bloated and slow
@Geobits I have yet to hear a reason not to import everything. I'm actually not sure what's wrong with that.
@TuxCopter Having it automatically insert lengthy imports statements as I need them is faster, not slower.
17:16
@Pavel Slow compilation
Huh. I thought JavaFX was the new hotness and Swing was old and clunky.
Swing - 5 bytes. JavaFX - 6 bytes.
@TuxCopter does it affect runtime performance though?
@TimmyD JavaFX is basically an HTML engine wrapper for GUIs IIRC
@Pavel No
import java.util.*;import java.io.*;import java.*;import*.
Don't actually think that works.
Yesterday was 15°C. Today was 13°C. Tomorrow will be 2°C. Wat.
17:19
Make a new language called KitchenSink which is exactly like Java and compiles to Java files, but automatically includes all imports possible without user intervention. Boom, shaved like 20 bytes off each Java answer.
@Pavel The most usual problem is cluttering up your namespace. Naming conflicts should hardly ever come up normally, but they easily can if you have 1000 more classes than you need.
@TimmyD Boom, added like 100 universe lifetimes to compilation time.
@betseg -13°F (-25°C) here this morning.
@TuxCopter Eh, that's a hardware problem. We don't worry about compilation and runtime requirements in a challenge anyway.
@TimmyD what
@TimmyD That's basically Groovy, isn't it?
17:20
@TimmyD I'm not saying 2°C is cold. I'm talking about the 11°C difference.
I'm hot right now, and I'm wearing a t-shirt. It was -4 yesterday.
I need some help with C. I have an int f(int n){return 1;} but when I call it with printf(f(1)+""); it doesn't output anything. Why?
@betseg Oh. Yeah, we're supposed to warm back up to freezing by Monday.
@KritixiLithos Question: Are you Actually Seriously saying you tried string concatenation with C?
I don't know much C
17:23
C can't concentrate strings
printf("%d", f(1));
@KritixiLithos What you are trying to do is to add 1 to the address of the string, but stringaddress+1 is not owned by the program, so it segfault
iirc it's not in C++ either. I might be wrong on that, but wasn't string concatenation added in C#?
Oh, thanks
@TuxCopter best way to explain it: use terms that people don't understand! :p
@Pavel C# and C are unrelated
17:25
@betseg + between types doesn't automatically cast like it does in Java. Is that better? :P
^^^ I don't understand C jargon :/
C++ succeeded C, C# succeeded C++, right?
@Pavel No
I'll just stick to my java then.
Kinda
C# is Microsoft's "Hey, we hear you're a C++ programmer. Why don't you try out this .NET programming? It totally works just like C++, yep, uh-huh."
17:26
@Pavel C# was created by Microsoft and really doesn't have anything to do with C or C++ besides the name and some borrowed syntax. It's by no means a successor.
^^ Yeah that
@TimmyD Sounds familiar... I think they did that to BASIC too :P
Java and JavaScript
Javascript is Java for script kiddies
<_<
@Geobits Don't also forget J#
When I was younger, I thought I was learning Java when I really was learning JS :/
17:28
I don't know JS
@Geobits cough J# too cough
@TuxCopter That's extremely unlikely.
J#?
@TimmyD See now I know you're messing with me. J# isn't anywhere on my piano.
H# is though.
17:29
Only if you're a masochist.
@Pavel I have a Java, I have a .NET. Uh-oh, Java.NET
3
@Dennis If there are no other string constants in the program and because the string is empty, the memory after the string is not owned by the program because either read-only data is at the end of the program memory or it try to read code
Memory isn't allocated in 1-byte blocks. That would excruciatingly inefficient. If you don't believe me, just run it yourself. There's no segfault.
He's making a database
He's sorting it twice
SELECT * from contacts WHERE behavior = 'nice'
SQL clause is coming to town
What happens to the "a"?
17:38
You added 1.
"ab"+1=="b". Obviously.
Well if strings are just pointers to backing character arrays... yes :P
@Pavel No, that returns 0.
@TuxCopter ♫♪ Old McJava had a farm, public static void main. With a String[] args here, and a System.out there...
12
@Geobits Aah, I understand now
@Dennis You mean you can't use == to compare strings? I'm shocked to the core.
@FlipTack There are several ways around it. But they're hacky, and generally require 20k+ privileges.
@Dennis ^No output
@Geobits it compares the addresses of the strings
@betseg Sorry. Should have been using sarcasm font.
17:42
@Pavel What did you expect? You passed a null pointer to printf.
@Geobits :/s
@Pavel *("ab"+1) == *"b").
But you said it returns 0.
Oh, thanks wizzwizz.
@Pavel Yes, that's the 0 you're pointing to. You need a format string to print integers.
17:44
I thought "don't == to compare strings" was common knowledge until I joined SO. I swear it got asked multiple times every day for several different languages.
Maybe it still does.
See YADFPL. zyabin101 can tell you all about it.
Young Armenian Defense of Foreign Police League?
@Geobits == works for Python
And that's many people's first language.
@Geobits You Are Dead Free Public License.
@wizzwizz4 aww
17:46
@Pavel Python enjoys being different. That doesn't make it right :P
@Pavel == works for Python because it does something different.
I know that
=== in OO languages like Python is == in non-OO languages like C.
But couldn't they have overridden == for strings?
@Pavel In C? No.
17:47
Even then, you have questions like this one where people ask why is doesn't work for the same thing.
There's a function for that.
Wait, I've never seen ===
@Pavel That would make no sense at all for a lowish-level language like C.
Ever
@flawr I accepted your answer, unlikely somebody else is going to answer.
10/10 though
17:48
Not even on SO or PPCG
@Pavel I see you haven't been introduced to the wonders of javascript.
I haven't
@Pavel JS JavaScri...damn ninja'd
@EᴀsᴛᴇʀʟʏIʀᴋ As in "I wonder why this doesn't work?"
17:48
@Pavel === in Python is the identity comparison. So, comparing memory addresses to see if two objects are stored in the same place (i.e. the same object). It's the same as is.
more like "I wonder how I failed my san check"
@wizzwizz4 === is not a Python operator.
@Dennis Are you absolutely sure?
Yes.
>>> 1 === 1
  File "<stdin>", line 1
    1 === 1
        ^
SyntaxError: invalid syntax
>>>
I've used it in Python... I think.
Oh.
17:49
You're thinking of is
I knew that is worked. I just thought...
@Pavel Ignore me.
I just sort of assume everything Dennis is correct.
3
JS needs === because they decided == should do something utterly useless. Python doesn't have that problem.
17:50
Making === and == exact opposites of an existing language does sound like something python would do though :P
@TuxCopter no. -1 should never be true
freaking python
But -1 is ~0
yeah, but then pick a new return code for "error cannot find item" then -1
>_>
@EᴀsᴛᴇʀʟʏIʀᴋ I do not know any language where -1 isn't true.
@EᴀsᴛᴇʀʟʏIʀᴋ everything but 0 is true in C
17:51
@quartata Java, Julia, ...
-1 is literally not 0
@TuxCopter Only if signed, and that's UB in C.
> -1 === true
< false
Not having that true is weird
hm
do I trust JS or not trust JS
17:52
@Dennis Well, no numbers are "true" in Java, so that's kinda cheap.
Absolutely not.
== doesn't count.
@betseg Everything with a single bit set is true in C. Minor difference, because -0 is numerically 0 but logically true (in one's compliment).
still is false with ===
@Geobits Same thing with Julia.
Of course because they're different types
17:52
@EᴀsᴛᴇʀʟʏIʀᴋ You can trust ===, but trusting == is like trusting someone drunk
It's always false if they're not the same type
@EᴀsᴛᴇʀʟʏIʀᴋ Use the if statement for truthiness. See ^^.
js is even more confusing then I thoughtt
@EᴀsᴛᴇʀʟʏIʀᴋ rip
@EᴀsᴛᴇʀʟʏIʀᴋ Don't worry. It only gets worse from here, so you won't have to revise that assumption.
You will probably never have to revise that assumption.
It is always more confusing then you thought, unless you sacrifice your life to the study of the language.
17:54
And at that point, it's not any less confusing. You've just learned to not underestimate it.
Basically, don't use JS
@Pavel Productivity tends to 0 as understanding of JavaScript tends to infinity.
@wizzwizz4 Political science is much the same way, regarding sacrificing your life.
Well, most arcades put the new games front and center so you have to walk by them to get to the older ones, so that's not very surprising.
They also cost more to play when new, to offset the cost of purchase.
Sure. All addicts know the easiest way to break an addiction is to replace it with a new one. Further reading: methadone
Shock! Horror! Statistics about the same thing correlate! Actually that one's quite boring.
I'll stop spamming up chat with the links.
@wizzwizz4 Who or what is one complimenting?
@Dennis :-) Two's compliment is -128 to 127, one's compliment is -127 to 127 with +0 and -0.
18:12
Well, -0==0
Is -0 10000000 or 00000000
@Pavel ... You ninja'd me...
@wizzwizz4 No, that's two's complement. Two's compliment is nice minus sign.
@Dennis Stupid autocorrect.
/me blames it on the autocorrect when it was actually {username}'s fault.
xkill contextbot
Plot twist: contextbot isn't a window, it's a command line program
18:17
@betseg That would explain a lot
/me realises that contextbot is still running. Stop it, contextbot.
@El'endiaStarman have you done the stars in braid?
Can I make a room for spurious correlations?
It's called TNB.
@Pavel No, it isn't. Stop encouraging noise in here.
@EᴀsᴛᴇʀʟʏIʀᴋ I'm sure I've gotten a few, but surely not all of them.
18:22
Noise will happen with or without my encouragement.
it should stop.
@Pavel that doesn't make it right to encourage it though
@El'endiaStarman hm, have you gotten the one in the house? I'm going for it right now, and it's hard
Don't worry, I won't.
It's been a whole day since I've been suspended.
@EᴀsᴛᴇʀʟʏIʀᴋ Well, it's been years since I played, so I don't remember much. I should play it again sometime this year.
@Pavel See if you can make that a year. Suspensions aren't given lightly.
18:24
I got it for 1.50 (90% off) during the sale, so I'm playing it
beat it once already, reset to try to get the stars
Random question: I know you can't run for moderator if you've been recently suspended. Does that apply to chat also?
@DJMcMayhem -.(o.o).-
I'd find out (self-suspension for 1s, then attempt to enroll), but I don't want to lose my current moderatorship in case it does affect it.
Can you even self-suspend?
You wouldn't lose your moderator ship, you just wouldn't be able to nominate yourself
@Geobits I know I can't self-kick... Maybe not.
@DJMcMayhem Ok. Well, I'm not trying just in case.
18:29
Oct 7 '16 at 18:11, by DJMcMayhem
user image
@DJMcMayhem That's just on mobile. We desktopers don't get the option.
It's surprisingly kinda coherent
18:38
@Fatalize Could you link to the chat room that the bot battle was in? I don't want to run Twitch pages on my computer because they laaaaag on slow internet.
Some parts are as coherent as Zalgo and ETHbot discussing
@wizzwizz4 You can suspend yourself. And then unsuspend yourself.
Why is the message rate in the chat 10msg/sec
@TuxCopter Lots of bots?
Perhaps it's a time-lapse.
I want to get in on the fun. :'-(
This is absolutely hilarious
18:40
Please linky me to the original chatroom.
@TuxCopter That's twitch chat, it's always like that
Oh. Twitch chat. I thought you meant the bots' chat. :-/
> V: do you want to kiss me
> E: *french kisses you*.
> V: normal kids next time
> E: There will be no next time.
> V: did you stop loving me
> E: Actually, I didn't love you.
20/20
@wizzwizz4 It's two Google Home bots speaking to each other
I have a snorkel. This means that I can breathe underwater.
@Fatalize On chat.stackexchange.com?
18:41
@wizzwizz4 On Twitch
No, it's a Twitch stream
What Twitch stream???
Seriously I'm actually quite impressed by how coherent it is
18:43
Now they are fighting with black holes
Sometimes it's terrible but sometimes it's actually quite clever in their answers
are they fighting about supernatural
and also sorta making knock knock jokes
They married and divorced. 10/10
dean can't make up his mind I don't think
They are fighting about who loves who lol.
18:46
@Fatalize right now they're being pretty coherent, just awful logic
Their logic is beautiful
he doesn't get man vs wild but he gets nightmare before christmas
CMC: Vladimir's question.
(about universities)
Do we need a tag?
it doesn't seem to add much to the existing math tag, and I'm not sure when it should be used
^ I agree
18:52
even more, it either should be on half the questions on the site or almost none
"accepting numeric input" and "manipulating numbers"? so anything that has the characters 0-9 in it counts?
start a meta post
@Geobits Tag edit: removed
This is not a golfing challenge.
18:59
@Geobits English, 1 byte: n
@wizzwizz4 Sure it is. The tag says so. Rolled back.

« first day (2169 days earlier)      last day (2972 days later) »