« first day (412 days earlier)      last day (4761 days later) » 

03:01
Also, I missed something.
ok, this is starting to irritate me
the LLVM example "Hello World" from their website won't even compile
lol
#define TABLE_SIZE 100489 // must be a power of 2
5
however, thanks to my Advanced Hacking Skills™, I kerjiggered it and it wrks
@RMartinhoFernandes man, that's some real WinRAR right there
It's not even even!
(That sounds weird)
and the llvm-ld linker will produce .exe files
03:05
Everything sounds weird when you think about it.
@RMartinhoFernandes The fuck?
0
Q: segmentation fault accessing a private class variable

Benjamin#define TABLE_SIZE 100489 // must be a power of 2 typedef map<string,int> MAP_TYPE; typedef pair<string, int> PAIR_TYPE; class HashTable { public: //public functions HashTable(); ~HashTable(); int find(string); bool insert(string, i...

so
I need to produce LLVM IR, use llvm-as to convert it to bitcode, and then use llvm-ld to convert it to .exe
preferably, I'd find a way to do this in code rather than invoking them as external processes
@RMartinhoFernandes Man, I can't get enough of #defines for constants.
03:07
@DeadMG Compile llvm-as and llvm-ld as libraries, and rename their mains!
If you are new here, please read the newbie hints. Thank you.
21
I'm not new here. Shut up.
Woa, bold.
lols
03:09
It must be important.
CAPS IS CRUISE CONTROL FOR COOL
I'm TOP COOL.
llvm-ld actually does call gcc.
Can I get a non-migrating close vote here?
0
Q: learn C or C++ - best methods?

lollercoasterI want to learn computer vision using specifically C or C++. I am a pretty strong coder, but I'm used to high level languages like python, etc. To this end, I need to first learn the language. I don't want to jump right into image processing with a language I don't understand. I also learn best...

Sure, there you go.
03:11
And llvm-as is 3kB of code, most of which is argument parsing.
Also my CG class is ridiculous. I'm supposed to remember the coefficients to convert from RGB to YUV on paper.
my graphics class was like that
I mean, fuck that, who the hell does that.
It's not even silly. It's plain stupid.
Maybe I should be able to convert from RGB to HSV in memory, hurr durr?
Or CIE. This looks fun.
maybe you should be able to multiply IEE-754 64bit floating-point values in your head
pen and paper is for pussies
03:16
Real men do it with their blood.
I'm not even learning to that stupid test. Screw those points.
I don't have a swap file for crap like that. I need to preserve memory.
I'm looking through the source of llvm-ld
apparently, it just asks GCC to do it
0
A: segmentation fault accessing a private class variable

R. Martinho FernandesIn C++ class variables are best initialized in initialization lists: HashTable::HashTable() : v(TABLE_SIZE, MAP_TYPE()) // **here** {} std::vector has a constructor that takes a size and a default value, so you can just call that. In fact, since the default value to use is actually a map creat...

I had to post a no-nonsense answer.
03:17
Yeah, I said that 10 minutes ago.
kinda concerned, since I don't actually have GCC
7 mins ago, by Cat Plus Plus
llvm-ld actually does call gcc.
so I don't know how it works on my system
@CatPlusPlus Chat says 7.
@EtiennedeMartel sound like "blood music" by greg bear
03:18
@AlfPSteinbach Hmm, time to Google that.
Maybe you do have gcc.
Blood Music is a science fiction novel by Greg Bear (ISBN 0-7434-4496-5). It was originally published as a short story in 1983 in the American science fiction magazine Astounding Science Fiction, winning the 1983 Nebula Award for best novelette and the 1984 Hugo Award in the same category. Greg Bear published an expanded version in novel form in 1985. The completed novel was nominated for the Nebula Award in 1985 and for the Hugo, Campbell, and British Science Fiction Awards in 1986. Blood Music deals with themes including biotechnology, nanotechnology (including the grey goo hypothesis)...
I'm also concerned about how to distribute that
With the LLVM.
How was it distributed to you?
yes, but it doesn't actually call GCC
it asks Windows to find GCC, as in, it expects GCC to be installed separately
03:20
How did it work then?
You simply write "Prerequisites: GCC" and have other people worry about that.
I've no idea
but I want to ship an executable that says "Run this, and it works."
It's a development tool. Nobody expects it to do that.
03:20
Visual Studio does that
You mean the redistributable?
yeah
no, wait
I mean that when you install VS, then you install it, and then you run it, and it works
That's the C++ runtime.
@CatPlusPlus You're clearly out of touch with modern devs.
03:21
you don't have to dick around installing GCC
Modern devs are pussies.
Yeah, but LLVM is not an IDE. It's not even a compiler suite.
Visual Studio is huge enough, that you wouldn't even notice if it installed GCC.
It's a thing.
Besides, you can ship with GCC.
03:22
well, yes
but in order to do that, I'd have to find GCC
@CatPlusPlus It could even compile it on installation, and you wouldn't notice!
@RMartinhoFernandes It comes from the stars.
Haskell Platform ships two compilers and nobody complains.
@DeadMG On Windows? You'll need something like Cygwin or MinGW.
03:23
for all I know, LLVM uses only part of GCC
@EtiennedeMartel Apparently not
@CatPlusPlus It does?
Hell, three. GHC, gcc and g++.
or if I do, then CMake hid them from me
It thought you meant three Haskell compilers.
03:24
And binutils.
Yeah, it packs a shitload of shit.
christ, has nobody apart from Microsoft heard of shipping a complete product that performs a task?
@RMartinhoFernandes That's a lot of shit.
Also, you probably can just ship with binutils.
@DeadMG Er, Haskell Platform is a single installer.
03:25
And use ld for linking.
The Visual Studio installer packs a shitload of shit too.
Visual Studio has third party stuff in it, too.
yeah
@RMartinhoFernandes It's ridiculous.
Also, I'm not a modern dev? :( I feel old.
03:26
but they don't make you ship that stuff with every app you ship
@CatPlusPlus You use vim.
even the CRT, you just push "static link" and be done with i
I don't see how that relates to your compiler using GCC or binutils.
"vim" feels old.
03:27
You mean, programs compiled with WideC will have to ship GCC?
no, I mean that if I were to write a WideC compiler and ship it, I'd have to ship GCC too to make the linker work
which does not make me a happy bunny
Also, I would actually prefer if it shipped without GCC, even if it required it.
So? Just pack it in the installer.
so I'm packing a whole bunch of shit, most of which I don't even need, and I certainly don't understand
And provide a GCC-less version for those that are not pussies.
03:29
Visual Studio made you install Windows SDK not so long ago.
what if GCC starts crying on some end-user system? wtf am I gonna do then?
Nothing, it's not your problem.
@DeadMG Close as no-repro.
it most assuredly is my problem
that's my language that they are now not capable of using
that's the very definition of "my problem"
I don't know, has programmers really lost their ability to use tools and diagnose problems with them?
I could understand if it were an end-user app.
But it's a damn compiler.
03:31
it's not a question of ability
more that doing so is a total waste of time
Have some expectations.
@CatPlusPlus I think so.
if you download something, it should work
if it doesn't, people are going to find something that does
Next-next-next-I accept-next-done
@EtiennedeMartel "I accept" tends to come sooner.
03:32
Hm, yeah. Like after the first "next".
Early adopters will not have problems with compiler having issues.
"Hi, I'm the XXX installer. Next. Accept licence agreement. I accept. Next..."
Like, next-please surrender your firstborn child-next-next-next-done.
Hey, what about... Shipping your compiler with DRM!
@DeadMG You can certainly do that if you pack GCC in the installer.
they might not have problems, but I certainly do
03:33
First versions of Go barely worked, and people still used them.
I don't know of any significant userbase of Go even now
Well, Go probably lives because Google's behind it.
I've never seen a single Go question on SO, and only ever seen a couple of random discussions in here
And expect it'll be much different in your case? Lol. :P
03:34
well I'm certainly not going to handicap my chances by shipping the "spend-a-year-configuring-before-use" GCC
@DeadMG Maybe the language is so easy, no one needs help! :P
Hmm, about 500+ questions.
@DeadMG Oh, it's not that bad. Probably more like 11 months.
I'd rather rely on the Visual Studio linker
Right, the one you can't ship with your compiler.
Makes sense.
Woop-di-doo.
03:36
at least it actually tends to execute on the target machine
"Configuring before use GCC"? WTF are you guys talking about? I just drop the files into the folder and it works.
@DeadMG Legal won't let you.
@RMartinhoFernandes Hell if I know.
Anyway to overload static_cast?
Conversion operator is your best bet.
03:38
@Pubby Now I'm intrigued, why would you want to do that?
well if you're going to think of user defined conversions, also constructors that can be called with one arg
@EtiennedeMartel Need to have (foo*) use (foo*), but then static_cast isn't safe
Consider making it explicit.
I tried
03:39
however, strictly, I can convert LLVM IR to C
Can't convert pointers?
at that point, you could use whatever C compiler you want to compile the output
or visual studio
or, hilariously, possibly Clang :P
Oh, now I understand why that option in Xcode is called "LLVM-GCC"
03:41
So now, instead of shipping a couple-clicks installer, you're adding a "Prerequisites: compatible C compiler" to your release notes?
no
no, I'm not gonna do that
Ok, what are you going to do then?
I don't really know
I'd feel an awful lot better if I actually knew what LLVM did to make it work on my system
then I'd feel much better about knowing I could do that again
Probably shipped GCC.
nope
I checked
03:43
Build it again, fire Task Manager, and spy.
Procexp!
WinRAR
@CatPlusPlus Whatever you use instead of Task Manager.
TM sucks.
Yeah, I know.
I use Process Explorer too.
03:45
i started earlier today to write an answer to stackoverflow.com/questions/6471136/…
but it turned into a full-blown article
is there anyway i can save draft, say?
because i can't continue on that now
or I could just ask LLVM where it is
oh i'm stupid forget it
@AlfPSteinbach IME, it saves automatically.
it just occurred to me i could copy and save the raw text
Lazarus!
03:47
i have a flu on top of other things, plus
@AlfPSteinbach You're posting a blog article?
@CatPlusPlus that sounds like the song by the talker-singer what's his name?
@RMartinhoFernandes it was just the answer got so long
ok
why did one of the headers randomly not seem to make properly?
I actually think two-phase-initialization can be useful, but I stay away from it because the language doesn't support it.
I don't know of any language that does, btw.
Other than the experimental MIJava.
I hate make, and conf, and pretty much everything in that vein
03:50
Don't worry, everyone does.
huh new ui at utube
if the header failed to make
how did VS build llvm-ld?
How can a header fail to make?
A PCH?
I don't know
where there should be a header, there's just a make and inc file
instead of DataTypes.h, I have DataTypes.h.cmake and DataTypes.h.in
LLVM generates stuff.
03:53
but since llvm-ld depends on this header
Damn, I'm out of cookies! This can't be happening! How can I survive until the morning?
how did it get built?
@RMartinhoFernandes u must enable cookies
found it
for some reason, CMake dumped it in with the binaries
03:56
It's generated after all.
and it still won't build because I have an unresolved external reference
Speaking of compilers, Clang C++11 support is looking good.
this is why I don't trust this bullshit
it's just unreliable
03:58
@CatPlusPlus Is list initialization in?
Not yet.
But 3.1 might be the one that kills gcc.
I need that and constexpr.
04:01
@CatPlusPlus Cool.
Uses ugly coding conventions, but still.
ok
LLVM searches for the GCC path in the PATH variable, I think
04:19
ok
maybe it didn't come with GCC at all
maybe it just found my old Cygwin install
wtf
Windows won't let me delete it?
I'm the fucking administrator, my word is law
anyway
that would certainly explain a few things
I'm getting tired of linking to the book list.
> c:\dev\apps\mingw32\bin\../lib/gcc/i686-pc-mingw32/4.6.2/../../../../include/c++/4.6.2/cctype:89:11: error: '::isblank' has not been declared
The hell.
@CatPlusPlus Had that one.
04:28
Also, 10 years and they still haven't figured out how to normalise the path.
@CatPlusPlus Windows will eat anything...
@RMartinhoFernandes How to make it go away!
@CatPlusPlus Gimme a moment, I need to be afk for a couple minutes.
anyway
I could probably use some sleep
I'm back. I don't remember exactly what I did to fix it.
I do remember fixing it by hacking the standard headers, but I have since then replaced those with 4.7's.
So either this was fixed or I found a non-hackish solution.
Can't remember.
I know my pissed off rant is somewhere in chat, but chat search seems broken.
It keeps giving me back cats workin on my problemz.
04:46
Oh, I'm a genius. I've removed MinGW along with the entire carefully crafted Oz installation I need for stupid class.
Well, there goes another afternoon setting this shit up.
(Because precompiled binaries crash on start for some reason. Hell knows why.)
Can you open page 2 of this search chat.stackoverflow.com/…?
Doesn't seem to load.
Oops! Something Bad Happened!
it sort of hangs
I'm too lazy to go report this on meta now. Maybe tomorrow.
Well, I'm too lazy to do something else.
0
Q: Chat search fails to load page 2

R. Martinho FernandesI can't seem to be able to load page 2 of some chat searches. For example this one: http://chat.stackoverflow.com/search?q=chat+search+sucks&user=46642&room=10. I just get the cat workin on mah problemz. I confirmed that this is not on my side, as other users seem to get the Oops page t...

i should never have quoted andrew here about procrastination (why not put off the procrastination till tomorrow?), because i think now at least two persons here have remembered that and made it their own saying, sort of
i think i sometimes do that too
it's funny how the human brain works, or rather doesn't always work
what does one do when has flu and feel shitty and is almost out of tissues?
04:58
Buy more tissues.
but then i have to shower and go out
anyway, what's wrong with this?
Do that in the inverse order.
:2001847 Everything?
1
A: Reading a whole line from file in c++

Chris PartonUse std::istream::getline(), i.e. cin.getline(). There is a good reference and example here: http://www.cplusplus.com/reference/iostream/istream/getline/. You'll also need to be careful combining the extraction (>>) operator and getline. The top answer to this question (cin>> not wo...

I've commented using ::isblank in that header and it works.
CRT doesn't appear to expose that anyway.
@CatPlusPlus I think I solved it with something like that too.
@AlfPSteinbach Swapped!
05:02
> its not good only if you care about buffer size. if you care about buffer size, then yes, getline is not the function for the job. however if you don't care, its fine. – Dani 4 mins ago
What. When do you not care about buffer size?
@CatPlusPlus When you use std::string.
llvm.org -> llvm 3.0 released :)
sbi
sbi
@AlfPSteinbach Oh, a Nick Cave fan!
@sbi yes, but i find it impossible to post that video on facebook. something's changed. i don't like all nick cave, but the rose thing, i think, and this one. :-)
sbi
sbi
@AlfPSteinbach I like neither of those, but much of the rest. :)
afk now.
05:55
I dreamed that Bjarne came to talk at our University, and he was very pissed that there were only two attendees at his talk, so he started throwing tables and messing up the room in various other ways :)
dreams are weird

« first day (412 days earlier)      last day (4761 days later) »