« first day (1626 days earlier)      last day (3327 days later) » 

4:00 PM
fix :: (a -> a) -> a
fix f = let x = f x in x
@CatPlusPlus this?
 
@LightnessRacesinOrbit yes. I havent used string class since december. ive been using char pointers frequently this month for class.
 
@CatPlusPlus I don't know I just got in the room lemme scroll up
 
@DonLarynx Why?
@Moshe Basically.
 
@ParkYoung-Bae No I mean if we're complicating it we might as well go all the way
 
@Moshe Unique stage names required.
 
4:02 PM
Oh I thought the goal was to have the minimum number of lines
 
@Puppy alright, I can now get the i686-pc-win32 target and investigate errors! thanks :)
 
@LightnessRacesinOrbit boot camp.
 
bread calls
good night!
for (int i = 0; i < 16; ++i)
    make((i >> 8) & 1, (i >> 4) & 1, (i >> 2) & 1, i & 1);
4/10 for effort
prolly buggy as shit
 
you're giving away lots of fours today
 
initialGraphicsModule = Module $ \x -> do
    render x
    return ()
uh no I can't just return a value
I need to return a new module damn it
 
4:07 PM
@ParkYoung-Bae Should be >> 3, >> 2, and >> 1
But (i&8, i&4, i&2, i&1)
 
@LightnessRacesinOrbit Heh, well Tennant is a cool name.
 
So this class has private ctors and the only code that uses them is in a friend.
 
initialGraphicsModule initialState :: GraphicsState -> GraphicsModule
initialGraphicsModule initialState = Module $ \x -> do
    (r, s') <- runStateT (render x) initialState
    return (r, initialGraphicsModule s')
HAAAA
god please let it work
please oh please oh pretty please let it compile and work
 
ka-put
 
@Puppy nope, I meant the "I have no clue about CMake"
LLVM makes heavy uses of CMake and sometimes you have to configure stuff by yourself (or even hack into it)
Not referring to that specific issue
 
user1804599
4:14 PM
Hello.
 
@Puppy hmph, now getting some target thing...but still zero output to the file and no errors I can see with this
 
user1804599
@R.MartinhoFernandes Fuck ISO C++!
 
did you remember to define your main as external.
 
@райтфолд so eversive
 
llvm::Function* main = llvm::Function::Create(main_type, llvm::GlobalValue::ExternalLinkage, "main", &module);
yes, I think.
 
user1804599
4:16 PM
Fuck ISO C++ for two reasons: ISO and C++.
 
dump your module.
 
user1804599
@melak47 lol no auto.
 
the puts declaration being below main where it's used seemed odd to me, but I couldn't get it to be anywhere else...
oh wait, I get a whole bunch of stuff on cout or cerr
 
oh jesus christ I accidentally put spotify on album-repeat. no wonder it felt like I had Halo 3 playing all bloody day
ah blessed relief
 
user1804599
@melak47 Looks good to me!
 
user1804599
4:23 PM
% cat hello.ll
< your shit here >                                                                                                 % clang hello.ll
warning: overriding the module target triple with x86_64-apple-macosx10.10.0
1 warning generated.
% ./a.out
hello llvm!
 
@melak47 The declaration location doesn't actually matter.
 
uhh...ok, so all this was printed to cerr: gist.github.com/melak47/ca28937b0c2aba35d627
seems like it does a whole bunch of passes or something? and I see nothing actually saying "error"...
 
oh welp
I think I did it
was that it
just keeping state in the call
createGraphicsModule :: GraphicsState -> GraphicsModule
createGraphicsModule initialState = Module $ \x -> do
    (r, s') <- runStateT (render x) initialState
    return (r, createGraphicsModule s')
I just needed to specify IO as outer monad
 
Is it safe to say that a mutex with virtually no contention is almost negligible from a performance standpoint?
 
and bam, it works
 
user1804599
4:30 PM
I/O is terrible.
 
user1804599
But also the only thing that's fun!
 
user1804599
@BartekBanachewicz Here, the equivalent Perl program: print "1\n2\n3\n";.
 
that was almost funny
I think I botched the idea though
it was supposed to work on any monad
 
I can't believe you get paid to write that nonsense
 
4:38 PM
I can't edit old commit messages can I?
 
git
I mean, not just amending the last commit message
 
Oh, no idea. I don't use poor tools.
 
lol
 
In SVN you can (if the admin allows it), because SVN is great.
 
4:39 PM
@AndyProwl you can
 
inb4 .·. git is great
 
@BartekBanachewicz Do you happen to know what's the command?
 
rewrite-history perhaps
 
you can also amend your last commit with changes and a commit message
 
@AndyProwl Interactive rebase.
Do an interactive rebase from a commit before the one you want, and choose "fixup".
 
4:41 PM
I need to learn this shit
I hate feeling ignorant
 
we're gonna switch to git at some point at work...so I'll have to git gud sooner or later :v
 
It's the same command you would use to squash commits, but instead of squash you pick fixup.
 
Yeah, except I have no idea what squash commits and interactive rebases are, let alone fixup :P
 
Or edit if you want to change the files in the commit too.
 
> Don’t include any commit you’ve already pushed to a central server – doing so will confuse other developers by providing an alternate version of the same change.
 
4:43 PM
@AndyProwl Oh. git rebase -i some_commit_before_yours.
 
Hmm, ok so I shouldn't do this if it were a serious project I guess
 
It will open a text editor with a list of commits and instructions.
Follow the instructions and save.
 
You just need to remember that all IDs starting from the commit you edited will change
I forgot to include message text in my message model
 
I'm totally stuck lol
I totally understand noobs now. Why does it have to be so complicated to do something so simple?
 
ask braket
bortok
 
4:50 PM
No I can't do git rebase --continue and I can't do git rebase --abort. How do I get back to my previous snapshot
 
beertech
use svn instead
 
Yeah because history editing is so easy with SVN
 
All of this because I wanted to change "Renamed" into "Rename" in one commit message.
 
@AndyProwl Then you're not in the middle of a rebase, it's done
 
Oh, got it wrong.
 
4:51 PM
I wouldnt worry about 'being one of those people' this whole forum/site has turned into people trolling to downvote, without actually providing any real help. Asking legit questions is far more valuable then half the members here. — whispers yesterday
 
It's reword not fixup.
@AndyProwl What happened?
 
Rebase works by creating new commits and then changing what the ref points to
 
@CatPlusPlus When I do git rebase HEAD it tells me "It seems that there is already a rebase-merge directory" bla bla
 
rebase HEAD does nothing
 
@AndyProwl What does git status say?
 
4:52 PM
"Nothing to commit, working directory clean"
 
@AndyProwl Ha, that's a bad error message.
9 mins ago, by R. Martinho Fernandes
@AndyProwl Oh. git rebase -i some_commit_before_yours.
 
So what did you do before
 
@R.MartinhoFernandes Yeah I've done that
 
You cannot pick HEAD.
@AndyProwl Then you're done.
 
You can repoint the ref manually if you got something wrong
 
4:53 PM
I exited the editor, typed git commit --amend, typed git commit -m "New message..."
 
That's not how you amend :v
 
@AndyProwl which option did you pick?
2 mins ago, by R. Martinho Fernandes
It's reword not fixup.
Tell me it's not fixup.
 
@R.MartinhoFernandes I don't see the new message on GH. I pushed, it says nothing to push
 
Then you probably did nothing
 
@R.MartinhoFernandes I didn't pick any, I followed the instructions here
@CatPlusPlus Very likely
I'm a disaster, I need to learn this stuff
 
4:55 PM
@AndyProwl What does git rebase --continue say?
Or --abort. Probably better, not knowing if you messed up something.
 
@R.MartinhoFernandes A few lines including 0000 fatal: ambiguous argument bla bla, permission denied bla bla, and then at the end All done.
 
@AndyProwl Wut.
 
You're doing something weird :v
 
@R.MartinhoFernandes Let me take a screenshot
@CatPlusPlus I figured :(
 
4:57 PM
yay
@AndyProwl Hmm, did you close the editor?
 
Why are you running elevated console don't do that
 
@R.MartinhoFernandes Yes
 
And --abort?
 
Now VS is asking me to reload the projects, which means the files have been touched
 
Just remove that rebase-merge directory
 
4:59 PM
 

« first day (1626 days earlier)      last day (3327 days later) »