« first day (979 days earlier)      last day (3969 days later) » 

12:00 AM
Oh (no)fuck. I chopped up a scotch-bonnet into my Tesco finest chicken jalfrezi and made the mistake of going for a piss while it was microwaving up. Some parts of me are on fire and now Anne insists I have to sleep on the sofa :(( Shit, it's painful!
I gotta shower now. Fuck!
 
"microwaving up"
also, lol
 
Xeo
@MartinJames Your relationship sounds like it's in a bit of a pickle
 
@MartinJames Are you married?
 
@Xeo It's a chllied-out relationship.
 
Xeo
@MartinJames A what?
 
12:11 AM
@Rapptz For the moment, yes...
@Xeo 'chillied' - OK. I'm pissed as well.
 
Xeo
Also, man this UHC season is amazing. The latest episodes are full of great battles.
Anyways, 2am, off to bed
 
what's a scotch-bonnet?
 
Yeah, me too. The sofa is a recliner, so just need a thin duvet to throw over.
 
owch
 
user142019
12:19 AM
That looks delicious
 
user142019
ly horrible.
 
That looks spicy
@MartinJames Just drink some vodka. The floor will do perfectly fine. :)
 
OK, quick shower. Not much help :(( 'Most Scotch Bonnets have a heat rating of 100,000–350,000 Scoville Units. For comparison, most jalapeño peppers have a heat rating of 2,500 to 8,000 on the Scoville scale'. Floor is bad idea - the dog can get at me and tends to lie across my chest. He weighs 34kg and so I cannot breathe.
Anyway, gotta try sleep, despite the pain. BFN.
 
TIL about the Scoville scale
 
12:35 AM
So trolling is what kids do on SO these days. Interesting. — learnvst 32 mins ago
@R.MartinhoFernandes :iceburn:
 
user142019
:Java, burn!:
 
user142019
12:50 AM
@EtiennedeMartel Tank!
 
slowly approaching 10k ;-)
 
@DeadMG Wide time!
 
well, I'd advise you to chop chop because I'm looking to sleep pretty soon
 
user142019
@Code-Guru slowly approaching 20k ;-)
 
ClangExperiments.sln ?
 
12:54 AM
yup
that contains three projects- Wide compiler itself, the CAPI I use to expose the lexer for any language to use, and the VS addin project that offers syntax highlighting
for the primary project (also named ClangExperiments if memory serves) you will need to set the include and library paths, since they are set to my include paths.
 
Wow, that's a pretty hardcoded path.
 
I never needed to do it any other way :P
 
Everytime I check it out I'm gonna have to rewrite it.
 
also
 
2
Q: How can I read and write a file in Malbolge?

rightfoldI'm trying to write a social networking site in Malbolge with CGI. I need to store data in a database. How can I read and write files in Malbolge?

 
12:56 AM
THere's gotta be an easier way.
 
umm...
 
I actually don't know how to do it differently.
also
check main.cpp, which has the MinGW install path written in it
 
@rightfold > some kind of major award will be due to you once you get out of the asylum
lol
 
user142019
@Code-Guru I was trolling.
 
@rightfold really? I wouldn't have guessed =p
 
12:59 AM
@DeadMG LIB and INCLUDE environment variables. And possibly editing some MSBuild user XML thingy, though I don't remember where that sits right now.
 
dunno if LLVM and Clang's CMake routine adds environment variables for them
 
user142019
Only in a cruel and hopeless world like ours can such a thing as Malbolge be created. — Bjorn Tipling May 13 '09 at 17:45
 
user142019
He means Java.
 
MSVC uses LIB/INCLUDE by default.
 
@ThePhD Paths. There are two include paths.
 
1:00 AM
CMake has variables for additional flags.
 
clang/include and clang/lib, if memory serves.
 
CMAKE_INCLUDE_PATH, CMAKE_LIBRARY_PATH
 
How to
 
fine i'm sorry
 
Ooh.
 
1:06 AM
Qt is fun
 
I'm gonna set it so that it pulls the base path of clang/llvm off the environment variables.
So then it'll just be setting an environment variable.
 
oh, and llvm/include, of course
 
user142019
@TonyTheLion Trying to make some elixir?
 
user142019
Because Elixir is totally awesome.
 
@Raindrop Yeah. Start working with tablets and QTabletEvent, then you'll see how fun it is.
0
Q: How to set maximum value of Qt slider?

RaindropI'm trying to set the maximum value of a Qt slider to 1 in a Qt Gui Application (Qt 5.0). I have tried various approaches but they have all failed. //main.cpp #include "mainwindow.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; ...

lolwat
@Raindrop, do you even know what you are doing?
 
1:17 AM
@DeadMG Are the actual built libs for clang in tools/clang/lib for you?
 
user142019
Too localized.
 
user142019
Also reading error messages isn't too difficult.
 
no, I think that's just the include paths for the codegen headers
 
user142019
Also congratulations you just made screenshots of error messages.
 
lol
 
1:18 AM
@Jeffrey You have to ask?
 
Name one codegen header so I can find-and-search it.
 
Fine I deleted the question
 
CodeGenModule
#include <CodeGen/CodeGenModule.h>
 
Ah, okay.
Yep it's all in place it seems.
I built Debug/Release x86/x64, so I'll be able to build Wide all 4 ways it seems.
 
should be able to
 
1:20 AM
After changing paths, anything else I should change?
 
did you check the main.cpp paths and target triple?
 
user142019
I suggest we all meet one day and do an MLP marathon.
 
@ThePhD Ah, yeah. If you pulled the latest LLVM/Clang, you'll probably have to alter Wide to deal with a couple of breaking changes they made. It only took a few minutes when I did with stackedcrooked
 
@___@
Why don't you update? D:
 
I'm going to
just not right now this instant
 
1:24 AM
Oh, you don't have an x64 build?
Well, I guess that makes my life easier.
 
I don't currently build for x64
but the target and configuration are up to you
if you want to build x64 then set it for x64
I'm pretty sure it should compile and run clean for x64 and x86
 
We'll find out...
 
user142019
inb4 explodes on x86-64.
 
also
no wonder it took you so long if you built LLVM and Clang for all configurations
I only build them debug x86 right now
 
<llvm/Pass.h> is missing,
 
1:28 AM
Now I just need an extra 0 on the end of my rep...and not just because almost 100k would be nice.
 
and it can't find "Stages/Lexer/Lexer.h" either...
 
hm
 
user142019
Make them available to the compiler problem solved.
 
you probably did not set the paths for all configurations, only one of them.
 
It's in the folder.
 
1:29 AM
oh, yeah
the CAPI project uses a hardcoded path to the primary project for absolutely no decent reason
which I have just fixed locally.
replace the hardcoded path with just $(SolutionDir) and you should be good.
for <llvm/Pass.h>, er, maybe they scrapped that in LLVM 3.3
nope, apparently not
you must have just not added llvm/include to the include dirs for that configuration
anyway, I'm sorry man but I've really got to sleep, I'll do some more tomorrow
 
@Mysticial No, my internship was done in a school (they rented the space during the summer) so I doubt they were overclocked :P
 
@CaptainGiraffe Woah... no I didn't. When was that?
@JerryCoffin Gotcha. Now I know who to look for. :)
 
1:44 AM
:( I'm stuck on Qt
 
@Mysticial /point at topic
 
@Code-Guru Follow the reply arrow.
 
I thought it was that Tony...maybe not...
 
Lounge<C++> - the guy dating site where guys exchange photos and go on dates
 
user142019
> This class isn't a POD type, but it must have a trivial destructor. When a MachineFunction is deleted, all the contained MachineInstrs are deallocated without having their destructor called.
 
user142019
1:47 AM
Wut. Isn't that… a horrible mess?
 
@Mysticial That's what I get for just jumping in where I don't know wtf I'm talking about lol
 
@Telkitty猫咪咪 lol Tony1 & Tony2 Wedding
 
@rightfold Sounds fun...
 
whose tony2?
 
@Code-Guru I would've responded earlier, but I was in the middle of the weekly Google corporate meeting.
 
1:48 AM
guy2
whatever
 
@rightfold I should take some time to get up to speed on C++11. Haven't done any serious C++ programming for a looooong time
@Mysticial I noticed your reply was a bit delayed. I do that every once in a while myself.
 
@Mysticial See you in a while.
 
@Mysticial You work at google? (I probably asked before but this seems like news to me)
 
Yes.. pretty old.
Bad Borg.
 
let me rephrase that
I really need to sleep, but can't.
 
1:51 AM
@JerryCoffin yep
 
@Rapptz All I remember was at some point he was looking for a job, and got interviewed by apple (i think)
 
night everyone
 
lol usually I really want to sleep but can't.
Then I fall asleep during lecture while sitting in the front row.
But I usually skip lectures too.
 
@rightfold Yuppers. But you might reasonably conclude that tracking and knowing when to destruct each MachineInstr may be prohibitively expensive.
 
user142019
Well, make it POD. :v
 
1:52 AM
why over-constrain the class?
argh
why does lying down set my stomach off so
 
All the juices swishing around?
 
so
I presume that you sorted the include directories and are now sitting looking miserably at a bunch of failed LLVM and Clang API calls
 
Uh
Not really.
I think I had to reset my VS to make the LLVM_PATH macro stick.
 
lol
I don't know anyshit about that so you're on your own :P
 
No no, I replaced your hardcoded path
with a pretend environment variable (LLVM_PATH)
So you just set that instead of tinkering with the project settings every time.
 
1:58 AM
right
so what are you up against now?
 
CAPI compiled correctly
 
good
 
Can't find llvm/Support/DataTypes.h
 
oh yeah
you have to copy it manually from the build directory.
there are some .inc or .def files that are like that too.
 
... Wha?
 
1:59 AM
it's a bitch and I don't know why they don't set their cmake files to fix it.
 
llvm needs to just shoot itself...
 
this is VS? cant you use the pre-build/post-build events or something?
 
@ThePhD llvm/build/include has the file.
 
DataTypes.h.in DataTypes.cmake
 
just copy and paste it into the appropriate place.
 
2:01 AM
What a fucking joke.
 
@Borgleader Not my project. LLVM has it set up this way.
 
llvm-config.h
So basically
They forgot to paste
Config and Support
 
there's a whole fucking bunch more.
 
back into the original include directories.
 
Clang has a bunch of .def or .inc files that are the same.
 
2:03 AM
clang/Basic
 
but what's even more amusing is that once you put them in the right place, CMake will make you manually delete them before you can rebuild.
 
~Fantastic Build Systems~
 
fortunately, though, it's a one-off job.
 
Where are the .inc's of clang supposed to be?
 
@DeadMG No but I thought he was integrating wise into VS. So I thought if he needed those files to compile he could just copy them over automatically
 
2:05 AM
build/tools/clang/include
@Borgleader No, it's part of LLVM's build process, nothing to do with me (except that I'm using it)
 
Oh ok
 
1>clangexperiments\stages\semantic\userdefinedtype.cpp(114): warning C4244: '=' : conversion from 'uint64_t' to 'size_t', possible loss of data
Should I fix it?
 
no
Clang uses uint64_t to represent the size of a type... unless you intend to have a type over 4GB in size or alignment
 
1>\clangexperiments\stages\semantic\clangtu.cpp(136): error C2661: 'llvm::Linker::Linker' : no overloaded function takes 2 arguments
 
they changed the linking API
 
2:12 AM
llvm::Linker link(main);
link.linkInModule(&impl->mod, nullptr);
link.releaseModule();
impl->HandleErrors();
Looks like that's how you're supposed to call it now.
Except, uh
There's no releaseModule
 
&main
 
I guesss that's RAII or something
 
yeah, and cut releaseModule.
 
main is a pointer already, and it asks for a pointer.
 
oh right
that's fine then
 
2:15 AM
fatal error LNK1104: cannot open file 'clangAnalysis.lib'
 
ah, yeah
 
Hm. Looks like I'm missing a lib..
 
probably, they simply changed the way the libs are built.
if you look in Stages/Semantic/Util.cpp, you can see a giant list of the libs I asked to link
 
Well, I'm looking at a clangAnalysis.lib right now
So I guess my paths are fucked up
Again.
 
ah, you probably didn't add the lib path
llvm\build\lib\Debug is the path
 
2:17 AM
I <3 initializer lists
 
user142019
C++ y u no a function so fundamental as one that converts an integer from host endian to little endian.
 
@melak47 That don't work with any of the VC++ STL. =[
 
@ThePhD nah, but my own stuff :)
 
$(LLVM_PATH)lib\$(PlatformTarget)\
^ I think that's a fair way to go.
 
should work
 
2:23 AM
... Woo.
Unresolved External Symbol party...
 
yeah, that happens
 
Really, a whole boatload...
Debug Win32
 
what kind of symbols?
 
1>Generator.obj : error LNK2019: unresolved external symbol _LLVMInitializeR600TargetInfo referenced in function "void __cdecl llvm::InitializeAllTargetInfos(void)" (?InitializeAllTargetInfos@llvm@@YAXXZ)
1>Generator.obj : error LNK2019: unresolved external symbol _LLVMInitializeSystemZTargetInfo referenced in function "void __cdecl llvm::InitializeAllTargetInfos(void)" (?InitializeAllTargetInfos@llvm@@YAXXZ)
1>Generator.obj : error LNK2019: unresolved external symbol _LLVMInitializeR600Target referenced in function "void __cdecl llvm::InitializeAllTargets(void)" (?InitializeAllTargets@llvm
 
ah
 
2:25 AM
You can view the whole block of it, if you want
but it's a crapload.
 
because LLVM chooses it's target at runtime
 
linker errors
 
you have to link the libs for every possible run-time target.
there's five or six per target
and they added some new ones.
 
....
I hate compiler developers. =[
 
my advice is: write a Python script to simply iterate through the build output, get a list of all the .lib files, and output a bunch of #pragma comment(lib, "filename.lib").
that's what I ended up doing
or you could just compare the list in Stages/Semantic/Util.cpp to the output.
 
2:27 AM
Why didn't you just include the #pragma comments somewhere in the source already?
They can't have changed.
 
there should only be a couple targets on so missing
@ThePhD I did and they did.
 
=[
Well, okay.
Guess I'll list all the files.
 
user142019
Yay.
 
user142019
Playing a little around with generation of machine instructions and it works!
 
user142019
Let's see if I can get movq to work.
 
2:33 AM
I'm gonna, uh
Call it quits for now @DeadMG
And fix all the rest like tomorrow or something.
 
fair enough
 
user142019
2:53 AM
Hmm.
 
user142019
Surprised I'm getting SIGSEGV and not SIGILL.
 
user142019
Oh, I wrote to RBP instead of RAX. Whoops.
 
use llvm lol
 
user142019
No, I want to learn about x86-64.
 
user142019
But I'm puzzled with ModR/M.
 
user142019
2:55 AM
I am victory.
 
user142019
std::vector<char> bytes;
auto inserter = std::back_inserter(bytes);
x86_64::movq(x86_64::integer_operand<32>(42), x86_64::reg_operand::rax, inserter);
x86_64::ret(inserter);
executable_buffer buffer(bytes.size());
std::copy(bytes.begin(), bytes.end(), buffer.begin());
auto fptr = reinterpret_cast<int(*)()>(buffer.data());
std::cout << fptr() << '\n';
 
user142019
Prints 42. :3
 
user142019
I also got pushq and popq to work.
 
not bad
careful of calling convention
 
user142019
reinterpret_cast<int __ccall (*)()>(buffer.data())?
 
3:08 AM
Fuck plain char :v
 
user142019
Oh well, this doesn't need to be portable anyway. I'm just testing stuff out.
 
user142019
I don't account for endianness either.
 
user142019
unsigned char modrm = 0;
modrm |= 0x03 << 6;
modrm |= (0x38 & static_cast<char>(opd)) << 3;
modrm |= (0x07 & 0) << 0;
*iterator++ = modrm;
 
user142019
Any nicer way of doing this? This is the first time I'm doing bitwise operations other than ORring flags LOL.
 
user142019
Binary literals would make this code a lot clearer IMO.
 
user142019
3:11 AM
Like, just say 0b11000000 instead of 0x03 or 0b00111000 instead of 0x38 and use & or something like that.
 
cpx
3:23 AM
Can you buy Windows 8 Enterprise retail?
There's an evaluation version on MSDN which lasts for 90 days.
 
user142019
3:51 AM
Addition works!
 
4:08 AM
This is the kick in the dick and the balls that we need.
 
4:18 AM
Wide has successfully built.
....
I have no idea how to use this piece of shit.
Lol fuck.
 
why am i up
 
In this episode of through the wormhole... is Morgan Freeman creator of all things?
 
Is anyone here experienced in SDL?
If not everyone.
 
I've experienced LSD
 
4:24 AM
I've experience DSL
 
I've experience LDS
 
What other reinterpretations can we think of?
 
how do you do combination on wolframalpha? We'll find out
 
Uhm, what?
 
Eight. There are eight distinct combinations of 3 letters. How many is viable, I don't know... but knowing how much people love acronyms, probably all of them
 
4:28 AM
Oh I see.
So there are people that still use SDL for even small projects
 
SFML is nicer.
 
I'll look into SFML.
 
This keygen music is nice.
 
So I'm assuming SFML is "better" in some way?
How so?
Besides the sophisticated-ness of the code.
 
I just said it's nicer and easier to develop IMO than SDL which is mainly an old/ancient C binding.
SDL supports more platforms like mobile.
 
4:35 AM
True. I'm currently looking at the SFML page and am downloading what things I need (headers, libs, etc).
 
I heard some benchmarks saying SFML is faster but I never cared about that.
 
I don't really care about speed either. I just need my programs to do what they need to do.
 
@JerryCoffin Dammit, that picture didn't turn out too well.
iphones don't work well in the dark
 
Lounge dating success stories need more pics
post them here now
 
4:46 AM
lol
telkitty how's your business
 
not making me a fortune yet ... but it is making more and more nowadays
Actually should be concentrating on a clients project right now
 
@Mysticial Oh damn. I guess I should have brought my camera.
@Raindrop Nice.
 
@JerryCoffin It's not mine, it's just from some imgur on the internet imgur.com / YvlaAxQ
 
@Raindrop Ah, I see.
 
@Telkitty猫咪咪 It would be great if you would make a time midpoint calculator (halfway between two times). It sounds silly but don't be surprised if tens of thousands of people buy it. I don't mind contributing some mathematical things to you that I derived
 
5:01 AM
...
 
Whey is life-changing
 
I would love to, but currently I have 2 projects concurrently going, plus my current apps needs update (due to API obsoletion issue). Might have time in a couple of months?
I suck, I need to be able to work 12 hours a day
 
....
Only in the Lounge would this be a real conversation.
 
Here's my post on time midpoint calculator eraserboxtips.blogspot.com/2013/06/…
 
@Raindrop You do realize that's about a dozen lines of code, even in C, right?
 
5:09 AM
yes, but it's very important, and at the same time, AFAIK it doesn't exist in the internet except for my blog post
many people who don't know how to code need it, but it just doesn't exist, so we need to 'fill in the gap' although it's easy for you coders
 
@Raindrop That's because talking about how to do it with time_t is about like a blog post proclaiming that water really is wet.
 
:( at least I tricked you guys into visiting my blog and increasing my traffic lol.
 
I honestly don't mean to be insulting, but you'd normally do it by converting both times to simple scalars (typically time_ts) at which point it's like finding the midpoint between any other two things (e.g., (begin+end)/2) or begin + (end-begin)/2)).
 
I'd be willing to pay for Qt5 video tutorials
 
5:26 AM
....
I don't understand this. ;~;
Nothing makes sense anymore.
Why is Wide built the way it's built. ;~;
 
what did the monkey say to the banana?
Nothing. Absolutely nothing.
 
Well, in the end, I can compile Wide,
but I can't get it to run with any kind of success, and debugging it is a tad on the nightmarish side, so.
I'll just not bother for now.
Back to game development...
 
@ThePhD By which we'll all assume you really mean "back to fapping." :-)
 
@JerryCoffin Ain't got time for that.
.... Literally, I don't have time for that. D:
 
Proofing mathematical theorems, discrete mathematics, programming/coding, electronic circuits and logic use the concept of OR, NOT, NOR, AND etc.
 
5:42 AM
@ThePhD still at work? :(
 
No, I'm at home. But I'm still working on stuff.
I'm learning a lot, so I'm trying to implement the most important things I learn.
Reflection / Serialization system is the highest on the list, but it's also the biggest task and will probably take a lot more consideration.
 
reflection for what?
 
C++.
 
uh oh, what are you doing? D:
you're up to something crazy again aren't you
 
Um.
No, not really. >.>
 
5:53 AM
@ThePhD Why not? What's wrong with you?
 
... Hey, wait! I see what you did there! :c
I don't always do crazy stuff! I'm normal!
 
@ThePhD Ha! You've been here far too often for anybody to believe you're normal.
 
:c Well, I'm not that regular. D:
I haven't even been here for a year!
 
@ThePhD They make laxatives that they claim can take care of that.
 
:ccc
I'm just being had tonight.
 
5:57 AM
@ThePhD huh?=
 
Cough.
@melak47 I haven't been in this chat for that long of a time.
 
...since when o.O
 
I... uh.
I dunno. :c
 
While you think about that, I think I'm gonna go get some sleep. Later.
 
Byeee! Sleep well!
 

« first day (979 days earlier)      last day (3969 days later) »