« first day (1729 days earlier)      last day (3444 days later) » 

10:00
yeah
@Prismatic so basically hitler got it his way? (hi Godwin)
@thecoshman i dont really see what that has to do with hitler
user1804599
@Prismatic everyone knows that all Germans are literally Hitler.
hiterally litler
user1804599
Eiffel is really silly.
user1804599
10:03
Whether and short-circuits is implementation-defined.
user1804599
and also always short-circuits.
@Prismatic ... because Germany is ruling the roost... never mind, it was a bad joke
Q: Do you guys using FireFox use tab groups (CTRL+SHIFT+E) at all?
The silence is a no, then?
anyone know what most implementations do when you create an empty vector? Do they reserve any space?
> A common implementation will start the capacity at zero, but there's no guarantee
hm
@Prismatic I think that, from what I see in libstdc++ 4.9 source, it does not allocate anything.
user1804599
10:16
@Prismatic Write an allocator which prints the requested size and see.
user1804599
guys help
user1804599
I need syntax for reading a field from a struct value, like x.Y in C#.
user1804599
@Prismatic m.f already means the member f of module m.
whats wrong with x.Y
@rightfold OK...Why not the dot?
10:17
have it do double duty
a module cant be a struct right?
user1804599
I was thinking of x->y.
@rightfold Why can't you overload dot still?
user1804599
I don't like it to have two purposes.
If your structs are 'magic reference objects' like java I think it makes sense
@rightfold: I propopse Y@x for Y in struct x.
user1804599
10:19
@Prismatic they're immutable so it doesn't matter whether they are
user1804599
@wilx lol :p
Just use dots, its super natural
. here . there .s everywhere
user1804599
x@y@z
@rightfold Genius, right?
user1804599
I have some code to try it out with.
user1804599
10:20
logToConsole(dict.at(levelMapping, record->level), record->message)
logToConsole(dict.at(levelMapping, level@record), message@record)
does C standard library have data structures?
user1804599
@StackedCrooked define "data structure"
user1804599
It has tm.
stuff like string, map, deque
user1804599
nope
10:22
what is tm
user1804599
calendar time
user1804599
and it only has two algorithms: quicksort and binary search.
user1804599
which only work on arrays
user1804599
10:24
well and some string-specific algorithms
user1804599
such as memcpy and strncmp.
calendar time, quick sort and binary search are the fundamental ingredients for anything bigger
memcpy isn't string-specific
user1804599
and strtok, lol
and it's not really an algorithm
user1804599
10:25
C11 has strtok_s which is thread-safe.
it is an algorithm
just a very simple one
user1804599
You have to pass a pointer to the state to strtok_s explicitly instead of it being global.
C is terrible exactly because of the lack of basic utility structures like strings and vectors.
hah far from just that
user1804599
Go also has very few data structures in its standard library.
10:27
@Puppy Well, it is why it is so hard for me to use anyway. Of course it lacks many other things.
just plain overloading would be nice to have
user1804599
Only doubly linked lists and rings.
@wilx Well, there's also the syntax, the semantics, the build system, the preprocessor, and just the language in total, as well as the libraries.
> Ushio and Tora centers around the travels and battles of Ushio Aotsuki, who is constantly being stalked and aided by a gigantic, supernatural and sometimes invisible tiger-like monster.
Hm, should I watch this?
-1
A: Accessing return by pointer out of function

YePhIcKYou are lucky that the outside function is printing zeroes. It might have as well just dumped the core on you :) What you are doing is accessing a buffer, that was created on a stack, after that stack was released (once the function's execution finished). That is HIGHLY UNSAFE and, pretty much, ...

get him boys
10:37
@StackedCrooked if stuff blows up, yes
they found a dead body in the bushland 2km away from where I live
spooky
was it foul play
suspicious, yeah
maybe I should stop bushwalking solo
it's a dead woman in her 30's
user1804599
HOLY FUCKING SHIT I SAW A WASP ON THE OTHER SIDE OF THE WINDOW
user1804599
/me closes window IMMEDIATELY
10:40
@chmod711telkitty That's fucked up
did you read the recent reddit story about this guy who saw a manatee in the water and decided to jump on it in order to ride it like a horse. he fell right through it. it was a dead manatee that had been decomposing for a while.
@StackedCrooked What a moron
user1804599
@StackedCrooked lol
People do incredibly stupid shit at alarming frequencies
Did you see that poster Russia has for safe selfie techniques
How can this even be real
10:47
All the scarier if you consider 1) it happened in the suburb where I live. 2) I went for a long bushwalk today (somewhere else) 3) it's a person of the same gender and the age might be close to mine. See the news here.
user1804599
@Prismatic I liked this one: dumpert.nl/mediabase/6667533/cc65e636/… at 8:40.
It might be a long shot, but I hope the killer is not a serial killer who gets his/her victims in the bushland
Ell
Ell
My wrist hurts
I wonder if it is RSI or some similar ailment
11:06
@ScottW Hai
I dreamed about a smooth scroll vim plugin today
11:26
is it possible to uniquely sort typelists?
Ell
Ell
uniquely sort?
what do you mean by uniquely sort?
sort then remove duplicates?
sorting typelist<T1, T3, T2, T4> and typelist<T2, T4, T3, T1> yields the same typelist
It can be done with stateful mtp but like others said, it's probably best to avoid that.
@Veritas How is that different from a "regular" sort?
well it depends on how we sort them. If we sort by type size we won't necessarily get the same result since two types can have the same size.
If I used a wrapper to assign a unique number to each type then the sort would work but that requires stateful mtp which I would like to avoid.
Ell
Ell
I am very confused
@Veritas what are you sorting by?
11:39
I don't care as long as each sort yields the same result independent of the order.
the problem is I can't think of something that works :(
Ell
Ell
@Veritas this doesn't make any sense!
A sort determines the order
This is an XY problem
explain the problem you are trying to solve
@Ell Sure it does, he wants stable sorted order regardless of what 'sorted' means
Ell
Ell
but the order of the results matters, yes?
so the result can't be independent of the order vOv
If it's just normalisation then not really
Independent of input order bub
user1804599
class ID a where idToInt :: a -> Int
instance Eq TypeID where (==) = idEq
instance Eq DeclID where (==) = idEq
instance Eq ExprID where (==) = idEq
idEq :: ID a => a -> a -> Bool
a `idEq` b = idToInt a == (-1) || idToInt b == (-1) || idToInt a == idToInt b
user1804599
11:48
is there a way to reduce this to something nicer?
Ell
Ell
Oh independent of input order.
My bad
Are C++ POD automatically movable? I guess I can find out by myself
Beh I need a Linux distro with minimal base system and fresh kernel
user1804599
Install Gentoo.
They are movable. Sexy.
12:02
If something is copyable then it's moveable but without special logic move is the same as copy
Ell
Ell
debian-sources are so last year
I wish the gentoo ones would have worked
> You are chrooted. Not touching /boot -- assuming you have it mounted if you have one.
:3
I want it to touch boot.
at least there is an initramfs now
user1804599
I’m outraged that Prince Philip used a coarse word in a moment of impatience. Doesn’t anyone have any fucking standards any more?
user1804599
lol
12:39
@Jefffrey Is a struct with a std::string even a POD?
Dunno, is it?
Ell
Ell
No
std::string isn't POD
therefore struct containing std::string isn't a POD
Uhm, ok. Dunno why std::string was brought in
Ell
Ell
I was just following suit vOv
Why would you care about moving a struct that contains something that does not profit from moving?
12:44
Right
12:54
new day, new pizza
or so I say
13:18
"kill", "murder" and "isis" are all censured on Clash of clans
I don't even
in JavaScript, 2 mins ago, by Awal Garg
can I ask C questions here? I don't want to enter the lounge or whatever room that is.
in JavaScript, 2 mins ago, by Awal Garg
that room is... creepy.
4
@Jefffrey Clash of Penguins
AMIRITE
Fuck linux
2
@Borgleader lol ye p90 is very popular with the beginners
you can run around and shoot like crazy
because at the lower ranks there's nobody preaiming well enough to pop your head in a second
Ell
Ell
@uselesschien lol
okay time to reb00t
Gah
I might just start from scratch
Ah feck
It still kernel panics with debian-sourves
It can't Mount root fs for some reason
13:30
what are you trying to do
There should be a research project to rank the IQ of users by social media usage
like, regulars of which social media website have the lowest IQ
Ell
Ell
Install gentoo is what I'm trying to do
Is it a coincident that female CEO of reddit lost her job so soon after she lost her sexual discrimination lawsuit
An online petition calling for her resignation collected more than 200,000 signatures.
I am not surprised there could be so many idiots doped into signing something like this ... that & fake accounts
@Ell hardcore
I still remember the days american voted george bush in
then 911
13:43
@Ell lol
Describe your setup
sexist culture wins in the valley
@chmod711telkitty Yes
stupid people rule the world
@CatPlusPlus nope, if you look deeper, you will find that it's not a coincident at all
Ell
Ell
The problem must be in my fstab
13:46
If by "look deeper" you mean "ignore everything that happened recently and make shit up to support your theory" then I guess
It would look like a coincident if she resigned after firing a male. But no! It happened after she fired a female stuff. Looks like a elaborate tale of a bad liar
Someone ... or some people wanted her fired from that position ... before the whole petition thing was even started
internet lost, too bad ... too many dumb, dopeable people
... that & fake accounts
Ell
Ell
My set up is an ssd and a hard drive
Both labeled with GPT
Hard drive has one partition taking 100%
I want to know how many of that 200,000 was authentic
Ell
Ell
13:50
Ssd has boot partition of 256MiB, swap of 8 GiB, and another partition taking the rest of the space
fake accounts are easy to create
I can buy 20000 with $500 probably
Ell
Ell
There is a btrfs storage pool across the largest partition on the ssd and the partition on the hdd
The boot partition is vfat and has grub on it
Don't use btrfs
Also don't use FAT for anything
Ell
Ell
The btrfs is nonnegotiable :P
I thought fat was needed for UEFI to boot from
Might as well symlink everything into /dev/null
No
I mean maybe if you want to use kernel directly as an image, never tried that though (plus dunno how initrd works then)
Ell
Ell
13:53
What should I use for boot partition instead?
Yeah its my fstab.
@CatPlusPlus what happened recently that I ignored
please explain?
user1804599
Yay, reifying types in the VM works.
Yeah for UEFI you need VFAT system partition but it's not /boot, it's a separate thing
Ell
Ell
Oh right. Well grub is installed to /boot atm
But I'm p sure the problem is / not mounting for some reason
I just did mount -favn and / doesn't mount
btrfs sucks
Ell
Ell
13:56
Not sure if thats because its already mounted...
Hmm I changed the directory and it successfully mounts
Maybe its not fstab after all
@CatPlusPlus sounds so good though
Ell
Ell
Rebooting is so annoying at this point
Fuck I forgot to boot-update
14:19
My 2600mah power bank does not fully recharge my 1810mah iphone 6 battery ...
I wish I bought 5200mah instead
Ell
Ell
Kernel can't see any partitions
I'd think it'd have gtp support built in but maybe not
Ill try initrd
battery burns fast when I use GPS to track the trail in the mountains ... and measure my hiking performance at the same time
I also listen to music and do a few other things on the phone
Run out of battery within 5 hours ... with the power bank to recharge to phone
takes me 2 hours to recharge the powerbank
only makes my phone last an hour more
user1804599
> AssertionError: 'FFNmill.log.Record;T;;ST;;' === 'FFNmill.log.Logger;T;;ST;;'
user1804599
I don't see the difference. :(
user1804599
'FFNmill.log.Record;T;;ST;;'
'FFNmill.log.Logger;T;;ST;;'
user1804599
14:23
oooooooooooooooooh
14:48
@rightfold: Show me the code when you have implemented the @ operator. :)
Tom Neville is an awesome villain.
15:01
@wilx there's a professor from my uni on villains wiki: villainsfanon.wikia.com/wiki/…. (the dot needs to get after the link, it doesn't get highlighted :P)
@ScarletAmaranth Who is that?
@wilx he teaches some stuff on my uni
@ScarletAmaranth Oh, the link is fixed. I see. Hehe.
@wilx quite hilarious that he's got an entry on villains wiki; but he is quite the villain I have to say :P
15:43
Yay! New version of Kindle PC reader and it's all different! Instead of frequent unexplained crashes, I now get frequent DEP boxes to explain the crash.
user1804599
@wilx it's gonna be x:y instead of y@x.
@rightfold You suck.
user1804599
I do. :3
@rightfold Balls too.
user1804599
16:04
Compiling Haskell code takes too much time.
user1804599
16:18
user1804599
not the best place to go chilling
@wilx What's @ supposed to do? Concatenate?
@Jefffrey @rightfold was looking for a replacement for dot operator for structure member access.
I see
Hello everyone, I have a question.
Let's say I have a stackADT implemented using dynamic array, is it possible not allowing a function like PeekStack(), if the array is empty?
user1804599
16:30
please be less cryptic
In order words, can I stop a specific method from executing depending on the state of the array
user1804599
yes
user1804599
if (array.empty()) {
    throw std::runtime_error("fuck");
}
return an boost::optional<T>
or something
16:34
Okay, I get the gist. Thanks.
@hello throw if empty
don't add boost dependencies to your data types lmao who's ever seen a stack that returns boost optional
peeking an empty stack means doing an invalid operation wrt the state of the stack
in .NET that would be InvalidOperationException
17:12
in C#, 3 hours ago, by Kendall Frey
babe u turn my software into hardware
user1804599
Fuck Haskell.
2
user1804599
> execWriter $ do { tell (Map.singleton 1 2); tell (Map.singleton 3 4) }
fromList [(1,2),(3,4)]
-- that's fine

-- but then this shit:
> execWriter $ do { tell (Map.singleton 1 2); tell (Map.singleton 1 3) }
fromList [(1,2)]
user1804599
what the fuck
user1804599
why does Map.union not prefer the second argument
17:41
I don't know whether this is sad or funny.
what happened to greece lately haven't read stuff
did it die or was it helped
It first rejected a plan, then amended it a bit (to siphon more money...) and then proposed almost the same plan again.
I think they're deciding whether to help it this weekend.
the weekend is best for decisions because that's when you beer to the max
@AlexM. not turribley surprised :)
17:56
10
Q: Predict the date of the 10th million question on SO

ericosgYou know, if someone were to post "Predict the date of the 10th million question on SO" and ping me with a link, I'd endorse it with an offer of a swag box to the person that came the closest :) So, when will it happen? Rules: The question must last (not be deleted) during the entire day that ...

Ell
Ell
Greek tool the deal?

« first day (1729 days earlier)      last day (3444 days later) »