« first day (1023 days earlier)      last day (3915 days later) » 

6:00 PM
At night I farm elves
 
I farm Crows
 
I farm Lionesses.
 
@TonyTheLion ...
soooo basically you're a furry?
 
It's okay Tony, I am a furry too
 
I'm furry and fluffy.
 
6:05 PM
yiff yiff yiff yiff
 
hi Tony
what's up.
 
Not much, been studying finance all weekend
 
Alright. Huge noob question. Can you set up git on a directory where you already have tons of files?
 
I've always thought finance is boring.
 
understanding stock markets
 
6:08 PM
@Crowz why don't you try?
@TonyTheLion ditto
 
why doesn't he google
at least once
 
@BartekBanachewicz I've been finding it interesting.
 
all of his questions i can find in under 10 clicks
 
@Crowz git init => git add . => git commit -a -m "Initial commit" adds everything in the directory to the repository.
 
@EiyrioüvonKauyf lol wat
 
6:09 PM
add is better. don't want to add bs
 
@TonyTheLion well, good for you
 
euh i accidentally added a giant exe with debugging tables and shit :|
forgot to add to .gitignore
also manual merging is a pain in the butt T_T
 
lol what
 
also I want to shower but our one is single threaded
 
and git add giant_pdf.pdf is a bad idea :|
 
6:10 PM
and my showering process is starved.
 
@BartekBanachewicz ........ you can just say we have one shower
you don't need to say single threadd
 
@EiyrioüvonKauyf when my GF is here it's not single-threaded
 
or fork(); ;_;
 
.
laff
no it's single threaded
but it's like javascript - tons of callbacks and shit
 
6:11 PM
yeah fuck you too.
 
@EiyrioüvonKauyf You do know you can do git reset HEAD giant_pdf.pdf assuming you didn't commit right?
 
@Rapptz no i mean't in general
i thought it would be cool to look at compression ratios for pdfs
badidea.org
 
(and if you did git add . and didn't commit and fucked up you can do git reset)
 
yeah yeah i know
also the best idea is always git reset --hard HEAD~10
:P
 
6:14 PM
back to ranges.
 
@Rapptz try Texas
 
It always makes me nervous to use rm -r
 
@EiyrioüvonKauyf Ah, yes, Texas. From an ancient Anasazi word, pronounced roughly like "Tay-Hass" that translates to "I barely got here and I can't wait to leave."
6
 
@JerryCoffin Sounds reasonable.
 
Okay, I wrote 600 lines of code today and I'm about to test everything - can I die now?
 
6:19 PM
@MohammadAliBaydoun It sounds like you've already died and gone to hell. You wrote 600 lines of code without testing it yet? What were you thinking?
 
He was thinking of the next line.
 
@JerryCoffin 300 of those were a rewrite of another component :<
Well, 3 other components
 
Ell
Even worse xD
 
I know ;_;
I had to rewrite the SpriteSheet class, which lead me to rewrite the SpriteSheetAnimation class, which led me to rewrite the SpriteSheetAnimationFrame class ;_;
 
My SpriteSheet classes just uses variadic indices to make an animation.
 
Ell
6:23 PM
Is this a game engine? o.O
 
Ell
2d?
 
spritesheet.createAnimation(0,1,2,3,4,5); // animation from first 6 sprites
 
is there a way, in Unix, to move a directory and everything in it? It complains when I do mv thing ../
 
6:25 PM
Unix is still alive?
 
mac is
 
Sure -- Solaris, HP-UX, AIX are all UNIX ports.
 
Also BSD.
 
Ell
@Crowz first thing that comes to mind is a recursive copy then delete the old dir, I'd have to google for moving directory + contents
 
It's just mv.
 
6:29 PM
@CatPlusPlus that didn't work. It said the directory still had files in it
 
Did you do mv or rm?
 
oh. Duh. I'm an idiot. It's saying there's another one with the same name
 
@CatPlusPlus BSD is in a strange position -- it started as a UNIX port for sure. Then they added a bunch of code to it, much of which was then incorporated into the base UNIX distribution. Since then, they've (supposedly) removed/replaced all the code that started out proprietary to AT&T though.
 
Ell
Ants be awesome
 
arrgh, any R / functional programming guys here?
I have a problem
 
6:37 PM
Yes.
 
okay cat, here’s your chance to shine
 
Pff
I always shine.
 
I have this function and I want to translate it into point-free style:
capitalize <- function (str) paste(toupper(substring(str, 1, 1)),
                                    substring(str, 2), sep = '')
essentially, I have partial, lpartial and compose (aka. %.%)
but somehow I guess I need an additional operation here to curry the function call to paste, or else I have no idea how to do this
 
R looks sexy
 
Haskell is the most sexy language
 
6:41 PM
If R looks sexy then point-free R is in a lacy corset and stockings with garters
3
 
Ell
Haskell looks weird
Ruby is most sexy
 
@BartekBanachewicz Ah, you're fanboying Haskell too?
 
@Rapptz aye
@Ell Ruby is terrible.
 
Ell
Ruby is beautiful
 
Eh substring should have its arguments reversed.
 
6:44 PM
@CatPlusPlus huh?
substring isn’t the problem here, you can simply say partial(substring, 1, 1)
 
Oh you have lpartial.
Or that, okay.
You basically need uncurry3 and fanout.
 
@Ell we've already went through this and more people here dislike it than like it so feck off
ruby sucks by democratic choice
 
fanout f g x = (f x, g x), uncurry3 f (x, y, z) = f x y z
 
Ell
@BartekBanachewicz It's just opinion :P
 
@Ell yeah sure just please don't mention it ever.
 
6:46 PM
Or better yet, normal uncurry and partial away that sep argument.
 
@CatPlusPlus fanout, huh?
 
Ell
Please don't mention lua ever :3 </unreasonable>
 
if that means you will shut up about ruby then it's a deal
 
Ell
No :L
 
@Ell it's like weird sex. Enjoy it in your apartment but FFS you don't have to take it out and brag for all others to see.
 
6:47 PM
Then uncurry (partial paste '') . fanout (partial substring 1 1) (partial substring 2) should work.
 
Ell
All I said was that ruby is prettier than haskell :L
 
(Not doing that R syntax full of ew parentheses)
 
Ell
If you want I can just say that haskell is ugly
 
@Ell yeah, we know that your sense of beauty is lopsided already.
 
@BartekBanachewicz &&& :v
 
6:49 PM
@CatPlusPlus :F that's still on the things I have to learn yet.
 
Ell
@BartekBanachewicz Well we know your sense of fun is lopsided if you enjoy mlp :3
 
I had two-day break, back to Haskell from tomorrow.
 
Arrows!
 
@Ell have you ever watched it?
 
Ell
@BartekBanachewicz No
 
6:49 PM
@Ell THEN WHAT THE FUCK ARE YOU TALKING ABOUT
:S
seriously.
@CatPlusPlus ditto. So, are we moving from C#?
 
Ell
@BartekBanachewicz I'm just making ridiculous statements similar to "your sense of beauty is lopsided" :P
 
@Ell except your statements have no backing whatsover.
So they are just dumb ramblings.
 
Ell
They aren't serious
A statement like that is ridiculous by nature
 
Neither is ruby. I see the pattern.
 
Ell
@BartekBanachewicz We are talking about an almost entirely subjective question, I don't see how I could provide backing, even if I was serious
 
6:53 PM
@Ell you can take the hint of "I am tired of being reminded of existence of Ruby"
 
Ell
Well I'm tired of being reminded of the existence of Haskell :P
 
except we here really like haskell and talking about it.
 
Ell
Not all of us :3
 
of course. But pretty much everyone here dislikes ruby.
go figure.
 
@BartekBanachewicz I don't know. Changing the license after all might be a better idea.
 
6:54 PM
seriously, if it's so great the go to the Ruby room.
 
Ell
Not all of us
 
Or just implementing the thing.
 
Ell
Stacked likes it :P Rightfold likes it... oh wait :(
 
@CatPlusPlus :effort:, but we might have no other way.
 
@CatPlusPlus Right I was temporarily distracted by the announcement of the new Doctor, but this looks very salvageable, thanks
(that said, it doesn’t look superior to the non-point-free style)
 
6:55 PM
@Ell wow that's like 2.
 
I'm not usually concerned with making things point-free.
 
Wow there are a lot of C++ libraries for XMPP.
There are also a couple in Lua and Python.
 
could we use a C++ library in C#?
 
I really dislike negative people on LoL.
You know, those who get frustrated quickly and decide to blame their teammates for it.
 
7:01 PM
@EtiennedeMartel playing solo is extremely bad
 
Ell
@BartekBanachewicz yeah, with pinvoke at least
 
@EtiennedeMartel aye
 
@BartekBanachewicz lol
 
I mean, fuck, it's only a game.
 
> gloox is a rock-solid, full-featured Jabber/XMPP client library, written in clean ANSI C++.
ANSI C++ again.
 
7:02 PM
@Rapptz what's wrong with that Q?
@EtiennedeMartel this doesn't work like that for them
 
@BartekBanachewicz Imagine the next 3 messages are replies to you.
 
@EtiennedeMartel I hate those. Actually, I refuse to play with someone I know exactly for that reason. He's good but he's so BM.
 
I was just laughing at the C++ libraries.
 
@BartekBanachewicz By the way, IIRC there is a way to use C++ code in C#.
But it's not really worth it.
 
7:03 PM
what about C code?
 
Ah yeah, it has to be made into a DLL to use it.
 
-1 for obvious troll. You don't obfuscate programs that you want help with. Also, you don't caption a contrived example with "A simple cpp program". Not, of course, you are trolling. Trolling == waste of time on SO — sehe 1 min ago
 
@sehe The upvote on the comment is from me :)
I don't know why you bothered reformatting the code though ;)
 
@Borgleader Because I'm like that. I treat it as a non-joke, just so he's acutely aware of the time wasted. (The downvote is also there to help with the understanding)
 
Oh I see
Not sure but it could be that every power function needs ranger function to complement it. — Captain Obvlious 16 secs ago
Hahaha
 
user1804599
7:08 PM
Thought to join for a few hours.
 
hey
 
@not-rightfold Ohai
 
user1804599
I made progress on Gear.
 
user1804599
Maybe I'll finally finish a project!
 
7:09 PM
Hint: @not-rightfold not-Aardvark, obviously. And not-daknøk not-daknok_t not-class_daknok_t not-WTP'-- not-RadekDaknokSlupik not-RadekSlupik etc.
 
:)
@not-rightfold Bartek and I are learning haskell. dont know if you saw that.
 
user1804599
I haven't seen anything.
 
user1804599
@Ell s/Ruby/Gear/
 
2 days ago, by DeadMG
@TonyTheLion Well, honestly, that wouldn't be the first time. I might consider him actually gone if he's not back in a week or so
 
@not-rightfold rightFold dead now?
 
user1804599
7:11 PM
@JohanLarsson not-dead
 
Ell
@not-rightfold Heyy!
 
un-dead* FTFY
 
user1804599
Did anything important happen?
 
death-wish, wanting to become undead idk
 
user1804599
[[1, 2], [2, 3], [3, 4]]
|> fn xs { for [x, y] in xs { [y, x] } }
 
user1804599
7:15 PM
So happy I got this stuff working.
 
a swapper?
 
user1804599
Jawohl!
 
user1804599
But loops, functions, pattern matching and |> in general.
 
is |> the folding operator? if there is such a thing
 
user1804599
@JohanLarsson x |> f is the same as f(x). <| is similar.
 
7:18 PM
howdy all :}
 
does that swap in place then?
 
user1804599
@JohanLarsson No. It's like this in Python:
 
@not-rightfold nope
 
user1804599
def f(xs):
    result = []
    for x in xs:
        result.append([x[1], x[0]])
    return result
f([[1, 2], [2, 3], [3, 4]])
 
user1804599
But with f being anonymous.
 
7:21 PM
I learned some db & ef
 
That's not the point. By copy/pasting you prevent the accumulation and perfection of a single good explanation (or set of useful answers), instead spreading mediocre copy/paste ones around. — sehe 18 secs ago
^ Whoops, guy doesn't think duplicates are worth the effort.
 
user1804599
Time to implement case expressions.
 
@Borgleader pssst. you're likely not out of down arrows :|
@JohanLarsson oh boy. that must have been swell
 
It was painful in the beginning, feels good now :)
2
 
@TheOtherGuy Who are you arguing? You're the one answering a dupe. With a lot of bile about it. I don't get it. — sehe 8 secs ago
@JohanLarsson Lube. I knew it. Backend programming. Of course
 
7:26 PM
hehe, punny but still funny
 
Xeo
How entirely unexpected to see rightfold again.
 
I'm shocked too.
 
@not-rightfold teehee
 
user1804599
I have no idea how to implement case expressions.
 
CASE modeling?
 
7:28 PM
@not-rightfold in Gear?
 
user1804599
@BartekBanachewicz for Gear.
 
@not-rightfold where's your GH now?
 
user1804599
@sehe switch but with pattern matching.
 
user1804599
@BartekBanachewicz github.com/rightfold
 
@not-rightfold cool :3
I'm glad you're back
 
7:30 PM
@CatPlusPlus It almost works, and it’s even simpler (no uncurry needed):
capitalize <- p(paste, collapse = '') %.% p(fanout, toupper %.% p(substring, 1, 1), p(substring, 2))
unfortunately this doesn’t vectorise
 
user1804599
@BartekBanachewicz Gear's also there.
 
@TheOtherGuy hahaha you're doing this on purpose. This: i.imgur.com/dbmA4rL.png. Also: the comment has been given. It reads "It doesn't work: it is Undefined Behaviour. Anything can happen." - see, that's easy. It fits in a subcomment. After my evening coffee, admittedly — sehe 1 min ago
^ I should not be loving this
 
i.e. calling it with capitalize(c('foo', 'bar')) yields a wrong result
 
@not-rightfold oh wait now it compiles to JS. Is asm.js supported?
 
user1804599
@BartekBanachewicz I don't know what asm.js is.
 
7:32 PM
@not-rightfold you for real now? check it out!
 
I was once rightfold
It felt bad in my tummy
 
@Crowz do you even know what foldr is?
 
user1804599
@BartekBanachewicz I don't think the code generator generates any code that isn't correct asm.js, apart from the lack of "use asm";.
 
@BartekBanachewicz no I ain't one a you fancy cityfolk
 
\@Everyone feel free to flag the non-answer as... not an answer. I assume that's the only thing that'll work
 
7:34 PM
@not-rightfold nice. Consider adding it then, perhaps, it really speeds up. Only on Mozilla engines, but hopefully in Chrome too
@sehe the only thunk!
 
user1804599
@BartekBanachewicz The output of the example program above is the following:
 
user1804599
((function(){var __gear0=arguments;if(__gear0.length!==1){throw new Error('bad pattern');}var xs=(__gear0)[0];return (function(){var __gear1=[];var __gear2=xs;for(var __gear3=0;__gear3<__gear2.length;++__gear3){var __gear4=(__gear2)[__gear3];if(__gear4.length!==2){throw new Error('bad pattern');}var x=(__gear4)[0];var y=(__gear4)[1];__gear1.push([y,x])}return __gear1;})();}))([[1,2],[2,3],[3,4]]);
 
Xeo
@KonradRudolph wazzat supposed to do?
 
@BartekBanachewicz "thunk"?
 
56 mins ago, by Konrad Rudolph
capitalize <- function (str) paste(toupper(substring(str, 1, 1)),
                                    substring(str, 2), sep = '')
 
7:35 PM
@sehe well, the only think.
 
That's .... a lot clearer.
I guess?
 
user1804599
I'm planning on this too: [[1, 2], [2, 3], [3, 4]] |> for [x, y] in &1 { [y, x] } but there's a problem with precedence/scoping WRT &1.
 
1 min ago, by sehe
\@Everyone feel free to flag the non-answer as... not an answer. I assume that's the only think that'll work
(I am terrible hides)
 
:)
@BartekBanachewicz Nah. It was due. unhides bratek
^^^ gnagna
 
uuuuu...
self-plonk is the new thing.
 
7:38 PM
so many bad questions today =/
 
@TheOtherGuy I never said answering them was fine. Giving tips is fine, but not as an answer. Need more clarification? I hope someone else will chip in. I'm done — sehe 34 secs ago
^ o god. someone tell me to stop. It's past being fun, and I can't ... stop. Oh hell, of course I can. There. Stopped :)
 
-1
A: C++ delete array memory without brackets still works?

David Ellimandelete and delete [] are actually different operators and to use the wrong one is always an error. The problem is that it often seems fine at the time, but the heap has ben corrupted and you are very likely to experience an apparently unrelated crash later.

I'm undecided as to whether or not this is wrong
 
okay. I hate it so much when suddenly my program won't work any more for seemingly no reason
 
@TheOtherGuy: Nobody reading this comment thread doubts that you're confused. — Benjamin Lindley 1 min ago
^ loving that
 
Xeo
@Borgleader Not wrong
... and it got another downvote. Wtf.
 
7:41 PM
You cannot state "the heap has been corrupted". I might not have been. It's undefined. — sehe 6 secs ago
 
When I first read it I thought it was wrong because he says the heap will for sure be corrupted, but this kind of error is UB, so it's not a sure thing
so I thought it was wrong, but then it got upvotes
 
In response to a moderator message asking a dude to be more civil on Skeptics.SE:
> FUCK YOU AND YOUR TEMPLATES. IDIOT WITH THE NAME FABIBAN.
sure, that was suave and convincing
 
Xeo
@Borgleader Oh, just inaccurate.
 
@Borgleader Yeah my reason for DV too. That, and the extremely poor spelling and presentation
 
Xeo
Or rather, specific to what is likely to happen.
 
7:42 PM
@sehe It?
 
Xeo
> I might not have been
Oh wait, he edited :(
 
taking it very personal
 
user1804599
@user2597879 hello
 
@JohanLarsson fixed, it's impossible to 'refresh' a oneboxed comment, though
@JohanLarsson always
2597879: 157 * 16547
 
7:45 PM
The mere fact that I look like a heap (of garbage) does not mean I have been corrupted by incorrect deletions. In reality, my corruption has many other sources as well!
9
 
@JerryCoffin Darn you are good at this kind of inversion
@user2597879 Mathematics?
 
user1804599
@user2597879 The place to go with this is obviously Stack Exchange.
 
tried both
 
user1804599
Bounty.
 
@sehe It's an undervalued (unvalued?) talent!
 
7:47 PM
@user2597879 I don't see it
 
user1804599
inb4 deleted
 
@JerryCoffin much appreciated
 
@sehe Eh?
 
@Rapptz I'm not a paying member at Math.SE
 
You said you didn't see it.
 
7:49 PM
I can witness that.
 
Help Vampire cleanup on aisle Lounge<C++>
 
why were my messages deleted?
 
Xeo
39 secs ago, by DeadMG
Help Vampire cleanup on aisle Lounge<C++>
 
@sehe My brother once compared it to the ships on Star Trek -- very fast and extremely warped.
 
user1804599
[true, false, true, true, false]
|> fn xs { for x in xs where x { x } }
// [true, true, true] :)
 
7:56 PM
ewww
 
user1804599
s/ewww/wonderful/
 
wonderfully eew
 
you know
 
user1804599
Hmm. I should support literals in pattern matching. :V
 
I've been seriously thinking that perhaps I should look into devising my own parser generator
 
7:58 PM
I told you before.
 

« first day (1023 days earlier)      last day (3915 days later) »