« first day (2659 days earlier)      last day (829 days later) » 

1:59 PM
I love break people mind saying in a way C is OOP
 
 
2 hours later…
4:28 PM
@Stargateur my understanding of oop is it's about how you structure your thoughts in code. I've yet to see a language that completely prevents the use of oop concepts.
 
 
2 hours later…
6:14 PM
> Error("invalid type: string \"990\", expected u32"
 
yes
 
do I correctly understand that means that the string contains both " as characters?
 
random guess, in json "990" != 990
 
 
2 hours later…
8:42 PM
@Stargateur JavaScript wants a word with you
:)
 
@E_net4thecurator "true" == true
> false
 
well, almost sane behaviour here
 
no the sane and only acceptable behavior is "error: this op don't make sense"
 
9:11 PM
So, always use === and !==
 
 
1 hour later…
10:14 PM
Is there a way to find out what the size of a HashMap and its contents will be?
 
10:46 PM
No
 
:-(
 
@Stargateur in my case it's a struct with several maps from Go, which I suppose translates to a HashMap in Rust, but I'm wondering what the difference in memory allocation and lookup time would be if I were to just use a Vec
I'm trying to write a benchmark for it and check it out with some tools, while the answer for others here I suppose might be obvious (?) :-)
Some key information, it's at most twenty items, e.g. HashMap<&str, u8>.
 
well hashmap is wonderfull for find item, vec is wonderfull for everyelse
 
Yeah, that's also the question I have for the person that designed this :-)
If it can be a Vec that'd be great
 

« first day (2659 days earlier)      last day (829 days later) »