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

12:05 AM
note to self
turn your radiator off in winter and at night it gets fucking cold
 
Crazy.
 
12:25 AM
@DeadMG right
i remember in england and scotland they had these clunky electrical connectors, and bathtubs everywhere instead of showers
maybe that's history now?
it was fun in a way
 
as far as I know, the Germans have the best electrical socket design by some way
 
the germans excel at industry
except the make hospital equipment with IR comms that pick up stray sunshine and mobile phones and whatever ...
heh. old geezer has family visiting. wait says his niece, i just gotta make phone call. gaaaah!
because in germany nobody would break the rules and make such phone call close to the equipment
but in norway they do
 
Bathtub > shower.
 
Denmark's power sockets look the happiest
5
 
rofl!
 
12:36 AM
Night
 
night
 
1:07 AM
ok, my hopes are somewhat shattered
goddamn llvm doesn't do any linking, it just compiles, so it's only a part of codegen
 
1:24 AM
@DeadMG Doesn't clang have a linker?
 
apparently not
at least, none is mentioned
 
"Native code generation is performed by converting the linked bitcode into native assembly (.s) or C code and running the system compiler (typically gcc) on the result."
so it'd still boil down to using Visual Studio's linker
 
i couldn't get the llvm-something whatever to work in windows
it just made a clean install
it Did Not Work
i filed a bug report
it was claimed that it was not a showstopper for release, that it did not work
i think they're vacuum head academics
or sardine brain
or smaller
 
You've got something against sardines?
 
1:33 AM
yes
 
so basically
I would have to either convert to C code, and then compile with Visual Studio
or I would have to write my own compiler in entirety, including native code generation, effectively
 
^ this writer claims to be a Norwegian girl who loves sardines. NOT!
 
Hint for news people: if your news site needs JavaScript to work, I won't be reading your news site.
It's text for Finagle's sake.
 
right
well I know enough about the PE file format, and can pick up enough from the Intel documentation, to make some basic code
 
@RMartinhoFernandes i could have lent you the cookie it gave me, but you'd just have eaten it with a sardine
 
1:40 AM
@DeadMG Why can't you just tag along with llvm-ld for now?
 
well, because I cannot ship a compiler that depends on Visual Studio to run
 
You're shipping already?
 
Lol.
llvm-ld emits LLVM bitcode as the result, AFAIR.
 
well, no, but I'm not going to do anything that will hinder my ability to ship
 
@CatPlusPlus It calls the system assembler afterwards (whatever that is).
 
1:42 AM
But it doesn't have to.
 
well
 
@DeadMG Personally I think that stopping to implement something that already exists hinders shipping ability. Because, I don't know, bugs.
 
already existing != practical for use
 
All you need is to stuff an assembler there.
No need to write native code generation.
 
Besides, for an early version you can safely depend on a system linker, and nobody will mind.
 
1:47 AM
Look at, I don't know, clang.
 
LLVM already has full codegen.
 
the VS linker won't take LLVM bitcode
the only example of LLVM running on Windows uses clang to convert first, I think
 
> Native code generation is performed by converting the linked bitcode into native assembly (.s) or C code and running the system compiler (typically gcc) on the result.
Emphasis mine.
 
You just need to implement output object format.
 
Visual Studio's linker doesn't eat .s files
 
1:49 AM
You can just combine IR, generate x86 code and stuff it into PE for really basic linking.
 
@DeadMG But you don't want to be using Visual Studio.
 
No linker eats .s files.
They're assembled first.
 
indeed
 
@CatPlusPlus Right, and only the last part is missing.
 
I know enough about the PE format to get started, it's not terrifically fun but it could be much worse
the x86 would be the issue
 
1:51 AM
Translating asm mnemonics should be easy.
Of course, you'll need a parser for asm.
 
You can lower LLVM bitcode to machine code directly.
LLVM has a working JIT, hint hint.
 
I know it has a working JIT
the JIT examples are very clean and easy, which is what I really wanted
 
It kinda implies it has codegen implemented.
 
true, except you can't just memcpy x86 code over into a PE file and call it a day
 
1:53 AM
But that's the only thing you're missing, isn't it?
 
apart from the fact that I have absolutely no intention of using LLVM's run-time libraries
(mostly)
you'd have to actually know the x86 code
 
yeah, you need a little more than that to do PE files
 
I thought you said you knew about PE.
 
What do you need, though?
 
1:57 AM
for example, if you want to import a Windows function, then you need to get the compiler to refer to your global function pointer array
and you need to find all the fixed addresses, including function calls, variable references, etc to be patched up during rebasin
if I wanted to understand assembly or make my own PE files, I wouldn't want to be using LLVM
 
So, you don't want to use LLVM, because you want an all or nothing thing?
Also, you can ship more than once, you know?
 
LLVM bitcode is useless to me if I have to deal with the thing it's supposed to be abstracting away anyway
 
AFAICT It just doesn't abstract object file format.
 
You're not reading the API documentation carefully enough. There's MCStreamer implementation for MS COFF files.
 
which I'd have to ask Visual Studio to link for me
although I have to admit, I'm not finding the docs particularly easy to navigate
I would have expected that this is use case #1, Windows version
 
2:12 AM
Linkers give lack of flexibility, more costly evolution, inhibit the use of the database acting as a service to applications and make it an inhibitor to evolution. As such, please remove from all production databases.
 
What.
 
rofl
 
> After a brief debriefing, Daniel learned that it all started with a single-character bug in the Chief Architect’s code. On a certain key table, the sequence trigger computed max value minus one. Normally, that’d trigger a primary key constraint violation, but since the Chief Architect had removed those, the table filled up with duplicate data.
 
This is awesome.
 
2:13 AM
Also, FIREFOX Y U HOG ENTIRE CPU CORE WHEN I RIGHT CLICK.
Oh, right, wall of text. Probably why I skipped it.
 
It's awesome. Read it.
It even has a happy ending, so you don't have to feel bad for the protagonists.
 
@CatPlusPlus Blame Gecko. It's a ultra patched piece of crap.
 
> Sadly, no one will ever know what Directive 595 Part 4 was going to be.
 
> Not null constraints give lack of flexibility, more costly evolution, inhibit the use of the database acting as a service to applications and make it an inhibitor to evolution."
 
why do I get a horrendously nasty feeling that LLVM is going to take six decades to build?
 
2:18 AM
Because it's true.
 
@DeadMG It's probably going to take less than Boost.
So, 5 decades.
 
lol
 
@EtiennedeMartel :F
Oh, I've missed Zero Punctuation somehow.
Wednesdays are bad.
 
@CatPlusPlus Strange.
Yeah, wednesdays are the days where fuck all happen.
It was Skyrim this week.
 
I know, I just watched it.
I'd buy a game where you breathe radioactive lasers at Godzillas.
I have RSS to remind me about stuff, but nothing seems to remind me about checking RSS.
 
2:23 AM
Me too. Even though "radioactive laser" does not make a lot of sense.
 
It's a flaw in the system.
 
@CatPlusPlus You could use RSS to remind you to check your RSS.
 
Oh, and I forgot about Twitter, too. Though I'm starting to wonder why I bother with that one.
 
I mostly just retweet stuff with my Twitter account.
 
2:26 AM
But hey, it's not like I have anything to lose by keeping it.
 
this suggests that actually, llvm-ld can produce PE files
 
a.exe is typically ld output.
Unless they've adopted that silly convention, too.
Anyway, there's a linker and an bitcode archive writer/reader in LLVM.
 
The Witcher was still the best ZP
 
0
Q: How to create new vector in each iteration?

sksWhen I run the code below, in my trainingVector I get {(10,0),(10,0),(10,0)...} instead of {(0,0),(1,0),(2,0)...}. How do i make this work correctly? vector< vector< double > * > trainingVector; for(int i=0;i<10;i++){ vector<double> ok (2,0); ...

Two answers with new vector. Facepalm.
 
2:41 AM
> Thanks a lot! The first thing is exactly what I needed. I cannot use the second one, since my trainingVector must have pointers in it...
Sigh.
In Hell++ all raw pointers are actually smart reference-counted pointers. If the ref-count reaches 0 and the pointer was not deleted, the program blows.
 
lol
 
Oh, that Mysticial dude isn't that great, then.
 
On that kind of questions, I find it better to not give scissors to newbies, because I know they'll be running.
Sadly, there's always someone that spills the beans for rep.
 
Hah, that "it refers to the same place in memory" guy made a syntax change and undeleted answer.
 
2:56 AM
It's noise now.
There's a strictly better answer.
 
There, I downvoted the accepted answer.
Recommending pointers to someone who looks like a beginner is cruel.
 
I don't think it's downvote-worthy, really.
 
It covers the bases.
 

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