« first day (3405 days earlier)      last day (1535 days later) » 

11:02 AM
How long does it take to update the image after changing it?
 
I would say an hour
 
sometimes a bit more, sometimes a bit less
 
Ugh, there seem to be few good comprehensive resources for deep diving into C++ for C# developers. I don't want something too specific, but also not "this is how we write a for loop".
Anyone run into a good one?
 
there is fred...
 
11:11 AM
@DKDhilip lel
 
> C++ for Java programmers
https://www.youtube.com/watch?v=tPKKh3TLQpw - Value semantics vs. Reference semantics
https://www.youtube.com/watch?v=38dzERNhZl0 - Pass by value vs. Pass by reference
https://www.youtube.com/watch?v=YyqOKCQTDps - Destructors and RAII for automatic, deterministic resource release
 
\o/
 
might be a bit too basic for you tho...
 
do you even java
hehe
 
but you should give that last one a go at least
 
11:14 AM
ok
 
RAII is quite a thing when you come from C# or Java
 
mr5
@AvnerShahar-Kashtan yay! r u joining C++ <lounge> room now? :(
 
@AvnerShahar-Kashtan although... he only started with it just 1.5 months ago, so no big series yet
 
@HéctorÁlvarez Hmpf, video. I'll try them out.
Thanks.
@mr5 We'll see.
 
mr5
Why C++ though? Why not Rust?
 
11:17 AM
well... I dont have any other resources :D
but fred spams them in the Java chat room
so...
 
@mr5 Because there are 20 years' worth of C++ code, tools, services, libraries and experience here.
 
but I still think it could help, even if you dont like the pace... or audio
 
@HéctorÁlvarez I'll check them out.
 
mr5
avnir::cout << "goodbye C#" <<avnir::endl;
 
oh yes, "::", ".", "->", "<<"
I love C++ so much /s
 
11:28 AM
I'm sure these will all become invisible pretty quickly.
 
I just dont really like it
I dont care if something is direct access, single dispatch or static access
I just want the damn member
if the compiler can figure it out and I have no problems understanding the code, I should not have to write any more code to make it work
 
2041898 messages/s
2141543 messages/s
2159483 messages/s
2014757 messages/s
2058030 messages/s
2056402 messages/s
 
yay, more messages random numbers
 
Finally 2M quest is done
lol
 
I still have no idea what the numbers mean tho
 
11:31 AM
mean DK have a powerful machine, others desnt matter
 
UDP packets received per second
 
did you delete 2 million messages per second?
 
mr5
It means 2M numbers
 
lol
And guess what, it is done in C#
 
what else would you use?
 
11:33 AM
so you're saying it parses udp requests at 2 per microsecond?
 
Receive only
Only Socket and UdpClient are used
 
well the trick is to parse it too :P
it's easy enough to throw it into a circular buffer
 
For my workload is quite simple
 
looks at BitBlock
 
Just increase the atomic counter as fast as possible
 
11:34 AM
yep, my parser can probably parse those 2 million messages per second :D
it parsed a formula of 12 million nodes in 5 seconds... so...
(do not ask me why I have a formula of 12 million nodes tho)
 
But why? :P
 
it's a lot easier to parse something when you know exactly from what byte to what byte you can find every value
udp requests could have additional fields and you'd have to parse those or at least ignore them properly
 
I think for some other tasks, I would just manually serialize and then MemoryMarshal.Cast
 
What happens when I tell my program to write something to memory space 0x03?
 
@Neil they are expressions
with different implementations, with different sizes
for example, a AdditionExpression, SubtractionExpression, MultiplicationExpression, etc
 
11:38 AM
Well...it's dinner time
 
then you were using threading?
 
Come back later
 
each of them having two children both of type Expression
@Neil I dont think so
 
@Squirrelkiller all memory addresses are translated to a memory space by the operating system
 
it wasnt json tho
 
11:39 AM
so it wouldn't be literal memory address 0x03, but 0x03 + some offset determined at launch
 
binary data
 
you'd be writing the memory occupied by your own program, whatever that might entail
@HéctorÁlvarez little hard to believe then
 
its similar to protobuf
you define some schemas of models and then parse some byte array or binary stream into a runtime object
 
But I wanna write to 0x03
 
@Squirrelkiller you can't without writing your own operating system
 
11:41 AM
the parsers are generated based on the schema, which know exactly how to expect the data being received
therefor, some optimizations can be done
if you compare that to json deserialization for example, you have no such options
 
Guess I have to write some C++ then :/
 
if you dont want to know what it will actually do, sure.
 
any ideas how to get the Keys from a Dictionary?
 
dict.Keys
 
@HéctorÁlvarez If I were to give you a string where the first byte tells you how many fields there are, and then each successive field is read as follows: next byte indicates how large the field is, and then followed by that many bytes containing the actual value, and then try to parse as many of these per second, you wouldn't be able to obtain 2.4 million imho
 
11:45 AM
^
 
2.4 million per second
at least
 
well... it is ofcourse also based on the machine that runs it and what else it is running, etc
but that is just what the result was on our server
 
isnt that like 1000 cpu cycles per parse? ezpz
 
doesn't depend if it can't exceed that limit regardless :P
 
System.Dynamic.ExpandoObject does not contain a definition for 'Keys'
whats up with that?
 
11:47 AM
what limit?
@hazmatsuit that is not a dictionary
 
limit of the machine itself
 
ezpz:o
:o
 
so how do i get keys from expandoobject?
 
If I ask you to write a program that spits out one bitcoin per second, it doesn't depend on what is being run at the moment, it can't do it, simply put.
 
I will please request you try to use @wietlol to talk to him
 
11:48 AM
Uhhh why are you even using that
That is...dangerous
 
@Neil keep in mind that the average size of each object was 6 bytes
reading the data is no problem
 
ah ok, that seems more reasonable
 
creating 2 million objects is no problem
(just created 2 million new objects in 25ms... not sure if I get fooled by the compiler optimizations tho)
 
:|
 
Do you have a swarm of threadrippers or what
 
11:51 AM
and the parsers only need the first byte (in some cases it could be more, but in my case, it wasnt) to understand the entire structure of the object
at which point, they delegate the reading to the right parser for that structure
 
no creating is not the problem
 
the generated models are immutable tho, so I had to make a builder for each model as well... which the parser would use
 
@Squirrelkiller why dangerous?
 
@hazmatsuit As far as I know, you can't. The problem with dynamic/ExpandoObject is: It's basically Javascript. You have to know exactly what is in there.
 
but I then kind of removed the builder for local variables instead :D
because it is still generated code
 
11:53 AM
You can't really...run queries or whatever.
 
okay got it
 
If you know it's a set of key value pairs, better use a dictionary
 
but dictionary returns expanoobject
 
Dictionary is a dictionary. You can get keys, you can check if certain keys are there or not, you can check for values.
ExpandoObject is for use with the dynamic type.
You can just put stuff in there, and read stuff from it, and the compiler wont complain ever.
If you try to read something that isn't there, it will crash at runtime only.
 
@hazmatsuit where do you get the instance from?
 
11:56 AM
i use IDictionary<string, object>
 
What do you instantiate?
 
i get a query response from postgres db, and it saves that in IDictionary
what i really need to do is to create a DataTable from that dictionary, so for that id need to loop through keys and assign them as column names in my DataTable
 
Use of ExpandoObject: dotnetfiddle.net/mnKEJC
 
@Squirrelkiller
ill try that
 
An IDictionary actually has .Keys, so I'm not sure where your problem lies
Also it turns out: ExpandoObject can do .Keys
 
12:07 PM
thats an interesting syntax "dict.Keys"
without the semicolon
doesnt work for me
 
That is C# interactive
not your project file
 
12:19 PM
System.Dynamic.ExpandoObject dict = new System.Dynamic.ExpandoObject();
var keys = ((IDictionary<string, object>) dict).Keys;
While ExpandoObject implement IDictionary<string, object> this cast should always valid
Not sure on .Keys , if ExpandoObject given access, then it will be ok
 
@nyconing that one worked. i wonder why i couldnt find this syntax anywhere else on the internet
 
hmmm.. maybe because less people will having their time with the weird class ExpandoObject
 
whats a better alternative for expandoobject?
 
@hazmatsuit Not using dynamic or expandoobject.
 
anyone ever feel they're at their least productive on Monday?
 
12:28 PM
I dont know, Im not complain about implement of ExpandoObject. Just say ExpandoObject is looking weird
 
@AvnerShahar-Kashtan Oh hey Avner how are you doing!
 
ExpandoObject makes sense for very specific circumstances. But here, you're treating it as a Dictionary<string,object> anyway, so why not just use a Dictionary<string,object>?
Or, in extreme cases, a JToken.
@HéctorÁlvarez Good, good. I am to understand that Hector is the new Squirrel?
 
No, it's just Wietlol surpassing himself
He's locked out of renaming for 1 month
 
public sealed class ExpandoObject : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,object>>, System.Collections.Generic.IDictionary<string,object>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>>, System.ComponentModel.INotifyPropertyChanged, System.Dynamic.IDynamicMetaObjectProvider
ExpandoObject implements too much interfaces, use .Keys directly is not possible, you must cast.
 
I saw Rob around this morning, but I didn't remember in time
 
12:31 PM
what? now who is real hector
oh real hector changed the avatar
 
Thanks for confusing us @HéctorÁlvarez
 
@RoelvanUden You're welcome
 
Hi folks, assume that I have a NET Standard shared project called Todo and UWP project called Todo.UWP. I am talking about Xamarin.Forms.

BOth projects have App and MainPage classes.

The MainPage of Todo.UWP invokes `LoadApplication(new Todo.App());`.
My question is: What is the App of Todo.UWP for?
 
IDK but after so much Todo I am humming the Pink Panther theme song.
 
@MoneyOrientedProgrammer Wait, you have a UI in your .NET Standard project and that works?
 
12:36 PM
@RoelvanUden Yes.
 
Howwy shit how
I need to look into this
 
If nobody can help me here, I will post a new question to the main site. :-)
 
is this a threat ?
;)
 
Only mr5 have maintains Xamarin.Forms projects, but he is not around
Yeah we help you here we cant get any benefits except your "thanks", people who answer you at stackoverflow can get both, reps and "thanks", you can also get reps when your question get upvoted, why not?
 
@HéctorÁlvarez I guess we can flag a message to spawn a bunch of mods :D
^ feel free to flag
 
12:48 PM
@HéctorÁlvarez there we go, risking my integrity
 
mod swat tream will appear
and kick in your door
 
> Scouts report a large army of mods are marching towards us.
wait... since all the mods left... flagging has no use any more
 
get ready
 
I posted my question above, feel free to answer. :-)
0
Q: Todo.App is used in Todo.UWP.MainPage but who invokes Todo.UWP.App?

Money Oriented ProgrammerI created a brand new Xamarin.Forms solution consisting of 2 projects: NET Standard shared project called Todo UWP project called Todo.UWP Both projects have App and MainPage classes. I only know that Todo.App is invoked in the Todo.UWP.MainPage as follows. LoadApplication(new Todo.App());...

 
stackoverflow lose many mods after SE mess
 
12:52 PM
and even more to corona
:(
j/k
;)
 
The mess that happened on the StackExchange company level
Mods being mistreated, Monica being let go, questions getting bullshit answers...
 
@Squirrelkiller Sad to know it.
 
and now where are the mods when we need them most?
 
nowhere to be found
 
@Rob halp us, save us from disaster
 
1:00 PM
!~shiba
 
thats TWO
 
who the hell is Rob?
 
go being a candidate while next moderator election
 
1:04 PM
wooof
 
Rob
@HéctorÁlvarez What did I miss?
 
HE IS HERE!
WE ARE SAVED!
 
\o/
 
@Rob I... kind of... accidentally... changed my name... which is quite inconvenient :D
3
 
madness
 
1:08 PM
but I cant change it back
until the 8th of march
 
Rob
Wanna go back to 'Wietlol'?
 
I heard mods can reset the thing
@Rob preferably :D
 
Rob
We can... for a price
 
I dont mind that much, but it is Hector that is mostly annoyed
 
Your soul in 7 years from now.
 
1:09 PM
is I bac?
I IS BAC!
 
+$100
 
Rob
It's done, you'll get the invoice in your inbox
 
wow
 
send the invoice to @HéctorÁlvarez
as I mentioned, I dont mind
 
is that diamond mod privilege?
 
Rob
1:09 PM
Hah
Yes it is
 
I remember back in the days, I used to send all incoming emails which contained the text "invoice" to the spam folder
I know when to expect an invoice... and it wont contain the actual text "invoice"
saved me like 10 mails per week
 
@Wietlol You just said "I'm old" in a roundabout way.
 
well... I am old
 
look at yourself, old man. you've got multiple chins 'cause you're old.
 
@RoelvanUden here's another: "e-mail.. does that stand for electronic mail?"
 
1:21 PM
@AlRey no. thats FAT ppl, not old ppl
 
I'm still in the "Denial and isolation" phase ;-)
@Neil Classic :D
 
implying there isn't a concerning ratio of people becoming fat with age ;P
 
yeah , some do
 
or idk maybe that's a boomer thing because boomers are the black sheep generation who gotta ruin everything /s
 
Ok zoomer.
 
1:34 PM
B-)
zoomers are supposedly gonna "bring things back to the way they were"...which concerns me just a little
specially given the rate of homophobia and bigotry in general amongst zoomers
 
so it goes generation x, generation y, millenials, and generation z?
or are millenials generation y?
 
yes they are
millennial was originally some derogatory name that just caught on despite gen-y not wanting anything to do with that name
 
yep, you get a name whether or not you like it
I don't think I technically qualify as generation x or generation y
 
maybe work for it ffs
 
I mean that was despite the fact that they were predominantly called gen-y for years
 
1:38 PM
:D
 
I'm sort of in between generations
 
I'm right on the edge between Y and Z...though I did know one guy who was 2 years younger than me who insisted he was a millennial because he was also a communist
 
ah.. that makes perfect sense /s
 
I'm tellin ya -- gen-z is gonna be just as "idgaf" as gen-x...and it's awesome
all we need is our version of Kurt Cobain and Beavis & Butthead and we're set
 
generation x turned out alright I suppose
I think they are the last generation to use watches which aren't smart watches these days
that said, I have a watch :)
 
1:50 PM
Bless you @Rob
 
all this namechanging avatarchanging is driving me nuts
stop it
 
Dafuq where'd the diamond go
 
Back to shadow realm
 
maybe I should change my name coz I had no idea I could do that
then become Freerey here, too
 
today garlic again
with noodles
yum yum
 
1:55 PM
I also ate carb-heavy stuff yesterday....so many regrets
 
I need to learn to properly recover from aerobic exercise
 
(btw, it is a sarcastic post)
 
yesterday, by Avner Shahar-Kashtan
This would be confusing if I didn't already find it impossible to distinguish y'all from one another.
 
hmm
atleast harry looks the same
 
V.7
1:59 PM
Hey there o/
 
didnt he rotate?
 
V.7
How would you call a website for students which is aimed at sport?
sportstudportal?
 
he rotates on the floor
 

« first day (3405 days earlier)      last day (1535 days later) »