« first day (674 days earlier)      last day (4290 days later) » 

9:02 PM
One of the biggest problems with space travel is that it's not easy to "land" on anything.
 
Bye, all. It's past 1 AM, my mental abilities (the few that I possess) are declining. Need sleep.
 
Sure there are plenty of objects in space that you can mine. But chances are the difference in velocity are too large to land without crashing.
 
@Mysticial that and takeoff is expensive
 
sbi
@Mysticial Wasn't there a company recently which got into the news with their goal to mine asteroids because they managed to make some well-known technology freaks invest in them?
 
Not to mention that when you approach a planet, it's gravity will accelerate you towards it.
 
9:03 PM
@sbi yes
 
@sbi Yeah, I heard about that. Asteroids don't have much gravity so it solves one of the problems.
 
@Mysticial Crashing however..
 
There's a reason why it takes 7 years to travel to Mercury and only 9 months to get to Mars.
 
It's the hyperspace bypasses.
 
It takes more energy to travel to Mercury than it does to leave the solar system.
 
9:06 PM
I was very sad when I read "Earth Unaware" (Ender's game series), and the aliens had to "vent" energy the they were gathering for acceleration because they wanted to brake instead. :( Windmills don't work that way!
 
And it takes even more energy to get to Mercury and match its orbital velocity to either land or get into orbit.
 
@MooingDuck no no no, don't tell me about it. I don't want to even know how bad it is
 
I can't figure out why "Shadows in Flight" (enders game series) won't be released on kindle until a year after publication, when "Earth Unaware" was released on Kindle right away.
 
GGG
I had no idea that series was still alive
 
9:12 PM
@GGG there's only been stort stories/comics/novellets since 2005 :(
UNTIL NOW
 
GGG
hmm interesting
I think I read the first two back in the 80s
never read the third one
...or any of the others
 
Why doesn't std::string has an integer overload that'll convert the integer to a string?
 
The Ender's Game series (sometimes called Enderverse or the Ender saga) is a series of science fiction books by Orson Scott Card. The series started with the novelette "Ender's Game", which was later expanded into the novel Ender's Game. It currently consists of eleven novels, twelve short stories, and 47 comic issues. The first two novels in the series, Ender's Game and Speaker for the Dead, each won both the Hugo and Nebula Awards, and were among the most influential science fiction novels of the 1980s. The series is set in a future where mankind is facing annihilation by an aggressive ...
 
Java does...
 
@Mysticial because that would be confusing
 
9:13 PM
@MooingDuck with?
 
@Mysticial Why doesn't std::cout << std::string(1) print a 1?
 
@MooingDuck So it's confusion with the char overload?
 
Why does std::string(314159) work and std::string(3.14159) have errors?
@Mysticial there is no char overload, and I don't think it would help if there was.
 
@MooingDuck I actually don't see a reason why they both can't be overloaded to work. Java has no problems with it.
 
GGG
it could
 
9:16 PM
@Mysticial Actually, no. Java has some weird magic with +.
 
@Mysticial You can always call to_string.
 
@Mysticial locale I think was the issue.
 
@MooingDuck ah................. good point
 
@Mysticial You were thinking about C#.
 
@EtiennedeMartel I think the context was multicharacter literals. which to_string doesn't handle.
 
GGG
9:17 PM
@MooingDuck you mean like, should 1.1 be "1.1" or "1,1" ?
 
@EtiennedeMartel I don't know any C#. But in Java you can turn almost anything into a string and 90% of the time it actually makes sense.
 
In C++ you can too
boost::lexical_cast can turn almost anything into a string
 
Hello :)
 
@JohannesSchaub-litb And it didn't make it into C++11 because?
 
because it only requires 2 angle brackets
 
GGG
9:19 PM
lol
 
lol
 
@Mysticial Sure, either with the + hack or with the appropriate utility method.
 
@Mysticial There is std::stoi and friends.
 
^ is that new in C++11?
 
9:20 PM
Yes.
 
(std::stoi I mean)
 
@DeadMG Ah, C++11. That's why I haven't heard of them.
 
@Mysticial Yeah, stop whinning and upgrade already.
 
lol
 
@JohannesSchaub-litb also fails on multicharacter literals though, doens't it
@GGG yes
 
GGG
9:21 PM
are you just trying to avoid using a stringstream or what
 
stoi is for making ints out of strings.
It's to_string for strings out of ints.
 
@GGG origional context was multicharacter literals I believe
 
@GGG No, but it stringstream seems a bit bulky.
 
I feel like to_string is going to be overused, and we should have done something that could handle locales a little better.
from what I've seen, it's almost like most coders go out of their way to not localize stuff :(
 
why was it not called itos
they have stoi. why stoi and to_string
that's so weird
 
9:25 PM
@litb to_string is not only for ints.
 
+1^
 
@RadekSlupik so?
 
Though I agree to_int would be more appropriate.
 
lexical_cast was the better name. :/ worked well with templates in both directions.
 
@RadekSlupik they can still provide a forwarding function called itos
 
9:27 PM
template<class T>
void myfunc(T t) {
    auto s = lexical_cast<std::string>(t);
    auto a = lexical_cast<T>(s);
}
 
cast<T>(U u) which randomly chooses a cast operator or lexical_cast.
 
wtf.. I just googled "pluto escape velocity":

745.6 miles/s (1,200 km/s)
Pluto, Escape velocity
Hide details
Is this accurate? Yes - No
fuck no...
 
W|A > Google
 
1,200 km/s is more than the galactic escape velocity...
 
9:28 PM
@RadekSlupik "randomly"?
 
wtf is Google smoking
 
@MooingDuck yeah, with std::random_device.
 
@MooingDuck remember you can now read __TIME__ at compile time...
 
@Mysticial: lol
 
serves for a nice "randomness" xD
 
9:29 PM
@Mysticial Wolfram Alpha claims it's 1270 m/s.
So, Google probably fucked up their units.
 
@EtiennedeMartel good point
 
you know
 
@Mysticial Seems so.
 
@DeadMG I know.
 
I'm actually really excited for Diablo 3 1.04
 
9:30 PM
http://nssdc.gsfc.nasa.gov/planetary/factsheet/plutofact.html Escape velocity (km/s) 1.2
http://wiki.answers.com/Q/What_is_the_escape_velocity_of_Pluto It is 894.96mi/hr and 0.2486mi/sec
 
it doesn't tell the pluto escape velocity in google here
what do i need to do?
 
@JohannesSchaub-litb Satanic rituals.
 
Fap.
 
hm
@DeadMG can you introduce me into this?
 
Yay. Two correct answers < 5 seconds
 
9:31 PM
@JohannesSchaub-litb They probably pulled it as soon as I said it wasn't accurate.
 
@DeadMG The one with tthe 100 new levels?
 
@JohannesSchaub-litb google.com/…
 
@litb it's just writing C++.
 
@JohannesSchaub-litb You have not fapped before?
 
It's some sort of an AI system for answering questions.
no they didn't
screenie in a sec
 
9:32 PM
@Mysticial it shows "1,200". perhaps because i'm in germany, it uses comma to mean the decimal point
 
Commas for decimal points must die.
 
wow google is way more clever than i thought
 
They are impossible to make tuples with.
 
i wonder why it needs that accurate input strings
 
You would need a different separator. T_T
 
9:33 PM
why can't it read "earth circumference" like "earth's circumference"
oh wait it does
 
I managed to repro it on my other machine:
 
lmao
 
why doesn't it do it for plutos foo velocity
 
@Mysticial pink?
 
9:34 PM
@Mystical nice color scheme.
 
It also told me that, I marked it as inaccurate
maybe it doesn't anymore
 
@MooingDuck It's my benchmarking machine. No it's not my main machine.
 
lol Mystical pink
3
 
@Mysticial suuuuure
 
@Papergay stop stealing accounts.
 
9:34 PM
@Mysticial It's your goddamn fugly machine.
 
Ooh, pinkophobia.
 
with three extra lashes of "OH MY GOD THE UGLIES" and just a pinch of "MY EYES, THE GOGGLES, THEY DO NOTHING"
 
OK, seeing his avatar i'm not surprised of the pink
 
What about mine?
 
This isn't the first time posted screenies on that machine. Why didn't you bash me before? :P
 
9:36 PM
@Mysticial probably distracted/busy
 
Pink is a nice color.
 
i personally like violet
 
I run black and purple on my main machine.
 
but pink is girly
 
Blueeeeee
 
9:36 PM
Octarine.
 
wait, I have three things on the staboard!
 
I like black, purple, pink, red, orange and white. Blue and yellow and green are disgusting.
 
>:(
nothing disgusting about green, yellow, or blue :(
 
They are ugly, especially green.
Green looks like plants, but I prefer bacon.
 
9:38 PM
lol
 
I've got 6+ machines. The themes are I run are: black, purple, red, blue, cyan, brown, pink
 
What is the best way to enter a huge list of strings into C++
 
you canot enter things "into c++"
 
@MohamedAhmedNabil What do you mean, "enter"?
 
@Mohammed with a function that reads a huge list of strings.
 
9:38 PM
And, yeah, what litb said.
 
I wanna make a hangman game
 
@MohamedAhmedNabil text file
 
i recommend picking the strings f /usr/share/dict
 
So i need to enter a huge amount of words for the computer to randomly slect one
@MooingDuck fstream?
 
@MohamedAhmedNabil /usr/share/dict on linux, or a custom dictionary file for portable.
 
9:39 PM
btw, @Mysticial, what is your avatar from?
 
@MohamedAhmedNabil yup
 
vector<string> s; string ss; while(getline(std::cin, ss)) s.push_back(std::move(ss));
 
@Mohammed use FILE and read it into a std::list<char const*> using std::gets.
 
@MooingDuck it seems complicated
 
@MohamedAhmedNabil: One does not simply enter a list of strings into C++...
 
9:40 PM
@Abyx Kuroyukihime from Accel World.
 
@RadekSlupik come again??
 
What?
 
hmm i guess that std::move will decrease performance?
 
The only thing i know is to make a string array
 
typedef std::istream_iterator<std::string> iiter;
std::ifstream dict("dictionary.txt");
std::vector<std::string> words(iiter(dict), iiter());
//or similar, I prob have syntax errors
 
9:40 PM
i have limited knowledge
 
I already came a few hours ago. Not in the mood anymore to fap.
 
char const *arr[] = { "foo", "bar" };
 
@RadekSlupik You're not helping.
 
@R.MartinhoFernandes what do you think? would it be better without the std::move ?
 
@Mysticial ah... it's on-going. didn't seen yet)
 
9:41 PM
@RMartinhoFernandes I know.
 
omg :D I dont understand a word
 
@RadekSlupik Are you on mobile?
 
so
 
The only thing i know is that fstream is used to get a text file thats it
 
time to get le hacking on clang
 
9:41 PM
ok guys thanks, time to hit the books
 
make your own compiler
hacking with clang is lame
 
Load the CLR, call into C#
 
@Mohammed use std::getline in while loop on an std::ofstream.
 
easy :P
 
@Robot yes.
Oh fuck I mean ifstream not ofstream.
 
9:42 PM
It seems the mobile version of chat doesn't put the . on plinks to me, then (and thus doesn't plink). You should report a bug.
 
@R.MartinhoFernandes I need to enter everything manually.
 
@RadekSlupik ok ofstream and stuff like that is in the next chapter of the book
 
make a tiny bootloader, use int 9h to watch keyboard buffer (note: it is usually limited to 16 chars so don't be slow) and store it anywhere on the free store. There should be plenty available
 
@R.MartinhoFernandes i stopped using the mobile chat of SO. its AJAX traffic is enormous
it seems like it's eating megabytes per minute
 
@JohannesSchaub-litb Yeah I noticed that once when I was traveling in Germany
 
9:43 PM
@JohannesSchaub-litb: File a bug?
 
i fear they flag it as "works as designed"
 
@litb lol my friend had tethering on vacation on his phone and I used it to chat here.
 
not sure whether it's a bug
 
lol
 
i would like other people to confirm before opening a bug
perhaps it's just something with my phone...
 
9:44 PM
I'd call it a bug, but your provider might call it a feature...
 
@MohamedAhmedNabil ideone.com/G0lZG
 
Chat should use ØMQ, not AJAX requests.
 
@MooingDuck thanks but i dont understand a thing
@MooingDuck i didnt learn fstream or vector or iterator yet
 
argh
 
sup G
 
9:45 PM
@JohannesSchaub-litb Dunno. With the move you'll be reallocating the string for every line, and possibly include resizings. Without the move you have the copies into the vector, but they don't imply any extra resizing, and the memory allocated into ss can be reused. It certainly warrants a profiling session.
 
why is it that if you want to get clang's source, you have to go through a bunch of arbitrary command line bullshit?
 
@MohamedAhmedNabil well, learn about vector. The rest you can just copy-paste for now
 
@MooingDuck ok
@MooingDuck gotta go learn now:D although fstream seems complicated like hell
 
@MohamedAhmedNabil: Yup, welcome to C++, where "hello world" uses operator overloading along with ADL to actually work, and they make it look like it's supposed to be obvious.
 
@DeadMG You mean, svn checkout?
 
9:46 PM
@DeadMG you can browse ViewVC on the website. Otherwise just use Subversion to check out clang.
 
@RadekSlupik That's what I'm trying to do.
 
You can do tha from TortoiseSVN if you really want.
 
@JohannesSchaub-litb Mmm not as bad as you make it seem:
Apr 20 at 10:31, by sehe
@sbi alas that's not in the schedule and it ll be rather busy weekend regardless. Oh and te chat appears to consume roughly 200kb per 10 minutes :(
 
@MohamedAhmedNabil what I showed you is not the normal way to use fstream. But it's a very fast way in only two lines so... :D
 
@R.MartinhoFernandes I'm trying that too.
 
9:47 PM
^ Although it might have worsened
 
but it didn't work
 
@MooingDuck fstream so far is the hardest thing i have seen
 
Just do svn checkout http://... on the command line.
 
@sehe hmm
@sehe it seemed to be more for me
 
and, of course, they don't provide instructions for using tortoise SVN, only random commandline commands which might or might not do what I'm looking for
 
9:47 PM
perhaps i was doing something weird
 
gtg now :D
 
Cheers
 
they should just publish an executable which installs all the dependencies and checks the code out for you.
 
@DeadMG @StackedCrooked has scripts for that, IIRC.
The only dependency clang needs is LLVM.
 
and SVN and one of the infinite versions of some GNU grep bullshit and CMake and Python (but hope you didn't download the latest version like a sane person!) and...
 
9:51 PM
Python only for test cases.
grep is not needed.
 
their getting started page clearly indicates otherwise.
 
I don't understand how people can work without the command line.
 
it sucks.
 
@DeadMG it is not needed for compiling clang, nor for checking it out.
At least, I never had to invoke it myself directly.
Though I don't understand how people can live without grep.
 
one of the infinite tools that I neither need nor care about probably invokes it somewhere
 
9:52 PM
@RadekSlupik I don't even use grep. :)
 
I use it so fucking often.
 
now I need to figure out which of these bits of source code I need
 
@RadekSlupik I'm also on Windows. Visual Studio's right-click -> "go to definition" works as wonders.
 
@DeadMG what are you going to do with clang?
 
@RadekSlupik For everything. Often followed by | gvim - so I can weed out some more with :g/foo/d, :g/stuff/m$ and :'<,'>sort u. Oh wait...
 
9:54 PM
@Mystical that doesn't work on stdout. Any sane IDE has go to definition.
 
Ell
hi guys
 
well, I intend to invoke it to link to C++ libraries and compile C++ source code
 
I can't disagree :P
 
@Mysticial Right click? Seriously? Works wonders? Anything that requires a popup menu sucks donkey cock for that
Use ^B, Alt-F7, F12 etc. (the latter is the VS default, IIRC, the former two are ReSharper)
 
9:55 PM
so what I really need is "Parse file. Get llvm::Function*/llvm::Variable*/whatever for identifier" kind of thing.
 
@sehe Anything that requires the keyboard sucks donkey cock for that.
 
@Mysticial Really?! I'm speechless.
 
Am I'm the only mouse person in the room?
 
@DeadMG Sema allows you to semantically analyze the code. CodeGen does the LLVM stuff.
 
no
 
sbi
9:56 PM
@Mysticial Yes. We're programmers, not designers.
 
@Mysticial The speed at which I navigate my (and other) codebases is such that the mouse would melt because from overheating
 
Or should I say: Am I the only programmer who's a mouse person?
 
/// CreateLLVMCodeGen - Create a CodeGenerator instance.
/// It is the responsibility of the caller to call delete on
/// the allocated CodeGenerator instance.
y u no unique_ptr
 
@DeadMG because clang is older than C++11.
 
@sbi I don't get it... :(
 
9:58 PM
@Mysticial: I don't mind the mouse, but I go keyboard usually
 
@Mehrdad I'm almost entirely mouse. I don't even alt-tab...
 
It's like saying "France y u no tasty food." They are simply not that highly developed yet.
 
:O
 
@Mysticial it's sad that alt tab is broken in windows 7
 

« first day (674 days earlier)      last day (4290 days later) »