« first day (3865 days earlier)      last day (1067 days later) » 

12:00 AM
@Agent_A Depending on exactly what parts of that you want to emphasize, the answer could be "because nobody's presented a good proposal to the committee", or "because Java's BigInteger is horribly designed, and no sane person would make a big integer in C++ that ugly and clumsy."
 
12:21 AM
That having been said, if you want a big integer class in C++, there are quite a few options available. Personally, I'm rather fond of NTL, by Victor Shoup.
 
 
1 hour later…
1:25 AM
@sehe this was rough, I played out the opening and took 2 pieces :-|
 
 
4 hours later…
5:00 AM
Name[0]=Name[0]&0x5f; Can Someone Explain Me How Does This Convert The Character To Its Capital Form Literally I Ain't Do Much With HEX So No Idea
 
@Agent_A the difference between A (0b01000001) and a (0b01100001) is that 3rd largest bit, so that code applies a bitmask 0x5f(0b01011111) to get rid of that 1
you can check an ascii-table to verify the same goes for the other letters too, but is clearly broken for non-letter ascii symbols like "@[]^_~", numbers, space, etc. So you probably should have a range-check before applying that
 
 
5 hours later…
10:15 AM
hi
 
@ScarletAmaranth Yeah. Moral of the story: I don't know what to do in some (most?) openings and then I blunder like it's a blitz game (or worse). Maybe we should do some moderate time controlled thing?
 
Can arrange something a'la 10+5?
 
@Morwenn lo
 
lofi is the best right
 
10:33 AM
Not my cup of tea, really. It's fun. But not for long
 
I like it when I'm working
 
11:12 AM
I saw that
 
Me too.
The status of Jerusalem is disputed in both international law and diplomatic practice, with both the Israelis and Palestinians claiming Jerusalem as their capital city. The dispute has been described as "one of the most intractable issues in the Israel–Palestine conflict", with conflicting claims to sovereignty over the city or parts of it, and access to its holy sites. The main dispute revolves around the legal status of East Jerusalem and especially the Old City of Jerusalem, while broader agreement exists regarding future Israeli presence in West Jerusalem in accordance with Israel's int...
Am I am the only one find this fun to read?
I tried to find Palestine on google map, there is none. Google - the misinformtation provider.
 
I'm about as conceited about that as I am about the rest of the conflicts in the middle east. Shit's all fucked up and I'm not going to do anything about it, so I just don't think about it. Just like I don't think about the handful of terrorist attacks in Baghdad seemingly every week.
 
You don't need to.
With that said it's fun to watch who sides with who and catch some of the f***ing liars.
Incompetence is one thing, purposely giving out misleading information is another.
Year 2021, I can no longer find a search engine that I can depend on. How sad, only if this freaking world could stop regressing!!!
 
11:56 AM
Man, not having contact with other humans for so long and then visiting again really gave me the worst cold I've had in the last decade or so. Since Tuesday it went the whole spectrum. First throat, then cough/lungs, then back up with a runny nose.
Maybe we'll get some really neat mRNA vaccine cocktails out of this whole covid disaster, so we'll finally have something prevantative against the common cold
 
We have harvested about 30kg of sweet potatoes on the farm. Tomorrow, for the first time in my life, I will go to the grocery stores and ask if they are willing to act as our retailers.
There are about 300kg of sweet potatoes over all.
This is some whole new experience for me.
 
Do you have a couple franchised or coop style supermarkets, your best shot is probably with those
 
Telkitty as a part time farmer ...
 
one of the franchised ones here sometimes sell quail eggs from local farmers
 
@PeterT I would imagine it's hard to become a supplier for them, probably would go for smaller grocery stores first.
 
12:10 PM
true, but I meant like franchised as compared to wholly owned and operated. I guess it depends on the franchise contract restrictions on how much latitude they have. Most smaller towns around here don't have many completely independent supermarkets
 
@Morwenn That was the idea :)
 
There are many grocery stores/supermarkets/fruit+vege markets around. The limit is the thickness of my skin :p My agriculture sales experience is limited.
 
12:59 PM
Small chicken, mini tractor, tiny farming area - how to become a micro farmer - Telkitty™
 
1:38 PM
Hey, guys I want to contribute to STL is there any possible way to contribute to it any kind of open source etc?
 
@Agent_A there's libstdc++, libc++ and microsofts STL implementation, all open source
they are all just implementations of the official c++ standard, so if you want to add new features and not just implementations then you need to go to the C++ comittee and make a proposal
 
@PeterT can I write em just using pure Cpp? Or I would have to learn assembly
 
those libraries mostly implement the part that's written in C++, the parts that need compiler support are mostly called via "__buildin_xyz()" functions in most implementations
 
Thanks @PeterT I'll check it out
 
https://github.com/microsoft/STL
https://github.com/llvm/llvm-project/tree/main/libcxx
https://github.com/gcc-mirror/gcc/tree/master/libstdc%2B%2B-v3
 
1:45 PM
Hey @PeterT I'm thinking to make a function which takes a string of equation and returns the solution for the equation is there any sort of function already there?
It'll be useful for runtime inputs
 
nope, like I said if you want to add new functionality then you need make a proposal to the C++ standard comitee
 
@PeterT Through mail? I'm an high school student is there any kind of age criteria?
 
often times people make a full implementation first and put it in boost or so. But I have to be honest an expression parsing/ equation DSL does not sound to me like something that should be in the standard library
 
2:29 PM
Why can't we run a for loop directly inside a class why such so?
 
@Agent_A directly inside the class definition? When would you want that code to run?
 
class Foo{
for(int i=0;i<5;i++){}
};
This As An Example
Why does it gives error? There might be some specific reason for that
And I'm pretty sure they'll run as soon as the instance is great
 
I wish someone would write a book covering the fundamentals of such things..
 
if you want code to run when an instance is created you put it in a constructor, but this sounds like a question for chat.stackoverflow.com/rooms/116940/c-questions-and-answers
 
Yeah @PeterT I know I could use a constructor but there might be any reason why is it restricted
 
2:38 PM
well would you imagine the code running before the constructor then? then none of the data members would be initialized
 
Ok got that
 
2:55 PM
@PeterT since when you were into c++?
 
I don't know when to count, the first time I wrote hello world, the time I actually studied it from a book. Probably somewhere between 11-14 years ago
 
 
8 hours later…
10:59 PM
@TelKitty best of luck for today...
 
I'm trying to remember the name of this benchmarking software for C++ code. It's a GUI interface, and shows color-coded "hotspots" (based on how much time is spent "in" that line, as I recall). For the life of me I can't think of the name of it, or find it. Anyone know what it is?
Found it! "perf"
 

« first day (3865 days earlier)      last day (1067 days later) »