« first day (2175 days earlier)      last day (2662 days later) » 

10:00 PM
I can compile stuff with dynamic with just csc program.cs
 
I mean, you're still using code from other libraries, right? They are simply libraries that are included with C#
 
nope
 
like, java.util?
 
nope, it just works
 
0
Q: Why is this extremely user unfriendly captcha, and how to SOLVE it?

user2190492I wanted to register at a (reasonably popular!) forum, and in the registration form, I got the following 'Captcha' challenge to solve... int i = 2; int h = "ZNC".hashCode() % 3000; int t = "WMN".hashCode() % 3000; for (int l = 0; l <= t; l++) i = (i ^ l) % h; return i; What is the retu...

 
10:02 PM
I kind of wish it didn't.... because it's horrendous... but oh well
 
I have no idea what you are saying, then
 
also, I can't find a backing class for it, which makes sense thinking about it
it's just horrendous...
yeah, it means you can use dynamic in your C# code without telling the compiler anything
 
oh, you're saying there's no Dynamic class
 
doesn't seem to be (I'd be delighted to be wrong)
 
is there not a Integer class?
 
10:04 PM
no
C# has good value type support
(e.g. proper generics)
so there is no need
 
right, but what happens if you try to get the class of a int?
 
it's not a class, it's a struct
 
struct in C++ means something to me, but not C#
 
but int a = 1; a.GetType() gives you System.Int32
(int is an alias for System.Int32)
 
oh, so there is a Integer class
 
10:06 PM
yeah, but it's not a class
C# makes a distinction
structs are like C++ structs
classes are like Java classes
structs have copy semantics, classes have reference semantics
 
so, dynamic a = 1; a.GetType()?
 
System.Int32
but that is then the runtime type
so it doesn't tell you anything about what dynamic means ;(
(and typeof(dynamic)doesn't compile)
 
what that means is that dynamic is compiler magic. There isn't some Dynamic class doing duck typing behind the scenes
 
it's runtime magic as well
 
@Qwerp-Derp How do conditions work in Logicode the information on the wiki appears to be wrong
 
10:09 PM
it's awful
I'm sure as far as most of C# is concerned it's just System.Object
(I imagine structs must be boxed)
(anything else would be stupid)
I'll take a mosey at the IL and see what it throws up
err, you might have been right actually, and it's just compilier magic
 
@Pavel, totally changed my language idea, lemme know if it's too much!
 
@VisualMelon what happens if you have a dynamic, assign it an int, then pass it to a function that takes an int?
 
it has to lookup the method in runtime
(by name)
wait, what am I talking about
that's nonsense
wait, no it isn't
yeah, because method can have overloads, it will presumably have to check those
 
what you are saying is feasible
and could work
 
yeah, but it will also not let you call a method it knows doesn't exist
 
10:14 PM
the other option is it just refuses to compile
and force you to cast it
 
no, it will look for a method that could take an int
(presumably it has the same overload rules as compiled code)
(... but since it's intended for different languages, who knows)
 
right, it'll look for a method with the same number of parameters without checking types
 
it will check types
 
and if one exists, then it'll compile with the method-searching code?
 
oh, I see, yes
wait.... the compiler seems to be checking the types if it can...
 
10:18 PM
that seems like a good warning?
like, if you assign it a string, then pass it to an int-taking function?
 
exactly, the compiler gets upset
I'll work out how to break it (it must be possible)
 
with a warning or error?
 
at which point it presumably just resigns (and let's it compile)
error
 
its easy to break it: put the assignment of a string into a loop which will always run, but the compiler doesn't know that
 
oh, ignore me
it's not checking them
 
10:20 PM
lol
 
Exception in linqPad just felt the same as compiler error
aah, I see milk asked this question, I am glad to see this
but yeah, the bottom line is that dynamic is an opt-in thing
we could have daft rules that say you are allowed to assume the arguments are dynamic
... but that's a can of worms I don't even want to think about opening
(and as he says, it doesn't work with pointers)
(actually, I'm not sure that's true, let me check)
(no, probably is...)
 
actually, assuming all types are dynamic seems like a position ripe for golfing
you can use parameters you are passed as intermediary variables
 
how do you mean exactly?
 
is there a fast way to check if a user is currently in TNB?
without looking for their icon
 
type @ and then filter?
 
10:28 PM
I thought that shows anyone who has recently been in the room
 
People seem to love pinging me at 5 AM regardless of if I'm here.
 
I meant currently in TNB
 
@Pavel
 
is that not synonymous with their icon being here?
(I don't know, I just assumed that)
actually, @ shows up Martin, but Icon doesn't, so clearly not
 
It depends. If you simply leave the tab open, your icon will still show and it will say you were seen X seconds ago. Chat can't really distinguish between quiet reading and sleeping in the adjacent room...
 
10:33 PM
I'm ok with either interpretation, I was just hoping to avoid scanning the icons, especially if I forget what the one I'm looking for looks like
 
@ATaco If that's a problem for you, maybe turn off notifications on your phone or something? :P
 
I like waking up in the middle of the night.
It makes my dreams more Vivid
 
@NathanMerrill to pre-empt the idea of assuming dynamic, I can't see anything strictly wrong with having the rule that an 'untyped' lambda is assumed to take dynamic parameters and return dynamic. Note that the behaviour may be different if the types are specified, though
... I really hope someone can find something wrong with assuming dynamic (beyond it being ugly as sin)
but I've yet to think of anything
 
I don't like the idea, simply because its C#
 
10:39 PM
ditto, if it was any other language I wouldn't care how convoluted and horrible it is ;)
 
its a typed language, and assuming things beyond the "typical use case" for golfing seems ridiculous
 
(except Java or C++, or F#, or any of the other languages I have some respect for)
if I work hard, maybe I can find something wrong with it
(none of this is helping with my deadline tomorrow, but I've still got over 12 hours to sort that out)
 
@ATaco what?
 
when you wake up in the middle of dreaming you remember them better
I do anyways
 
Waking up Mid-dream is a very efficient method of remembering it.
 
10:41 PM
and a very inefficient method of actually sleeping
 
You pinged me, what did you want to say?
 
I pinged you! Did you see my submission?
 
Uh, not yet.
 
I was telling you off about pinging me at 5AM.
 
10:42 PM
Alright, when you do, just let me know if I can use it or not :)
 
Could it reasonably be entered into tio?
 
Right forgot about that one
Maybe if I give Dennis a board?
 
Can't you get an Ardy Emulator?
 
Oh maybe, do they support lots of periferals?
 
Maybe?
 
10:45 PM
@redstarcoder A what now?
 
Or at least a few normal ones like dotmatrix displays and such
 
@Dennis Pavel said my language should be able to run on tio, it will be made specficially for the Arduino Mega2560
And certain periferals, the spec is very ... not done
 
Brb
 
@Pavel Threead Inputs are now a thing.
 
10:47 PM
I haven't actually seen the server, but I somehow doubt it's an Arduino...
 
Ah yes, that's why I was saying I could send you one
But if you haven't seen the server I doubt that'd help...
Unless the server company wanted to hook it up :)
 
You could send it to DO...
 
The nice people that host the TIO servers.
 
Ah, yeah they might be good sports! So @Pavel, it seems if I tried hard enough, I could potentially convince Digital Ocean to run the Arduino, and hook it up the Dennis's server. A strong maybe :D
(hopefully qualifies)
 
10:55 PM
@El'endiaStarman markov chains <3
 
just write an interpreter
nbd
 
@El'endiaStarman I just finished watching, it really has some great explanations!
 
@redstarcoder surely arduino simulators exist
 
Bounty Deployed.
 
@flawr just finished it. I like the rook challenge they gave
I'm guessing its 64 hops?
because every square is equally likely, and 1/(1/64) = 64?
 
11:17 PM
@redstarcoder you can take an arduino emulator and build it into your program.
 
build an arduino emulator into my program? I'm not 100% sure what you mean O:
Like distribute one with it?
 
@NathanMerrill yep that makes sense.
 
@Downgoat they must ... I'll Google that soon
 
Yeah
If you can pipe code to it
 
11:25 PM
Yeah I'm sure there must be an emulator that can run the code.
 
@MitchSchwartz For what it's worth, I do sympathize with your points. It's weird that there's so much pushback for giving rep via the wrong answers even though sometimes awful answers get boatloads of rep from votes and that's just accepted as something that happens.
 
Two wrongs don't make one right? :-)
 
Yes, I'd rather this be resolved by both situations being better than both being worse.
 
> 21 7.6% 8.8% node::ProcessTitleSetter(v8::Local<v8::Name>, v8::Local<v8::Value>, v8::PropertyCallbackInfo<void> const&)
apparently doing process.title = "myApp"; in node takes 20 ms
 

« first day (2175 days earlier)      last day (2662 days later) »